}
$layout = $params->get('layout', 'box');
if (strpos($layout, 'static') === false) {
    if ($app->input->get('tmpl') == 'component') {
        return;
    }
    // Set media path
    $media_url = JURI::base(true) . '/media/mod_pwebfblikebox/';
    $doc = JFactory::getDocument();
    if (strpos($layout, 'tab') === false) {
        JHtml::_('behavior.framework');
        $doc->addScript($media_url . 'js/mootools.likebox.js');
    }
    JHtml::_('stylesheet', 'mod_pwebfblikebox/likebox.css', array(), true, false, false, false);
    // IE CSS
    if (!defined('MOD_PWEB_FBLIKEBOX_IE')) {
        define('MOD_PWEB_FBLIKEBOX_IE', 1);
        $doc->addCustomTag('<!--[if lte IE 8]>' . "\r\n" . '<link rel="stylesheet" href="' . $media_url . 'css/ie.css" />' . "\r\n" . '<![endif]-->' . "\r\n");
    }
}
// Auto RTL
$rtl = (int) JFactory::getLanguage()->isRTL();
$params->set('rtl', $rtl);
if ($rtl) {
    $params->set('align', $params->get('align') == 'left' ? 'right' : 'left');
}
// Set params
modPWebFBLikeBoxHelper::setParams($params);
// Get LikeBox
$LikeBox = modPWebFBLikeBoxHelper::displayLikeBox();
require JModuleHelper::getLayoutPath('mod_pwebfblikebox', $layout);
예제 #2
0
	<?php 
if ($params->get('pretext')) {
    ?>
	<p class="pwebfblikebox_pretext"><?php 
    echo $params->get('pretext');
    ?>
</p>
	<?php 
}
?>
	<div class="pwebfblikebox_container"<?php 
echo $style_container;
?>
><?php 
echo $LikeBox;
?>
</div>
</div>

<?php 
if ($javascript = modPWebFBLikeBoxHelper::getTrackSocialScript()) {
    ?>
<script type="text/javascript">
<?php 
    echo $javascript;
    ?>
</script>
<?php 
}
?>
<!-- PWebFBLikeBox end -->
예제 #3
0
 public static function setParams(&$params)
 {
     self::$params = $params;
 }
예제 #4
0
echo $params->get('open_event');
?>
',
		close: 		'<?php 
echo $params->get('close_event');
?>
',
		<?php 
if (!$params->get('close_other', 1)) {
    echo 'closeOther: 0,';
}
?>
		position: 	'<?php 
echo $params->get('align');
?>
',
		top: 		<?php 
echo (int) $params->get('top', -1);
?>
,
		layout: 	'<?php 
echo $layout;
?>
'
	});
})();
<?php 
echo modPWebFBLikeBoxHelper::getTrackSocialScript();
?>
</script>
<!-- PWebFBLikeBox end -->
예제 #5
0
<?php

/**
* @version 1.0.5
* @package PWebFBLikeBox
* @copyright © 2013 Majestic Media sp. z o.o., All rights reserved. http://www.perfect-web.co
* @license GNU General Public Licence http://www.gnu.org/licenses/gpl-3.0.html
* @author Piotr Moćko
*/
defined('_JEXEC') or die('Restricted access');
$moduleclass = 'pwebfblikebox-' . $params->get('align') . ($params->get('style_radius') ? ' pwebfblikebox-radius' : '') . ($params->get('style_shadow') ? ' pwebfblikebox-shadow' : '') . ' tab' . ' ' . htmlspecialchars($params->get('moduleclass_sfx'));
$style = $params->get('top', -1) >= 0 ? ' style="top:' . (int) $params->get('top') . 'px"' : '';
$style_tab = ($background = $params->get('background')) ? ' style="background-color:' . $background . ';border-color:' . $background . '"' : '';
$track = modPWebFBLikeBoxHelper::getTrackSocialOnClick();
$onclick = $track ? ' onclick="' . $track . '"' : '';
?>
<!-- PWebFBLikeBox -->
<div id="pwebfblikebox<?php 
echo $module->id;
?>
" class="pwebfblikebox <?php 
echo $moduleclass;
?>
"<?php 
echo $style . ($params->get('rtl') ? ' dir="rtl"' : '');
?>
>
	<a class="pwebfblikebox_tab <?php 
echo $params->get('tab');
?>
" href="<?php