Astra_Ext_Adv_Footer_Markup::get_sidebar( string $sidebar_id )
Get Footer Default Sidebar
Description
Parameters
- $sidebar_id
-
(string) (Required) Sidebar Id..
Return
(void)
Source
File: addons/advanced-footer/classes/class-astra-ext-adv-footer-markup.php
public static function get_sidebar( $sidebar_id ) { if ( is_active_sidebar( $sidebar_id ) ) { dynamic_sidebar( $sidebar_id ); } elseif ( current_user_can( 'edit_theme_options' ) ) { global $wp_registered_sidebars; $sidebar_name = ''; if ( isset( $wp_registered_sidebars[ $sidebar_id ] ) ) { $sidebar_name = $wp_registered_sidebars[ $sidebar_id ]['name']; } ?> <div class="widget ast-no-widget-row"> <h2 class='widget-title'><?php echo esc_html( $sidebar_name ); ?></h2> <p class='no-widget-text'> <a href='<?php echo esc_url( admin_url( 'widgets.php' ) ); ?>'> <?php esc_html_e( 'Click here to assign a widget for this area.', 'astra-addon' ); ?> </a> </p> </div> <?php } }
Expand full source code Collapse full source code View on Trac