You appear to be a bot. Output may be restricted
Description
Template for default widget area content.
Usage
genesis_default_widget_area_content( $name );
Parameters
- $name
- ( string ) required – Name of the widget area e.g. `__( 'Secondary Sidebar Widget Area', 'yourtextdomain' )`.
Returns
void
Source
File name: genesis/lib/structure/sidebar.php
Lines:
1 to 39 of 39
function genesis_default_widget_area_content( $name ) { genesis_markup( [ 'open' => '<section class="widget widget_text">', 'context' => 'default-widget-content-wrap', ] ); echo '<div class="widget-wrap">'; $genesis_heading = ( genesis_a11y( 'headings' ) ? 'h3' : 'h4' ); echo sprintf( '<%1$s class="widgettitle">%2$s</%1$s>', esc_attr( $genesis_heading ), esc_html( $name ) ); echo '<div class="textwidget"><p>'; printf( /* translators: 1: Widget name, 2: URL to widgets admin page. */ esc_html__( 'This is the %1$s. You can add content to this area by visiting your %2$s and adding new widgets to this area.', 'genesis' ), esc_html( $name ), sprintf( '<a href="%1$s">%2$s</a>', esc_url( admin_url( 'widgets.php' ) ), esc_html__( 'Widgets Panel', 'genesis' ) ) ); echo '</p></div>'; echo '</div>'; genesis_markup( [ 'close' => '</section>', 'context' => 'default-widget-content-wrap', ] ); }