| 1 | <?php $layout = hu_get_layout_class(); ?> |
|---|
| 2 | <?php if ( $layout != 'col-1c'): ?> |
|---|
| 3 | |
|---|
| 4 | <div class="sidebar s1 collapsed" data-position="<?php echo hu_get_sidebar_position( 's1' ); ?>" data-layout="<?php echo $layout ?>" data-sb-id="s1"> |
|---|
| 5 | |
|---|
| 6 | <button class="sidebar-toggle" title="<?php _e('Expand Sidebar','hueman'); ?>"><i class="fas sidebar-toggle-arrows"></i></button> |
|---|
| 7 | |
|---|
| 8 | <div class="sidebar-content"> |
|---|
| 9 | |
|---|
| 10 | <?php if ( hu_is_checked('sidebar-top') ): ?> |
|---|
| 11 | <?php |
|---|
| 12 | // wp_kses_post() Sanitizes content for allowed HTML tags for post content. |
|---|
| 13 | // see https://developer.wordpress.org/reference/functions/wp_kses_post/ |
|---|
| 14 | $sb_text = wp_kses_post( hu_get_option( 'primary-sb-text' ) ); |
|---|
| 15 | ?> |
|---|
| 16 | <div class="sidebar-top group"> |
|---|
| 17 | <?php if ( hu_has_social_links() || !empty( $sb_text ) ) : ?> |
|---|
| 18 | <?php |
|---|
| 19 | if ( !empty( $sb_text ) ) { |
|---|
| 20 | echo apply_filters( 'primary_sb_text', sprintf( '<p>%1$s</p>', hu_get_option( 'primary-sb-text' ) ) ); |
|---|
| 21 | } |
|---|
| 22 | ?> |
|---|
| 23 | <?php else : //if not customizing, display an empty p for design purposes ?> |
|---|
| 24 | <?php if ( hu_user_can_see_customize_notices_on_front() ) : ?> |
|---|
| 25 | <?php |
|---|
| 26 | printf( '<p style="text-transform:none;font-size: 0.8em;">%1$s. <a style="color: white;text-decoration:underline;" href="%2$s" title="%3$s">%3$s »</a></p>', |
|---|
| 27 | __('You can set your social links here from the live customizer', 'hueman'), |
|---|
| 28 | admin_url( 'customize.php?autofocus[section]=social_links_sec' ), |
|---|
| 29 | __('Customize now', 'hueman') |
|---|
| 30 | ); |
|---|
| 31 | ?> |
|---|
| 32 | <?php elseif ( ! is_user_logged_in() ) : ?> |
|---|
| 33 | <?php printf('<p> </p>'); ?> |
|---|
| 34 | <?php endif; ?> |
|---|
| 35 | <?php endif; ?> |
|---|
| 36 | <?php |
|---|
| 37 | if ( hu_is_checked('sl-in-sidebar') ) { |
|---|
| 38 | hu_print_social_links() ; |
|---|
| 39 | } |
|---|
| 40 | ?> |
|---|
| 41 | </div> |
|---|
| 42 | <?php endif; ?> |
|---|
| 43 | |
|---|
| 44 | <?php if ( hu_get_option( 'post-nav' ) == 's1') { get_template_part('parts/post-nav'); } ?> |
|---|
| 45 | |
|---|
| 46 | <?php if( is_page_template('page-templates/child-menu.php') ): ?> |
|---|
| 47 | <ul class="child-menu group"> |
|---|
| 48 | <?php wp_list_pages('title_li=&sort_column=menu_order&depth=3'); ?> |
|---|
| 49 | </ul> |
|---|
| 50 | <?php endif; ?> |
|---|
| 51 | |
|---|
| 52 | <?php hu_print_widgets_in_location('s1') ?> |
|---|
| 53 | |
|---|
| 54 | </div><!--/.sidebar-content--> |
|---|
| 55 | |
|---|
| 56 | </div><!--/.sidebar--> |
|---|
| 57 | |
|---|
| 58 | <?php |
|---|
| 59 | if ( in_array( $layout, array('col-3cm', 'col-3cl', 'col-3cr' ) ) ) { |
|---|
| 60 | get_template_part('sidebar-2'); |
|---|
| 61 | } |
|---|
| 62 | ?> |
|---|
| 63 | |
|---|
| 64 | <?php endif; ?> |
|---|