Exemplo n.º 1
0
 public function __construct($template, $params = array())
 {
     parent::__construct();
     $this->_template = $template;
     $this->_params = $params;
     $this->_page_title = __('Install Symphony');
 }
 function __construct(&$parent)
 {
     parent::__construct();
     $this->Html->setElementStyle('html');
     $this->_Parent = $parent;
     $this->_navigation = array();
     $this->Alert = NULL;
 }
Exemplo n.º 3
0
 function __construct()
 {
     parent::__construct();
     $this->_query_string = parent::__buildQueryString(array('debug'));
     if (!empty($this->_query_string)) {
         $this->_query_string = '&' . General::sanitize($this->_query_string);
     }
 }
Exemplo n.º 4
0
 public function __construct(Site $site, $url = null)
 {
     if (!isset($url)) {
         $url = $site->requestUrl;
     }
     $template = $site->modules->getModulePrefix('PageSystem') . '/page/nopage';
     parent::__construct($site, null, $template, array('status' => '404 Not Found', 'requestUrl' => $url));
     $this->headers->setContentTypeCharset('utf-8');
     $this->headers->setStatus(404, 'Not Found');
     $this->title = $this->headers->getStatus();
 }
Exemplo n.º 5
0
 public function __construct(&$parent)
 {
     parent::__construct($parent);
     $this->addHeaderToPage('Content-Type', 'text/html; charset=UTF-8');
     $this->Html->setElementStyle('html');
     $this->Html->setDTD('<!DOCTYPE html>');
     //PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"
     $this->Html->setAttribute('lang', Lang::get());
     $this->addElementToHead(new XMLElement('meta', NULL, array('http-equiv' => 'Content-Type', 'content' => 'text/html; charset=UTF-8')), 0);
     $this->addStylesheetToHead(SYMPHONY_URL . '/assets/basic.css', 'screen', 40);
     $this->addStylesheetToHead(SYMPHONY_URL . '/assets/login.css', 'screen', 40);
     $this->setTitle(__('%1$s &ndash; %2$s', array(__('Symphony'), __('Login'))));
     Administration::instance()->Profiler->sample('Page template created', PROFILE_LAP);
 }
Exemplo n.º 6
0
 public function __construct()
 {
     parent::__construct();
     $this->addHeaderToPage('Content-Type', 'text/html; charset=UTF-8');
     $this->Html->setElementStyle('html');
     $this->Html->setDTD('<!DOCTYPE html>');
     $this->Html->setAttribute('lang', Lang::get());
     $this->addElementToHead(new XMLElement('meta', null, array('charset' => 'UTF-8')), 0);
     $this->addElementToHead(new XMLElement('meta', null, array('http-equiv' => 'X-UA-Compatible', 'content' => 'IE=edge,chrome=1')), 1);
     $this->addElementToHead(new XMLElement('meta', null, array('name' => 'viewport', 'content' => 'width=device-width, initial-scale=1')), 2);
     $this->addStylesheetToHead(APPLICATION_URL . '/assets/css/symphony.min.css', 'screen', null, false);
     $this->setTitle(__('%1$s &ndash; %2$s', array(__('Login'), Symphony::Configuration()->get('sitename', 'general'))));
     $this->Body->setAttribute('id', 'login');
     Symphony::Profiler()->sample('Page template created', PROFILE_LAP);
 }
Exemplo n.º 7
0
 function __construct(&$parent)
 {
     parent::__construct();
     $this->_Parent = $parent;
     $this->_invalidPassword = false;
     $this->addHeaderToPage('Content-Type', 'text/html; charset=UTF-8');
     $this->Html->setElementStyle('html');
     $this->Html->setDTD('<!DOCTYPE html>');
     //PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"
     $this->Html->setAttribute('lang', __LANG__);
     $this->addElementToHead(new XMLElement('meta', NULL, array('http-equiv' => 'Content-Type', 'content' => 'text/html; charset=UTF-8')), 0);
     $this->addStylesheetToHead(URL . '/symphony/assets/login.css', 'screen', 40);
     $this->setTitle(__('%1$s &ndash; %2$s', array(__('Symphony'), __('Login'))));
     $this->_Parent->Profiler->sample('Page template created', PROFILE_LAP);
 }
Exemplo n.º 8
0
 function __construct(&$parent)
 {
     parent::__construct();
     $this->_Parent = $parent;
     $this->_invalidPassword = false;
     $this->addHeaderToPage('Content-Type', 'text/html; charset=UTF-8');
     $this->Html->setElementStyle('html');
     $this->Html->setDTD('<!DOCTYPE html>');
     //PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"
     $this->Html->setAttribute('lang', __LANG__);
     $this->addElementToHead(new XMLElement('meta', NULL, array('http-equiv' => 'Content-Type', 'content' => 'text/html; charset=UTF-8')), 0);
     $this->addElementToHead(new XMLElement('link', NULL, array('rel' => 'icon', 'href' => URL . '/symphony/assets/images/bookmark.png', 'type' => 'image/png')), 20);
     $this->addStylesheetToHead(URL . '/symphony/assets/login.css', 'screen', 40);
     $this->addElementToHead(new XMLElement('!--[if IE]><link rel="stylesheet" href="' . URL . '/symphony/assets/legacy.css" type="text/css"><![endif]--'), 50);
     $this->addScriptToHead(URL . '/symphony/assets/admin.js', 60);
     $this->setTitle(__('%1$s &ndash; %2$s', array(__('Symphony'), __('Login'))));
     $this->_Parent->Profiler->sample('Page template created', PROFILE_LAP);
 }
Exemplo n.º 9
0
 public function __construct()
 {
     //cria a p�gina e define o t�tulo
     parent::__construct(IConfig::INDEX_TITLE);
     //define os Metadados do HEAD
     $this->setCharset(IConfig::CHARSET);
     $this->setOwner(IConfig::OWNER);
     $this->setSubject(IConfig::SUBJECT);
     $this->setRating();
     $this->setDescription(IConfig::DESCRIPTION);
     $this->setAbstract(IConfig::ABSTRACT_DESCRIPTION);
     $this->setKeywords(IConfig::KEYWORDS);
     $this->setRevisitAfter(5);
     $this->setLanguage(IConfig::LANGUAGE);
     $this->setRobots();
     $this->setPragma();
     //define o arquivo de Estilos em Cascata
     $this->addStyleLink("default.css");
     $this->addStyleLink("jquery/jquery.css");
     //define os arquivos de Scripts
     $this->addScriptLink("jquery.min.js");
     $this->addScriptLink("jquery-ui.min.js");
 }
 /**
  * Constructor takes the Administration instance and sets it
  * to be the `$this->_Parent`. Calls the parent constructor to set up
  * the basic HTML, Head and Body XMLElements. This function
  * also sets the XMLElement type to be HTML, instead of XML
  *
  * @param Administration $parent
  *  The Administration object that this page has been created from
  *  passed by reference
  */
 public function __construct(Administration &$parent)
 {
     parent::__construct();
     $this->Html->setElementStyle('html');
     $this->_Parent = $parent;
 }
 /**
  * Constructor calls the parent constructor to set up
  * the basic HTML, Head and Body `XMLElement`'s. This function
  * also sets the `XMLElement` element style to be HTML, instead of XML
  */
 public function __construct()
 {
     parent::__construct();
     $this->Html->setElementStyle('html');
 }
Exemplo n.º 12
0
 function __construct(&$parent)
 {
     parent::__construct();
     $this->_Parent = $parent;
 }
 public function __construct(&$parent)
 {
     parent::__construct($parent);
 }