/** * Get Library for MultiBox * @param Array $pluginParams Plugin paramaters * @return String Include JS, CSS string. * */ function getHeaderLibrary($bodyString) { // Base path string $hs_base = JURI::base() . 'plugins/system/japopup/' . $this->_modal_name . '/'; // Tag array $headtag = array(); $headtag[] = '<script src="' . $hs_base . 'js/overlay.js" type="text/javascript" ></script>'; $headtag[] = '<script src="' . $hs_base . 'js/multibox.js" type="text/javascript" ></script>'; $headtag[] = '<link href="' . $hs_base . 'css/multibox.css" type="text/css" rel="stylesheet" />'; $bodyString = parent::getHeaderLibrary($bodyString, '/multibox.js', $headtag); return $bodyString; }
/** * Get Library for Thickbox * @param Array $pluginParams Plugin paramaters * @return String Include JS, CSS string. * */ function getHeaderLibrary($bodyString) { // Base path string $hs_base = JURI::base() . 'plugins/system/plg_japopup/' . $this->_modal_name . '/'; // Tag array $headtag = array(); $headtag[] = '<script src="' . $hs_base . 'js/jquery.js" type="text/javascript" ></script>'; $headtag[] = '<script src="' . $hs_base . 'js/thickbox.js" type="text/javascript" ></script>'; $headtag[] = '<script type="text/javascript" >if (jQuery && jQuery.noConflict) jQuery.noConflict( );</script>'; $headtag[] = '<link href="' . $hs_base . 'css/thickbox.css" type="text/css" rel="stylesheet" />'; $bodyString = parent::getHeaderLibrary($bodyString, '/thickbox.js', $headtag); return $bodyString; }
/** * Get Library for GreyBox * @param Array $pluginParams Plugin paramaters * @return String Include JS, CSS string. * */ function getHeaderLibrary($bodyString) { // Base path string $hs_base = JURI::base() . 'plugins/system/plg_japopup/' . $this->_modal_name . '/'; // Tag array $headtag = array(); $headtag[] = '<script type="text/javascript" > var GB_ROOT_DIR = "' . $hs_base . '"; </script>'; $headtag[] = '<script src="' . $hs_base . 'js/AJS.js" type="text/javascript" ></script>'; $headtag[] = '<script src="' . $hs_base . 'js/AJS_fx.js" type="text/javascript" ></script>'; $headtag[] = '<script src="' . $hs_base . 'js/gb_scripts.js" type="text/javascript" ></script>'; $headtag[] = '<link href="' . $hs_base . 'css/gb_styles.css" type="text/css" rel="stylesheet" />'; $bodyString = parent::getHeaderLibrary($bodyString, '/AJS.js', $headtag); return $bodyString; }
/** * Get Library for HighSlide * @param Array $pluginParams Plugin paramaters * @return String Include JS, CSS string. * */ function getHeaderLibrary($bodyString) { // Base path string $hs_base = JURI::base() . 'plugins/system/plg_japopup/' . $this->_modal_name . '/'; // Tag array $headtag = array(); $headtag[] = '<script src="' . $hs_base . 'js/do_cookie.js" type="text/javascript" ></script>'; $headtag[] = '<script src="' . $hs_base . 'js/highslide-full.js" type="text/javascript" ></script>'; $headtag[] = '<script src="' . $hs_base . 'js/swfobject.js" type="text/javascript" ></script>'; $headtag[] = "<script type='text/javascript' > \n\t\t\t\t\t\t\ths.graphicsDir = '" . $hs_base . "images/'; \n\t\t\t\t\t\t\ths.wrapperClassName = 'draggable-header';\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t</script>"; // CSS $headtag[] = '<link href="' . $hs_base . 'css/highslide.css" type="text/css" rel="stylesheet" />'; $bodyString = parent::getHeaderLibrary($bodyString, '/highslide-full.packed.js', $headtag); return $bodyString; }
/** * Get Library for Thickbox * @param Array $pluginParams Plugin paramaters * @return String Include JS, CSS string. * */ function getHeaderLibrary($bodyString) { // Base path string $hs_base = JURI::base() . 'plugins/system/japopup/' . $this->_modal_name . '/'; // Tag array $headtag = array(); $headtag[] = '<script src="' . $hs_base . 'js/jquery.js" type="text/javascript" ></script>'; $headtag[] = '<script type="text/javascript" >var tb_pathToImage = "' . JURI::base() . 'plugins/system/japopup/thickbox/images/loadingAnimation.gif";</script>'; $headtag[] = '<script src="' . $hs_base . 'js/thickbox.js" type="text/javascript" ></script>'; $headtag[] = '<script type="text/javascript" >if (jQuery && jQuery.noConflict) jQuery.noConflict( );</script>'; $headtag[] = '<link href="' . $hs_base . 'css/thickbox.css" type="text/css" rel="stylesheet" />'; if ($this->_pluginParams->get('group1-shadowbox-overlayColor')) { $headtag[] = '<style>div.TB_overlayBG{background-color: #' . $this->_pluginParams->get("group1-shadowbox-overlayColor") . ';}</style>'; } if ($this->_pluginParams->get('group1-shadowbox-viewportPadding')) { $headtag[] = '<style>div#TB_window{padding: ' . $this->_pluginParams->get("group1-shadowbox-viewportPadding") . 'px;}</style>'; } $headtag[] = '<style>div#TB_window{padding: 20px;}</style>'; $bodyString = parent::getHeaderLibrary($bodyString, '/thickbox.js', $headtag); return $bodyString; }