alternating g-plus id-number - rotating - doable? - Joomla! Forum - community, help and support
hello dear joomla-fans,
i run g-plus-badge joomshaper.com love extensiion much.
well want extent in features: want have alternating g-plus id-numbers -
i want alternate approx 5 ten ids of gplus within sp-google-badge:
they should rotate number , subesquently show different corresponding pages
is doable
pl lemme know if have explain more
greetings
unleash
here code
i run g-plus-badge joomshaper.com love extensiion much.
well want extent in features: want have alternating g-plus id-numbers -
i want alternate approx 5 ten ids of gplus within sp-google-badge:
they should rotate number , subesquently show different corresponding pages
is doable
pl lemme know if have explain more
greetings
unleash
here code
code: select all
<?php
/*---------------------------------------------------------------
# sp google+ badge - free google+ badge module joomla
# version 1.0.0
# ---------------------------------------------------------------
# author - joomshaper http://www.joomshaper.com
# copyright (c) 2010 - 2011 joomshaper.com. rights reserved.
# license - php files licensed under gnu/gpl v2
# license - css - js - image files copyrighted material
# websites: http://www.joomshaper.com - http://www.joomxpert.com
-----------------------------------------------------------------*/
// no direct access
defined( '_jexec' ) or die( 'restricted access' );
$uniqid = $module->id;
$pageid = $params->get('pageid');
$badgetype = $params->get('badgetype','standard');
$iconsize = $params->get('iconsize','large');
$customize_name = $params->get('customize_name');
$language = $params->get('language','en-us');
$color = $params->get('color','333333');
$layout = ($badgetype=='icon') ? "icon_". '' . $iconsize : $badgetype;
$document = jfactory::getdocument();
$document->addheadlink('https://plus.google.com/' . $pageid . '', 'publisher');
if (($badgetype=='standard') || ($badgetype=='small'))
$document->addcustomtag('<script type="text/javascript" src="https://apis.google.com/js/plusone.js">{lang: "' . $language . '"}</script>');
require(jmodulehelper::getlayoutpath('mod_sp_googleplus_badge', $layout));
?>
Comments
Post a Comment