當前位置: 首頁>>代碼示例>>PHP>>正文


PHP DSC::loadBootstrap方法代碼示例

本文整理匯總了PHP中DSC::loadBootstrap方法的典型用法代碼示例。如果您正苦於以下問題:PHP DSC::loadBootstrap方法的具體用法?PHP DSC::loadBootstrap怎麽用?PHP DSC::loadBootstrap使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在DSC的用法示例。


在下文中一共展示了DSC::loadBootstrap方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: display

 /**
  * Displays a layout file
  *
  * @param unknown_type $tpl
  * @return unknown_type
  */
 function display($tpl = null)
 {
     //including core JS because it needs to be included in modals and since we have so many including here keeps that from failing.
     JHTML::_('behavior.modal');
     JHTML::_('script', 'core.js', 'media/system/js/');
     DSC::loadBootstrap();
     DSC::loadJQuery('latest', true, 'tiendaJQ');
     JHTML::_('stylesheet', 'common.css', 'media/dioscouri/css/');
     parent::display($tpl);
 }
開發者ID:annggeel,項目名稱:tienda,代碼行數:16,代碼來源:_base.php

示例2: display

 /**
  * First displays the submenu, then displays the output
  * but only if a valid _doTask is set in the view object
  *
  * @param $tpl
  * @return unknown_type
  */
 function display($tpl = null, $perform = true)
 {
     // these need to load before jquery to prevent joomla from crying
     JHTML::_('behavior.modal');
     JHTML::_('script', 'core.js', 'media/system/js/');
     DSC::loadJQuery('latest', true, 'tiendaJQ');
     if ($this->defines->get('use_bootstrap', '0')) {
         DSC::loadBootstrap();
     }
     JHTML::_('stylesheet', 'common.css', 'media/dioscouri/css/');
     if ($this->defines->get('include_site_css', '0')) {
         JHTML::_('stylesheet', 'tienda.css', 'media/com_tienda/css/');
     }
     parent::display($tpl);
 }
開發者ID:annggeel,項目名稱:tienda,代碼行數:22,代碼來源:_base.php

示例3: popupbootstrap

 /**
  * TODO Push this upstream once tested
  * 
  * @param unknown_type $url
  * @param unknown_type $text
  * @param unknown_type $options
  */
 public static function popupbootstrap($url, $text, $options = array())
 {
     $version = isset($options['version']) ? $options['version'] : 'default';
     DSC::loadBootstrap();
     JHTML::_('script', 'bootstrap-modal.js', 'media/dioscouri/bootstrap/' . $version . '/js/');
     $time = time();
     $modal_id = isset($options['modal_id']) ? $options['modal_id'] : 'modal-' . $time;
     $button_class = isset($options['button_class']) ? $options['button_class'] : 'btn';
     $label = 'label-' . $time;
     $button = '<a href="' . $url . '" data-target="#' . $modal_id . '" role="button" class="' . $button_class . '" data-toggle="modal">' . $text . '</a>';
     $modal = '';
     $modal .= '<div id="' . $modal_id . '" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="' . $label . '" aria-hidden="true">';
     $modal .= '    <div class="modal-header">';
     $modal .= '        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>';
     $modal .= '        <h3 id="' . $label . '">' . $text . '</h3>';
     $modal .= '    </div>';
     $modal .= '    <div class="modal-body">';
     $modal .= '    </div>';
     $modal .= '</div>';
     return $button . $modal;
 }
開發者ID:annggeel,項目名稱:tienda,代碼行數:28,代碼來源:url.php

示例4: onAfterRoute

 function onAfterRoute()
 {
     $doc = JFactory::getDocument();
     if ($this->params->get('activeAdmin') == 1) {
         $juri = JFactory::getURI();
         if (strpos($juri->getPath(), '/administrator/') !== false) {
             return;
         }
     }
     if ($value = $this->params->get('embedjquery')) {
         DSC::loadJQuery('latest', $this->params->get('jquerynoconflict'));
     }
     JHTML::_('script', 'colorbox.js', 'media/citruscart/colorbox/');
     if ($value = $this->params->get('embedbootstrap')) {
         DSC::loadBootstrap($this->params->get('bootstrapversion'), $this->params->get('bootstrapjoomla'));
     }
 }
開發者ID:joomlacorner,項目名稱:citruscart,代碼行數:17,代碼來源:dioscouri.php


注:本文中的DSC::loadBootstrap方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。