Advertisement
Guest User

Untitled

a guest
Feb 6th, 2016
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 7.17 KB | None | 0 0
  1. <?php
  2. /**
  3.  * @package WordPress
  4.  * @subpackage U-Design
  5.  */
  6. ?>
  7. <?php   global $udesign_options, $style; ?>
  8.  
  9.  
  10. </div><!-- end page-content -->
  11.  
  12. <div class="clear"></div>
  13.  
  14. <?php
  15.  
  16.     $bottom_1_is_active = sidebar_exist_and_active('bottom-widget-area-1');
  17.     $bottom_2_is_active = sidebar_exist_and_active('bottom-widget-area-2');
  18.     $bottom_3_is_active = sidebar_exist_and_active('bottom-widget-area-3');
  19.     $bottom_4_is_active = sidebar_exist_and_active('bottom-widget-area-4');
  20.  
  21.     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...
  22. ?>
  23.         <div id="bottom-bg">
  24.         <div id="bottom" class="container_24">
  25.             <div class="bottom-content-padding">
  26. <?php
  27.                         $output = '';
  28.             // all 4 active: 1 case
  29.             if ( $bottom_1_is_active && $bottom_2_is_active && $bottom_3_is_active && $bottom_4_is_active ) {
  30.                 $output .= get_dynamic_column( 'bottom_1', 'one_fourth', 'bottom-widget-area-1' );
  31.                 $output .= get_dynamic_column( 'bottom_2', 'one_fourth', 'bottom-widget-area-2' );
  32.                 $output .= get_dynamic_column( 'bottom_3', 'one_fourth', 'bottom-widget-area-3' );
  33.                 $output .= get_dynamic_column( 'bottom_4', 'one_fourth last_column', 'bottom-widget-area-4' );
  34.             }
  35.             // 3 active: 4 cases
  36.             if ( $bottom_1_is_active && $bottom_2_is_active && $bottom_3_is_active && !$bottom_4_is_active ) {
  37.                 $output .= get_dynamic_column( 'bottom_1', 'one_third', 'bottom-widget-area-1' );
  38.                 $output .= get_dynamic_column( 'bottom_2', 'one_third', 'bottom-widget-area-2' );
  39.                 $output .= get_dynamic_column( 'bottom_3', 'one_third last_column', 'bottom-widget-area-3' );
  40.             }
  41.             if ( $bottom_1_is_active && $bottom_2_is_active && !$bottom_3_is_active && $bottom_4_is_active ) {
  42.                 $output .= get_dynamic_column( 'bottom_1', 'one_third', 'bottom-widget-area-1' );
  43.                 $output .= get_dynamic_column( 'bottom_2', 'one_third', 'bottom-widget-area-2' );
  44.                 $output .= get_dynamic_column( 'bottom_4', 'one_third last_column', 'bottom-widget-area-4' );
  45.             }
  46.             if ( $bottom_1_is_active && !$bottom_2_is_active && $bottom_3_is_active && $bottom_4_is_active ) {
  47.                 $output .= get_dynamic_column( 'bottom_1', 'one_third', 'bottom-widget-area-1' );
  48.                 $output .= get_dynamic_column( 'bottom_3', 'one_third', 'bottom-widget-area-3' );
  49.                 $output .= get_dynamic_column( 'bottom_4', 'one_third last_column', 'bottom-widget-area-4' );
  50.             }
  51.             if ( !$bottom_1_is_active && $bottom_2_is_active && $bottom_3_is_active && $bottom_4_is_active ) {
  52.                 $output .= get_dynamic_column( 'bottom_2', 'one_third', 'bottom-widget-area-2' );
  53.                 $output .= get_dynamic_column( 'bottom_3', 'one_third', 'bottom-widget-area-3' );
  54.                 $output .= get_dynamic_column( 'bottom_4', 'one_third last_column', 'bottom-widget-area-4' );
  55.             }
  56.             // 2 active: 6 cases
  57.             if ( $bottom_1_is_active && $bottom_2_is_active && !$bottom_3_is_active && !$bottom_4_is_active ) {
  58.                 $output .= get_dynamic_column( 'bottom_1', 'one_half', 'bottom-widget-area-1' );
  59.                 $output .= get_dynamic_column( 'bottom_2', 'one_half last_column', 'bottom-widget-area-2' );
  60.             }
  61.             if ( $bottom_1_is_active && !$bottom_2_is_active && $bottom_3_is_active && !$bottom_4_is_active ) {
  62.                 $output .= get_dynamic_column( 'bottom_1', 'one_half', 'bottom-widget-area-1' );
  63.                 $output .= get_dynamic_column( 'bottom_3', 'one_half last_column', 'bottom-widget-area-3' );
  64.             }
  65.             if ( !$bottom_1_is_active && $bottom_2_is_active && $bottom_3_is_active && !$bottom_4_is_active ) {
  66.                 $output .= get_dynamic_column( 'bottom_2', 'one_half', 'bottom-widget-area-2' );
  67.                 $output .= get_dynamic_column( 'bottom_3', 'one_half last_column', 'bottom-widget-area-3' );
  68.             }
  69.             if ( !$bottom_1_is_active && $bottom_2_is_active && !$bottom_3_is_active && $bottom_4_is_active ) {
  70.                 $output .= get_dynamic_column( 'bottom_2', 'one_half', 'bottom-widget-area-2' );
  71.                 $output .= get_dynamic_column( 'bottom_4', 'one_half last_column', 'bottom-widget-area-4' );
  72.             }
  73.             if ( !$bottom_1_is_active && !$bottom_2_is_active && $bottom_3_is_active && $bottom_4_is_active ) {
  74.                 $output .= get_dynamic_column( 'bottom_3', 'one_half', 'bottom-widget-area-3' );
  75.                 $output .= get_dynamic_column( 'bottom_4', 'one_half last_column', 'bottom-widget-area-4' );
  76.             }
  77.             if ( $bottom_1_is_active && !$bottom_2_is_active && !$bottom_3_is_active && $bottom_4_is_active ) {
  78.                 $output .= get_dynamic_column( 'bottom_1', 'one_half', 'bottom-widget-area-1' );
  79.                 $output .= get_dynamic_column( 'bottom_4', 'one_half last_column', 'bottom-widget-area-4' );
  80.             }
  81.             // 1 active: 4 cases
  82.             if ( $bottom_1_is_active && !$bottom_2_is_active && !$bottom_3_is_active && !$bottom_4_is_active ) {
  83.                 $output .= get_dynamic_column( 'bottom_1', 'full_width', 'bottom-widget-area-1' );
  84.             }
  85.             if ( !$bottom_1_is_active && $bottom_2_is_active && !$bottom_3_is_active && !$bottom_4_is_active ) {
  86.                 $output .= get_dynamic_column( 'bottom_2', 'full_width', 'bottom-widget-area-2' );
  87.             }
  88.             if ( !$bottom_1_is_active && !$bottom_2_is_active && $bottom_3_is_active && !$bottom_4_is_active ) {
  89.                 $output .= get_dynamic_column( 'bottom_3', 'full_width', 'bottom-widget-area-3' );
  90.             }
  91.             if ( !$bottom_1_is_active && !$bottom_2_is_active && !$bottom_3_is_active && $bottom_4_is_active ) {
  92.                 $output .= get_dynamic_column( 'bottom_4', 'full_width', 'bottom-widget-area-4' );
  93.             }
  94.                        
  95.                         echo $output;
  96. ?>
  97.             </div>
  98.             <!-- end bottom-content-padding -->
  99.         </div>
  100.         <!-- end bottom -->
  101.         </div>
  102.         <!-- end bottom-bg -->
  103.  
  104.         <div class="clear"></div>
  105.  
  106.  
  107. <?php   endif; ?>
  108.  
  109.  
  110.     <div id="footer-bg">
  111.         <div id="footer" class="container_24 footer-top">
  112.             <div id="footer_text" class="grid_20">
  113.             <div>
  114. <?php               echo do_shortcode( $udesign_options['copyright_message'] );
  115.                 if( $udesign_options['show_wp_link_in_footer'] ) :
  116.                 _e(' is proudly powered by <a href="http://wordpress.org/"><strong>WordPress</strong></a>', 'udesign');
  117.                 endif;
  118.                 if( $udesign_options['show_udesign_affiliate_link'] ) :
  119.                 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>' );
  120.                 endif;
  121.                 if( $udesign_options['show_entries_rss_in_footer'] ) : ?>
  122.                 | <a href="<?php bloginfo('rss2_url'); ?>"><?php esc_html_e('Entries (RSS)', 'udesign'); ?></a>
  123. <?php               endif;
  124.                 if( $udesign_options['show_comments_rss_in_footer'] ) : ?>
  125.                 | <a href="<?php bloginfo('comments_rss2_url'); ?>"><?php esc_html_e('Comments (RSS)', 'udesign'); ?></a>
  126. <?php               endif; ?>
  127.             </div>
  128.             </div>
  129.             <div class="back-to-top">
  130.             <a href="#top"><?php esc_html_e('Back to Top', 'udesign'); ?></a>
  131.             </div>
  132.         </div>
  133.     </div>
  134.  
  135.     <div class="clear"></div>
  136.  
  137.     <?php wp_footer(); ?>
  138.     </div><!-- end wrapper-1 -->
  139. <?php
  140.     if( $udesign_options['enable_cufon'] ) : ?>
  141.     <script type="text/javascript"> Cufon.now(); </script>
  142. <?php
  143.     endif; ?>
  144. </body>
  145. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement