public function __construct($idLanguage, $idPage)
 {
     $this->stylesheets = w3sCommonFunctions::loadScript('TemplateFrontendDefaultCSS.yml');
     $this->javascripts = w3sCommonFunctions::loadScript('TemplateFrontendDefaultJS.yml');
     $this->idLanguage = $idLanguage;
     $this->idPage = $idPage;
     parent::__construct($idLanguage, $idPage);
 }
Example #2
0
 /**
  * Sets the toolbar buttons from a yml file. See the tbMenuManager.yml for a full example
  * 
  * @param array
  *
  */
 public function fromYml($fileName)
 {
     $this->toolbar = w3sCommonFunctions::loadScript($fileName);
 }
 /**
  * Draws the panel that contains the current section used. Renders the deafult
  * section, that is the fileManager
  *
  * @return string The drawed panel
  *
  */
 protected function drawContentsTabs()
 {
     $tabs = w3sCommonFunctions::loadScript('cpTabs.yml');
     $result = '';
     foreach ($tabs as $key => $tab) {
         $content = '';
         if ($key == 1) {
             $fileManager = new w3sFileManager($this->currentUser, $this->idLanguage, $this->currentPage);
             $content = $fileManager->render();
         }
         $result .= sprintf('<div id="w3s_tab_%s" class="w3s_tabs">%s</div>', $key, $content);
     }
     return $result;
 }
Example #4
0
 /**
  * Sets the button's attributes from a yml file.
  * See the editorButtonClose.yml for a full example
  * 
  * @param array
  *
  */
 public function fromYml($fileName)
 {
     $this->fromArray(w3sCommonFunctions::loadScript($fileName));
 }