RtThemesSupport

rt9-v108-header

Oct 3rd, 2013
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 8.25 KB | None | 0 0
  1. <?php
  2. global $portfolio_temp,$blog_temp,$product_temp;
  3. ?>
  4. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  5. <html xmlns="http://www.w3.org/1999/xhtml">
  6. <head>
  7. <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
  8. <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
  9. <?php if(get_option('rttheme_slider_time_out')){?>
  10. <meta name="rttheme_slider_time_out" content="<?php echo get_option('rttheme_slider_time_out')*1000;?>" />
  11. <?php }else{?>
  12. <meta name="rttheme_slider_time_out" content="5110" />
  13. <?php }?>
  14. <?php if(get_option('rttheme_slider_numbers')){?>
  15. <meta name="rttheme_slider_numbers" content="<?php echo get_option('rttheme_slider_numbers');?>" />
  16. <?php }else{?>
  17. <meta name="rttheme_slider_numbers" content="" />
  18. <?php }?>
  19. <meta name="rttheme_template_dir" content="<?php bloginfo('template_directory'); ?>" />
  20. <?php if(get_option('rttheme_disable_cufon')){?>
  21. <meta name="rttheme_disable_cufon" content="<?php echo get_option('rttheme_disable_cufon');?>" />
  22. <?php }?>
  23.  
  24. <title><?php if (is_home()) { bloginfo('name'); ?><?php } elseif (is_category() || is_page() ||is_single()) { ?> <?php } ?><?php wp_title(''); ?></title>
  25.  
  26.  
  27. <link rel="shortcut icon" href="<?php bloginfo('template_directory'); ?>/images/favicon.ico" />
  28. <link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />
  29. <link rel="alternate" type="application/atom+xml" title="<?php bloginfo('name'); ?> Atom Feed" href="<?php bloginfo('atom_url'); ?>" />
  30. <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
  31.  
  32.  
  33. <?php
  34. if (get_option('rttheme_style')){
  35.     $which_theme=get_option('rttheme_style');
  36. }else{
  37.     $which_theme="1";      
  38. }
  39. ?>
  40.  
  41. <link rel="stylesheet" type="text/css" href="<?php bloginfo('template_directory'); ?>/css/style.css" />
  42. <link rel="stylesheet" type="text/css" href="<?php bloginfo('template_directory'); ?>/css/<?php echo $which_theme;?>/style_cf.css" />
  43. <link rel="stylesheet" type="text/css" href="<?php bloginfo('template_directory'); ?>/css/prettyPhoto.css" media="screen" />
  44. <?php wp_head(); ?>
  45. <script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/jquery-ui-1.5.2.packed.js"></script>
  46. <script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/jquery.easing.1.1.1.js"></script>
  47. <script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/jquery.cycle.all.min.js"></script>
  48. <script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/jquery.validate.js"></script>
  49. <script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/jquery.form.js"></script>
  50. <script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/jquery.prettyPhoto.js"></script>
  51. <script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/cufon.js"></script>  
  52. <script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/anivers_400.font.js"></script>  
  53. <script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/script.js"></script>
  54. <!--[if IE 6]>
  55. <link rel="stylesheet" type="text/css" href="<?php bloginfo('template_directory'); ?>/css/ie6.css" />
  56. <script type='text/javascript' src='<?php bloginfo('template_directory'); ?>/js/dd_belated_png.js'></script>
  57. <script>DD_belatedPNG.fix('.png,#numbers a,.first_ul');</script>
  58. <![endif]-->
  59.  
  60. </head>
  61. <body>
  62.  
  63.  
  64. <div id="container">
  65. <!-- header -->
  66. <div id="header">
  67.     <!-- logo -->
  68.             <div id="logo">
  69.         <a href="<?php bloginfo('url'); ?>" title="<?php echo bloginfo('name');?>"><img src="<?php if(get_option('rttheme_logo_url')): echo get_option('rttheme_logo_url'); else:?><?php bloginfo('template_directory'); ?>/images/<?php echo $which_theme;?>/logo.jpg<?php endif;?>" alt="<?php echo bloginfo('name');?>" class="png" /></a>      
  70.         </div>
  71.     <!-- /logo -->
  72.  
  73.     <!-- header right -->
  74.             <div id="header_right">
  75.         <!-- navigation -->
  76.             <div id="navigation">
  77.                
  78.                                    
  79.                    
  80.                     <?php                  
  81.                     if (!function_exists('wp_nav_menu') || get_option("rttheme_wp_menu")):?>
  82.                    
  83.  
  84.                     <div id="dropdown_menu" class="navigation">
  85.                     <ul class="navigation">
  86.                         <li  <?php if (is_home()):?>class="current_page_item" <?php endif;?>><a href="<?php echo get_settings('home'); ?>" title="Home">HOME</a></li>
  87.            
  88.                         <?php
  89.                          
  90.                         /*
  91.                             NAVIGATION
  92.                         */
  93.                             function arayin_degerleri($bak){
  94.                                 if($bak){
  95.                                 $hangisi=get_pages('child_of='.$bak);
  96.                                     foreach($hangisi as $bunlar) {
  97.                                         $bulunan_alt_sayfalar .= ',' . $bunlar->ID;
  98.                                    }
  99.                                 }
  100.                                 return ($bulunan_alt_sayfalar);
  101.                             }
  102.            
  103.                             // drop down menus
  104.                             if (get_option('rttheme_drop_down_menu')){
  105.                                 $depth=3;
  106.                                 $sub_depth=2;
  107.                             }else{
  108.                                 $depth=1;
  109.                                 $sub_depth=0;
  110.                             }                  
  111.            
  112.                             // blog page
  113.                             if(get_option('rttheme_blog_drop_down_menu')){
  114.                                 $blog_page=get_option('rttheme_blog_page');
  115.                             }
  116.            
  117.                             // portfolio page
  118.                             if(get_option('rttheme_portfolio_drop_down_menu')){
  119.                                 $portfolio_page=get_option('rttheme_portf_page');
  120.                             }
  121.            
  122.                             // products page
  123.                             if(get_option('rttheme_product_list_drop_down_menu')){
  124.                                 $product_page=get_option('rttheme_product_list');
  125.                             }
  126.            
  127.                             //once secilmisleri listeleyelim sirasiyla
  128.                            
  129.                             $secilen_sayfalar = split(',', get_option('rttheme_pages[]') );
  130.                             $toplam_secilen_sayfa = count($secilen_sayfalar);
  131.                             for ($i = 0; $i < $toplam_secilen_sayfa -1; $i++) {
  132.                                 $sayfa =get_pages('include='.$secilen_sayfalar[$i].'');
  133.                                 $sayfa_link=get_permalink( $sayfa[0]->ID );
  134.            
  135.                                 if ($sayfa[0]->ID == $blog_page || $sayfa[0]->ID == $product_page || $sayfa[0]->ID == $portfolio_page){
  136.                                 ?>
  137.            
  138.                                 <li  <?php if ($post->ID ==$sayfa[0]->ID):?>class="current_page_item" <?php endif;?> <?php if ($sayfa[0]->ID == $portfolio_page  && $portfolio_temp=="true" && $cat):?>class="current_page_item" <?php endif;?> <?php if ($sayfa[0]->ID == $product_page  && $product_temp=="true" && $cat):?>class="current_page_item" <?php endif;?> <?php if ($sayfa[0]->ID == $blog_page  && $blog_temp=="true" && $cat):?>class="current_page_item" <?php endif;?>><a href="<?php echo $sayfa_link; ?>" title="<?php echo $sayfa[0]->post_title; ?>"><?php echo $sayfa[0]->post_title; ?></a>
  139.                                     <ul>
  140.                                         <?php                              
  141.                                             if ($sayfa[0]->ID ==    $blog_page){
  142.                                                 wp_list_categories('include='.get_option('rttheme_blog_ex_cat[]').'&title_li=&orderby=slug&depth='.$sub_depth.'');
  143.                                             }
  144.                                             elseif($sayfa[0]->ID == $portfolio_page){
  145.                                                 wp_list_categories('include='.get_option('rttheme_portf_ex_cat[]').'&title_li=&orderby=slug&depth='.$sub_depth.'');
  146.                                             }
  147.                                             elseif($sayfa[0]->ID == $product_page){
  148.                                                 wp_list_categories('include='.get_option('rttheme_product_list_ex_cat[]').'&title_li=&orderby=slug&depth='.$sub_depth.'');
  149.                                             }
  150.                                         ?>         
  151.                                    
  152.                                     </ul>
  153.                                 </li>
  154.                                 <?php
  155.                                 }else{
  156.                                         wp_list_pages('include='.$sayfa[0]->ID.','.arayin_degerleri($sayfa[0]->ID).'&title_li=&sort_column=menu_order&depth='.$depth.'' );
  157.                                 }
  158.                             }
  159.                         ?>
  160.                      </ul>
  161.                     </div>
  162.  
  163.                     <?php else://if wp version supports wp menus - since WP 3.0 ?>
  164.                         <?php
  165.                             $menuVars = array(
  166.                                 'menu'            => 'RT Theme Main Navigation Menu',  
  167.                                 'menu_class'      => 'navigation',
  168.                                 'menu_id'         => '',
  169.                                 'container'       => 'div',
  170.                                 'container_class' => 'navigation',
  171.                                 'container_id'    => 'dropdown_menu',
  172.                                 'echo'            => false,
  173.                                 'theme_location'  => 'rt-theme-main-menu'
  174.                             );
  175.                            
  176.                             echo wp_nav_menu($menuVars);
  177.                         ?>
  178.                        
  179.                     <?php endif;?> 
  180.                                    
  181.                
  182.             </div>
  183.         <!-- / navigation  -->
  184.             </div>
  185.     <!-- /header right -->
  186. </div>
  187. <!-- /header -->
  188.  
  189.  
  190. <div id="container1">
  191. <div id="container2">
  192. <div id="container3">    
  193.     <div class="page_curv_top png"></div>
  194.     <div class="content_con png">
Advertisement
Add Comment
Please, Sign In to add comment