Exemple #1
0
 /**
  * Initializes javascript on the head of the page.
  *
  * @since	1.0
  * @access	public
  */
 public function initScripts()
 {
     if (self::$scriptsLoaded) {
         return;
     }
     $configuration = FD::getInstance('Configuration');
     $configuration->attach();
     // TODO: Find a better place to define map language code this.
     $document = JFactory::getDocument();
     $document->addCustomTag('<meta name="foundry:location:language" content="' . FD::config()->get('general.location.language', 'en') . '" />');
     self::$scriptsLoaded = true;
 }