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
		}
	}

Changelog

Changelog
Version Description
1.0.1.1 Introduced.


User Contributed Notes

You must log in before being able to contribute a note or feedback.