hassan68
سه شنبه 15 شهریور 1390, 00:17 صبح
دوستان کدی برای گوگل پلاس ندارید که تو سایتایی که اسمارتی هستن درست نشون بده
<?php
ini_set('display_errors','0');
error_reporting(0);
# uniq_sozial 0.1 googleplus plugin for smarty
# from http://www.uniq-arts.de
# 2011 uniq-arts
# parameter
# {googleplus now=online size=small lang=de count=true}
# uniqarts setup
# update || default true, you check of updates for this plugin
function smarty_function_googleplus($params, &$smarty) {
if($params[now]=="enable") {
if ($params[size]) {$size = $params[size]; } else { $size = "standard";}
if ($params[lang]) {$lang = $params[lang]; } else { $lang = "en-GB";}
if ($params[href]) {$href = $params[href]; } else { $href = "";}
if ($params[count]) {$count = $params[count]; } else { $count = "";}
if ($params[callback]) {$callback = $params[callback]; } else { $callback = "";}
if ($params[css]) {$css = $params[css]; } else { $css = "uniq_googleplus";}
}
echo '<script type="text/javascript" src="https://apis.google.com/js/plusone.js">{lang: \'' . $lang . '\'}{"parsetags": "explicit"}</script>';
if($params[now] == 'enable') {
return '<div class="'.$css.'" style="float:'.$floating.'"><g:plusone count="'.$count.'" href="'.$href.'" size="'.$size.'"></g:plusone></div>';
}
}
?>
از کد بالا تو قسمت پلاگین سایت و از کد زیر توی فایل tpl قالب استفاده کردم ولی دکمه نشون نمیده
{googleplus now=enable size=small lang=de count=true}
لطفا کمک کنید مشکل کجاست
<?php
ini_set('display_errors','0');
error_reporting(0);
# uniq_sozial 0.1 googleplus plugin for smarty
# from http://www.uniq-arts.de
# 2011 uniq-arts
# parameter
# {googleplus now=online size=small lang=de count=true}
# uniqarts setup
# update || default true, you check of updates for this plugin
function smarty_function_googleplus($params, &$smarty) {
if($params[now]=="enable") {
if ($params[size]) {$size = $params[size]; } else { $size = "standard";}
if ($params[lang]) {$lang = $params[lang]; } else { $lang = "en-GB";}
if ($params[href]) {$href = $params[href]; } else { $href = "";}
if ($params[count]) {$count = $params[count]; } else { $count = "";}
if ($params[callback]) {$callback = $params[callback]; } else { $callback = "";}
if ($params[css]) {$css = $params[css]; } else { $css = "uniq_googleplus";}
}
echo '<script type="text/javascript" src="https://apis.google.com/js/plusone.js">{lang: \'' . $lang . '\'}{"parsetags": "explicit"}</script>';
if($params[now] == 'enable') {
return '<div class="'.$css.'" style="float:'.$floating.'"><g:plusone count="'.$count.'" href="'.$href.'" size="'.$size.'"></g:plusone></div>';
}
}
?>
از کد بالا تو قسمت پلاگین سایت و از کد زیر توی فایل tpl قالب استفاده کردم ولی دکمه نشون نمیده
{googleplus now=enable size=small lang=de count=true}
لطفا کمک کنید مشکل کجاست