コード例 #1
0
ファイル: configuration.php プロジェクト: Tommar/vino2
 public function attach()
 {
     if (self::$attached) {
         return;
     }
     parent::attach();
     if ($this->environment !== "development") {
         // Get resources
         $compiler = new EasyBlogCompiler();
         $resource = $compiler->getResources();
         // Attach resources
         if (!empty($resource)) {
             $scriptTag = $this->createScriptTag($resource["uri"]);
             $document = JFactory::getDocument();
             $document->addCustomTag($scriptTag);
         }
     }
     self::$attached = true;
 }
コード例 #2
0
 /**
  * This is where all the javascripts would be attached on the page.
  *
  * @since	5.0
  * @access	public
  * @param	string
  * @return	
  */
 public function attach($section = 'site')
 {
     $this->section = $section;
     if (isset(self::$attached[$section])) {
         return;
     }
     parent::attach();
     self::$attached = true;
 }