Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html <?php language_attributes(); ?>>
- <head>
- <meta charset="<?php bloginfo( 'charset' ); ?>" />
- <title><?php
- global $page, $paged;
- wp_title( '|', true, 'right' );
- bloginfo( 'name' );
- $site_description = get_bloginfo( 'description', 'display' );
- if ( $site_description && ( is_home() || is_front_page() ) )
- echo " | $site_description";
- if ( $paged >= 2 || $page >= 2 )
- echo ' | ' . sprintf( __( 'Page %s', 'the_devil_theme' ), max( $paged, $page ) );
- ?></title>
- <!-- METAS -->
- <meta name="keywords" content="<?php echo bloginfo( 'keywords' ); ?>" />
- <meta name="description" content="<?php echo bloginfo( 'description' ); ?>" />
- <meta name="author" content="<?php echo bloginfo( 'author' ); ?>" />
- <!-- CSS -->
- <link rel="stylesheet" type="text/css" media="all" href="<?php echo get_template_directory_uri(); ?>/css/main.css" />
- <link rel="stylesheet" type="text/css" media="all" href="<?php echo get_template_directory_uri(); ?>/css/player/style.css" />
- <link rel="stylesheet" type="text/css" media="screen" href="<?php echo get_template_directory_uri(); ?>/css/prettyPhoto.css" />
- <link rel="stylesheet" type="text/css" media="all" href="<?php echo get_template_directory_uri();?>/css/nivo-slider.css" />
- <?php
- // Google Font
- $the_google_font = get_option('dcb_google_font');
- if($the_google_font == "enable") {
- ?>
- <link href='http://fonts.googleapis.com/css?family=<?php echo get_option('dcb_google_font_family_code'); ?>' rel='stylesheet' type='text/css'>
- <style type="text/css">
- .<?php echo get_option('dcb_google_font_title'); ?> .gfont{<?php echo stripslashes(get_option('dcb_google_font_family')).';'; ?> }
- </style>
- <?php } ?>
- <?php
- if(get_option('dcb_dynamic_color') !== ' '){
- include('custom_css.php');
- }
- else {
- ?>
- <link rel="stylesheet" type="text/css" media="all" href="<?php echo get_template_directory_uri(); ?>/css/default.css" />
- <?php
- }
- ?>
- <!--[if IE 7]>
- <link rel="stylesheet" type="text/css" media="all" href="<?php echo get_template_directory_uri(); ?>/css/ie7.css" />
- <![endif]-->
- <!--[if IE 8]>
- <link rel="stylesheet" type="text/css" media="all" href="<?php echo get_template_directory_uri(); ?>/css/ie8.css" />
- <![endif]-->
- <!--[if lt IE 9]>
- <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
- <![endif]-->
- <!-- JS -->
- <?php wp_head(); ?>
- <?php
- //
- if(get_option('dcb_slider_type') == "nivo" || get_option('dcb_slider_type') == "nivo960") {
- if(is_home()) {
- ?>
- <!-- Nivo Slider -->
- <script type="text/javascript">
- $j(function() {
- $j('#nivo_slider_plugin').nivoSlider({
- effect:'<?php echo get_option('dcb_nivo_effect');?>', //Specify sets like: 'fold,fade,sliceDown'
- slices:<?php echo get_option('dcb_nivo_slices');?>,
- animSpeed:<?php echo get_option('dcb_nivo_speed');?>,
- pauseTime:<?php echo get_option('dcb_nivo_pauseTime');?>, // How long each slide will show
- startSlide:<?php echo get_option('dcb_nivo_startSlide');?>, // Set starting Slide (0 index)
- boxCols: <?php echo get_option('dcb_nivo_box_cols');?>,
- boxRows: <?php echo get_option('dcb_nivo_box_rows');?>,
- directionNav:<?php echo get_option('dcb_nivo_dir');?>, //Next and Prev
- directionNavHide:<?php echo get_option('dcb_nivo_dirHide');?>, //Only show on hover
- controlNav:<?php echo get_option('dcb_nivo_paginate');?> //1,2,3...
- });
- });
- </script>
- <!-- Nivo Slider -->
- <?php
- }}
- ?>
- <?php
- //
- if(get_option('dcb_slider_type') == "accordion") {
- if(is_home()) {
- ?>
- <!-- Accordion Slider -->
- <script type="text/javascript" src="<?php echo get_template_directory_uri();?>/js/jquery.kwicks-1.5.1.js"></script>
- <script type="text/javascript">
- $j(function() {
- $j('#accordion-slider').kwicks({
- event : 'mouseenter',
- max : 880,
- easing: '<?php $accordion_effect = get_option('dcb_accordion_easing'); if($accordion_effect) { echo get_option('dcb_accordion_easing'); } else { echo 'jswing'; }?>',
- spacing : 1
- });
- });
- </script>
- <?php } } ?>
- </head>
- <body <?php
- $bg = "bg-".get_option('dcb_bg');
- $font = get_option('dcb_google_font_title');
- $font_text = get_option('dcb_text_font')."_text";
- $sliderbg = "sliderbg-".get_option('dcb_slider');
- $the_classes = $bg." ".$font." ".$font_text. " " .$sliderbg;
- body_class( $the_classes ); ?> id="top">
- <!-- Top Bar -->
- <section id="top_bar">
- <!-- Content of Top Bar -->
- <div class="content">
- <!-- Top Navigation -->
- <nav id="top_navigation">
- <?php
- wp_nav_menu( array(
- 'menu' => '',
- 'menu_class' => '',
- 'container_class' => '',
- 'echo' => true,
- 'fallback_cb' => false,
- 'theme_location' => 'secondary',
- 'depth' => 1
- ) );
- ?>
- </nav>
- <!-- /Top Navigation -->
- <?php
- // Login and subscribe buttons
- if(get_option('dcb_connect_login') == "enable") {
- ?>
- <!-- Login | Subscribe -->
- <div id="login_subscribe">
- <?php if ( is_user_logged_in() ) {
- ?>
- <a href="<?php echo esc_url( home_url( '/' ) ); ?>wp-admin/" class="color_button"><?php _e('Dashboard', 'the_devil_theme'); ?></a>
- <a href="<?php echo esc_url( home_url( '/' ) ); ?>wp-login.php?action=logout" class="grey_button"><?php _e('Sign Out', 'the_devil_theme'); ?></a>
- <?php
- } else {
- ?>
- <a href="<?php echo get_option('dcb_connect_login_logurl'); ?>" class="color_button"><?php echo get_option('dcb_connect_login_logtext'); ?></a>
- <a href="<?php echo get_option('dcb_connect_login_suburl'); ?>" class="grey_button"><?php echo get_option('dcb_connect_login_subtext'); ?></a>
- <?php
- }
- ?>
- </div>
- <!-- /Login | Subscribe -->
- <?php } ?>
- </div>
- <!-- /Content of Top Bar -->
- </section>
- <!-- /Top Bar -->
- <div id="header_wrap">
- <!-- HEADER -->
- <header id="header">
- <!-- Content of HEADER -->
- <div class="content">
- <!-- Logo -->
- <hgroup id="logo">
- <h1><a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><span class="inv"><?php bloginfo( 'name' ); ?></span><img src="<?php echo get_option('dcb_top_logo');?>" alt="" /></a></h1>
- </hgroup>
- <!-- /Logo -->
- <?php
- // ADS
- if(get_option('dcb_advertising') == "enable") {
- ?>
- <!-- banner_ads -->
- <div class="banner_ads">
- <a href="<?php echo get_option('dcb_advertising_url'); ?>"><img src="<?php echo get_option('dcb_advertising_file'); ?>" alt="<?php echo get_option('dcb_advertising_title'); ?>" /></a>
- </div>
- <!-- /banner_ads -->
- <?php } ?>
- <?php
- // GOOGLE ADS
- if(get_option('dcb_advertising_google') == "enable") {
- ?>
- <!-- banner_ads -->
- <div class="banner_ads">
- <script type="text/javascript">
- <!--
- google_ad_client = "<?php echo get_option('dcb_advertising_google_client'); ?>";
- google_ad_slot = "<?php echo get_option('dcb_advertising_google_slot'); ?>";
- google_ad_width = 468;
- google_ad_height = 60;
- // -->
- </script>
- <script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type="text/javascript"></script>
- </div>
- <!-- /banner_ads -->
- <?php } ?>
- <br class="clear" />
- <!-- Navigation -->
- <nav id="navigation" role="navigation">
- <?php
- wp_nav_menu( array(
- 'menu' => '',
- 'menu_class' => '',
- 'container_class' => '',
- 'echo' => true,
- 'fallback_cb' => false,
- 'theme_location' => 'primary',
- 'depth' => 4
- ) );
- ?>
- </nav>
- <!-- /Navigation -->
- <!-- Search Popup -->
- <div class="search_opener">
- <a href="#" id="magnify_open"><span class="inv"><?php _e('Open', 'the_devil_theme'); ?></span></a>
- <div class="search_tab">
- <a href="#" id="magnify_close"><span class="inv"><?php _e('Close', 'the_devil_theme'); ?></span></a>
- <form action="<?php echo esc_url( home_url( '/' ) ); ?>" method="post">
- <input type="text" name="s" title="<?php _e('Hit enter to search...', 'the_devil_theme'); ?>" value="<?php _e('Hit enter to search...', 'the_devil_theme'); ?>" onFocus="if (this.value == '<?php _e('Hit enter to search...', 'the_devil_theme'); ?>') {this.value = '';}" onBlur="if (this.value == '') {this.value = '<?php _e('Hit enter to search...', 'the_devil_theme'); ?>';}" />
- </form>
- </div>
- </div>
- <!-- /Search Popup -->
- <br class="clear" />
- </div>
- <!-- /Content of HEADER -->
- </header>
- <!-- /HEADER -->
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement