public function __construct() { parent::__construct(); // Default configuration $this->getSite()->setTitle('mp3vibez'); $this->getSite()->addWrappedCss('style.css'); $this->getSite()->addWrappedJs('global.js'); }
public function __construct(array $stack) { parent::__construct(); $this->getSite()->addWrappedCss('css/pecee-debug.css', 'debug'); $this->getSite()->addWrappedJs('js/pecee-debug.js', 'debug'); $this->setTemplate(null); $this->stack = $stack; }
public function __construct() { parent::__construct(); // GetSite contains information about the site - here we can add javascript and change styling etc. $this->getSite()->setTitle('NinjaImg.com'); $this->getSite()->setDescription('Let our Ninja\'s manage your files directly from S3, FTP or SFTP with a breeze, so you can focus on your business.'); // Make sure that requests from other than ninjaimg.com are redirected if (!$this->getSite()->getDebug() && strtolower(request()->getHost()) != Registry::getInstance()->get('host')) { redirect('https://' . Registry::getInstance()->get('host') . $_SERVER['REQUEST_URI'], 301); } $this->mainMenu = new Menu(); $this->mainMenu->addClass('nav navbar-nav navbar-right'); }
public function __construct() { if (Cookie::get('Locale') && in_array(strtolower(Cookie::get('Locale')), Helper::$Locales)) { Locale::getInstance()->setLocale(Cookie::get('Locale')); } parent::__construct(); $this->getSite()->addWrappedCss('style.css'); $this->getSite()->addWrappedJs('jquery-1.6.2.min.js'); $this->getSite()->addWrappedJs('global.js'); $this->getSite()->setTitle('mp3vibez.com'); $this->globalMenu = new \Pecee\UI\Menu\Menu(); $this->globalMenu->addItem(lang('Search.Search'), '#' . url())->addClass('active'); }
public function __construct() { parent::__construct(); // GetSite contains information about the site - here we can add javascript and change styling etc. $this->getSite()->setTitle('Pecee Demo Project'); $this->getSite()->addWrappedCss('../bower/bootstrap/dist/css/bootstrap.min.css'); $this->getSite()->addWrappedCss('../bower/bootstrap/dist/css/bootstrap-theme-min.css'); $this->getSite()->addWrappedCss('style.css'); $this->getSite()->addWrappedJs('../bower/jquery/dist/jquery.min.js'); $this->getSite()->addWrappedJs('../bower/bootstrap/dist/js/bootstrap.min.js'); $this->getSite()->addWrappedJs('global.js'); $this->mainMenu = new Menu(); $this->mainMenu->addClass('nav navbar-nav'); $this->mainMenu->addItem(lang('Home.Home'), url('home')); $this->mainMenu->addItem(lang('Companies.Companies'), url('companies', ['id' => ''])); $this->mainMenu->addItem(lang('Contact.Contact'), url('contact')); }
public function __construct() { parent::__construct(); $this->getSite()->addWrappedJs('pecee-widget.js'); $this->_pHtmlCacheDir = $_ENV['base_path'] . 'cache/phtml'; }