Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!doctype html> <!-- Start of page HTML5 enabled -->
- <head> <!-- Start of head -->
- <meta charset="utf-8">
- <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
- <?php global $current_user,$helper,$super_options; if($super_options[SN.'_mobile_view']!="false") : ?>
- <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
- <?php else: ?>
- <meta name="viewport" content="width=1080">
- <?php endif; ?>
- <title>
- <?php
- $logourl = ($super_options[SN."_logo"]=="") ? URL."/sprites/i/logo.png" : $super_options[SN."_logo"];
- if(is_home()) echo bloginfo(__('name') , 'h-framework' );
- elseif(is_category()) {
- _e('Browsing the Category ' , 'h-framework' );
- wp_title(' ', true, '');
- } elseif(is_archive()) wp_title('', true,'');
- elseif(is_search()) echo __( 'Search Results for' , 'h-framework' ).$s;
- elseif(is_404()) _e( '404 - Page got lost!' , 'h-framework');
- else bloginfo(__('name' , 'h-framework')); wp_title(__('-' , 'h-framework'), true, '');
- ?></title>
- <link rel="shortcut icon" href="<?php echo $super_options[SN."_favicon"]; ?>" />
- <link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<?php bloginfo('rss2_url'); ?>" /><!-- Feed -->
- <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
- <?php if ( is_singular() && get_option( 'thread_comments' ) ) wp_enqueue_script( 'comment-reply' ); wp_head(); ?>
- <!--[if (gte IE 6)&(lte IE 8)]>
- <script type="text/javascript" src="<?php echo URL; ?>/sprites/js/selectivizr-min.js"></script>
- <noscript><link rel="stylesheet" href="[fallback css]" /></noscript>
- <![endif]-->
- <!--[if IE 9]>
- <link rel="stylesheet" type="text/css" href="<?php echo URL; ?>/sprites/stylesheets/ie9.css" />
- <![endif]-->
- <!--[if IE 8]>
- <link rel="stylesheet" type="text/css" href="<?php echo URL; ?>/sprites/stylesheets/ie8.css" />
- <![endif]-->
- <!--[if IE 7]>
- <link rel="stylesheet" type="text/css" href="<?php echo URL; ?>/sprites/stylesheets/ie7.css" />
- <![endif]-->
- <script type="text/javascript">
- <?php
- echo stripslashes($super_options[SN."_headjs_code"]);
- ?>
- </script>
- </head> <!-- End of Head -->
- <body> <!-- Start of body -->
- <div class="bg-texture">
- <div class="sticky-notice skeleton <?php if( $super_options[SN."_notice_bar"]=="false" ) echo "hide"; ?>">
- <div class=" clearfix">
- <img src="<?php echo $super_options[SN."_nt_image"]; ?>" alt='stickyimage' />
- <p class="main-text"><?php echo $helper->format($super_options[SN."_nt_text"],false,false,false); ?></p>
- <a href="<?php echo $super_options[SN."_nt_main_link"] ?>" class="main-link"><?php echo $super_options[SN."_nt_main_label"] ?></a>
- <a href="" id="close"><?php echo $super_options[SN."_nt_close_label"] ?></a>
- </div>
- </div>
- <div class="super-wrapper clearfix"> <!-- Super Wrapper For ALL the Content -->
- <div class="top-area">
- <div class="clearfix ">
- <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>
- <?php if($super_options[SN."_banner_enable"]=="true" || $super_options[SN."_banner_enable"]=="")include(HPATH."/helper/topbanner.php"); ?>
- </div>
- </div>
- <div id="menu-bar-wrapper" class="">
- <div id="menu-bar">
- <div class="clearfix ">
- <?php
- if(function_exists("wp_nav_menu"))
- {
- wp_nav_menu(array(
- 'theme_location'=>'primary_nav',
- 'container'=>'',
- 'depth' => 3,
- 'container_class' => 'clearfix',
- 'menu_id' => 'menu',
- 'fallback_cb' => false
- )
- );
- }
- ?>
- </div>
- </div>
- </div>
- <div class="mobile-menu">
- <div class="mobile-menu-wrapper">
- <div class="mobile-menu-bg">
- <select name="" id="mobile-menu" class=""> </select>
- </div>
- </div>
- </div>
- <?php if( $super_options[SN.'_ticker']!="false" ) : ?>
- <div class="ticker clearfix"> <h6><?php echo $super_options[SN.'_ticker_label']; ?> </h6>
- <div class=" qSlider clearfix">
- <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']?>'>
- <?php
- $post_type = $super_options[SN."_ticker_post_type"];
- $ordb = strtolower($super_options[SN."_ticker_orderby"]);
- if($ordb=="Comment Count") $ordb = 'comment_count';
- if($ordb=="Random") $ordb = 'rand';
- $opts = array(
- 'post_type' => $post_type ,
- 'posts_per_page' => $super_options[SN.'_ticker_no_of_posts'],
- 'orderby' => $ordb,
- 'order' => $super_options[SN."_ticker_order"],
- );
- if($post_type=="post")
- $opts['category_name'] = $super_options[SN."_ticker_posts"];
- else
- {
- $opts['tax'] = "reviewcategories";
- $opts['reviewcategories'] = $super_options[SN."_ticker_posts"];
- }
- // print_r($opts);
- $popPosts = new WP_Query($opts);
- $i = 1;
- while ($popPosts->have_posts()) : $popPosts->the_post(); $more = 0; ?>
- <li class="clearfix">
- <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>
- </li>
- <?php $i++; endwhile; ?>
- </ul>
- </div>
- </div>
- <?php endif ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement