HEX
Server: Apache
System: Linux pdx1-shared-a1-38 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64
User: mmickelson (3396398)
PHP: 8.1.31
Disabled: NONE
Upload Files
File: /home/mmickelson/jennysmasks.com/wp-content/themes/boldgrid-westview/templates/sidebar.php
<?php
/**
 * The template for displaying the sidebar.
 *
 * @package Prime
 */

// Link to the widgets section in the customizer.
$current_page = ( is_ssl() ? 'https://' : 'http://' ) . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
$link = esc_url(
	add_query_arg(
		array(
			'url' => urlencode( $current_page ),
			array(
				'autofocus' => array(
					'control' => 'sidebars_widgets[sidebar-1]',
				),
			),
			'return' => $current_page,
		),
		wp_customize_url()
	)
);

dynamic_sidebar( 'sidebar-1' ); ?>

<?php if ( current_user_can( 'edit_pages' ) && ! is_customize_preview() ) : ?>
	<?php if ( ! is_active_sidebar( 'sidebar-1' ) ) : ?>
		<div class="empty-sidebar-message">
			<h2>Empty Sidebar</h2>
			<p>This sidebar doesn't have any widgets assigned to it yet.</p>
			<p><a href="<?php echo $link ?>"><i class="fa fa-plus-square" aria-hidden="true"></i> Add widgets here.</a></p>
		</div>
		<?php elseif ( is_active_sidebar( 'sidebar-1' ) ) : ?>
			<div class="add-widget-message">
				<p><a href="<?php echo $link ?>"><i class="fa fa-plus-square" aria-hidden="true"></i> Add another widget.</a></p>
			</div>
	<?php endif; ?>
<?php endif; ?>