function __construct() { parent::__construct(); $this->page = Content::get(URL::getCurrent()); // get control and location variables $this->ignore_seo_image_field = $this->fetchConfig('ignore_seo_image_field'); $this->sharable_image_default = $this->fetchConfig('default_image'); $this->sharable_image_source = $this->fetchConfig('sharable_image_source'); // get the variables that are actually printed in output $this->site_url = URL::getSiteURL(); $this->page_url = URL::tidy($this->site_url . URL::getCurrent(true)); $this->description = $this->getPageDescription(); $this->twitter = $this->fetchConfig('twitter'); $this->twitter_default_message = $this->fetchConfig('twitter_default_message'); $this->site_name = Config::getSiteName(); $this->image_url = $this->getShareableImage(); $this->page_title = $this->site_name . " | " . $this->getPageTitle(); $this->google_analytics = $this->fetchConfig('google_analytics_key'); }
<!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=1.0"> <title><?php echo Config::getSiteName(); ?> <?php echo Localization::fetch('login'); ?> </title> <?php if (!Config::get('disable_google_fonts', false)) { ?> <link rel="stylesheet" href="//fonts.googleapis.com/css?family=Raleway:400,700|Open+Sans:400italic,400,600" /> <?php } ?> <link rel="stylesheet" href="<?php echo Path::tidy(Config::getSiteRoot() . '/' . $app->config['theme_path']); ?> css/ascent.min.css"> <link rel="icon" href="<?php echo Path::tidy(Config::getSiteRoot() . '/' . $app->config['theme_path']); ?> img/favicon.png" sizes="16x16" type="img/png" /> <script type="text/javascript" src="<?php echo Path::tidy(Config::getSiteRoot() . '/' . $app->config['theme_path']); ?> js/ascent.min.js"></script>
public static function get_site_name() { Log::warn("Use of Statamic::get_site_name() is deprecated. Use Config::getSiteName() instead.", "core", "Statamic"); return Config::getSiteName(); }