Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php defined('C5_EXECUTE') or die("Access Denied.");?>
- <?php Use Concrete\Package\Fundamental\Controller\Fonts;?>
- <?php Use Concrete\Core\Http\RequestBase;?>
- <!DOCTYPE html>
- <html class="no-js" lang="<?php echo Localization::activeLanguage()?>">
- <head>
- <meta charset="utf-8"/>
- <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
- <!-- CSS -->
- <link rel="stylesheet" href="<?php echo $this->getThemePath();?>/css/normalize.min.css"/>
- <link rel="stylesheet" href="<?php echo $this->getThemePath();?>/css/foundation.custom.min.css"/>
- <?php echo $html->css($view->getStylesheet('main.less'))?>
- <?php echo $html->css($view->getStylesheet('legacy-flexbox.css')); ?>
- <?php
- // Add our Google fonts CSS customizations
- // If not pretty URIs then we need to add index.php
- $pathAmend = "";
- if(Config::get('concrete.seo.url_rewriting') != 1) {
- $pathAmend = "/index.php";
- }
- if(Config::get('c5hub.fundamental.enable_google_fonts')) {
- echo "\n\t\t". '<link href="//fonts.googleapis.com/css?family='. Fonts::download() .'" rel="stylesheet" type="text/css">';
- echo "\n\t\t".'<link rel="stylesheet" href="'.BASE_URL.$pathAmend.'/fundamental/css/googlefonts.css"/>';
- }
- ?>
- <!-- JS -->
- <script src="<?php echo $this->getThemePath();?>/js/vendor/modernizr.js" type="text/javascript"></script>
- <!-- Background Images -->
- <style>
- @media only screen and (min-width: 40.0625em) {
- body {
- background-repeat: <?php echo Config::get('c5hub.fundamental.body_background_image_repeat');?>;
- background-size: <?php echo Config::get('c5hub.fundamental.body_background_image_size');?>;
- background-attachment: <?php echo Config::get('c5hub.fundamental.body_background_image_attachment');?>;
- }
- .top-section {
- background-repeat: <?php echo Config::get('c5hub.fundamental.top_background_image_repeat');?>;
- background-size: <?php echo Config::get('c5hub.fundamental.top_background_image_size');?>;
- background-attachment: <?php echo Config::get('c5hub.fundamental.top_background_image_attachment');?>;
- }
- .branding {
- background-repeat: <?php echo Config::get('c5hub.fundamental.branding_background_image_repeat');?>;
- background-size: <?php echo Config::get('c5hub.fundamental.branding_background_image_size');?>;
- background-attachment: <?php echo Config::get('c5hub.fundamental.branding_background_image_attachment');?>;
- }
- .c5h-navigation-wrap {
- background-repeat: <?php echo Config::get('c5hub.fundamental.navigation_background_image_repeat');?>;
- background-size: <?php echo Config::get('c5hub.fundamental.navigation_background_image_size');?>;
- background-attachment: <?php echo Config::get('c5hub.fundamental.navigation_background_image_attachment');?>;
- }
- header {
- background-repeat: <?php echo Config::get('c5hub.fundamental.header_background_image_repeat');?>;
- background-size: <?php echo Config::get('c5hub.fundamental.header_background_image_size');?>;
- background-attachment: <?php echo Config::get('c5hub.fundamental.header_background_image_attachment');?>;
- }
- .c5h-banner-wrap, .c5h-banner-wrap-full {
- background-repeat: <?php echo Config::get('c5hub.fundamental.banner_background_image_repeat');?>;
- background-size: <?php echo Config::get('c5hub.fundamental.banner_background_image_size');?>;
- background-attachment: <?php echo Config::get('c5hub.fundamental.banner_background_image_attachment');?>;
- }
- .c5h-page-meta-wrap {
- background-repeat: <?php echo Config::get('c5hub.fundamental.page_info_background_image_repeat');?>;
- background-size: <?php echo Config::get('c5hub.fundamental.page_info_background_image_size');?>;
- background-attachment: <?php echo Config::get('c5hub.fundamental.page_info_background_image_attachment');?>;
- }
- .main-wrap {
- background-repeat: <?php echo Config::get('c5hub.fundamental.main_background_image_repeat');?>;
- background-size: <?php echo Config::get('c5hub.fundamental.main_background_image_size');?>;
- background-attachment: <?php echo Config::get('c5hub.fundamental.main_background_image_attachment');?>;
- }
- .c5h-footer-top-wrap {
- background-repeat: <?php echo Config::get('c5hub.fundamental.footer_top_background_image_repeat');?>;
- background-size: <?php echo Config::get('c5hub.fundamental.footer_top_background_image_size');?>;
- background-attachment: <?php echo Config::get('c5hub.fundamental.footer_top_background_image_attachment');?>;
- }
- .c5h-footer-bottom-wrap {
- background-repeat: <?php echo Config::get('c5hub.fundamental.footer_bottom_background_image_repeat');?>;
- background-size: <?php echo Config::get('c5hub.fundamental.footer_bottom_background_image_size');?>;
- background-attachment: <?php echo Config::get('c5hub.fundamental.footer_bottom_background_image_attachment');?>;
- }
- }
- </style>
- <?php Loader::element('header_required');?>
- </head>
- <body>
- <?php
- if(Config::get('c5hub.fundamental.general.boxed') == true) {
- $generalBoxed = ' c5h-boxed';
- }
- if(Config::get('c5hub.fundamental.general.sticky_footer') == true) {
- $stickyFooter = 'c5h-sticky-footer';
- }
- $classArray = array($generalBoxed, $stickyFooter);
- $classes = implode(" ", $classArray);
- echo '<div class="'.$c->getPageWrapperClass().$classes.'">';
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement