mirror of
https://github.com/Piwigo/Piwigo-Social-Buttons.git
synced 2026-10-31 03:01:59 +01:00
fix maintain class + facebook url
git-svn-id: http://piwigo.org/svn/extensions/SocialButtons@29781 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
1 parent
dc10fc84c0
commit
ed7aaf8b8f
10 files changed
+4
-21
No files matched your search
@@ -1,5 +1,5 @@
|
||||
<?php
|
||||
if (!defined('SOCIALBUTT_PATH')) die('Hacking attempt!');
|
||||
defined('SOCIALBUTT_PATH') or die('Hacking attempt!');
|
||||
|
||||
global $conf, $template, $page;
|
||||
|
||||
|
||||
@@ -43,5 +43,3 @@ function socialbutt_facebook($basename, $root_url, &$tpl_vars, &$buttons)
|
||||
$template->set_filename('facebook_button', realpath(SOCIALBUTT_PATH .'template/facebook.tpl'));
|
||||
$buttons[] = 'facebook_button';
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -44,5 +44,3 @@ function socialbutt_google($basename, $root_url, &$tpl_vars, &$buttons)
|
||||
$template->set_filename('google_button', realpath(SOCIALBUTT_PATH .'template/google.tpl'));
|
||||
$buttons[] = 'google_button';
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -38,5 +38,3 @@ function socialbutt_linkedin($basename, $root_url, &$tpl_vars, &$buttons)
|
||||
$template->set_filename('linkedin_button', realpath(SOCIALBUTT_PATH .'template/linkedin.tpl'));
|
||||
$buttons[] = 'linkedin_button';
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -17,5 +17,3 @@ function socialbutt_pinterest($basename, $root_url, &$tpl_vars, &$buttons)
|
||||
$template->set_filename('pinterest_button', realpath(SOCIALBUTT_PATH .'template/pinterest.tpl'));
|
||||
$buttons[] = 'pinterest_button';
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -41,5 +41,3 @@ function socialbutt_reddit($basename, $root_url, &$tpl_vars, &$buttons)
|
||||
$template->set_filename('reddit_button', realpath(SOCIALBUTT_PATH .'template/reddit.tpl'));
|
||||
$buttons[] = 'reddit_button';
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -11,5 +11,3 @@ function socialbutt_tumblr($basename, $root_url, &$tpl_vars, &$buttons)
|
||||
$template->set_filename('tumblr_button', realpath(SOCIALBUTT_PATH .'template/tumblr.tpl'));
|
||||
$buttons[] = 'tumblr_button';
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -32,5 +32,3 @@ function socialbutt_twitter($basename, $root_url, &$tpl_vars, &$buttons)
|
||||
$template->set_filename('twitter_button', realpath(SOCIALBUTT_PATH .'template/twitter.tpl'));
|
||||
$buttons[] = 'twitter_button';
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -45,6 +45,8 @@ class SocialButtons_maintain extends PluginMaintain
|
||||
|
||||
function install($plugin_version, &$errors=array())
|
||||
{
|
||||
global $conf;
|
||||
|
||||
if (empty($conf['SocialButtons']))
|
||||
{
|
||||
if (isset($conf['TumblrShare']))
|
||||
|
||||
@@ -1,11 +1,6 @@
|
||||
{strip}
|
||||
{if $SOCIALBUTT.light}
|
||||
<a title="Share on Facebook" href="http://www.facebook.com/sharer.php?s=100&p[url]={$SOCIALBUTT.share_url|urlencode}&p[title]={$PAGE_TITLE|cat:' | '|cat:$GALLERY_TITLE|urlencode}
|
||||
{if $SOCIALBUTT.basename=='picture'}
|
||||
&p[summary]={$COMMENT_IMG|cat:$SOCIALBUTT.copyright|urlencode}&p[images][0]={$SOCIALBUTT.source|urlencode}"
|
||||
{else}
|
||||
&p[summary]={$CONTENT_DESCRIPTION|cat:$SOCIALBUTT.copyright|urlencode}"
|
||||
{/if}
|
||||
<a title="Share on Facebook" href="http://www.facebook.com/sharer.php?s=100&p[url]={$SOCIALBUTT.share_url|urlencode}&p[title]={$PAGE_TITLE|cat:' | '|cat:$GALLERY_TITLE|urlencode}{if $SOCIALBUTT.basename=='picture'}&p[summary]={$COMMENT_IMG|cat:$SOCIALBUTT.copyright|urlencode}&p[images][0]={$SOCIALBUTT.source|urlencode}"{else}&p[summary]={$CONTENT_DESCRIPTION|cat:$SOCIALBUTT.copyright|urlencode}"{/if}
|
||||
onclick="javascript:window.open(this.href, '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=500,width=500');return false;" target="_blank" rel="nofollow">
|
||||
<img src="{$ROOT_URL}{$SOCIALBUTT_PATH}template/images/facebook.png" alt="Facebook"></a>
|
||||
{else}
|
||||
|
||||
Reference in new issue
Block a user