当前位置: 首页>>代码示例>>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;未经允许,请勿转载。