Advertisement
titans

Ratius Ticker on all pages

Jul 22nd, 2012
24
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 7.99 KB | None | 0 0
  1. <!doctype html> <!-- Start of page HTML5 enabled -->
  2. <head> <!-- Start of head  -->
  3.     <meta charset="utf-8">
  4.     <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  5.      <?php  global $current_user,$helper,$super_options;  if($super_options[SN.'_mobile_view']!="false") : ?>
  6.              <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  7.    <?php else: ?>
  8.              <meta name="viewport" content="width=1080">
  9.    <?php endif; ?>
  10.    
  11.     <title>
  12.      <?php
  13.      
  14.      $logourl = ($super_options[SN."_logo"]=="") ? URL."/sprites/i/logo.png" : $super_options[SN."_logo"];
  15.                      
  16.                         if(is_home()) echo bloginfo(__('name') , 'h-framework' );
  17.                         elseif(is_category()) {
  18.                              _e('Browsing the Category ' , 'h-framework' );
  19.                               wp_title(' ', true, '');
  20.                       } elseif(is_archive()) wp_title('', true,'');
  21.                         elseif(is_search())  echo __( 'Search Results for' , 'h-framework' ).$s;
  22.                         elseif(is_404())     _e( '404 - Page got lost!'  , 'h-framework');
  23.                         else                 bloginfo(__('name' , 'h-framework')); wp_title(__('-' , 'h-framework'), true, '');
  24.                      
  25.       ?></title>
  26.    
  27.     <link rel="shortcut icon" href="<?php echo $super_options[SN."_favicon"]; ?>" />
  28.     <link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<?php bloginfo('rss2_url'); ?>" /><!-- Feed  -->
  29.     <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
  30.     <?php if ( is_singular() && get_option( 'thread_comments' ) )  wp_enqueue_script( 'comment-reply' );     wp_head(); ?>
  31.    
  32.     <!--[if (gte IE 6)&(lte IE 8)]>
  33.       <script type="text/javascript" src="<?php echo URL; ?>/sprites/js/selectivizr-min.js"></script>
  34.       <noscript><link rel="stylesheet" href="[fallback css]" /></noscript>
  35.     <![endif]-->
  36.  
  37.    
  38.     <!--[if IE 9]>
  39.             <link rel="stylesheet" type="text/css" href="<?php echo URL; ?>/sprites/stylesheets/ie9.css" />
  40.     <![endif]-->  
  41.     <!--[if IE 8]>
  42.             <link rel="stylesheet" type="text/css" href="<?php echo URL; ?>/sprites/stylesheets/ie8.css" />
  43.         <![endif]-->  
  44.      <!--[if IE 7]>
  45.             <link rel="stylesheet" type="text/css" href="<?php echo URL; ?>/sprites/stylesheets/ie7.css" />
  46.      <![endif]-->  
  47.      
  48.      <script type="text/javascript">
  49.       <?php
  50.           echo stripslashes($super_options[SN."_headjs_code"]);
  51.       ?>
  52.       </script>
  53.            
  54. </head> <!-- End of Head -->
  55.  
  56. <body> <!-- Start of body  -->
  57. <div class="bg-texture">
  58. <div class="sticky-notice skeleton <?php if( $super_options[SN."_notice_bar"]=="false" ) echo "hide"; ?>">
  59.     <div class=" clearfix">
  60.         <img src="<?php echo $super_options[SN."_nt_image"]; ?>" alt='stickyimage' />
  61.        
  62.         <p class="main-text"><?php echo $helper->format($super_options[SN."_nt_text"],false,false,false); ?></p>
  63.         <a href="<?php echo $super_options[SN."_nt_main_link"] ?>" class="main-link"><?php echo $super_options[SN."_nt_main_label"] ?></a>
  64.        
  65.         <a href="" id="close"><?php echo $super_options[SN."_nt_close_label"] ?></a>
  66.        
  67.     </div>
  68. </div>
  69.  
  70.  
  71.    
  72.  
  73. <div class="super-wrapper clearfix"> <!-- Super Wrapper For ALL the Content -->
  74.  
  75.  
  76.  
  77. <div class="top-area">
  78.   <div class="clearfix ">
  79.   <h1 id="logo"><a href="<?php echo home_url(); ?>"><img src="<?php echo $logourl; ?>" alt="logo" /><span><?php echo get_bloginfo('name').' '.get_bloginfo('description'); ?></span></a></h1>
  80.  
  81.   <?php if($super_options[SN."_banner_enable"]=="true" || $super_options[SN."_banner_enable"]=="")include(HPATH."/helper/topbanner.php"); ?>  
  82.  
  83.   </div>
  84. </div>
  85.  
  86.  
  87. <div id="menu-bar-wrapper" class="">
  88.    <div id="menu-bar">
  89.     <div class="clearfix ">
  90.        
  91.            
  92.            
  93.            <?php  
  94.          
  95.                     if(function_exists("wp_nav_menu"))
  96.                     {
  97.                         wp_nav_menu(array(
  98.                                     'theme_location'=>'primary_nav',
  99.                                     'container'=>'',
  100.                                     'depth' => 3,
  101.                                     'container_class' => 'clearfix',
  102.                                     'menu_id' => 'menu',
  103.                                     'fallback_cb' => false
  104.                                      )
  105.                                     );
  106.                     }
  107.            ?>
  108.     </div>
  109.    </div>
  110.  
  111. </div>
  112.  
  113.  
  114. <div class="mobile-menu">
  115.  
  116. <div class="mobile-menu-wrapper">
  117.  <div class="mobile-menu-bg">
  118.     <select name="" id="mobile-menu" class="">   </select>
  119.  </div>  
  120. </div>
  121.  
  122. </div>
  123.  
  124.  
  125.  <?php if( $super_options[SN.'_ticker']!="false"  ) : ?>
  126.    <div class="ticker clearfix">  <h6><?php echo $super_options[SN.'_ticker_label'];  ?> </h6>        
  127.         <div class=" qSlider clearfix">
  128.                                                      
  129.                                            
  130.                                                       <ul class="slides fadeSlider" data-autoplay="<?php echo $super_options[SN.'_ticker_autoplay']?>" data-pause="<?php echo $super_options[SN.'_ticker_controls']?>" data-time="<?php echo 1000* (int)$super_options[SN.'_ticker_time']?>" data-height='33' data-arrows='<?php echo $super_options[SN.'_ticker_controls']?>'>
  131.                                                       <?php
  132.                                                       $post_type = $super_options[SN."_ticker_post_type"];  
  133.                                                      
  134.                                                         $ordb = strtolower($super_options[SN."_ticker_orderby"]);
  135.                                                       if($ordb=="Comment Count") $ordb = 'comment_count';
  136.                                                       if($ordb=="Random") $ordb = 'rand';
  137.                                                      
  138.                                                       $opts = array(
  139.                                                      
  140.                                                       'post_type' => $post_type ,
  141.                                                       'posts_per_page' => $super_options[SN.'_ticker_no_of_posts'],
  142.                                                       'orderby' => $ordb,
  143.                                                       'order' => $super_options[SN."_ticker_order"],
  144.                                                      
  145.                                                       );
  146.                                                      
  147.                                                    
  148.                                                      
  149.                                                       if($post_type=="post")
  150.                                                       $opts['category_name'] = $super_options[SN."_ticker_posts"];
  151.                                                       else
  152.                                                       {
  153.                                                       $opts['tax'] = "reviewcategories";
  154.                                                       $opts['reviewcategories'] = $super_options[SN."_ticker_posts"];
  155.                                                       }
  156.                                                      // print_r($opts);
  157.                                                       $popPosts = new WP_Query($opts);
  158.                                                      
  159.                                                       $i = 1;
  160.                                                      
  161.                                                       while ($popPosts->have_posts()) : $popPosts->the_post();  $more = 0;  ?>
  162.                                                       <li class="clearfix">
  163.                                                       <h2 class="custom-font"><a href="<?php the_permalink(); ?>"><?php echo $helper->getShortenContent(250,get_the_title() ); ?> <?php   echo "<span class='meta'>".do_shortcode('[post_date format="F j, Y" ]')."</span>";   ?></a></h2>
  164.                                                      
  165.                                                       </li>
  166.                                                       <?php $i++; endwhile; ?>
  167.                                                       </ul>
  168.                                                      
  169.    </div>
  170.    </div>
  171.    <?php endif ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement