コード例 #1
0
ファイル: jasmine.php プロジェクト: compojoom/lib_compojoom
 /**
  * This function will load the jasmine library files
  *
  * @param   string  $key  - Namespace for the queue
  *
  * @return  void
  */
 public static function loadJasmine($key = 'libcompojoom')
 {
     CompojoomHtml::addCSSToQueue($key, 'media/lib_compojoom/third/jasmine/jasmine.css');
     CompojoomHtml::addScriptsToQueue($key, 'media/lib_compojoom/third/jasmine/jasmine.js');
     CompojoomHtml::addScriptsToQueue($key, 'media/lib_compojoom/third/jasmine/jasmine-html.js');
     CompojoomHtml::addScriptsToQueue($key, 'media/lib_compojoom/third/jasmine/boot.js');
 }
コード例 #2
0
 /**
  * Execute and display the Template.
  *
  * @param   string  $tpl  The name of the template file to parse; automatically searches through the template paths.
  *
  * @return  void    Outputs directly
  *
  * @see     JViewLegacy::loadTemplate()
  * @since   5.0.0
  */
 public function display($tpl = null)
 {
     $tmpl = JFactory::getApplication()->input->getCmd('tmpl');
     // @todo improve and move
     if ($tmpl == 'component') {
         $result = $this->loadTemplate($tpl);
         if ($result instanceof Exception) {
             return $result;
         }
         echo $result;
         echo $this->copyright;
     } else {
         JHtml::_('formbehavior.chosen', 'select');
         echo CompojoomHtmlCtemplate::getHead($this->cMenu, $this->cMenuEntry, $this->cTitle, $this->cSlogan);
         $result = $this->loadTemplate($tpl);
         if ($result instanceof Exception) {
             return $result;
         }
         echo '<div id="cextension_holder">';
         // Content from the template
         echo $result;
         // Copyright
         echo CompojoomHtmlCtemplate::getFooter($this->copyright);
         echo '</div>';
     }
     // Minify css & js
     CompojoomHtml::external(CompojoomHtml::getScriptQueue($this->extension), CompojoomHtml::getCSSQueue($this->extension), 'media/com_' . $this->extension . '/cache', $this->minify, $this->minify);
 }
コード例 #3
0
ファイル: behavior.php プロジェクト: compojoom/lib_compojoom
 /**
  * Loads qTip2
  *
  * @param   string  $namespace  The namespace vor CompojoomHTML script add
  *
  * @return  void
  */
 public static function qTip2($namespace)
 {
     // Load CSS
     CompojoomHtml::addCSSToQueue($namespace, 'media/lib_compojoom/css/jquery.qtip-2.2.1.min.css');
     // Load JS
     JHTML::_('script', 'media/lib_compojoom/js/jquery.qtip.min.js');
 }