Guest User

Untitled

a guest
Jan 19th, 2014
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.78 KB | None | 0 0
  1. <?php
  2. /**
  3. * The Header for the theme.
  4. *
  5. * Displays all of the <head> section and everything up till container title.
  6. *
  7. * @package WordPress
  8. * @subpackage ASI Theme
  9. * @since IOA Framework V 1.0
  10. */
  11. global $super_options, $rad_flag, $meta_data;
  12. /**
  13. * Enigma Conditional Check
  14. * Only works if user is logged in and has admin permissions.
  15. */
  16.  
  17. if( isset($_GET['enigma']) && current_user_can('delete_pages') )
  18. {
  19.  
  20. get_template_part("templates/enigma");
  21. die(); // Don't worry, it's for Styler mode only.
  22. }
  23.  
  24. /**
  25. * Maintaince Mode. Only Admin can view the website
  26. * when maintainence mode is activated from options panel.
  27. */
  28.  
  29. if(isset($super_options[SN.'_uc_mode']) && $super_options[SN.'_uc_mode']=="true" && ! current_user_can('delete_pages') )
  30. {
  31. get_template_part("templates/under_construction");
  32. die();
  33. }
  34.  
  35. if(!isset($meta_data['ioa_custom_template'])) $meta_data['ioa_custom_template'] = 'default';
  36.  
  37. ?>
  38.  
  39. <!DOCTYPE html>
  40.  
  41. <html <?php language_attributes(); ?>>
  42.  
  43.  
  44. <head> <!-- Start of head -->
  45.  
  46. <meta charset="utf-8">
  47.  
  48. <?php if($super_options[SN.'_mobile_view']!="false") : ?>
  49. <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  50. <?php else: ?>
  51. <meta name="viewport" content="width=1080">
  52. <?php endif; ?>
  53.  
  54.  
  55.  
  56.  
  57. <title><?php /* Custom Hook */ if($super_options[SN.'_seo']!="false") IOA_title(); else wp_title(); ?></title>
  58.  
  59.  
  60. <link rel="shortcut icon" href="<?php echo $super_options[SN."_favicon"]; ?>" />
  61. <link rel='tag' id='shortcode_link' href='<?php echo HURL ?>' />
  62. <?php if($super_options[SN."_ipad_retina_icon_logo"]!="") : ?><link rel="apple-touch-icon-precomposed" sizes="144x144" href="<?php echo $super_options[SN."_ipad_retina_icon_logo"]; ?>"> <?php endif; ?>
  63. <?php if($super_options[SN."_iphone7_retina_icon_logo"]!="") : ?><link rel="apple-touch-icon-precomposed" sizes="120x120" href="<?php echo $super_options[SN."_iphone7_retina_icon_logo"]; ?>"> <?php endif; ?>
  64. <?php if($super_options[SN."_iphone_retina_icon_logo"]!="") : ?><link rel="apple-touch-icon-precomposed" sizes="114x114" href="<?php echo $super_options[SN."_iphone_retina_icon_logo"]; ?>"> <?php endif; ?>
  65. <?php if($super_options[SN."_ipad_icon_logo"]!="") : ?><link rel="apple-touch-icon-precomposed" sizes="72x72" href="<?php echo $super_options[SN."_ipad_icon_logo"]; ?>"> <?php endif; ?>
  66. <?php if($super_options[SN."_generic_touch"]!="") : ?><link rel="apple-touch-icon-precomposed" href="<?php echo $super_options[SN."_generic_touch"]; ?>"> <?php endif; ?>
  67.  
  68. <link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<?php bloginfo('rss2_url'); ?>" /><!-- Feed -->
  69. <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
  70.  
  71.  
  72. <?php if ( is_singular() && get_option( 'thread_comments' ) ) wp_enqueue_script( 'comment-reply' ); ?>
  73.  
  74.  
  75. <!--[if IE 9]>
  76. <link rel="stylesheet" type="text/css" href="<?php echo URL; ?>/sprites/stylesheets/ie9.css" />
  77. <![endif]-->
  78.  
  79. <!--[if IE 8]>
  80. <link rel="stylesheet" type="text/css" href="<?php echo URL; ?>/sprites/stylesheets/ie8.css" />
  81. <script type='text/javascript' src='<?php echo URL; ?>/sprites/js/excanvas.js'></script>
  82. <![endif]-->
  83.  
  84. <!--[if IE 7]>
  85. <link rel="stylesheet" type="text/css" href="<?php echo URL; ?>/sprites/fonts/font-awesome-ie7.css" />
  86. <link rel="stylesheet" type="text/css" href="<?php echo URL; ?>/sprites/stylesheets/ie7.css" />
  87. <script type='text/javascript' src='<?php echo URL; ?>/sprites/js/excanvas.js'></script>
  88. <![endif]-->
  89.  
  90. <script type="text/javascript">
  91. <?php echo stripslashes($super_options[SN."_headjs_code"]); ?>
  92.  
  93. </script>
  94. <?php
  95. IOA_head(); // Custom Hook
  96.  
  97. if(isset($_SESSION['rad_mode']) && $_SESSION['rad_mode'] =='active' && !isset($_GET['rad_preview']))
  98. rad_head();
  99. else
  100. wp_head();
  101. ?>
  102. </head> <!-- End of Head -->
  103.  
  104.  
  105. <body <?php body_class( 'style-'.get_option(SN.'_active_etemplate')); ?> itemscope itemtype="http://schema.org/WebPage" > <!-- Start of body -->
  106.  
  107.  
  108.  
  109.  
  110. <?php IOA_body_start(); // Custom Hook ?>
  111.  
  112. <div class="super-wrapper clearfix">
  113. <div class="inner-super-wrapper <?php if( (isset($super_options[SN.'_boxed_layout']) && $super_options[SN.'_boxed_layout']=="true") || $meta_data['ioa_custom_template']=='ioa-template-blank-page' ) echo 'ioa-boxed-layout' ?>" >
  114.  
  115. <?php
  116.  
  117. if($meta_data['ioa_custom_template']!='ioa-template-blank-page')
  118. get_template_part('templates/header-template');
  119.  
  120. if(isset($_SESSION['rad_mode']) && $_SESSION['rad_mode'] =='active' && !isset($_GET['rad_preview'])) :
  121. get_template_part('templates/rad/builder');
  122. get_footer();
  123. die();
  124. endif; ?>
Advertisement
Add Comment
Please, Sign In to add comment