create plugin SocialButtons

git-svn-id: http://piwigo.org/svn/extensions/SocialButtons@20358 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
mistic100
2013-01-24 18:38:46 +00:00
commit 5a4902235e
94 changed files with 1899 additions and 0 deletions

53
admin.php Normal file
View File

@@ -0,0 +1,53 @@
<?php
if (!defined('SOCIALBUTT_PATH')) die('Hacking attempt!');
global $conf, $template, $page;
load_language('plugin.lang', SOCIALBUTT_PATH);
if (isset($_POST['submit']))
{
$conf['SocialButtons'] = array(
'position' => $_POST['position'],
'twitter' => array(
'enabled' => isset($_POST['twitter']['enabled']),
'size' => $_POST['twitter']['size'],
'count' => $_POST['twitter']['count'],
'via' => trim($_POST['twitter']['via']),
),
'google' => array(
'enabled' => isset($_POST['google']['enabled']),
'size' => $_POST['google']['size'],
'annotation' => $_POST['google']['annotation'],
),
'tumblr' => array(
'enabled' => isset($_POST['tumblr']['enabled']),
'type' => $_POST['tumblr']['type'],
'img_size' => $_POST['tumblr']['img_size'],
),
'facebook' => array(
'enabled' => isset($_POST['facebook']['enabled']),
'color' => $_POST['facebook']['color'],
'layout' => $_POST['facebook']['layout'],
),
);
conf_update_param('SocialButtons', serialize($conf['SocialButtons']));
array_push($page['infos'], l10n('Information data registered in database'));
// the prefilter changes, we must delete compiled templatess
$template->delete_compiled_templates();
}
$template->assign($conf['SocialButtons']);
$template->assign(array(
'SOCIALBUTT_PATH' => SOCIALBUTT_PATH,
'img_sizes' => array_merge(ImageStdParams::get_all_types(), array('Original')),
));
$template->set_filename('socialbutt_content', realpath(SOCIALBUTT_PATH . 'template/admin.tpl'));
$template->assign_var_from_handle('ADMIN_CONTENT', 'socialbutt_content');
?>

47
include/facebook.inc.php Normal file
View File

@@ -0,0 +1,47 @@
<?php
defined('SOCIALBUTT_PATH') or die('Hacking attempt!');
function socialbutt_facebook($basename, $root_url, &$tpl_vars)
{
global $conf, $template, $user;
$facebook_langs = array(
'af_ZA','ar_AR','az_AZ','be_BY','bg_BG','bn_IN','bs_BA','ca_ES','cs_CZ','cy_GB','da_DK',
'de_DE','el_GR','en_GB','en_PI','en_UD','en_US','eo_EO','es_ES','es_LA','et_EE','eu_ES',
'fa_IR','fb_LT','fi_FI','fo_FO','fr_CA','fr_FR','fy_NL','ga_IE','gl_ES','he_IL','hi_IN',
'hr_HR','hu_HU','hy_AM','id_ID','is_IS','it_IT','ja_JP','ka_GE','km_KH','ko_KR','ku_TR',
'la_VA','lt_LT','lv_LV','mk_MK','ml_IN','ms_MY','nb_NO','ne_NP','nl_NL','nn_NO','pa_IN',
'pl_PL','ps_AF','pt_BR','pt_PT','ro_RO','ru_RU','sk_SK','sl_SI','sq_AL','sr_RS','sv_SE',
'sw_KE','ta_IN','te_IN','th_TH','tl_PH','tr_TR','uk_UA','vi_VN','zh_CN','zh_HK','zh_TW'
);
// if the link is in the toolbar, we must use smaller buttons
if ( $conf['SocialButtons']['position'] == 'index' or $conf['SocialButtons']['position'] == 'toolbar')
{
if ($conf['SocialButtons']['facebook']['layout'] == 'box_count')
{
$conf['SocialButtons']['facebook']['layout'] = 'button_count';
}
}
// config
$tpl_vars['FACEBOOK'] = $conf['SocialButtons']['facebook'];
// button language
if ( in_array($user['language'], $facebook_langs) )
{
$tpl_vars['FACEBOOK']['lang'] = $user['language'];
}
else
{
$tpl_vars['FACEBOOK']['lang'] = 'en_GB';
}
$template->set_filename('facebook_button', realpath(SOCIALBUTT_PATH .'template/facebook.tpl'));
return 'facebook_button';
}
?>

48
include/google.inc.php Normal file
View File

@@ -0,0 +1,48 @@
<?php
defined('SOCIALBUTT_PATH') or die('Hacking attempt!');
function socialbutt_google($basename, $root_url, &$tpl_vars)
{
global $conf, $template, $user;
$google_langs = array(
'af','am','ar','eu','bn','bg','ca','zh-HK','zh-CN','zh-TW','h','cs','da','nl',
'en-GB','en-US','et','fil','fi','fr','fr-CA','gl','de','el','gu','iw','hi','hu',
'is','id','it','ja','kn','ko','lv','lt','ms','ml','mr','no','fa','pl','pt-BR','pt-PT',
'ro','ru','sr','sk','sl','es','es-419','sw','sv','ta','te','th','tr','uk','ur','vi','zu'
);
// if the link is in the toolbar, we must use smaller buttons
if ( $conf['SocialButtons']['position'] == 'index' or $conf['SocialButtons']['position'] == 'toolbar')
{
if ($conf['SocialButtons']['google']['size'] == 'tall' and $conf['SocialButtons']['google']['annotation'] == 'bubble')
{
$conf['SocialButtons']['google']['size'] = 'standard';
}
}
// config
$tpl_vars['GOOGLE'] = $conf['SocialButtons']['google'];
// button language
if ( in_array(str_replace('_','-',$user['language']), $google_langs) )
{
$tpl_vars['GOOGLE']['lang'] = str_replace('_','-',$user['language']);
}
if ( in_array(substr($user['language'],0,2), $google_langs) )
{
$tpl_vars['GOOGLE']['lang'] = substr($user['language'],0,2);
}
else
{
$tpl_vars['GOOGLE']['lang'] = 'en-GB';
}
$template->set_filename('google_button', realpath(SOCIALBUTT_PATH .'template/google.tpl'));
return 'google_button';
}
?>

7
include/index.php Normal file
View File

@@ -0,0 +1,7 @@
<?php
$url = '../';
header( 'Request-URI: '.$url );
header( 'Content-Location: '.$url );
header( 'Location: '.$url );
exit();
?>

61
include/install.inc.php Normal file
View File

@@ -0,0 +1,61 @@
<?php
defined('PHPWG_ROOT_PATH') or die('Hacking attempt!');
function socialbutt_install()
{
global $conf;
if (empty($conf['SocialButtons']))
{
$default_config = array(
'position' => 'toolbar',
'twitter' => array(
'enabled' => true,
'size' => 'small',
'count' => 'bubble',
'via' => null,
),
'google' => array(
'enabled' => true,
'size' => 'medium',
'annotation' => 'bubble',
),
'tumblr' => array(
'enabled' => true,
'type' => 'share_1',
'img_size' => 'Original',
),
'facebook' => array(
'enabled' => true,
'color' => 'light',
'layout' => 'button_count',
),
);
if (isset($conf['TumblrShare']))
{
$temp = is_string($conf['TumblrShare']) ? unserialize($conf['TumblrShare']) : $conf['TumblrShare'];
$default_config['tumblr']['type'] = $temp['type'];
$default_config['tumblr']['img_size'] = $temp['img_size'];
}
if (isset($conf['TweetThis']))
{
$temp = is_string($conf['TweetThis']) ? unserialize($conf['TweetThis']) : $conf['TweetThis'];
$default_config['twitter']['size'] = $temp['size'];
$default_config['twitter']['count'] = $temp['count'] ? 'bubble' : 'none';
$default_config['twitter']['via'] = $temp['via'];
}
if (isset($conf['GooglePlusOne']))
{
$temp = is_string($conf['GooglePlusOne']) ? unserialize($conf['GooglePlusOne']) : $conf['GooglePlusOne'];
$default_config['google']['size'] = $temp['size'];
$default_config['google']['annotation'] = $temp['annotation'];
}
$conf['SocialButtons'] = serialize($default_config);
conf_update_param('SocialButtons', $conf['SocialButtons']);
}
}
?>

56
include/tumblr.inc.php Normal file
View File

@@ -0,0 +1,56 @@
<?php
defined('SOCIALBUTT_PATH') or die('Hacking attempt!');
function socialbutt_tumblr($basename, $root_url, &$tpl_vars)
{
global $conf, $template, $user;
$tumblr_css = array(
'share_1' => 'width:81px; height:20px;',
'share_2' => 'width:61px; height:20px;',
'share_3' => 'width:129px; height:20px;',
'share_4' => 'width:20px; height:20px;',
'share_1T' => 'width:81px; height:20px;',
'share_2T' => 'width:61px; height:20px;',
'share_3T' => 'width:129px; height:20px;',
'share_4T' => 'width:20px; height:20px;',
);
// config
$tpl_vars['TUMBLR'] = $conf['SocialButtons']['tumblr'];
$tpl_vars['TUMBLR']['css'] = $tumblr_css[ $conf['SocialButtons']['tumblr']['type'] ];
$tpl_vars['TUMBLR']['copyright'] = ' (from <a href="'.$root_url.'">'.$conf['gallery_title'].'</a>)';
// button on piture page
if ($basename == 'picture')
{
global $picture;
$tpl_vars['TUMBLR']['mode'] = 'photo';
$tpl_vars['TUMBLR']['title'] = $picture['current']['TITLE'];
if ($conf['SocialButtons']['tumblr']['img_size'] == 'Original')
{
$tpl_vars['TUMBLR']['source'] = $root_url.ltrim($picture['current']['src_image']->get_url(), './');
}
else
{
$tpl_vars['TUMBLR']['source'] = $root_url.ltrim(DerivativeImage::url($conf['SocialButtons']['tumblr']['img_size'], $picture['current']['src_image']), './');
}
}
// button on other pages
else if ($basename == 'index')
{
global $page;
$tpl_vars['TUMBLR']['mode'] = 'link';
$tpl_vars['TUMBLR']['title'] = strip_tags($page['title']);
}
$template->set_filename('tumblr_button', realpath(SOCIALBUTT_PATH .'template/tumblr.tpl'));
return 'tumblr_button';
}
?>

36
include/twitter.inc.php Normal file
View File

@@ -0,0 +1,36 @@
<?php
defined('SOCIALBUTT_PATH') or die('Hacking attempt!');
function socialbutt_twitter($basename, $root_url, &$tpl_vars)
{
global $conf, $template, $user;
$twitter_langs = array(
'fr','en','ar','ja','es','de','it','id','pt','ko','tr','ru','nl','fil','msa','zh-tw',
'zh-cn','hi','no','sv','fi','da','pl','hu','fa','he','ur','th','uk','ca','el','eu','cs'
);
// config
$tpl_vars['TWITTER'] = $conf['SocialButtons']['twitter'];
// button language
if ( in_array(str_replace('_','-',strtolower($user['language'])), $twitter_langs) )
{
$tpl_vars['TWITTER']['lang'] = str_replace('_','-',strtolower($user['language']));
}
if ( in_array(substr($user['language'],0,2), $twitter_langs) )
{
$tpl_vars['TWITTER']['lang'] = substr($user['language'],0,2);
}
else
{
$tpl_vars['TWITTER']['lang'] = 'en';
}
$template->set_filename('twitter_button', realpath(SOCIALBUTT_PATH .'template/twitter.tpl'));
return 'twitter_button';
}
?>

7
index.php Normal file
View File

@@ -0,0 +1,7 @@
<?php
$url = '../';
header( 'Request-URI: '.$url );
header( 'Content-Location: '.$url );
header( 'Location: '.$url );
exit();
?>

7
language/af_ZA/index.php Normal file
View File

@@ -0,0 +1,7 @@
<?php
$url = '../';
header( 'Request-URI: '.$url );
header( 'Content-Location: '.$url );
header( 'Location: '.$url );
exit();
?>

View File

@@ -0,0 +1,30 @@
<?php
// +-----------------------------------------------------------------------+
// | Piwigo - a PHP based photo gallery |
// +-----------------------------------------------------------------------+
// | Copyright(C) 2008-2012 Piwigo Team http://piwigo.org |
// | Copyright(C) 2003-2008 PhpWebGallery Team http://phpwebgallery.net |
// | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick |
// +-----------------------------------------------------------------------+
// | This program is free software; you can redistribute it and/or modify |
// | it under the terms of the GNU General Public License as published by |
// | the Free Software Foundation |
// | |
// | This program is distributed in the hope that it will be useful, but |
// | WITHOUT ANY WARRANTY; without even the implied warranty of |
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
// | General Public License for more details. |
// | |
// | You should have received a copy of the GNU General Public License |
// | along with this program; if not, write to the Free Software |
// | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
// | USA. |
// +-----------------------------------------------------------------------+
$lang['Bottom'] = 'Onder';
$lang['Button position on picture page'] = 'Knop posisie op die beeld blad';
$lang['Button size'] = 'Knop grootte';
$lang['Toolbar'] = 'Keusebalk';
$lang['Top'] = 'Bo';
$lang['Shared picture size'] = 'Grootte van gedeelde foto';
$lang['Via'] = 'Via';
?>

7
language/bg_BG/index.php Normal file
View File

@@ -0,0 +1,7 @@
<?php
$url = '../';
header( 'Request-URI: '.$url );
header( 'Content-Location: '.$url );
header( 'Location: '.$url );
exit();
?>

View File

@@ -0,0 +1,30 @@
<?php
// +-----------------------------------------------------------------------+
// | Piwigo - a PHP based photo gallery |
// +-----------------------------------------------------------------------+
// | Copyright(C) 2008-2012 Piwigo Team http://piwigo.org |
// | Copyright(C) 2003-2008 PhpWebGallery Team http://phpwebgallery.net |
// | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick |
// +-----------------------------------------------------------------------+
// | This program is free software; you can redistribute it and/or modify |
// | it under the terms of the GNU General Public License as published by |
// | the Free Software Foundation |
// | |
// | This program is distributed in the hope that it will be useful, but |
// | WITHOUT ANY WARRANTY; without even the implied warranty of |
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
// | General Public License for more details. |
// | |
// | You should have received a copy of the GNU General Public License |
// | along with this program; if not, write to the Free Software |
// | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
// | USA. |
// +-----------------------------------------------------------------------+
$lang['Annotation'] = 'Коментар';
$lang['Bottom'] = 'Долу';
$lang['Bubble'] = 'Балон';
$lang['Button position on picture page'] = 'Позиция на бутона върху странцата със снимка';
$lang['Inline text'] = 'Вмъкнат текст';
$lang['Toolbar'] = 'Лента с инструменти';
$lang['Top'] = 'Горе';
?>

7
language/ca_ES/index.php Normal file
View File

@@ -0,0 +1,7 @@
<?php
$url = '../';
header( 'Request-URI: '.$url );
header( 'Content-Location: '.$url );
header( 'Location: '.$url );
exit();
?>

View File

@@ -0,0 +1,32 @@
<?php
// +-----------------------------------------------------------------------+
// | Piwigo - a PHP based photo gallery |
// +-----------------------------------------------------------------------+
// | Copyright(C) 2008-2012 Piwigo Team http://piwigo.org |
// | Copyright(C) 2003-2008 PhpWebGallery Team http://phpwebgallery.net |
// | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick |
// +-----------------------------------------------------------------------+
// | This program is free software; you can redistribute it and/or modify |
// | it under the terms of the GNU General Public License as published by |
// | the Free Software Foundation |
// | |
// | This program is distributed in the hope that it will be useful, but |
// | WITHOUT ANY WARRANTY; without even the implied warranty of |
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
// | General Public License for more details. |
// | |
// | You should have received a copy of the GNU General Public License |
// | along with this program; if not, write to the Free Software |
// | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
// | USA. |
// +-----------------------------------------------------------------------+
$lang['Bottom'] = 'Fons';
$lang['Button position on picture page'] = 'Posició del botó a la pàgina de la imatge';
$lang['Toolbar'] = 'Barra d\'eines';
$lang['Top'] = 'Superior';
$lang['Annotation'] = 'Anotació';
$lang['Bubble'] = 'Bombolla';
$lang['Inline text'] = 'Text en línia';
$lang['Shared picture size'] = 'Mida de les imatges compartides';
$lang['Via'] = 'Via';
?>

7
language/cs_CZ/index.php Normal file
View File

@@ -0,0 +1,7 @@
<?php
$url = '../';
header( 'Request-URI: '.$url );
header( 'Content-Location: '.$url );
header( 'Location: '.$url );
exit();
?>

View File

@@ -0,0 +1,11 @@
<?php
$lang['Button position on picture page'] = 'Pozice tlačítka na stránce s fotografií';
$lang['Top'] = 'Nahoře';
$lang['Bottom'] = 'Dole';
$lang['Toolbar'] = 'Panel nástrojů';
$lang['Shared picture size'] = 'Velikost sdíleného obrázku';
$lang['Annotation'] = 'Anotace';
$lang['Bubble'] = 'Bublina';
$lang['Inline text'] = 'Text v řádce';
$lang['Via'] = 'Prostřednictvím';
?>

7
language/da_DK/index.php Normal file
View File

@@ -0,0 +1,7 @@
<?php
$url = '../';
header( 'Request-URI: '.$url );
header( 'Content-Location: '.$url );
header( 'Location: '.$url );
exit();
?>

View File

@@ -0,0 +1,32 @@
<?php
// +-----------------------------------------------------------------------+
// | Piwigo - a PHP based photo gallery |
// +-----------------------------------------------------------------------+
// | Copyright(C) 2008-2012 Piwigo Team http://piwigo.org |
// | Copyright(C) 2003-2008 PhpWebGallery Team http://phpwebgallery.net |
// | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick |
// +-----------------------------------------------------------------------+
// | This program is free software; you can redistribute it and/or modify |
// | it under the terms of the GNU General Public License as published by |
// | the Free Software Foundation |
// | |
// | This program is distributed in the hope that it will be useful, but |
// | WITHOUT ANY WARRANTY; without even the implied warranty of |
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
// | General Public License for more details. |
// | |
// | You should have received a copy of the GNU General Public License |
// | along with this program; if not, write to the Free Software |
// | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
// | USA. |
// +-----------------------------------------------------------------------+
$lang['Annotation'] = 'Bemærkning';
$lang['Bottom'] = 'Bund';
$lang['Bubble'] = 'Boble';
$lang['Button position on picture page'] = 'Placering af knap på billedside';
$lang['Inline text'] = 'Inlinetekst';
$lang['Toolbar'] = 'Værktøjslinje';
$lang['Top'] = 'Top';
$lang['Shared picture size'] = 'Størrelse på delt billede';
$lang['Via'] = 'Via';
?>

7
language/de_DE/index.php Normal file
View File

@@ -0,0 +1,7 @@
<?php
$url = '../';
header( 'Request-URI: '.$url );
header( 'Content-Location: '.$url );
header( 'Location: '.$url );
exit();
?>

View File

@@ -0,0 +1,32 @@
<?php
// +-----------------------------------------------------------------------+
// | Piwigo - a PHP based photo gallery |
// +-----------------------------------------------------------------------+
// | Copyright(C) 2008-2012 Piwigo Team http://piwigo.org |
// | Copyright(C) 2003-2008 PhpWebGallery Team http://phpwebgallery.net |
// | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick |
// +-----------------------------------------------------------------------+
// | This program is free software; you can redistribute it and/or modify |
// | it under the terms of the GNU General Public License as published by |
// | the Free Software Foundation |
// | |
// | This program is distributed in the hope that it will be useful, but |
// | WITHOUT ANY WARRANTY; without even the implied warranty of |
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
// | General Public License for more details. |
// | |
// | You should have received a copy of the GNU General Public License |
// | along with this program; if not, write to the Free Software |
// | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
// | USA. |
// +-----------------------------------------------------------------------+
$lang['Bottom'] = 'Unten';
$lang['Button position on picture page'] = 'Position des Buttons auf der Einzelansicht';
$lang['Toolbar'] = 'Werzeugleiste';
$lang['Top'] = 'Oben';
$lang['Annotation'] = 'Anmerkung';
$lang['Bubble'] = 'Blase';
$lang['Inline text'] = 'eingebetteter Text';
$lang['Shared picture size'] = 'gezeigte Bilder Größe';
$lang['Via'] = 'via';
?>

7
language/el_GR/index.php Normal file
View File

@@ -0,0 +1,7 @@
<?php
$url = '../';
header( 'Request-URI: '.$url );
header( 'Content-Location: '.$url );
header( 'Location: '.$url );
exit();
?>

View File

@@ -0,0 +1,30 @@
<?php
// +-----------------------------------------------------------------------+
// | Piwigo - a PHP based photo gallery |
// +-----------------------------------------------------------------------+
// | Copyright(C) 2008-2012 Piwigo Team http://piwigo.org |
// | Copyright(C) 2003-2008 PhpWebGallery Team http://phpwebgallery.net |
// | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick |
// +-----------------------------------------------------------------------+
// | This program is free software; you can redistribute it and/or modify |
// | it under the terms of the GNU General Public License as published by |
// | the Free Software Foundation |
// | |
// | This program is distributed in the hope that it will be useful, but |
// | WITHOUT ANY WARRANTY; without even the implied warranty of |
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
// | General Public License for more details. |
// | |
// | You should have received a copy of the GNU General Public License |
// | along with this program; if not, write to the Free Software |
// | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
// | USA. |
// +-----------------------------------------------------------------------+
$lang['Bottom'] = 'Κάτω Μέρος';
$lang['Button position on picture page'] = 'θέση Κουμπιού στη σελίδα εικόνων';
$lang['Toolbar'] = 'Μπάρα Εργαλείων';
$lang['Top'] = 'Κορυφή';
$lang['Annotation'] = 'Σχόλιο';
$lang['Bubble'] = 'Bubble';
$lang['Inline text'] = 'Inline κείμενο';
?>

View File

@@ -0,0 +1 @@
Sharing functions for Facebook, Twitter, Google+ and Tumblr

7
language/en_UK/index.php Normal file
View File

@@ -0,0 +1,7 @@
<?php
$url = '../';
header( 'Request-URI: '.$url );
header( 'Content-Location: '.$url );
header( 'Location: '.$url );
exit();
?>

View File

@@ -0,0 +1,12 @@
<?php
$lang['Button position on picture page'] = 'Buttons position on picture page';
$lang['Top'] = 'Top';
$lang['Bottom'] = 'Bottom';
$lang['Toolbar'] = 'Toolbar';
$lang['Annotation'] = 'Annotation';
$lang['Bubble'] = 'Bubble';
$lang['Inline text'] = 'Inline text';
$lang['Button type'] = 'Button type';
$lang['Right bubble'] = 'Right bubble';
$lang['Top bubble'] = 'Top bubble';
?>

7
language/es_ES/index.php Normal file
View File

@@ -0,0 +1,7 @@
<?php
$url = '../';
header( 'Request-URI: '.$url );
header( 'Content-Location: '.$url );
header( 'Location: '.$url );
exit();
?>

View File

@@ -0,0 +1,11 @@
<?php
$lang['Button position on picture page'] = 'Posición del botón en la página imagen';
$lang['Top'] = 'Arriba';
$lang['Bottom'] = 'Abajo';
$lang['Toolbar'] = 'Barra de herramientas';
$lang['Shared picture size'] = 'Tamaño de las fotos compartidas';
$lang['Annotation'] = 'Anotación';
$lang['Bubble'] = 'Burbuja';
$lang['Inline text'] = 'Texto en linea.';
$lang['Via'] = 'Via';
?>

7
language/et_EE/index.php Normal file
View File

@@ -0,0 +1,7 @@
<?php
$url = '../';
header( 'Request-URI: '.$url );
header( 'Content-Location: '.$url );
header( 'Location: '.$url );
exit();
?>

View File

@@ -0,0 +1,32 @@
<?php
// +-----------------------------------------------------------------------+
// | Piwigo - a PHP based photo gallery |
// +-----------------------------------------------------------------------+
// | Copyright(C) 2008-2012 Piwigo Team http://piwigo.org |
// | Copyright(C) 2003-2008 PhpWebGallery Team http://phpwebgallery.net |
// | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick |
// +-----------------------------------------------------------------------+
// | This program is free software; you can redistribute it and/or modify |
// | it under the terms of the GNU General Public License as published by |
// | the Free Software Foundation |
// | |
// | This program is distributed in the hope that it will be useful, but |
// | WITHOUT ANY WARRANTY; without even the implied warranty of |
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
// | General Public License for more details. |
// | |
// | You should have received a copy of the GNU General Public License |
// | along with this program; if not, write to the Free Software |
// | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
// | USA. |
// +-----------------------------------------------------------------------+
$lang['Annotation'] = 'Annoteeri';
$lang['Bottom'] = 'Alumine osa';
$lang['Bubble'] = 'Mull';
$lang['Button position on picture page'] = 'Nupu paigutus foto näitamisel';
$lang['Inline text'] = 'Jooksva teksti sees';
$lang['Toolbar'] = 'Tööriistariba';
$lang['Top'] = 'Ülemine osa';
$lang['Shared picture size'] = 'Jagatava pildi suurus';
$lang['Via'] = 'Kaudu';
?>

7
language/fa_IR/index.php Normal file
View File

@@ -0,0 +1,7 @@
<?php
$url = '../';
header( 'Request-URI: '.$url );
header( 'Content-Location: '.$url );
header( 'Location: '.$url );
exit();
?>

View File

@@ -0,0 +1,30 @@
<?php
// +-----------------------------------------------------------------------+
// | Piwigo - a PHP based photo gallery |
// +-----------------------------------------------------------------------+
// | Copyright(C) 2008-2012 Piwigo Team http://piwigo.org |
// | Copyright(C) 2003-2008 PhpWebGallery Team http://phpwebgallery.net |
// | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick |
// +-----------------------------------------------------------------------+
// | This program is free software; you can redistribute it and/or modify |
// | it under the terms of the GNU General Public License as published by |
// | the Free Software Foundation |
// | |
// | This program is distributed in the hope that it will be useful, but |
// | WITHOUT ANY WARRANTY; without even the implied warranty of |
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
// | General Public License for more details. |
// | |
// | You should have received a copy of the GNU General Public License |
// | along with this program; if not, write to the Free Software |
// | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
// | USA. |
// +-----------------------------------------------------------------------+
$lang['Annotation'] = 'یادداشت';
$lang['Bottom'] = 'زیر';
$lang['Bubble'] = 'حباب';
$lang['Button position on picture page'] = 'موقعیت دکمه در صفحه ی عکس ها';
$lang['Inline text'] = 'متن کنار دکمه';
$lang['Toolbar'] = 'تولبار';
$lang['Top'] = 'بالا';
?>

7
language/fi_FI/index.php Normal file
View File

@@ -0,0 +1,7 @@
<?php
$url = '../';
header( 'Request-URI: '.$url );
header( 'Content-Location: '.$url );
header( 'Location: '.$url );
exit();
?>

View File

@@ -0,0 +1,32 @@
<?php
// +-----------------------------------------------------------------------+
// | Piwigo - a PHP based photo gallery |
// +-----------------------------------------------------------------------+
// | Copyright(C) 2008-2012 Piwigo Team http://piwigo.org |
// | Copyright(C) 2003-2008 PhpWebGallery Team http://phpwebgallery.net |
// | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick |
// +-----------------------------------------------------------------------+
// | This program is free software; you can redistribute it and/or modify |
// | it under the terms of the GNU General Public License as published by |
// | the Free Software Foundation |
// | |
// | This program is distributed in the hope that it will be useful, but |
// | WITHOUT ANY WARRANTY; without even the implied warranty of |
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
// | General Public License for more details. |
// | |
// | You should have received a copy of the GNU General Public License |
// | along with this program; if not, write to the Free Software |
// | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
// | USA. |
// +-----------------------------------------------------------------------+
$lang['Annotation'] = 'Ilmoitus';
$lang['Bottom'] = 'Alaosa';
$lang['Bubble'] = 'Kupla';
$lang['Button position on picture page'] = 'Painikkeen sijainti kuvasivulla';
$lang['Toolbar'] = 'Työkalupalkki';
$lang['Top'] = 'Yläosa';
$lang['Inline text'] = 'Upotettu teksti';
$lang['Shared picture size'] = 'Jaetun kuvan koko';
$lang['Via'] = 'Käyttäjältä';
?>

View File

@@ -0,0 +1 @@
Functions de partage pour Facebook, Twitter, Google+ et Tumblr

7
language/fr_FR/index.php Normal file
View File

@@ -0,0 +1,7 @@
<?php
$url = '../';
header( 'Request-URI: '.$url );
header( 'Content-Location: '.$url );
header( 'Location: '.$url );
exit();
?>

View File

@@ -0,0 +1,14 @@
<?php
$lang['Button position on picture page'] = 'Position des boutons sur la page de la photo';
$lang['Top'] = 'Haut';
$lang['Bottom'] = 'Bas';
$lang['Toolbar'] = 'Barre d\'outils';
$lang['Annotation'] = 'Annotation';
$lang['Bubble'] = 'Bulle';
$lang['Inline text'] = 'Texte simple';
$lang['Button type'] = 'Type de bouton';
$lang['Shared picture size'] = 'Taille des photos partagées';
$lang['Via'] = 'Via';
$lang['Right bubble'] = 'Bulle à droite';
$lang['Top bubble'] = 'Bulle en haut';
?>

7
language/hu_HU/index.php Normal file
View File

@@ -0,0 +1,7 @@
<?php
$url = '../';
header( 'Request-URI: '.$url );
header( 'Content-Location: '.$url );
header( 'Location: '.$url );
exit();
?>

View File

@@ -0,0 +1,11 @@
<?php
$lang['Button position on picture page'] = 'Gomb pozíciója a kép oldalon';
$lang['Top'] = 'Fent';
$lang['Bottom'] = 'Lent';
$lang['Toolbar'] = 'Eszköztár';
$lang['Shared picture size'] = 'Megosztott kép mérete';
$lang['Annotation'] = 'Jegyzet';
$lang['Bubble'] = 'Buborék';
$lang['Inline text'] = 'Egysoros szöveg';
$lang['Via'] = 'Keresztül';
?>

7
language/index.php Normal file
View File

@@ -0,0 +1,7 @@
<?php
$url = '../';
header( 'Request-URI: '.$url );
header( 'Content-Location: '.$url );
header( 'Location: '.$url );
exit();
?>

7
language/it_IT/index.php Normal file
View File

@@ -0,0 +1,7 @@
<?php
$url = '../';
header( 'Request-URI: '.$url );
header( 'Content-Location: '.$url );
header( 'Location: '.$url );
exit();
?>

View File

@@ -0,0 +1,11 @@
<?php
$lang['Button position on picture page'] = 'Posizione del pulsante sulla pagina della foto';
$lang['Top'] = 'Alto';
$lang['Bottom'] = 'Basso';
$lang['Toolbar'] = 'Barra degli strumenti';
$lang['Shared picture size'] = 'Dimensione foto condivise';
$lang['Annotation'] = 'Annotazione';
$lang['Bubble'] = 'Bolla';
$lang['Inline text'] = 'Testo';
$lang['Via'] = 'Via';
?>

7
language/lv_LV/index.php Normal file
View File

@@ -0,0 +1,7 @@
<?php
$url = '../';
header( 'Request-URI: '.$url );
header( 'Content-Location: '.$url );
header( 'Location: '.$url );
exit();
?>

View File

@@ -0,0 +1,11 @@
<?php
$lang['Button position on picture page'] = 'Pogas pozīcija attēla lapā';
$lang['Top'] = 'Augšā';
$lang['Bottom'] = 'Apakšā';
$lang['Toolbar'] = 'Rīkjoslā';
$lang['Shared picture size'] = 'Kopīgotā attēla izmēri';
$lang['Annotation'] = 'Anotācija';
$lang['Bubble'] = 'Burbulis';
$lang['Inline text'] = 'Inlain teksts';
$lang['Via'] = 'Izmantojot';
?>

View File

@@ -0,0 +1,30 @@
<?php
// +-----------------------------------------------------------------------+
// | Piwigo - a PHP based photo gallery |
// +-----------------------------------------------------------------------+
// | Copyright(C) 2008-2012 Piwigo Team http://piwigo.org |
// | Copyright(C) 2003-2008 PhpWebGallery Team http://phpwebgallery.net |
// | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick |
// +-----------------------------------------------------------------------+
// | This program is free software; you can redistribute it and/or modify |
// | it under the terms of the GNU General Public License as published by |
// | the Free Software Foundation |
// | |
// | This program is distributed in the hope that it will be useful, but |
// | WITHOUT ANY WARRANTY; without even the implied warranty of |
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
// | General Public License for more details. |
// | |
// | You should have received a copy of the GNU General Public License |
// | along with this program; if not, write to the Free Software |
// | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
// | USA. |
// +-----------------------------------------------------------------------+
$lang['Annotation'] = 'Stempler';
$lang['Bottom'] = 'Bunn';
$lang['Bubble'] = 'Boble';
$lang['Button position on picture page'] = 'Plassering på bildeside';
$lang['Inline text'] = 'Inni teksten';
$lang['Toolbar'] = 'Verktøylinje';
$lang['Top'] = 'Topp';
?>

7
language/nl_NL/index.php Normal file
View File

@@ -0,0 +1,7 @@
<?php
$url = '../';
header( 'Request-URI: '.$url );
header( 'Content-Location: '.$url );
header( 'Location: '.$url );
exit();
?>

View File

@@ -0,0 +1,11 @@
<?php
$lang['Button position on picture page'] = 'Knoppositie op de afbeeldingspagina';
$lang['Top'] = 'Boven';
$lang['Bottom'] = 'Beneden';
$lang['Toolbar'] = 'Werkbalk';
$lang['Annotation'] = 'Annotatie';
$lang['Bubble'] = 'Bel';
$lang['Inline text'] = 'Inline tekst';
$lang['Shared picture size'] = 'Gedeelde beeldgrootte';
$lang['Via'] = 'Via';
?>

7
language/pl_PL/index.php Normal file
View File

@@ -0,0 +1,7 @@
<?php
$url = '../';
header( 'Request-URI: '.$url );
header( 'Content-Location: '.$url );
header( 'Location: '.$url );
exit();
?>

View File

@@ -0,0 +1,32 @@
<?php
// +-----------------------------------------------------------------------+
// | Piwigo - a PHP based photo gallery |
// +-----------------------------------------------------------------------+
// | Copyright(C) 2008-2009 Piwigo Team http://piwigo.org |
// | Copyright(C) 2003-2008 PhpWebGallery Team http://phpwebgallery.net |
// | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick |
// +-----------------------------------------------------------------------+
// | This program is free software; you can redistribute it and/or modify |
// | it under the terms of the GNU General Public License as published by |
// | the Free Software Foundation |
// | |
// | This program is distributed in the hope that it will be useful, but |
// | WITHOUT ANY WARRANTY; without even the implied warranty of |
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
// | General Public License for more details. |
// | |
// | You should have received a copy of the GNU General Public License |
// | along with this program; if not, write to the Free Software |
// | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
// | USA. |
// +-----------------------------------------------------------------------+
$lang['Bottom'] = 'Dół';
$lang['Button position on picture page'] = 'Miejsce umieszczenia przycisku';
$lang['Toolbar'] = 'Pasek narzędzi';
$lang['Top'] = 'Góra';
$lang['Annotation'] = 'Adnotacja';
$lang['Bubble'] = 'Balonik';
$lang['Inline text'] = 'Tekst';
$lang['Shared picture size'] = 'Rozmiar udostępnianego zdjęcia';
$lang['Via'] = 'via';
?>

7
language/pt_BR/index.php Normal file
View File

@@ -0,0 +1,7 @@
<?php
$url = '../';
header( 'Request-URI: '.$url );
header( 'Content-Location: '.$url );
header( 'Location: '.$url );
exit();
?>

View File

@@ -0,0 +1,32 @@
<?php
// +-----------------------------------------------------------------------+
// | Piwigo - a PHP based photo gallery |
// +-----------------------------------------------------------------------+
// | Copyright(C) 2008-2012 Piwigo Team http://piwigo.org |
// | Copyright(C) 2003-2008 PhpWebGallery Team http://phpwebgallery.net |
// | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick |
// +-----------------------------------------------------------------------+
// | This program is free software; you can redistribute it and/or modify |
// | it under the terms of the GNU General Public License as published by |
// | the Free Software Foundation |
// | |
// | This program is distributed in the hope that it will be useful, but |
// | WITHOUT ANY WARRANTY; without even the implied warranty of |
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
// | General Public License for more details. |
// | |
// | You should have received a copy of the GNU General Public License |
// | along with this program; if not, write to the Free Software |
// | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
// | USA. |
// +-----------------------------------------------------------------------+
$lang['Bottom'] = 'Botão';
$lang['Bubble'] = 'Bolha';
$lang['Button position on picture page'] = 'Posição do botão na página da foto';
$lang['Inline text'] = 'Texto em linha';
$lang['Toolbar'] = 'Barra de Ferramenta';
$lang['Top'] = 'Topo';
$lang['Annotation'] = 'Anotação';
$lang['Shared picture size'] = 'Tamanho da foto compartilhada';
$lang['Via'] = 'Via';
?>

7
language/pt_PT/index.php Normal file
View File

@@ -0,0 +1,7 @@
<?php
$url = '../';
header( 'Request-URI: '.$url );
header( 'Content-Location: '.$url );
header( 'Location: '.$url );
exit();
?>

