Advertisement
Guest User

Untitled

a guest
Feb 6th, 2016
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 13.08 KB | None | 0 0
  1. <?php
  2. /**
  3.  * @package WordPress
  4.  * @subpackage U-Design
  5.  */
  6.  
  7. global $udesign_options, $style, $current_slider;
  8. // get the current color scheme subdirectory
  9. $style = ( $udesign_options['color_scheme'] ) ? "style{$udesign_options['color_scheme']}": "style1";
  10. $current_slider = $udesign_options['current_slider'];
  11. ?>
  12. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  13. <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
  14.  
  15. <head profile="http://gmpg.org/xfn/11">
  16. <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
  17. <?php // add 'viewport' meta
  18. if ( $udesign_options['enable_responsive'] ) echo '<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0" />'; ?>
  19.  
  20. <meta name="show-menu-auto-arrows" content="<?php echo ($udesign_options['show_menu_auto_arrows']) ? 1 : 0; ?>" />
  21. <meta name="show-menu-drop-shadows" content="<?php echo ($udesign_options['show_menu_drop_shadows']) ? 1 : 0; ?>" />
  22.  
  23. <title><?php wp_title('&laquo;', true, 'right'); ?> <?php bloginfo('name'); ?></title>
  24.  
  25. <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
  26.  
  27. <?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?>
  28.  
  29. <!--[if IE 6]>
  30.     <script  type="text/javascript" src="<?php bloginfo('template_url'); ?>/scripts/DD_belatedPNG_0.0.8a-min.js"></script>
  31.     <script  type="text/javascript">
  32.     // <![CDATA[
  33.     DD_belatedPNG.fix('.pngfix, img, #home-page-content li, #page-content li, #bottom li, #footer li, #recentcomments li span');
  34.     // ]]>
  35.     </script>
  36. <![endif]-->
  37.  
  38. <?php wp_head(); ?>
  39.  
  40. <!--[if lte IE 9]>
  41.     <link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/styles/common-css/ie-all.css" media="screen" type="text/css" />
  42. <![endif]-->
  43. <!--[if lte IE 7]>
  44.     <link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/styles/common-css/ie6-7.css" media="screen" type="text/css" />
  45. <![endif]-->
  46. <!--[if IE 6]>
  47.     <link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/styles/common-css/ie6.css" media="screen" type="text/css" />
  48.     <style type="text/css">
  49.     body{ behavior: url("<?php bloginfo('template_directory'); ?>/scripts/csshover3.htc"); }
  50.     </style>
  51. <![endif]-->
  52. <?php echo $udesign_options['google_analytics']; ?>
  53.  
  54. </head>
  55. <body <?php body_class( $udesign_options['enable_cufon'] ); ?>>
  56. <?php
  57.     if ($udesign_options['enable_feedback']) : ?>
  58.     <div id="feedback"><a href="<?php echo $udesign_options['feedback_url']; ?>" title="<?php esc_attr_e('Feedback', 'udesign'); ?>" class="feedback"></a></div>
  59. <?php
  60.     endif;
  61.     if ($udesign_options['enable_page_peel']) : ?>
  62.     <div id="page-peel">
  63.         <a href="<?php echo $udesign_options['page_peel_url']; ?>" title="<?php esc_attr_e('Subscribe', 'udesign'); ?>"><img src="<?php bloginfo('template_directory'); ?>/styles/style1/images/page_peel.png" alt="<?php esc_attr_e('Subscribe', 'udesign'); ?>" /></a>
  64.         <div class="msg_block"></div>
  65.     </div>
  66. <?php
  67.     endif; ?>
  68.     <div id="wrapper-1" class="pngfix">
  69.     <div id="top-wrapper">
  70.             <div id="top-elements" class="container_24">
  71.                     <div id="logo" class="grid_14">
  72. <?php                   if( is_front_page() ) : ?>
  73.                             <h1><a title="<?php bloginfo('name'); ?>" class="pngfix" href="<?php echo get_bloginfo('url'); ?>"><?php bloginfo('name'); ?></a></h1>
  74. <?php                   else : ?>
  75.                             <div class="site-name"><a  title="<?php bloginfo('name'); ?>" class="pngfix" href="<?php echo get_bloginfo('url'); ?>"><?php bloginfo('name'); ?></a></div>
  76. <?php                   endif; ?>
  77.                     </div>
  78.                     <div id="slogan" class="grid_17"><?php bloginfo('description'); ?></div>
  79.                     <!-- end logo slogan -->
  80. <?php               if ($udesign_options['top_page_phone_number']) : ?>
  81.                         <div class="phone-number grid_7 prefix_17">
  82.                             <div class="phone-number-padding">
  83. <?php                            echo do_shortcode( $udesign_options["top_page_phone_number"] ); ?>
  84.                             </div><!-- end phone-number-padding -->
  85.                         </div><!-- end phone-number -->
  86. <?php               endif; ?>
  87. <?php               if ($udesign_options['enable_search']) : ?>
  88.                         <div id="search" class="grid_6 prefix_18">
  89.                             <form action="<?php bloginfo('url'); ?>/" method="get">
  90.                                 <div class="search_box">
  91.                                     <input id="search_field" name="s" type="text" class="inputbox_focus blur pngfix" value="<?php esc_attr_e('Search...', 'udesign'); ?>" />
  92.                                     <input type="submit"  value="" class="search-btn pngfix" />
  93.                                 </div>
  94.                             </form>
  95.                         </div><!-- end search -->
  96. <?php               endif; ?>
  97.                        
  98. <?php               $top_area_social_media = sidebar_exist_and_active('top-area-social-media');
  99.                     if ( $top_area_social_media ) : // hide this area if no widgets are active... ?>
  100.                         <div class="social-media-area grid_9 prefix_15">
  101. <?php                       echo udesign_get_dynamic_sidebar( 'top-area-social-media' ); ?>
  102.                         </div><!-- end social-media-area -->
  103. <?php               endif; ?>
  104.         </div>
  105.         <!-- end top-elements -->
  106.             <div id="main-menu" class="pngfix">
  107.                 <div id="dropdown-holder" class="container_24">
  108. <?php                   udesign_nav(); // this function calls the main menu ?>
  109.                 </div>
  110.                 <!-- end dropdown-holder -->
  111.             </div>
  112.             <!-- end top-main-menu -->
  113.     </div>
  114.     <!-- end top-wrapper -->
  115.  
  116.     <div class="clear"></div>
  117.  
  118. <?php   if( is_front_page() ) : ?>
  119.        
  120. <?php
  121. /**
  122.  * @package WordPress
  123.  * @subpackage U-Design
  124.  */
  125. ?>
  126. <?php   global $udesign_options, $style; ?>
  127.  
  128.  
  129. </div><!-- end page-content -->
  130.  
  131. <div class="clear"></div>
  132.  
  133. <?php
  134.  
  135.     $bottom_1_is_active = sidebar_exist_and_active('bottom-widget-area-1');
  136.     $bottom_2_is_active = sidebar_exist_and_active('bottom-widget-area-2');
  137.     $bottom_3_is_active = sidebar_exist_and_active('bottom-widget-area-3');
  138.     $bottom_4_is_active = sidebar_exist_and_active('bottom-widget-area-4');
  139.  
  140.     if ( $bottom_1_is_active || $bottom_2_is_active || $bottom_3_is_active || $bottom_4_is_active ) : // hide this area if no widgets are active...
  141. ?>
  142.         <div id="bottom-bg">
  143.         <div id="bottom" class="container_24">
  144.             <div class="bottom-content-padding">
  145. <?php
  146.                         $output = '';
  147.             // all 4 active: 1 case
  148.             if ( $bottom_1_is_active && $bottom_2_is_active && $bottom_3_is_active && $bottom_4_is_active ) {
  149.                 $output .= get_dynamic_column( 'bottom_1', 'one_fourth', 'bottom-widget-area-1' );
  150.                 $output .= get_dynamic_column( 'bottom_2', 'one_fourth', 'bottom-widget-area-2' );
  151.                 $output .= get_dynamic_column( 'bottom_3', 'one_fourth', 'bottom-widget-area-3' );
  152.                 $output .= get_dynamic_column( 'bottom_4', 'one_fourth last_column', 'bottom-widget-area-4' );
  153.             }
  154.             // 3 active: 4 cases
  155.             if ( $bottom_1_is_active && $bottom_2_is_active && $bottom_3_is_active && !$bottom_4_is_active ) {
  156.                 $output .= get_dynamic_column( 'bottom_1', 'one_third', 'bottom-widget-area-1' );
  157.                 $output .= get_dynamic_column( 'bottom_2', 'one_third', 'bottom-widget-area-2' );
  158.                 $output .= get_dynamic_column( 'bottom_3', 'one_third last_column', 'bottom-widget-area-3' );
  159.             }
  160.             if ( $bottom_1_is_active && $bottom_2_is_active && !$bottom_3_is_active && $bottom_4_is_active ) {
  161.                 $output .= get_dynamic_column( 'bottom_1', 'one_third', 'bottom-widget-area-1' );
  162.                 $output .= get_dynamic_column( 'bottom_2', 'one_third', 'bottom-widget-area-2' );
  163.                 $output .= get_dynamic_column( 'bottom_4', 'one_third last_column', 'bottom-widget-area-4' );
  164.             }
  165.             if ( $bottom_1_is_active && !$bottom_2_is_active && $bottom_3_is_active && $bottom_4_is_active ) {
  166.                 $output .= get_dynamic_column( 'bottom_1', 'one_third', 'bottom-widget-area-1' );
  167.                 $output .= get_dynamic_column( 'bottom_3', 'one_third', 'bottom-widget-area-3' );
  168.                 $output .= get_dynamic_column( 'bottom_4', 'one_third last_column', 'bottom-widget-area-4' );
  169.             }
  170.             if ( !$bottom_1_is_active && $bottom_2_is_active && $bottom_3_is_active && $bottom_4_is_active ) {
  171.                 $output .= get_dynamic_column( 'bottom_2', 'one_third', 'bottom-widget-area-2' );
  172.                 $output .= get_dynamic_column( 'bottom_3', 'one_third', 'bottom-widget-area-3' );
  173.                 $output .= get_dynamic_column( 'bottom_4', 'one_third last_column', 'bottom-widget-area-4' );
  174.             }
  175.             // 2 active: 6 cases
  176.             if ( $bottom_1_is_active && $bottom_2_is_active && !$bottom_3_is_active && !$bottom_4_is_active ) {
  177.                 $output .= get_dynamic_column( 'bottom_1', 'one_half', 'bottom-widget-area-1' );
  178.                 $output .= get_dynamic_column( 'bottom_2', 'one_half last_column', 'bottom-widget-area-2' );
  179.             }
  180.             if ( $bottom_1_is_active && !$bottom_2_is_active && $bottom_3_is_active && !$bottom_4_is_active ) {
  181.                 $output .= get_dynamic_column( 'bottom_1', 'one_half', 'bottom-widget-area-1' );
  182.                 $output .= get_dynamic_column( 'bottom_3', 'one_half last_column', 'bottom-widget-area-3' );
  183.             }
  184.             if ( !$bottom_1_is_active && $bottom_2_is_active && $bottom_3_is_active && !$bottom_4_is_active ) {
  185.                 $output .= get_dynamic_column( 'bottom_2', 'one_half', 'bottom-widget-area-2' );
  186.                 $output .= get_dynamic_column( 'bottom_3', 'one_half last_column', 'bottom-widget-area-3' );
  187.             }
  188.             if ( !$bottom_1_is_active && $bottom_2_is_active && !$bottom_3_is_active && $bottom_4_is_active ) {
  189.                 $output .= get_dynamic_column( 'bottom_2', 'one_half', 'bottom-widget-area-2' );
  190.                 $output .= get_dynamic_column( 'bottom_4', 'one_half last_column', 'bottom-widget-area-4' );
  191.             }
  192.             if ( !$bottom_1_is_active && !$bottom_2_is_active && $bottom_3_is_active && $bottom_4_is_active ) {
  193.                 $output .= get_dynamic_column( 'bottom_3', 'one_half', 'bottom-widget-area-3' );
  194.                 $output .= get_dynamic_column( 'bottom_4', 'one_half last_column', 'bottom-widget-area-4' );
  195.             }
  196.             if ( $bottom_1_is_active && !$bottom_2_is_active && !$bottom_3_is_active && $bottom_4_is_active ) {
  197.                 $output .= get_dynamic_column( 'bottom_1', 'one_half', 'bottom-widget-area-1' );
  198.                 $output .= get_dynamic_column( 'bottom_4', 'one_half last_column', 'bottom-widget-area-4' );
  199.             }
  200.             // 1 active: 4 cases
  201.             if ( $bottom_1_is_active && !$bottom_2_is_active && !$bottom_3_is_active && !$bottom_4_is_active ) {
  202.                 $output .= get_dynamic_column( 'bottom_1', 'full_width', 'bottom-widget-area-1' );
  203.             }
  204.             if ( !$bottom_1_is_active && $bottom_2_is_active && !$bottom_3_is_active && !$bottom_4_is_active ) {
  205.                 $output .= get_dynamic_column( 'bottom_2', 'full_width', 'bottom-widget-area-2' );
  206.             }
  207.             if ( !$bottom_1_is_active && !$bottom_2_is_active && $bottom_3_is_active && !$bottom_4_is_active ) {
  208.                 $output .= get_dynamic_column( 'bottom_3', 'full_width', 'bottom-widget-area-3' );
  209.             }
  210.             if ( !$bottom_1_is_active && !$bottom_2_is_active && !$bottom_3_is_active && $bottom_4_is_active ) {
  211.                 $output .= get_dynamic_column( 'bottom_4', 'full_width', 'bottom-widget-area-4' );
  212.             }
  213.                        
  214.                         echo $output;
  215. ?>
  216.             </div>
  217.             <!-- end bottom-content-padding -->
  218.         </div>
  219.         <!-- end bottom -->
  220.         </div>
  221.         <!-- end bottom-bg -->
  222.  
  223.         <div class="clear"></div>
  224.  
  225.  
  226. <?php   endif; ?>
  227.  
  228.  
  229.     <div id="footer-bg">
  230.         <div id="footer" class="container_24 footer-top">
  231.             <div id="footer_text" class="grid_20">
  232.             <div>
  233. <?php               echo do_shortcode( $udesign_options['copyright_message'] );
  234.                 if( $udesign_options['show_wp_link_in_footer'] ) :
  235.                 _e(' is proudly powered by <a href="http://wordpress.org/"><strong>WordPress</strong></a>', 'udesign');
  236.                 endif;
  237.                 if( $udesign_options['show_udesign_affiliate_link'] ) :
  238.                 printf( esc_html__(' | Designed with %1$sU-Design Theme%2$s', 'udesign'), '<a target="_blank" title="U-Design WordPress Premium Theme" href="http://themeforest.net/item/udesign-wordpress-theme/253220?ref='.$udesign_options['affiliate_username'].'">', '</a>' );
  239.                 endif;
  240.                 if( $udesign_options['show_entries_rss_in_footer'] ) : ?>
  241.                 | <a href="<?php bloginfo('rss2_url'); ?>"><?php esc_html_e('Entries (RSS)', 'udesign'); ?></a>
  242. <?php               endif;
  243.                 if( $udesign_options['show_comments_rss_in_footer'] ) : ?>
  244.                 | <a href="<?php bloginfo('comments_rss2_url'); ?>"><?php esc_html_e('Comments (RSS)', 'udesign'); ?></a>
  245. <?php               endif; ?>
  246.             </div>
  247.             </div>
  248.             <div class="back-to-top">
  249.             <a href="#top"><?php esc_html_e('Back to Top', 'udesign'); ?></a>
  250.             </div>
  251.         </div>
  252.     </div>
  253.  
  254.     <div class="clear"></div>
  255.  
  256.     <?php wp_footer(); ?>
  257.     </div><!-- end wrapper-1 -->
  258. <?php
  259.     if( $udesign_options['enable_cufon'] ) : ?>
  260.     <script type="text/javascript"> Cufon.now(); </script>
  261. <?php
  262.     endif;
  263. <?php
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement