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


PHP DSC::loadJQuery方法代碼示例

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


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

 /**
  * Displays a layout file
  *
  * @param unknown_type $tpl
  * @return unknown_type
  */
 function display($tpl = null)
 {
     $doc = JFactory::getDocument();
     //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', 'media/system/js/core.js', false, false);
     JHtml::_('script', 'media/citruscart/js/citruscart.js', false, false);
     //DSC::loadBootstrap();
     DSC::loadJQuery('latest', true, 'citruscartJQ');
     JHtml::_('stylesheet', 'media/citruscart/css/common.css');
     parent::display($tpl);
 }
開發者ID:joomlacorner,項目名稱:citruscart,代碼行數:18,代碼來源:_base.php

示例3: 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

示例4: 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)
 {
     $doc = JFactory::getDocument();
     //$doc->addStyleSheet(JUri::root().'media/citruscart/css/citruscart_checkout_onepage.css');
     // these need to load before jquery to prevent joomla from crying
     JHTML::_('behavior.modal');
     $doc->addScript(JUri::root() . 'media/system/js/core.js');
     DSC::loadJQuery('latest', true, 'citruscartJQ');
     /*   if ($this->defines->get('use_bootstrap', '0'))
     	    {
     	    	DSC::loadBootstrap();
     	    } */
     //JHTML::_('stylesheet', 'common.css', 'media/citruscart/css/');
     $doc->addStyleSheet(JUri::root() . 'media/citruscart/css/common.css');
     if ($this->defines->get('include_site_css', '0')) {
         $doc->addStyleSheet(JUri::root() . 'media/citruscart/css/citruscart.css');
         //JHtml::_('stylesheet', 'media/citruscart/css/citruscart.css');
     }
     parent::display($tpl);
 }
開發者ID:joomlacorner,項目名稱:citruscart,代碼行數:27,代碼來源:_base.php

示例5: 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

示例6: loadBootstrap

 /**
  *
  * @param string $version
  * @param int $joomla
  * @param unknown_type $responsive
  */
 public static function loadBootstrap($version = 'default', $joomla = true, $responsive = false)
 {
     // short term backwards compatibility.  Update your components
     if (is_int($version) && in_array($version, array(0, 1)) || strlen($joomla) > 1) {
         $org_version = $version;
         $org_joomla = $joomla;
         $version = $org_joomla;
         $joomla = $org_version;
     }
     static $loaded = false;
     if ($loaded) {
         return;
     }
     DSC::loadJQuery();
     $doc = JFactory::getDocument();
     /*  $doc->addStyleSheet(JUri::root().'media/citruscart/bootstrap/'.$version.'/css/bootstrap.min.css');*/
     //$doc->addScript(JUri::root().'media/citruscart/bootstrap/'.$version.'/js/bootstrap.min.js');
     /*
     	    if ($joomla) {
     
     
     	        $doc->addStyleSheet(JUri::root().'media/citruscart/css/joomla.bootstrap.css');
     	    }
     
     	    if ($responsive) {
     	    	$doc->addStyleSheet(JUri::root().'media/citruscart/bootstrap/'.$version.'/css/bootstrap-responsive.min.css');
     	        //JHTML::_( 'stylesheet', 'bootstrap-responsive.min.css', 'media/citruscart/bootstrap/'.$version.'/css/' );
     	    }*/
     $loaded = true;
 }
開發者ID:joomlacorner,項目名稱:citruscart,代碼行數:36,代碼來源:dioscouri.php

示例7: doContentPrepare

 /**
  * Search for the tag and replace it with the product view {Citruscartproduct}
  *
  * @param $article
  * @param $params
  * @param $limitstart
  */
 private function doContentPrepare($context, &$row, &$params, $page = 0)
 {
     if (!$this->isInstalled()) {
         return true;
     }
     // simple performance check to determine whether bot should process further
     if (JString::strpos($row->text, 'citruscartproduct') === false) {
         return true;
     }
     // Get plugin info
     $plugin = JPluginHelper::getPlugin('content', 'citruscart_content_product');
     // expression to search for
     $regex = '/{citruscartproduct\\s*.*?}/i';
     $pluginParams = new DSCParameter($plugin->params);
     // check whether plugin has been unpublished
     if (!$pluginParams->get('enabled', 1)) {
         $row->text = preg_replace($regex, '', $row->text);
         return true;
     }
     // find all instances of plugin and put in $matches
     preg_match_all($regex, $row->text, $matches);
     // Number of plugins
     $count = count($matches[0]);
     // plugin only processes if there are any instances of the plugin in the text
     if ($count) {
         DSC::loadJQuery('latest', true, 'citruscartJQ');
         $doc = JFactory::getDocument();
         $uri = JURI::getInstance();
         $js = "var com_citruscart = {};\n";
         $js .= "com_citruscart.jbase = '" . $uri->root() . "';\n";
         $doc->addScriptDeclaration($js);
         foreach ($matches as $match) {
             $this->showProducts($row, $matches, $count, $regex);
         }
     }
 }
開發者ID:joomlacorner,項目名稱:citruscart,代碼行數:43,代碼來源:citruscart_content_product.php

示例8: loadUploadify

 public static function loadUploadify()
 {
     static $loaded = false;
     if ($loaded) {
         return;
     }
     DSC::loadJQuery('');
     JHTML::_('script', 'jquery.uploadifive.min.js', 'media/citruscart/js/');
     JHTML::_('stylesheet', 'uploadifive.css', 'media/citruscart/css/');
     $loaded = true;
 }
開發者ID:joomlacorner,項目名稱:citruscart,代碼行數:11,代碼來源:image.php


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