View File

@@ -0,0 +1,32 @@
<?php
// +-----------------------------------------------------------------------+
// | Piwigo - a PHP based photo gallery |
// +-----------------------------------------------------------------------+
// | Copyright(C) 2008-2012 Piwigo Team http://piwigo.org |
// | Copyright(C) 2003-2008 PhpWebGallery Team http://phpwebgallery.net |
// | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick |
// +-----------------------------------------------------------------------+
// | This program is free software; you can redistribute it and/or modify |
// | it under the terms of the GNU General Public License as published by |
// | the Free Software Foundation |
// | |
// | This program is distributed in the hope that it will be useful, but |
// | WITHOUT ANY WARRANTY; without even the implied warranty of |
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
// | General Public License for more details. |
// | |
// | You should have received a copy of the GNU General Public License |
// | along with this program; if not, write to the Free Software |
// | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
// | USA. |
// +-----------------------------------------------------------------------+
$lang['Bottom'] = 'Abaixo';
$lang['Button position on picture page'] = 'Posição do botão na página de Imagem';
$lang['Toolbar'] = 'Barra de Ferramentas';
$lang['Top'] = 'Acima';
$lang['Annotation'] = 'Anotação';
$lang['Bubble'] = 'Bolha';
$lang['Inline text'] = 'Texto embutido';
$lang['Shared picture size'] = 'Tamanho da foto partilhado';
$lang['Via'] = 'Via';
?>

7
language/ro_RO/index.php Normal file
View File

@@ -0,0 +1,7 @@
<?php
$url = '../';
header( 'Request-URI: '.$url );
header( 'Content-Location: '.$url );
header( 'Location: '.$url );
exit();
?>

View File

@@ -0,0 +1,32 @@
<?php
// +-----------------------------------------------------------------------+
// | Piwigo - a PHP based photo gallery |
// +-----------------------------------------------------------------------+
// | Copyright(C) 2008-2012 Piwigo Team http://piwigo.org |
// | Copyright(C) 2003-2008 PhpWebGallery Team http://phpwebgallery.net |
// | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick |
// +-----------------------------------------------------------------------+
// | This program is free software; you can redistribute it and/or modify |
// | it under the terms of the GNU General Public License as published by |
// | the Free Software Foundation |
// | |
// | This program is distributed in the hope that it will be useful, but |
// | WITHOUT ANY WARRANTY; without even the implied warranty of |
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
// | General Public License for more details. |
// | |
// | You should have received a copy of the GNU General Public License |
// | along with this program; if not, write to the Free Software |
// | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
// | USA. |
// +-----------------------------------------------------------------------+
$lang['Bottom'] = 'Jos';
$lang['Button position on picture page'] = 'Poziția butonului în pagina imaginii';
$lang['Toolbar'] = 'Toolbar';
$lang['Top'] = 'Sus';
$lang['Annotation'] = 'Adnotare';
$lang['Bubble'] = 'Balon';
$lang['Inline text'] = 'Text în linie';
$lang['Shared picture size'] = 'Dimensiunea imaginii distribuite';
$lang['Via'] = 'Via';
?>

7
language/ru_RU/index.php Normal file
View File

@@ -0,0 +1,7 @@
<?php
$url = '../';
header( 'Request-URI: '.$url );
header( 'Content-Location: '.$url );
header( 'Location: '.$url );
exit();
?>

View File

@@ -0,0 +1,11 @@
<?php
$lang['Button position on picture page'] = 'Положение кнопки на странице с фотографией';
$lang['Top'] = 'Сверху';
$lang['Bottom'] = 'Внизу';
$lang['Toolbar'] = 'На панели инструментов';
$lang['Annotation'] = 'Примечание';
$lang['Bubble'] = 'Пузырь';
$lang['Inline text'] = 'Вписанный текст';
?>

7
language/sh_RS/index.php Normal file
View File

@@ -0,0 +1,7 @@
<?php
$url = '../';
header( 'Request-URI: '.$url );
header( 'Content-Location: '.$url );
header( 'Location: '.$url );
exit();
?>

View File

@@ -0,0 +1,28 @@
<?php
// +-----------------------------------------------------------------------+
// | Piwigo - a PHP based photo gallery |
// +-----------------------------------------------------------------------+
// | Copyright(C) 2008-2012 Piwigo Team http://piwigo.org |
// | Copyright(C) 2003-2008 PhpWebGallery Team http://phpwebgallery.net |
// | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick |
// +-----------------------------------------------------------------------+
// | This program is free software; you can redistribute it and/or modify |
// | it under the terms of the GNU General Public License as published by |
// | the Free Software Foundation |
// | |
// | This program is distributed in the hope that it will be useful, but |
// | WITHOUT ANY WARRANTY; without even the implied warranty of |
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
// | General Public License for more details. |
// | |
// | You should have received a copy of the GNU General Public License |
// | along with this program; if not, write to the Free Software |
// | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
// | USA. |
// +-----------------------------------------------------------------------+
$lang['Bottom'] = 'Dno';
$lang['Button position on picture page'] = 'Donja pozicija na strani sa slikama';
$lang['Toolbar'] = 'Traka sa alatima';
$lang['Top'] = 'Vrh';
$lang['Shared picture size'] = 'Zdielaná velkost fotky';
?>

7
language/sk_SK/index.php Normal file
View File

@@ -0,0 +1,7 @@
<?php
$url = '../';
header( 'Request-URI: '.$url );
header( 'Content-Location: '.$url );
header( 'Location: '.$url );
exit();
?>

View File

@@ -0,0 +1,10 @@
<?php
$lang['Button position on picture page'] = 'Pozícia tlačítka na stránke s fotografiou';
$lang['Top'] = 'Hore';
$lang['Bottom'] = 'Dole';
$lang['Toolbar'] = 'Panel nástrojov';
$lang['Annotation'] = 'Vysvetlivka';
$lang['Bubble'] = 'Bublina';
$lang['Inline text'] = 'Text v riadku';
$lang['Via'] = 'Cez';
?>

7
language/sv_SE/index.php Normal file
View File

@@ -0,0 +1,7 @@
<?php
$url = '../';
header( 'Request-URI: '.$url );
header( 'Content-Location: '.$url );
header( 'Location: '.$url );
exit();
?>

View File

@@ -0,0 +1,31 @@
<?php
// +-----------------------------------------------------------------------+
// | Piwigo - a PHP based photo gallery |
// +-----------------------------------------------------------------------+
// | Copyright(C) 2008-2012 Piwigo Team http://piwigo.org |
// | Copyright(C) 2003-2008 PhpWebGallery Team http://phpwebgallery.net |
// | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick |
// +-----------------------------------------------------------------------+
// | This program is free software; you can redistribute it and/or modify |
// | it under the terms of the GNU General Public License as published by |
// | the Free Software Foundation |
// | |
// | This program is distributed in the hope that it will be useful, but |
// | WITHOUT ANY WARRANTY; without even the implied warranty of |
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
// | General Public License for more details. |
// | |
// | You should have received a copy of the GNU General Public License |
// | along with this program; if not, write to the Free Software |
// | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
// | USA. |
// +-----------------------------------------------------------------------+
$lang['Bottom'] = 'Nedre';
$lang['Button position on picture page'] = 'Knapp position på bildsidan';
$lang['Toolbar'] = 'Verktygsfält';
$lang['Top'] = 'Topp';
$lang['Annotation'] = 'Not';
$lang['Bubble'] = 'Bubbla';
$lang['Inline text'] = 'Inline text';
$lang['Via'] = 'Via';
?>

7
language/th_TH/index.php Normal file
View File

@@ -0,0 +1,7 @@
<?php
$url = '../';
header( 'Request-URI: '.$url );
header( 'Content-Location: '.$url );
header( 'Location: '.$url );
exit();
?>

View File

@@ -0,0 +1,30 @@
<?php
// +-----------------------------------------------------------------------+
// | Piwigo - a PHP based photo gallery |
// +-----------------------------------------------------------------------+
// | Copyright(C) 2008-2012 Piwigo Team http://piwigo.org |
// | Copyright(C) 2003-2008 PhpWebGallery Team http://phpwebgallery.net |
// | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick |
// +-----------------------------------------------------------------------+
// | This program is free software; you can redistribute it and/or modify |
// | it under the terms of the GNU General Public License as published by |
// | the Free Software Foundation |
// | |
// | This program is distributed in the hope that it will be useful, but |
// | WITHOUT ANY WARRANTY; without even the implied warranty of |
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
// | General Public License for more details. |
// | |
// | You should have received a copy of the GNU General Public License |
// | along with this program; if not, write to the Free Software |
// | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
// | USA. |
// +-----------------------------------------------------------------------+
$lang['Annotation'] = 'คำอธิบายประกอบ';
$lang['Bottom'] = 'ด้านล่างสุด';
$lang['Bubble'] = 'ฟอง';
$lang['Button position on picture page'] = 'ตำแหน่งปุ่มบนหน้ารูปภาพ';
$lang['Inline text'] = 'ในบรรทัดข้อความ';
$lang['Toolbar'] = 'แถบเครื่องมือ';
$lang['Top'] = 'ด้านบนสุด';
?>

7
language/tr_TR/index.php Normal file
View File

@@ -0,0 +1,7 @@
<?php
$url = '../';
header( 'Request-URI: '.$url );
header( 'Content-Location: '.$url );
header( 'Location: '.$url );
exit();
?>

View File

@@ -0,0 +1,11 @@
<?php
$lang['Button position on picture page'] = 'Resim sayfasindaki buton konumu';
$lang['Top'] = 'Üst';
$lang['Bottom'] = 'Alt';
$lang['Toolbar'] = 'Menü çubuğu';
$lang['Shared picture size'] = 'Paylaşılan resim büyüklüğü';
$lang['Annotation'] = 'Dipnot';
$lang['Bubble'] = 'Baloncuk';
$lang['Inline text'] = 'satır içi yazı';
$lang['Via'] = 'Üzerinden';
?>

7
language/uk_UA/index.php Normal file
View File

@@ -0,0 +1,7 @@
<?php
$url = '../';
header( 'Request-URI: '.$url );
header( 'Content-Location: '.$url );
header( 'Location: '.$url );
exit();
?>

View File

@@ -0,0 +1,30 @@
<?php
// +-----------------------------------------------------------------------+
// | Piwigo - a PHP based photo gallery |
// +-----------------------------------------------------------------------+
// | Copyright(C) 2008-2012 Piwigo Team http://piwigo.org |
// | Copyright(C) 2003-2008 PhpWebGallery Team http://phpwebgallery.net |
// | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick |
// +-----------------------------------------------------------------------+
// | This program is free software; you can redistribute it and/or modify |
// | it under the terms of the GNU General Public License as published by |
// | the Free Software Foundation |
// | |
// | This program is distributed in the hope that it will be useful, but |
// | WITHOUT ANY WARRANTY; without even the implied warranty of |
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
// | General Public License for more details. |
// | |
// | You should have received a copy of the GNU General Public License |
// | along with this program; if not, write to the Free Software |
// | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
// | USA. |
// +-----------------------------------------------------------------------+
$lang['Bottom'] = 'Внизу';
$lang['Button position on picture page'] = 'Позиція кнопки на сторінці зображення';
$lang['Toolbar'] = 'Панель інструментів';
$lang['Top'] = 'Вгорі';
$lang['Annotation'] = 'Анотація';
$lang['Bubble'] = 'Пузир';
$lang['Inline text'] = 'Вбудований текст';
?>

7
language/vi_VN/index.php Normal file
View File

@@ -0,0 +1,7 @@
<?php
$url = '../';
header( 'Request-URI: '.$url );
header( 'Content-Location: '.$url );
header( 'Location: '.$url );
exit();
?>

View File

@@ -0,0 +1,10 @@
<?php
$lang['Button position on picture page'] = 'Vị trí nút trên trang ảnh';
$lang['Top'] = 'Trên cùng';
$lang['Bottom'] = 'Dưới cùng';
$lang['Toolbar'] = 'Thanh công cụ';
$lang['Annotation'] = 'Lời giải thích';
$lang['Bubble'] = 'Quả cầu';
$lang['Inline text'] = 'Chữ chèn bên trong';
$lang['Via'] = 'Thông qua';
?>

7
language/zh_CN/index.php Normal file
View File

@@ -0,0 +1,7 @@
<?php
$url = '../';
header( 'Request-URI: '.$url );
header( 'Content-Location: '.$url );
header( 'Location: '.$url );
exit();
?>

View File

@@ -0,0 +1,32 @@
<?php
// +-----------------------------------------------------------------------+
// | Piwigo - a PHP based photo gallery |
// +-----------------------------------------------------------------------+
// | Copyright(C) 2008-2012 Piwigo Team http://piwigo.org |
// | Copyright(C) 2003-2008 PhpWebGallery Team http://phpwebgallery.net |
// | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick |
// +-----------------------------------------------------------------------+
// | This program is free software; you can redistribute it and/or modify |
// | it under the terms of the GNU General Public License as published by |
// | the Free Software Foundation |
// | |
// | This program is distributed in the hope that it will be useful, but |
// | WITHOUT ANY WARRANTY; without even the implied warranty of |
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
// | General Public License for more details. |
// | |
// | You should have received a copy of the GNU General Public License |
// | along with this program; if not, write to the Free Software |
// | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
// | USA. |
// +-----------------------------------------------------------------------+
$lang['Bottom'] = '底部';
$lang['Button position on picture page'] = '按钮在图片页的位置';
$lang['Toolbar'] = '工具栏';
$lang['Top'] = '顶部';
$lang['Annotation'] = '注解';
$lang['Bubble'] = '提示泡';
$lang['Inline text'] = '内嵌文本';
$lang['Shared picture size'] = '分享了相片尺寸';
$lang['Via'] = '经由';
?>

198
main.inc.php Normal file
View File

@@ -0,0 +1,198 @@
<?php
/*
Plugin Name: Social Buttons
Version: auto
Description: Sharing functions for Facebook, Twitter, Google+ and Tumblr
Plugin URI: auto
Author: Mistic
Author URI: http://www.strangeplanet.fr
*/
defined('PHPWG_ROOT_PATH') or die('Hacking attempt!');
global $prefixeTable;
// +-----------------------------------------------------------------------+
// | Define plugin constants |
// +-----------------------------------------------------------------------+
defined('SOCIALBUTT_ID') or define('SOCIALBUTT_ID', basename(dirname(__FILE__)));
define('SOCIALBUTT_PATH' , PHPWG_PLUGINS_PATH . SOCIALBUTT_ID . '/');
define('SOCIALBUTT_ADMIN', get_root_url() . 'admin.php?page=plugin-' . SOCIALBUTT_ID);
define('SOCIALBUTT_VERSION', 'auto');
// +-----------------------------------------------------------------------+
// | Add event handlers |
// +-----------------------------------------------------------------------+
// init the plugin
add_event_handler('init', 'socialbutt_init');
if (defined('IN_ADMIN'))
{
add_event_handler('get_admin_plugin_menu_links', 'socialbutt_admin_plugin_menu_links');
function socialbutt_admin_plugin_menu_links($menu)
{
array_push($menu, array(
'NAME' => 'Social Buttons',
'URL' => SOCIALBUTT_ADMIN,
));
return $menu;
}
}
else
{
add_event_handler('loc_end_picture', 'socialbutt_add_button');
add_event_handler('loc_end_index', 'socialbutt_add_button');
}
/**
* plugin initialization
*/
function socialbutt_init()
{
global $conf, $pwg_loaded_plugins;
// apply upgrade if needed
if (
SOCIALBUTT_VERSION == 'auto' or
$pwg_loaded_plugins[SOCIALBUTT_ID]['version'] == 'auto' or
version_compare($pwg_loaded_plugins[SOCIALBUTT_ID]['version'], SOCIALBUTT_VERSION, '<')
)
{
// call install function
include_once(SOCIALBUTT_PATH . 'include/install.inc.php');
socialbutt_install();
// update plugin version in database
if ( $pwg_loaded_plugins[SOCIALBUTT_ID]['version'] != 'auto' and SOCIALBUTT_VERSION != 'auto' )
{
$query = '
UPDATE '. PLUGINS_TABLE .'
SET version = "'. SOCIALBUTT_VERSION .'"
WHERE id = "'. SOCIALBUTT_ID .'"';
pwg_query($query);
$pwg_loaded_plugins[SOCIALBUTT_ID]['version'] = SOCIALBUTT_VERSION;
if (defined('IN_ADMIN'))
{
$_SESSION['page_infos'][] = 'Social Buttons updated to version '. SOCIALBUTT_VERSION;
}
}
}
// prepare plugin configuration
$conf['SocialButtons'] = unserialize($conf['SocialButtons']);
}
/**
* add buttons
*/
function socialbutt_add_button()
{
global $conf, $template;
$basename = script_basename();
$root_url = get_absolute_root_url();
if ($basename == 'picture')
{
$share_url = $root_url.ltrim(duplicate_picture_url(), './');
}
else if ($basename == 'index')
{
$conf['SocialButtons']['position'] = 'index';
$share_url = $root_url.ltrim(duplicate_index_url(array(), array('start')), './');
}
else
{
return;
}
define('SOCIALBUTT_POSITION', $conf['SocialButtons']['position']);
$tpl_vars = array(
'share_url' => $share_url,
'position' => $conf['SocialButtons']['position'],
);
$buttons = array();
if ($conf['SocialButtons']['google']['enabled'])
{
include_once(SOCIALBUTT_PATH . 'include/google.inc.php');
$buttons[] = socialbutt_google($basename, $root_url, $tpl_vars);
}
if ($conf['SocialButtons']['twitter']['enabled'])
{
include_once(SOCIALBUTT_PATH . 'include/twitter.inc.php');
$buttons[] = socialbutt_twitter($basename, $root_url, $tpl_vars);
}
if ($conf['SocialButtons']['facebook']['enabled'])
{
include_once(SOCIALBUTT_PATH . 'include/facebook.inc.php');
$buttons[] = socialbutt_facebook($basename, $root_url, $tpl_vars);
}
if ($conf['SocialButtons']['tumblr']['enabled'])
{
include_once(SOCIALBUTT_PATH . 'include/tumblr.inc.php');
$buttons[] = socialbutt_tumblr($basename, $root_url, $tpl_vars);
}
if (empty($buttons))
{
return;
}
$template->assign('SOCIALBUTT', $tpl_vars);
// parse buttons
foreach ($buttons as &$button)
{
$button = $template->parse($button, true);
}
unset($button);
switch ($conf['SocialButtons']['position'])
{
case 'index':
foreach ($buttons as $button) {
// $template->add_index_button('<li>'.$button.'</li>', 100);
$template->concat('PLUGIN_INDEX_ACTIONS', "\n<li>".$button."</li>");
}
break;
case 'toolbar':
foreach ($buttons as $button) {
// $template->add_picture_button($button, 100);
$template->concat('PLUGIN_PICTURE_ACTIONS', "\n".$button);
}
break;
default;
$template->assign('SOCIALBUTT_BUTTONS', $buttons);
$template->set_prefilter('picture', 'socialbutt_add_button_prefilter');
}
}
function socialbutt_add_button_prefilter($content)
{
switch (SOCIALBUTT_POSITION)
{
case 'top':
$search = '<div id="theImage">';
$add = '<div>{foreach from=$SOCIALBUTT_BUTTONS item=BUTTON}{$BUTTON}{/foreach}</div>';
break;
case 'bottom':
$search = '{$ELEMENT_CONTENT}';
$add = '<div>{foreach from=$SOCIALBUTT_BUTTONS item=BUTTON}{$BUTTON}{/foreach}</div>';
break;
}
return str_replace($search, $search.$add, $content);
}
?>

29
maintain.inc.php Normal file
View File

@@ -0,0 +1,29 @@
<?php
defined('PHPWG_ROOT_PATH') or die('Hacking attempt!');
defined('SOCIALBUTT_ID') or define('SOCIALBUTT_ID', basename(dirname(__FILE__)));
include_once(PHPWG_PLUGINS_PATH . SOCIALBUTT_ID . '/include/install.inc.php');
function plugin_install()
{
socialbutt_install();
define('socialbutt_installed', true);
}
function plugin_activate()
{
if (!defined('socialbutt_installed'))
{
socialbutt_install();
}
}
function plugin_uninstall()
{
pwg_query('DELETE FROM `'. CONFIG_TABLE .'` WHERE param = "SocialButtons" LIMIT 1;');
}
?>

275
template/admin.tpl Normal file
View File

@@ -0,0 +1,275 @@
{combine_css path=$SOCIALBUTT_PATH|@cat:"template/style.css"}
{html_style}{literal}
img.grayscale {
filter: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg'><filter id='grayscale'><feColorMatrix type='saturate' values='0'/></filter></svg>#grayscale"); /* Firefox 10+ */
filter: gray; /* IE6-9 */
-webkit-filter: grayscale(100%); /* Chrome 19+ & Safari 6+ */
}
{/literal}{/html_style}
{footer_script}{literal}
jQuery("input.enable").change(function() {
$parent = $(this).closest("table");
if (!$(this).is(":checked")) {
$parent.find("thead label").attr("title", "{/literal}{'Enable'|@translate|escape:javascript}{literal}");
$parent.find("thead img").addClass('grayscale');
$parent.find("tbody").hide();
}
else {
$parent.find("thead label").attr("title", "{/literal}{'Disable'|@translate|escape:javascript}{literal}");
$parent.find("thead img").removeClass('grayscale');
$parent.find("tbody").show();
}
});
{/literal}{/footer_script}
<div class="titrePage">
<h2>Social Buttons</h2>
</div>
<form method="post" action="" class="properties" style="text-align:center;">
<div class="socialbutt">
<table>
<tr class="property">
<td>
{'Button position on picture page'|@translate}
</td>
<td>
<label><input type="radio" name="position" value="top" {if $position=='top'}checked="checked"{/if}/> {'Top'|@translate}</label>
<label><input type="radio" name="position" value="bottom" {if $position=='bottom'}checked="checked"{/if}/> {'Bottom'|@translate}</label>
<label><input type="radio" name="position" value="toolbar" {if $position=='toolbar'}checked="checked"{/if}/> {'Toolbar'|@translate}</label>
</td>
</tr>
</table>
</div>
<br>
<div class="socialbutt">
<table>
<thead>
<tr><td colspan="2">
<label title="{if $tumblr.enabled}{'Disable'|@translate}{else}{'Enable'|@translate}{/if}">
<img {if not $tumblr.enabled}class="grayscale"{/if} src="{$SOCIALBUTT_PATH}template/images/tumblr_logo.png"/>
<input class="enable" style="display:none;" type="checkbox" name="tumblr[enabled]" {if $tumblr.enabled}checked="checked"{/if}/>
</label>
</td></tr>
</thead>
<tbody {if not $tumblr.enabled}style="display:none;"{/if}>
<tr class="property">
<td>
{'Button type'|@translate}
</td>
<td></td>
</tr>
<tr class="button">
<td><label>
<img src="http://platform.tumblr.com/v1/share_1.png"/>
<input type="radio" name="tumblr[type]" value="share_1" {if $tumblr.type=='share_1'}checked="checked"{/if}/>
</label></td>
<td><label>
<input type="radio" name="tumblr[type]" value="share_1T" {if $tumblr.type=='share_1T'}checked="checked"{/if}/>
<img src="http://platform.tumblr.com/v1/share_1T.png"/>
</label></td>
</tr>
<tr class="button">
<td><label>
<img src="http://platform.tumblr.com/v1/share_2.png"/>
<input type="radio" name="tumblr[type]" value="share_2" {if $tumblr.type=='share_2'}checked="checked"{/if}/>
</label></td>
<td><label>
<input type="radio" name="tumblr[type]" value="share_2T" {if $tumblr.type=='share_2T'}checked="checked"{/if}/>
<img src="http://platform.tumblr.com/v1/share_2T.png"/>
</label></td>
</tr>
<tr class="button">
<td><label>
<img src="http://platform.tumblr.com/v1/share_3.png"/>
<input type="radio" name="tumblr[type]" value="share_3" {if $tumblr.type=='share_3'}checked="checked"{/if}/>
</label></td>
<td><label>
<input type="radio" name="tumblr[type]" value="share_3T" {if $tumblr.type=='share_3T'}checked="checked"{/if}/>
<img src="http://platform.tumblr.com/v1/share_3T.png"/>
</label></td>
</tr>
<tr class="button">
<td><label>
<img src="http://platform.tumblr.com/v1/share_4.png"/>
<input type="radio" name="tumblr[type]" value="share_4" {if $tumblr.type=='share_4'}checked="checked"{/if}/>
</label></td>
<td><label>
<input type="radio" name="tumblr[type]" value="share_4T" {if $tumblr.type=='share_4T'}checked="checked"{/if}/>
<img src="http://platform.tumblr.com/v1/share_4T.png"/>
</label></td>
</tr>
<tr class="property">
<td>
{'Shared picture size'|@translate}
</td>
<td>
{html_options name="tumblr[img_size]" values=$img_sizes output=$img_sizes|translate selected=$tumblr.img_size}
</td>
</tr>
</tbody>
</table>
</div>
<div class="socialbutt">
<table>
<thead>
<tr><td colspan="2">
<label title="{if $google.enabled}{'Disable'|@translate}{else}{'Enable'|@translate}{/if}">
<img {if not $google.enabled}class="grayscale"{/if} src="{$SOCIALBUTT_PATH}template/images/google_logo.png"/>
<input class="enable" style="display:none;" type="checkbox" name="google[enabled]" {if $google.enabled}checked="checked"{/if}/>
</label>
</td></tr>
</thead>
<tbody {if not $google.enabled}style="display:none;"{/if}>
<tr class="property">
<td>
{'Button type'|@translate}
</td>
<td></td>
</tr>
<tr class="button">
<td><label>
15px
<img src="{$SOCIALBUTT_PATH}template/images/google_small.png"/>
<input type="radio" name="google[size]" value="small" {if $google.size=='small'}checked="checked"{/if}/>
</label></td>
<td><label>
<input type="radio" name="google[size]" value="medium" {if $google.size=='medium'}checked="checked"{/if}/>
<img src="{$SOCIALBUTT_PATH}template/images/google_medium.png"/>
20px
</label></td>
</tr>
<tr class="button">
<td><label>
24px
<img src="{$SOCIALBUTT_PATH}template/images/google_standard.png"/>
<input type="radio" name="google[size]" value="standard" {if $google.size=='standard'}checked="checked"{/if}/>
</label></td>
<td><label>
<input type="radio" name="google[size]" value="tall" {if $google.size=='tall'}checked="checked"{/if}/>
<img src="{$SOCIALBUTT_PATH}template/images/google_tall.png"/>
60px
</label></td>
</tr>
<tr class="property">
<td>
{'Annotation'|@translate}
</td>
<td>
<label><input type="radio" name="google[annotation]" value="none" {if $google.annotation=='none'}checked="checked"{/if}/> {'None'|@translate}</label><br>
<label><input type="radio" name="google[annotation]" value="bubble" {if $google.annotation=='bubble'}checked="checked"{/if}/> {'Bubble'|@translate}</label><br>
<label><input type="radio" name="google[annotation]" value="inline" {if $google.annotation=='inline'}checked="checked"{/if}/> {'Inline text'|@translate}</label>
</td>
</tr>
</tbody>
</table>
</div>
<br>
<div class="socialbutt">
<table>
<thead>
<tr><td colspan="2">
<label title="{if $twitter.enabled}{'Disable'|@translate}{else}{'Enable'|@translate}{/if}">
<img {if not $twitter.enabled}class="grayscale"{/if} src="{$SOCIALBUTT_PATH}template/images/twitter_logo.png"/>
<input class="enable" style="display:none;" type="checkbox" name="twitter[enabled]" {if $twitter.enabled}checked="checked"{/if}/>
</label>
</td></tr>
</thead>
<tbody {if not $twitter.enabled}style="display:none;"{/if}>
<tr class="property">
<td>
{'Button type'|@translate}
</td>
<td></td>
</tr>
<tr class="button">
<td><label>
20px
<img src="{$SOCIALBUTT_PATH}template/images/twitter_small.png"/>
<input type="radio" name="twitter[size]" value="small" {if $twitter.size=='small'}checked="checked"{/if}/>
</label></td>
<td><label>
<input type="radio" name="twitter[size]" value="large" {if $twitter.size=='large'}checked="checked"{/if}/>
<img src="{$SOCIALBUTT_PATH}template/images/twitter_large.png"/>
28px
</label></td>
</tr>
<tr class="property">
<td>
{'Annotation'|@translate}
</td>
<td>
<label><input type="radio" name="twitter[count]" value="none" {if $twitter.count=='none'}checked="checked"{/if}/> {'None'|@translate}</label><br>
<label><input type="radio" name="twitter[count]" value="bubble" {if $twitter.count=='bubble'}checked="checked"{/if}/> {'Bubble'|@translate}</label><br>
</td>
</tr>
<tr class="property">
<td>
<label for="twitter_via">{'Via'|@translate}</label>
</td>
<td>
@ <input type="text" id="twitter_via" name="twitter[via]" value="{$twitter.via}"/>
</td>
</tr>
</tbody>
</table>
</div>
<div class="socialbutt">
<table>
<thead>
<tr><td colspan="2">
<label title="{if $facebook.enabled}{'Disable'|@translate}{else}{'Enable'|@translate}{/if}">
<img {if not $facebook.enabled}class="grayscale"{/if} src="{$SOCIALBUTT_PATH}template/images/facebook_logo.png"/>
<input class="enable" style="display:none;" type="checkbox" name="facebook[enabled]" {if $facebook.enabled}checked="checked"{/if}/>
</label>
</td></tr>
</thead>
<tbody {if not $facebook.enabled}style="display:none;"{/if}>
<tr class="property">
<td>
{'Button type'|@translate}
</td>
<td></td>
</tr>
<tr class="button">
<td><label>
<img src="{$SOCIALBUTT_PATH}template/images/facebook_light.png"/>
<input type="radio" name="facebook[color]" value="light" {if $facebook.color=='light'}checked="checked"{/if}/>
</label></td>
<td><label>
<input type="radio" name="facebook[color]" value="dark" {if $facebook.color=='dark'}checked="checked"{/if}/>
<img src="{$SOCIALBUTT_PATH}template/images/facebook_dark.png"/>
</label></td>
</tr>
<tr class="property">
<td>
{'Annotation'|@translate}
</td>
<td>
<label><input type="radio" name="facebook[layout]" value="button_count" {if $facebook.layout=='button_count'}checked="checked"{/if}/> {'Right bubble'|@translate}</label><br>
<label><input type="radio" name="facebook[layout]" value="box_count" {if $facebook.layout=='box_count'}checked="checked"{/if}/> {'Top bubble'|@translate}</label><br>
<label><input type="radio" name="facebook[layout]" value="standard" {if $facebook.layout=='standard'}checked="checked"{/if}/> {'Inline text'|@translate}</label>
</td>
</tr>
</tbody>
</table>
</div>
<br>
<div class="submit">
<input type="submit" value="{'Save Settings'|@translate}" name="submit"/>
</div>
</form>

7
template/facebook.tpl Normal file
View File

@@ -0,0 +1,7 @@
{strip}
{footer_script}jQuery('body').prepend('<div id="fb-root"></div>');{/footer_script}
{combine_script id='facebook_jssdk' load='async' path='https://connect.facebook.net/'|cat:$SOCIALBUTT.FACEBOOK.lang|cat:'/all.js#xfbml=1'}
<div style="display:inline-block;" class="fb-like" data-send="false" data-show-faces="false"
data-href="{$SOCIALBUTT.share_url}" data-layout="{$SOCIALBUTT.FACEBOOK.layout}" data-colorscheme="{$SOCIALBUTT.FACEBOOK.color}"></div>
{/strip}

6
template/google.tpl Normal file
View File

@@ -0,0 +1,6 @@
{strip}
{combine_script id='google_plusone' load='footer' path='https://apis.google.com/js/plusone.js'}
<script type="text/javascript">window.___gcfg = {ldelim}lang: '{$SOCIALBUTT.GOOGLE.lang}'};</script>
<div class="g-plusone" data-size="{$SOCIALBUTT.GOOGLE.size}" data-annotation="{$SOCIALBUTT.GOOGLE.annotation}" data-href="{$SOCIALBUTT.share_url}"></div>
{/strip}

Binary file not shown.

After

Width:  |  Height:  |  Size: 624 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 605 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 803 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 608 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 949 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 844 B

View File

@@ -0,0 +1,7 @@
<?php
$url = '../';
header( 'Request-URI: '.$url );
header( 'Content-Location: '.$url );
header( 'Location: '.$url );
exit();
?>

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

7
template/index.php Normal file
View File

@@ -0,0 +1,7 @@
<?php
$url = '../';
header( 'Request-URI: '.$url );
header( 'Content-Location: '.$url );
header( 'Location: '.$url );
exit();
?>

95
template/style.css Normal file
View File

@@ -0,0 +1,95 @@
.socialbutt {
display:inline-block;
vertical-align:top;
margin:10px;
width:500px;
border:10px solid #f9f9f9;
border-radius:10px;
box-shadow:0 0 5px rgba(0,0,0,0.2);
}
.socialbutt table {
border-spacing: 0px;
width:100%;
}
.socialbutt td {
width:50%;
padding:10px 5px;
background-color:#ECF6FA;
border:1px solid #fff;
border-right-color:#CDE8F4;
border-bottom-color:#CDE8F4;
text-align:center;
vertical-align:center;
font-weight:normal;
}
.socialbutt thead td {
border-top:none;
}
.socialbutt tr td:last-child {
border-right:none;
}
.socialbutt tbody tr:last-child td {
border-bottom:none;
}
.socialbutt tr.button td {
padding:10px 20px;
}
.socialbutt tr.button td:hover {
background-color:#D0E7F2;
}
.socialbutt tr.property td:first-child {
font-weight:bold;
}
.socialbutt tbody tr td:first-child {
text-align:right;
}
.socialbutt tbody tr td:last-child {
text-align:left;
}
.socialbutt img {
vertical-align:bottom;
}
.socialbutt input[type='text'], .socialbutt select {
background:#eee;
color:#888;
border:1px solid #aaa;
border-radius:4px;
box-shadow:inset 0 1px 0 rgba(0,0,0,0.05);
padding:5px;
}
.socialbutt input[type='text']:focus, .socialbutt select:focus {
background:#fff;
border-color:#3399ff;
}
.submit {
display:inline-block;
margin:10px;
}
.submit input {
background: #33bbee;
background: -moz-linear-gradient(top, #33bbee 0%, #339dde 100%);
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#33bbee), color-stop(100%,#339dde));
background: -webkit-linear-gradient(top, #33bbee 0%,#339dde 100%);
background: -o-linear-gradient(top, #33bbee 0%,#339dde 100%);
background: -ms-linear-gradient(top, #33bbee 0%,#339dde 100%);
background: linear-gradient(to bottom, #33bbee 0%,#339dde 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#33bbee', endColorstr='#339dde',GradientType=0 );
border-color: #3399DD #3399DD #2288CC;
color: #FFFFFF !important;
font-size: 14px;
text-shadow: -1px -1px 0 #3399DD;
border-radius: 5px;
border-style: solid;
border-width: 1px;
padding: 5px 9px !important;
letter-spacing:0.1em;
}
.submit input:hover {
box-shadow: 0 0 5px #2288CC;
border-color: #3399DD #3399DD #2288CC;
}

11
template/tumblr.tpl Normal file
View File

@@ -0,0 +1,11 @@
{strip}
{combine_script id='tumblr_share' load='footer' path='http://platform.tumblr.com/v1/share.js'}
{if $SOCIALBUTT.TUMBLR.mode=='photo'}
{capture assign="inline_tags"}{foreach from=$related_tags item=tag name=tag_loop}{if !$smarty.foreach.tag_loop.first},{/if}{$tag.name}{/foreach}{/capture}
<a href="http://www.tumblr.com/share/photo?source={$SOCIALBUTT.TUMBLR.source|urlencode}&caption={$SOCIALBUTT.TUMBLR.title|urlencode}{$SOCIALBUTT.TUMBLR.copyright|urlencode}&clickthru={$SOCIALBUTT.share_url|urlencode}&tags={$inline_tags|urlencode}"
{else}
<a href="http://www.tumblr.com/share/link?url={$SOCIALBUTT.share_url|urlencode}&name={$SOCIALBUTT.TUMBLR.title|urlencode}&description={$CONTENT_DESCRIPTION|urlencode}{$SOCIALBUTT.TUMBLR.copyright|urlencode}"
{/if}
style="display:inline-block;text-indent:-9999px;overflow:hidden;{$SOCIALBUTT.TUMBLR.css}background:url('http://platform.tumblr.com/v1/{$SOCIALBUTT.TUMBLR.type}.png') top left no-repeat transparent;">Tumblr</a>
{/strip}

7
template/twitter.tpl Normal file
View File

@@ -0,0 +1,7 @@
{strip}
{combine_script id='twitter_widgets' load='footer' path='http://platform.twitter.com/widgets.js'}
<a href="https://twitter.com/share" class="twitter-share-button"
data-url="{$SOCIALBUTT.share_url}" data-lang="{$SOCIALBUTT.TWITTER.lang}" data-via="{$SOCIALBUTT.TWITTER.via}"
data-size="{$SOCIALBUTT.TWITTER.size}" data-count="{$SOCIALBUTT.TWITTER.count}">Tweet</a>
{/strip}