astra_get_sidebar( string $sidebar_id )
Get Sidebar
Description
Parameters
- $sidebar_id
-
(string) (Required) Sidebar Id.
Return
(void)
Source
File: inc/markup-extras.php
function astra_get_sidebar( $sidebar_id ) { if ( is_active_sidebar( $sidebar_id ) ) { dynamic_sidebar( $sidebar_id ); } elseif ( current_user_can( 'edit_theme_options' ) ) { ?> <div class="widget ast-no-widget-row"> <p class='no-widget-text'> <a href='<?php echo esc_url( admin_url( 'widgets.php' ) ); ?>'> <?php esc_html_e( 'Add Widget', 'astra' ); ?> </a> </p> </div> <?php } }
Expand full source code Collapse full source code View on Trac
Changelog
Version | Description |
---|---|
1.0.1.1 | Introduced. |