コード例 #1
0
ファイル: class.plugin.php プロジェクト: site4com/prometheus
    public function setEndofPageSliderText($tagblock, $socialblock)
    {
        if (!JvrelInit::getCfg('eopsob_en')) {
            return;
        }
        $width = JvrelInit::getCfg('eopsob_box_width');
        $right = 0 - ($width + 5);
        $tmpl = new JvrelTemplate('tmpl_eopsob');
        $tmpl->articles = $this->articles;
        $tmpl->tagblock = JvrelInit::getCfg('eopsob_show_tags') ? $tagblock : '';
        $tmpl->socialblock = JvrelInit::getCfg('eopsob_show_smedia') ? $socialblock : '';
        $tmpl->width = $width;
        $tmpl->right = $right;
        $tmpl_1 = new JvrelTemplate('tmpl_poweredby');
        $tmpl->poweredby = $tmpl_1->getContents();
        JvrelInit::setEopsobData($tmpl->getContents());
        JFactory::getDocument()->addScriptDeclaration('
						jQuery(document).ready(function(){
							jQuery(window).scroll(function(){
								var distanceTop = jQuery("#jvrel_last").offset().top - jQuery(window).height();

								if  (jQuery(window).scrollTop() > distanceTop)
									jQuery("#jvrel_slidebox").animate({"right":"0px"},300);
								else
									jQuery("#jvrel_slidebox").stop(true).animate({"right":"' . $right . '%"},100);
							});

							jQuery("#jvrel_slidebox .close").bind("click",function(){
								jQuery(this).parent().remove();
							});
						});
					');
        JvrelInit::debug('EOPSOB Data pushed to memory');
        return;
    }
コード例 #2
0
 public function prepareSocialMediaGraphics()
 {
     $tmpl = new JvrelTemplate('tmpl_socialblock');
     return $tmpl->getContents();
 }