Advertisement
Guest User

head.php - concrete5 - fundamental - IE11 fix

a guest
Mar 5th, 2017
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 5.41 KB | None | 0 0
  1. <?php  defined('C5_EXECUTE') or die("Access Denied.");?>
  2.  
  3. <?php  Use Concrete\Package\Fundamental\Controller\Fonts;?>
  4. <?php  Use Concrete\Core\Http\RequestBase;?>
  5.  
  6. <!DOCTYPE html>
  7. <html class="no-js" lang="<?php  echo Localization::activeLanguage()?>">
  8.     <head>
  9.         <meta charset="utf-8"/>
  10.         <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
  11.        
  12.         <!-- CSS -->
  13.         <link rel="stylesheet" href="<?php  echo $this->getThemePath();?>/css/normalize.min.css"/>
  14.         <link rel="stylesheet" href="<?php  echo $this->getThemePath();?>/css/foundation.custom.min.css"/>
  15.         <?php  echo $html->css($view->getStylesheet('main.less'))?>
  16.         <?php  echo $html->css($view->getStylesheet('legacy-flexbox.css')); ?>
  17.        
  18.         <?php
  19.         // Add our Google fonts CSS customizations
  20.         // If not pretty URIs then we need to add index.php
  21.         $pathAmend = "";
  22.         if(Config::get('concrete.seo.url_rewriting') != 1) {
  23.             $pathAmend = "/index.php";
  24.         }
  25.         if(Config::get('c5hub.fundamental.enable_google_fonts')) {
  26.             echo "\n\t\t". '<link href="//fonts.googleapis.com/css?family='. Fonts::download() .'" rel="stylesheet" type="text/css">';   
  27.             echo "\n\t\t".'<link rel="stylesheet" href="'.BASE_URL.$pathAmend.'/fundamental/css/googlefonts.css"/>';
  28.         }
  29.         ?>
  30.        
  31.         <!-- JS -->
  32.         <script src="<?php  echo $this->getThemePath();?>/js/vendor/modernizr.js" type="text/javascript"></script>
  33.        
  34.         <!-- Background Images -->
  35.         <style>
  36.             @media only screen and (min-width: 40.0625em) {
  37.                 body {
  38.                     background-repeat: <?php  echo Config::get('c5hub.fundamental.body_background_image_repeat');?>;
  39.                     background-size: <?php  echo Config::get('c5hub.fundamental.body_background_image_size');?>;
  40.                     background-attachment: <?php  echo Config::get('c5hub.fundamental.body_background_image_attachment');?>;
  41.                 }
  42.                 .top-section {
  43.                     background-repeat: <?php  echo Config::get('c5hub.fundamental.top_background_image_repeat');?>;
  44.                     background-size: <?php  echo Config::get('c5hub.fundamental.top_background_image_size');?>;
  45.                     background-attachment: <?php  echo Config::get('c5hub.fundamental.top_background_image_attachment');?>;
  46.                 }
  47.                 .branding {
  48.                     background-repeat: <?php  echo Config::get('c5hub.fundamental.branding_background_image_repeat');?>;
  49.                     background-size: <?php  echo Config::get('c5hub.fundamental.branding_background_image_size');?>;
  50.                     background-attachment: <?php  echo Config::get('c5hub.fundamental.branding_background_image_attachment');?>;
  51.                 }
  52.                 .c5h-navigation-wrap {
  53.                     background-repeat: <?php  echo Config::get('c5hub.fundamental.navigation_background_image_repeat');?>;
  54.                     background-size: <?php  echo Config::get('c5hub.fundamental.navigation_background_image_size');?>;
  55.                     background-attachment: <?php  echo Config::get('c5hub.fundamental.navigation_background_image_attachment');?>;
  56.                 }
  57.                 header {
  58.                     background-repeat: <?php  echo Config::get('c5hub.fundamental.header_background_image_repeat');?>;
  59.                     background-size: <?php  echo Config::get('c5hub.fundamental.header_background_image_size');?>;
  60.                     background-attachment: <?php  echo Config::get('c5hub.fundamental.header_background_image_attachment');?>;         
  61.                 }
  62.                 .c5h-banner-wrap, .c5h-banner-wrap-full {
  63.                     background-repeat: <?php  echo Config::get('c5hub.fundamental.banner_background_image_repeat');?>;
  64.                     background-size: <?php  echo Config::get('c5hub.fundamental.banner_background_image_size');?>;
  65.                     background-attachment: <?php  echo Config::get('c5hub.fundamental.banner_background_image_attachment');?>;
  66.                 }
  67.                 .c5h-page-meta-wrap {
  68.                     background-repeat: <?php  echo Config::get('c5hub.fundamental.page_info_background_image_repeat');?>;
  69.                     background-size: <?php  echo Config::get('c5hub.fundamental.page_info_background_image_size');?>;
  70.                     background-attachment: <?php  echo Config::get('c5hub.fundamental.page_info_background_image_attachment');?>;
  71.                 }
  72.                 .main-wrap {
  73.                     background-repeat: <?php  echo Config::get('c5hub.fundamental.main_background_image_repeat');?>;
  74.                     background-size: <?php  echo Config::get('c5hub.fundamental.main_background_image_size');?>;
  75.                     background-attachment: <?php  echo Config::get('c5hub.fundamental.main_background_image_attachment');?>;               
  76.                 }
  77.                 .c5h-footer-top-wrap {
  78.                     background-repeat: <?php  echo Config::get('c5hub.fundamental.footer_top_background_image_repeat');?>;
  79.                     background-size: <?php  echo Config::get('c5hub.fundamental.footer_top_background_image_size');?>;
  80.                     background-attachment: <?php  echo Config::get('c5hub.fundamental.footer_top_background_image_attachment');?>;             
  81.                 }
  82.                 .c5h-footer-bottom-wrap {
  83.                     background-repeat: <?php  echo Config::get('c5hub.fundamental.footer_bottom_background_image_repeat');?>;
  84.                     background-size: <?php  echo Config::get('c5hub.fundamental.footer_bottom_background_image_size');?>;
  85.                     background-attachment: <?php  echo Config::get('c5hub.fundamental.footer_bottom_background_image_attachment');?>;
  86.                 }
  87.             }      
  88.         </style>
  89.        
  90.         <?php  Loader::element('header_required');?>
  91.     </head>
  92.     <body>
  93.        
  94.         <?php
  95.         if(Config::get('c5hub.fundamental.general.boxed') == true) {
  96.             $generalBoxed = ' c5h-boxed';
  97.         }
  98.         if(Config::get('c5hub.fundamental.general.sticky_footer') == true) {
  99.             $stickyFooter = 'c5h-sticky-footer';
  100.         }
  101.         $classArray = array($generalBoxed, $stickyFooter);
  102.         $classes = implode(" ", $classArray);          
  103.         echo '<div class="'.$c->getPageWrapperClass().$classes.'">';                   
  104.         ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement