RtThemesSupport

rt15-header-wpml-logo

Sep 15th, 2013
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.51 KB | None | 0 0
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
  3. <head>
  4. <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
  5.  
  6. <?php
  7. global $responsive_design;
  8. if ($responsive_design):?>
  9. <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, text-size=normal">
  10. <?php endif;?>
  11.  
  12. <?php if (get_option( 'rttheme_favicon_url')):?><link rel="icon" type="image/png" href="<?php echo get_option( 'rttheme_favicon_url');?>"><?php endif;?>
  13.  
  14. <title><?php if (is_home() || is_front_page() ): bloginfo('name'); else: wp_title('');endif; ?></title>
  15. <link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />
  16. <link rel="alternate" type="application/atom+xml" title="<?php bloginfo('name'); ?> Atom Feed" href="<?php bloginfo('atom_url'); ?>" />
  17. <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
  18.  
  19. <?php if ( is_singular() && get_option( 'thread_comments' ) ) wp_enqueue_script( 'comment-reply' ); //thread comments?>
  20. <?php echo get_option(THEMESLUG.'_space_for_head');?>
  21. <?php wp_head(); ?>
  22. </head>
  23. <body <?php body_class(); ?>>
  24.  
  25. <!-- background wrapper -->
  26. <div id="container">
  27.  
  28.  
  29. <?php
  30. #
  31. # 100% Backgrounds
  32. #
  33.  
  34. // Check Wordpress Background
  35. $background = get_background_image();
  36. $background_color = get_background_color();
  37.  
  38. //if wordpress background tool not used
  39. if(!$background):
  40. ?>
  41. <!-- background image -->
  42. <div class="background_pic_border">
  43. <div class="background_pic_holder">
  44.  
  45. <?php
  46. $background_image= get_option( THEMESLUG.'_background_image_url' );
  47. $randomized_banckground_images = trim(get_option( THEMESLUG.'_background_image_urls'));
  48.  
  49. //Static 100% Bakcround
  50. if($background_image && !$randomized_banckground_images){
  51. echo '<img src="'.$background_image.'" width="100%" alt="" />';
  52. }
  53.  
  54. //Randomized 100% Backgrounds
  55. if($randomized_banckground_images){
  56. $random_background = trim(preg_replace("/(^[\r\n]*|[\r\n]+)[\s\t]*[\r\n]+/", "\n", $randomized_banckground_images));
  57. $images=explode("\n", $random_background);
  58. $random_number = rand(0, count($images)-1);
  59. echo '<img src="'.$images[$random_number].'" width="100%" alt="" />';
  60. }
  61.  
  62. ?></div>
  63.  
  64. <?php if(!get_option(THEMESLUG.'_remove_curvs')):?>
  65. <div class="back-curv"></div>
  66. <?php else:?>
  67. <div class="back-line"></div>
  68. <?php endif;?>
  69.  
  70. </div>
  71. <?php endif;?>
  72.  
  73. <!-- wrapper -->
  74. <div id="wrapper">
  75. <?php $your_logo_url=get_option('rttheme_logo_url');
  76. if(ICL_LANGUAGE_CODE=='en'){
  77. $your_logo_url='http://yourwebsite.com/files/2013/09/logo-english.png';
  78. }
  79. else
  80. if(ICL_LANGUAGE_CODE=='de'){
  81. $your_logo_url='http://yourwebsite.nl/files/2013/09/logo-german.png';
  82. }
  83. ?>
  84. <?php if ($responsive_design):?>
  85. <div id="mobile_header">
  86. <!-- logo -->
  87. <div id="mobile_logo">
  88. <?php if(get_option('rttheme_logo_url')):?>
  89. <a href="<?php echo BLOGURL; ?>" title="<?php echo bloginfo('name');?>"><img src="<?php echo $your_logo_url; ?>" alt="<?php echo bloginfo('name');?>" class="png" /></a>
  90. <?php else:?>
  91. <h1 class="cufon logo"><a href="<?php echo BLOGURL; ?>" title="<?php echo bloginfo('name');?>"><?php echo bloginfo('name');?></a></h1>
  92. <?php endif;?>
  93. </div>
  94. <!-- /logo -->
  95.  
  96. <?php if ( has_nav_menu( 'rt-theme-main-navigation' ) ): // check if user created a custom menu and assinged to the rt-theme's location ?>
  97. <!-- Mobile Menu -->
  98. <?php
  99. //call the main menu once again for mobile navigation
  100. $MobilemenuVars = array(
  101. 'menu_id' => "MobileMainNavigation",
  102. 'echo' => false,
  103. 'container' => 'div',
  104. 'container_class' => '',
  105. 'container_id' => 'MobileMainNavigation-Background',
  106. 'theme_location' => 'rt-theme-main-navigation',
  107. 'dropdown_title' => __('-- Main Menu --',"rt_theme"),
  108. 'indent_string' => '- ',
  109. 'indent_after' => ''
  110. );
  111.  
  112. $mobile_menu=dropdown_menu($MobilemenuVars);
  113. echo ($mobile_menu);
  114. ?>
  115. <!-- / Mobile Menu -->
  116. <?php else:?>
  117. <!-- Mobile Menu -->
  118. <?php
  119. //call the main menu once again for mobile navigation
  120. $MobilemenuVars = array(
  121. 'menu' => 'RT Theme Main Navigation Menu',
  122. 'menu_id' => "MobileMainNavigation",
  123. 'echo' => false,
  124. 'container' => 'div',
  125. 'container_class' => '',
  126. 'container_id' => 'MobileMainNavigation-Background',
  127. 'theme_location' => 'rt-theme-main-navigation',
  128. 'dropdown_title' => __('-- Main Menu --',"rt_theme"),
  129. 'indent_string' => '- ',
  130. 'indent_after' => ''
  131. );
  132.  
  133. $mobile_menu=dropdown_menu($MobilemenuVars);
  134. echo ($mobile_menu);
  135. ?>
  136. <!-- / Mobile Menu -->
  137. <?php endif;?>
  138. </div>
  139. <?php endif;?>
  140.  
  141. <!-- content -->
  142. <div id="content">
  143.  
  144. <?php if( (( get_option(THEMESLUG."_slider_active") && is_front_page()) || is_front_page() ) && (!get_option(THEMESLUG.'_remove_curvs')) ) echo '<div class="slider_cover"></div>'; ?>
  145. <div class="content_top <?php if(get_option(THEMESLUG.'_remove_curvs') && !is_front_page()):?>no_curv<?php endif;?> <?php if(get_option(THEMESLUG.'_remove_curvs') && is_front_page()):?>no_curv_home<?php endif;?> "></div>
  146. <div class="content">
Advertisement
Add Comment
Please, Sign In to add comment