Beispiel #1
0
 function display($tpl = null)
 {
     $this->Params = JFactory::getApplication()->getParams("com_oziogallery3");
     // Set Meta Description
     if ($description = $this->Params->get('menu-meta_description')) {
         $this->document->setDescription($description);
     }
     // Set Meta Keywords
     if ($keywords = $this->Params->get('menu-meta_keywords')) {
         $this->document->setMetadata('keywords', $keywords);
     }
     // Set robots (index, follow)
     if ($robots = $this->Params->get('robots')) {
         $this->document->setMetadata('robots', $robots);
     }
     $this->document->addStyleSheet(JUri::base(true) . "/media/com_oziogallery3/views/nano/js/third.party/magnific-popup/magnific-popup.css");
     $this->document->addStyleSheet(JUri::base(true) . "/media/com_oziogallery3/views/00fuerte/css/supersized.css");
     $this->document->addStyleSheet(JUri::base(true) . "/media/com_oziogallery3/views/00fuerte/theme/supersized.shutter.css");
     //$this->document->addScript(JUri::base(true) . "/media/jui/js/jquery.min.js");
     //$this->document->addScript(JUri::base(true) . "/media/jui/js/jquery-noconflict.js");
     //JHtml::_('jquery.framework');
     JHtml::_('bootstrap.framework');
     if ($this->Params->get("load_css_bootstrap", 0) == 1) {
         JHtmlBootstrap::loadCSS();
     }
     $this->document->addScript(JUri::base(true) . "/media/com_oziogallery3/views/nano/js/third.party/magnific-popup/jquery.magnific-popup.min.js");
     $this->document->addScript(JUri::base(true) . "/media/com_oziogallery3/js/supersized.js");
     $this->document->addScript(JUri::base(true) . "/media/com_oziogallery3/js/jquery.easing.min.js");
     // Solo per l'effetto easeOutExpo
     // Kreatif - evento mobile - tablet touch
     $this->document->addScript(JURI::base(true) . "/media/com_oziogallery3/js/jquery.touchwipe.1.1.1.js");
     $prefix = JUri::base(true) . "/index.php?option=com_oziogallery3&view=loader";
     $menu = JFactory::getApplication()->getMenu();
     $itemid = $menu->getActive() or $itemid = $menu->getDefault();
     $this->document->addScript($prefix . "&type=js&filename=shutter" . "&Itemid=" . $itemid->id . "&id=" . $itemid->id);
     $this->document->addScript($prefix . "&type=js&filename=tinybox" . "&Itemid=" . $itemid->id . "&id=" . $itemid->id);
     $this->document->addScript(JUri::base(true) . "/media/com_oziogallery3/views/00fuerte/js/jquery.ba-bbq.js");
     $this->document->addScript($prefix . "&v=00fuerte&filename=supersized-starter&type=js" . "&Itemid=" . $itemid->id . "&id=" . $itemid->id);
     $this->document->addScript(JUri::root(true) . "/media/com_oziogallery3/js/jquery-pwi.js");
     if ($this->Params->get("show_photowall", 0) == 1) {
         $this->document->addScript(JUri::root(true) . "/media/com_oziogallery3/js/modernizr.custom.js");
         //$this->document->addScript(JUri::root(true) . "/media/com_oziogallery3/js/toucheffects.js");
         $this->document->addScript(JUri::root(true) . "/media/com_oziogallery3/js/jquery.nanoscroller.min.js");
         $this->document->addScript(JUri::root(true) . "/media/com_oziogallery3/js/jquery.lazyload.min.js");
         $this->document->addStyleSheet(JUri::base(true) . "/media/com_oziogallery3/views/00fuerte/css/nanoscroller.css");
     }
     $this->document->addScript(JUri::root(true) . "/media/com_oziogallery3/js/intense.js");
     // per la compatibilità con Internet Explorer
     $this->document->addScript(JUri::root(true) . "/media/com_oziogallery3/js/jQuery.XDomainRequest.js");
     $current_uri = JFactory::getURI();
     if ($this->Params->get("info_button", false)) {
         if (empty($GLOBALS["contentmap"]["gapi"])) {
             $GLOBALS["contentmap"]["gapi"] = true;
             $this->document->addScript(($current_uri->isSSL() ? 'https' : 'http') . "://maps.google.com/maps/api/js?sensor=false");
         }
     }
     $this->gallerywidth = $this->Params->get("gallerywidth", array("text" => "100", "select" => "%"));
     $this->play_button_style = $this->Params->get("play_button", "0") ? '' : 'style="display:none;"';
     parent::display($tpl);
 }
Beispiel #2
0
 function display($tpl = null)
 {
     $this->Params = JFactory::getApplication()->getParams("com_oziogallery3");
     // Set Meta Description
     if ($description = $this->Params->get('menu-meta_description')) {
         $this->document->setDescription($description);
     }
     // Set Meta Keywords
     if ($keywords = $this->Params->get('menu-meta_keywords')) {
         $this->document->setMetadata('keywords', $keywords);
     }
     // Set robots (index, follow)
     if ($robots = $this->Params->get('robots')) {
         $this->document->setMetadata('robots', $robots);
     }
     JHtml::_('bootstrap.framework');
     if ($this->Params->get("load_css_bootstrap", 0) == 1) {
         JHtmlBootstrap::loadCSS();
     }
     $this->document->addStyleSheet(JUri::base(true) . "/media/com_oziogallery3/views/nano/js/third.party/magnific-popup/magnific-popup.css");
     $this->document->addStyleSheet(JUri::base(true) . "/media/com_oziogallery3/views/nano/css/nanogallery.css");
     $this->document->addStyleSheet(JUri::base(true) . "/media/com_oziogallery3/views/nano/css/themes/clean/nanogallery_clean.css");
     $this->document->addStyleSheet(JUri::base(true) . "/media/com_oziogallery3/views/nano/css/themes/light/nanogallery_light.css");
     $this->document->addStyleSheet(JUri::base(true) . "/media/com_oziogallery3/views/nano/js/third.party/font-awesome/css/font-awesome.min.css");
     $this->document->addStyleSheet(JUri::base(true) . "/media/com_oziogallery3/views/nano/js/third.party/hideshare/hideshare.css");
     //$this->document->addStyleSheet(JUri::base(true) . "/media/com_oziogallery3/views/nano/js/third.party/fancybox/jquery.fancybox.css?v=2.1.4");
     //$this->document->addStyleSheet(JUri::base(true) . "/media/com_oziogallery3/views/nano/js/third.party/fancybox/helpers/jquery.fancybox-buttons.css?v=1.0.5");
     $current_uri = JFactory::getURI();
     if ($this->Params->get("info_button", false)) {
         if (empty($GLOBALS["contentmap"]["gapi"])) {
             $GLOBALS["contentmap"]["gapi"] = true;
             $this->document->addScript(($current_uri->isSSL() ? 'https' : 'http') . "://maps.google.com/maps/api/js?sensor=false");
         }
     }
     $this->document->addScript(JUri::base(true) . "/media/com_oziogallery3/views/nano/js/third.party/magnific-popup/jquery.magnific-popup.js");
     $this->document->addScript(JUri::base(true) . "/media/com_oziogallery3/views/nano/js/third.party/hideshare/hideshare.js");
     //$this->document->addScript(JUri::base(true) . "/media/com_oziogallery3/views/nano/js/third.party/transit/jquery.transit.min.js");
     //$this->document->addScript(JUri::base(true) . "/media/com_oziogallery3/views/nano/js/third.party/hammer.js/hammer.min.js");
     //$this->document->addScript(JUri::base(true) . "/media/com_oziogallery3/views/nano/js/third.party/imagesloaded/imagesloaded.pkgd.min.js");
     //$this->document->addScript(JUri::base(true) . "/media/com_oziogallery3/views/nano/js/third.party/jquery-jsonp/jquery.jsonp.js");
     //$this->document->addScript(JUri::base(true) . "/media/com_oziogallery3/views/nano/js/third.party/fancybox/jquery.fancybox.pack.js?v=2.1.4");
     //$this->document->addScript(JUri::base(true) . "/media/com_oziogallery3/views/nano/js/third.party/fancybox/helpers/jquery.fancybox-buttons.js?v=1.0.5");
     //$this->document->addScript(JUri::base(true) . "/media/com_oziogallery3/views/nano/js/third.party/fancybox/helpers/jquery.fancybox-media.js?v=1.0.5");
     $this->document->addScript(JUri::base(true) . "/media/com_oziogallery3/views/nano/js/jquery.nanogallery.js");
     //TODO release min
     $prefix = JUri::base(true) . "/index.php?option=com_oziogallery3&view=loader";
     $menu = JFactory::getApplication()->getMenu();
     $itemid = $menu->getActive() or $itemid = $menu->getDefault();
     $postfix = "&Itemid=" . $itemid->id . "&id=" . $itemid->id;
     $this->document->addStyleSheet(JUri::base(true) . "/media/com_oziogallery3/views/nano/css/ozio-nano.css");
     $this->document->addScript($prefix . "&v=nano&filename=nano-starter&type=js" . $postfix);
     parent::display($tpl);
 }
Beispiel #3
0
 function display($tpl = null)
 {
     $application = JFactory::getApplication("site");
     $this->Params = $application->getParams("com_oziogallery3");
     // Set Meta Description
     if ($description = $this->Params->get('menu-meta_description')) {
         $this->document->setDescription($description);
     }
     // Set Meta Keywords
     if ($keywords = $this->Params->get('menu-meta_keywords')) {
         $this->document->setMetadata('keywords', $keywords);
     }
     // Set robots (index, follow)
     if ($robots = $this->Params->get('robots')) {
         $this->document->setMetadata('robots', $robots);
     }
     JHtml::_('bootstrap.framework');
     if ($this->Params->get("load_css_bootstrap", 0) == 1) {
         JHtmlBootstrap::loadCSS();
     }
     //$this->document->addScript(JUri::root(true) . "/components/com_oziogallery3/js/jquery-pwi.js");
     $prefix = JUri::base(true) . "/index.php?option=com_oziogallery3&view=loader";
     $menu = JFactory::getApplication()->getMenu();
     $itemid = $menu->getActive() or $itemid = $menu->getDefault();
     $this->document->addScript($prefix . "&filename=map&type=js" . "&Itemid=" . $itemid->id . "&id=" . $itemid->id);
     // per la compatibilità con Internet Explorer
     $this->document->addScript(JUri::root(true) . "/components/com_oziogallery3/js/jQuery.XDomainRequest.js");
     $this->document->addStyleSheet(JUri::base(true) . "/components/com_oziogallery3/views/map/css/map.css");
     // Api key parameter for Google map
     $api_key = $this->Params->get('api_key', NULL);
     $api_key = $api_key ? "&key=" . $api_key : "";
     // Language parameter for Google map
     // See Google maps Language coverage at https://spreadsheets.google.com/pub?key=p9pdwsai2hDMsLkXsoM05KQ&gid=1
     // Use JFactory::getLanguage(), because we can't rely on $lang variable
     $language = JFactory::getLanguage()->get("tag", NULL);
     $language = $language ? "&language=" . $language : "";
     $current_uri = JFactory::getURI();
     if (empty($GLOBALS["contentmap"]["gapi"])) {
         $GLOBALS["contentmap"]["gapi"] = true;
         $this->document->addScript(($current_uri->isSSL() ? 'https' : 'http') . "://maps.google.com/maps/api/js?sensor=false" . $language . $api_key);
     }
     if ($this->Params->get("cluster", "1")) {
         $this->document->addScript(JUri::root(true) . "/components/com_oziogallery3/js/markerclusterer_compiled.js");
     }
     $this->document->addScript(JUri::root(true) . "/components/com_oziogallery3/js/oms.min.js");
     parent::display($tpl);
 }
