当前位置: 首页>>代码示例>>PHP>>正文


PHP JHtmlBootstrap::loadCSS方法代码示例

本文整理汇总了PHP中JHtmlBootstrap::loadCSS方法的典型用法代码示例。如果您正苦于以下问题:PHP JHtmlBootstrap::loadCSS方法的具体用法?PHP JHtmlBootstrap::loadCSS怎么用?PHP JHtmlBootstrap::loadCSS使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在JHtmlBootstrap的用法示例。


在下文中一共展示了JHtmlBootstrap::loadCSS方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: display

 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);
 }
开发者ID:rahxam,项目名称:ozio,代码行数:60,代码来源:view.html.php

示例2: display

 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);
 }
开发者ID:MOYA8564,项目名称:oziogallery2,代码行数:47,代码来源:view.html.php

示例3: display

 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);
 }
开发者ID:scarsroga,项目名称:blog-soa,代码行数:46,代码来源:view.html.php

示例4: display_map

 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;
 }
开发者ID:rahxam,项目名称:ozio,代码行数:38,代码来源:ozio.php


注:本文中的JHtmlBootstrap::loadCSS方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。