Beispiel #1
0
 public function __construct(Request $request)
 {
     parent::__construct($request);
     $this->theme = Theme::byRequest();
     $this->theme->register($this->is_auth);
     $this->globalViewParams = ['site_locale' => $this->localeCode, 'site_version' => appVersion(), 'site_name' => appName(), 'site_logo' => appLogo(), 'site_keywords' => appKeywords(), 'site_short_name' => appShortName(), 'site_description' => appDescription(), 'site_author' => appAuthor(), 'site_email' => appEmail(), 'site_domain' => appDomain(), 'site_home_url' => homeUrl(), 'is_auth' => $this->is_auth, 'auth_user' => $this->auth_user, 'session_id' => $request->session()->getId()];
     foreach ($this->globalViewParams as $key => $value) {
         view()->share($key, $value);
     }
 }
Beispiel #2
0
 public function __construct()
 {
     parent::__construct();
     $this->ogType = 'website';
     $this->ogUrl = currentUrl();
     $this->ogTitle = appName();
     $this->ogDescription = appDescription();
     $this->ogImage = appLogo();
     $this->ogSiteName = appName();
     $this->ogLocale = currentFullLocaleCode();
     $this->ogLocaleAlternate = allSupportedFullLocaleCodes();
 }
Beispiel #3
0
echo HTML::insertScript('event.js');
echo HTML::insertScript('pop_window.js');
if (isset($isMd5) && $isMd5) {
    echo HTML::insertScript('md5.js');
    echo HTML::insertScript('password.php');
}
if (isset($focusFormField) && !empty($focusFormField)) {
    echo HTML::start('script', array('src' => '../js/focus.php?field=' . $focusFormField, 'type' => 'text/javascript'));
    echo HTML::end('script');
}
echo HTML::end('head');
echo HTML::start('body');
require_once "../layout/component.php";
echo HTML::start('div', array('id' => 'wrap'));
echo HTML::start('div', array('id' => 'header'));
echo appLogo();
echo HTML::para(HTML::link(_("Skip over navigation"), '#main', null, array('accesskey' => 2)), array('id' => 'skip_navigation'));
echo shortcuts(isset($tab) ? $tab : null, isset($nav) ? $nav : null);
if (isset($tab)) {
    echo menuBar($tab);
}
echo HTML::end('div');
// #header
echo HTML::rule();
echo HTML::start('div', array('id' => 'main'));
echo HTML::start('div', array('id' => 'content'));
if (defined("OPEN_DEMO") && OPEN_DEMO) {
    echo Msg::info(_("This is a demo version"));
}
/**
 * Display "public" message(s) from controller if available