Beispiel #4
0
 function display($tpl = null)
 {
     $application = JFactory::getApplication("site");
     $this->Params = $application->getParams("com_oziogallery3");
     $style = $this->Params->get('list_style');
     // Set Meta Description
     if ($description = $this->Params->get('menu-meta_description')) {
         $this->document->setDescription($description);
     }
     // Set Meta Keywords
     if ($keywords = $this->Params->get('menu-meta_keywords')) {
         $this->document->setMetadata('keywords', $keywords);
     }
     // Set robots (index, follow)
     if ($robots = $this->Params->get('robots')) {
         $this->document->setMetadata('robots', $robots);
     }
     //$this->document->addScript(JUri::base(true) . "/media/jui/js/jquery.min.js");
     //$this->document->addScript(JUri::base(true) . "/media/jui/js/jquery-noconflict.js");
     //JHtml::_('jquery.framework');
     JHtml::_('bootstrap.framework');
     if ($this->Params->get("load_css_bootstrap", 0) == 1) {
         JHtmlBootstrap::loadCSS();
     }
     $this->document->addScript(JUri::root(true) . "/components/com_oziogallery3/js/jquery-pwi.js");
     $prefix = JUri::base(true) . "/index.php?option=com_oziogallery3&view=loader";
     $menu = JFactory::getApplication()->getMenu();
     $itemid = $menu->getActive() or $itemid = $menu->getDefault();
     if ($style == 'hovereffect') {
         //he
         $this->document->addScript($prefix . "&filename=pwi_hovereffect&type=js" . "&Itemid=" . $itemid->id . "&id=" . $itemid->id);
         $this->document->addScript(JUri::root(true) . "/components/com_oziogallery3/js/modernizr.custom.js");
         $this->document->addScript(JUri::root(true) . "/components/com_oziogallery3/js/toucheffects.js");
     } else {
         $this->document->addScript($prefix . "&filename=pwi&type=js" . "&Itemid=" . $itemid->id . "&id=" . $itemid->id);
     }
     $this->document->addScript($prefix . "&filename=dateformat&type=js" . "&Itemid=" . $itemid->id . "&id=" . $itemid->id);
     // per la compatibilità con Internet Explorer
     $this->document->addScript(JUri::root(true) . "/components/com_oziogallery3/js/jQuery.XDomainRequest.js");
     if ($style == 'hovereffect') {
         $this->document->addStyleSheet(JUri::base(true) . "/components/com_oziogallery3/views/list/css/list_hovereffect.css");
     } else {
         $this->document->addStyleSheet(JUri::base(true) . "/components/com_oziogallery3/views/list/css/list.css");
     }
     parent::display($tpl);
 }
Beispiel #5
0
 function display($tpl = null)
 {
     $this->Params = JFactory::getApplication()->getParams("com_oziogallery3");
     // Set Meta Description
     if ($description = $this->Params->get('menu-meta_description')) {
         $this->document->setDescription($description);
     }
     // Set Meta Keywords
     if ($keywords = $this->Params->get('menu-meta_keywords')) {
         $this->document->setMetadata('keywords', $keywords);
     }
     // Set robots (index, follow)
     if ($robots = $this->Params->get('robots')) {
         $this->document->setMetadata('robots', $robots);
     }
     JHtml::_('bootstrap.framework');
     if ($this->Params->get("load_css_bootstrap", 0) == 1) {
         JHtmlBootstrap::loadCSS();
     }
     $this->document->addStyleSheet(JUri::root(true) . "/media/com_oziogallery3/views/nano/js/third.party/magnific-popup/magnific-popup.css");
     $this->document->addStyleSheet(JUri::root(true) . "/media/com_oziogallery3/views/nano/js/third.party/font-awesome/css/font-awesome.min.css");
     $this->document->addStyleSheet(JUri::root(true) . "/media/com_oziogallery3/views/lightgallery/css/lightgallery.css?v=1.2.14");
     $this->document->addStyleSheet(JUri::root(true) . "/media/com_oziogallery3/views/lightgallery/css/lg-fb-comment-box.css?v=1.2.14");
     $this->document->addStyleSheet(JUri::root(true) . "/media/com_oziogallery3/views/lightgallery/css/lg-transitions.css?v=1.2.14");
     $this->document->addStyleSheet(JUri::root(true) . "/media/com_oziogallery3/views/lightgallery/css/ozio-lg.css?v=1.0");
     $current_uri = JFactory::getURI();
     if ($this->Params->get("info_button", false)) {
         if (empty($GLOBALS["contentmap"]["gapi"])) {
             $GLOBALS["contentmap"]["gapi"] = true;
             $this->document->addScript(($current_uri->isSSL() ? 'https' : 'http') . "://maps.google.com/maps/api/js?sensor=false");
         }
     }
     $this->document->addScript(JUri::root(true) . "/media/com_oziogallery3/js/intense.js");
     $this->document->addScript(JUri::root(true) . "/media/com_oziogallery3/views/nano/js/third.party/magnific-popup/jquery.magnific-popup.js");
     $this->document->addScript(JUri::root(true) . "/media/com_oziogallery3/views/lightgallery/js/lightgallery-all.js?v=1.2.14");
     $this->document->addScript(JUri::root(true) . "/media/com_oziogallery3/views/lightgallery/js/ozio-intense.js?v=1.0");
     $this->document->addScript(JUri::root(true) . "/media/com_oziogallery3/views/lightgallery/js/ozio-infobtn.js?v=1.0");
     //$this->document->addScript(JUri::root(true) . "/media/com_oziogallery3/js/jquery-pwi.js");
     $prefix = JUri::root(true) . "/index.php?option=com_oziogallery3&view=loader";
     $menu = JFactory::getApplication()->getMenu();
     $itemid = $menu->getActive() or $itemid = $menu->getDefault();
     $postfix = "&Itemid=" . $itemid->id . "&id=" . $itemid->id;
     $this->document->addScript($prefix . "&v=lightgallery&filename=lightgallery-starter&type=js" . $postfix);
     parent::display($tpl);
 }
Beispiel #6
0
 function display_map(&$cparams, $galleriaozio)
 {
     $this->Params = $cparams;
     $document = JFactory::getDocument();
     JHtml::_('bootstrap.framework');
     if ($cparams->get("load_css_bootstrap", 0) == 1) {
         JHtmlBootstrap::loadCSS();
     }
     $prefix = JUri::base(true) . "/index.php?option=com_oziogallery3&view=loader";
     $menu = JFactory::getApplication()->getMenu();
     $itemid = $menu->getActive() or $itemid = $menu->getDefault();
     $document->addScript($prefix . "&filename=map&type=js" . "&Itemid=" . $itemid->id . "&id=" . $galleriaozio);
     // per la compatibilità con Internet Explorer
     $document->addScript(JUri::root(true) . "/media/com_oziogallery3/js/jQuery.XDomainRequest.js");
     $document->addStyleSheet(JUri::base(true) . "/media/com_oziogallery3/views/map/css/map.css");
     // Api key parameter for Google map
     $api_key = $this->Params->get('api_key', NULL);
     $api_key = $api_key ? "&key=" . $api_key : "";
     // Language parameter for Google map
     // See Google maps Language coverage at https://spreadsheets.google.com/pub?key=p9pdwsai2hDMsLkXsoM05KQ&gid=1
     // Use JFactory::getLanguage(), because we can't rely on $lang variable
     $language = JFactory::getLanguage()->get("tag", NULL);
     $language = $language ? "&language=" . $language : "";
     $current_uri = JFactory::getURI();
     if (empty($GLOBALS["contentmap"]["gapi"])) {
         $GLOBALS["contentmap"]["gapi"] = true;
         $document->addScript(($current_uri->isSSL() ? 'https' : 'http') . "://maps.google.com/maps/api/js?sensor=false" . $language . $api_key);
     }
     if ($this->Params->get("cluster", "1")) {
         $document->addScript(JUri::root(true) . "/media/com_oziogallery3/js/markerclusterer_compiled.js");
     }
     $document->addScript(JUri::root(true) . "/media/com_oziogallery3/js/oms.min.js");
     ob_start();
     require JPATH_SITE . "/components/com_oziogallery3/views/map/tmpl/default.php";
     $result = JPATH_COMPONENT("com_oziogallery3/views/map/tmpl/default.php") . ob_get_contents();
     ob_end_clean();
     return $result;
 }