2024-01-09 16:13:20 +01:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* Register widget area.
|
|
|
|
*
|
|
|
|
* @link https://developer.wordpress.org/themes/functionality/sidebars/#registerin g-a-sidebar
|
|
|
|
*/
|
|
|
|
function xarxaprod_widgets_init() {
|
|
|
|
register_sidebar(
|
|
|
|
array(
|
2024-01-10 12:06:34 +01:00
|
|
|
'name' => esc_html__( 'Front Page - principal', 'xarxaprod' ),
|
2024-01-09 16:13:20 +01:00
|
|
|
'id' => 'front-page-widgets',
|
2024-01-10 12:06:34 +01:00
|
|
|
'description' => esc_html__( 'Add widgets here.', 'xarxaprod' ),
|
2024-01-09 16:13:20 +01:00
|
|
|
'before_widget' => '<section id="%1$s" class="widget %2$s">',
|
|
|
|
'after_widget' => '</section>',
|
|
|
|
'before_title' => '<h2 class="widget-title">',
|
|
|
|
'after_title' => '</h2>',
|
|
|
|
)
|
|
|
|
);
|
|
|
|
register_sidebar(
|
|
|
|
array(
|
2024-01-10 12:06:34 +01:00
|
|
|
'name' => esc_html__( 'Sidebar funds - Lateral ajuts', 'xarxaprod' ),
|
2024-01-09 16:13:20 +01:00
|
|
|
'id' => 'sidebar-funds',
|
2024-01-10 12:06:34 +01:00
|
|
|
'description' => esc_html__( 'Add widgets here.', 'xarxaprod' ),
|
2024-01-09 16:13:20 +01:00
|
|
|
'before_widget' => '<section id="%1$s" class="widget %2$s">',
|
|
|
|
'after_widget' => '</section>',
|
|
|
|
'before_title' => '<h2 class="widget-title">',
|
|
|
|
'after_title' => '</h2>',
|
|
|
|
)
|
|
|
|
);
|
|
|
|
register_sidebar(
|
|
|
|
array(
|
2024-01-10 12:06:34 +01:00
|
|
|
'name' => esc_html__( 'Footer - Peu', 'xarxaprod' ),
|
2024-01-09 16:13:20 +01:00
|
|
|
'id' => 'footer-widgets',
|
2024-01-10 12:06:34 +01:00
|
|
|
'description' => esc_html__( 'Add widgets here.', 'xarxaprod' ),
|
2024-01-09 16:13:20 +01:00
|
|
|
'before_widget' => '<section id="%1$s" class="widget %2$s">',
|
|
|
|
'after_widget' => '</section>',
|
|
|
|
'before_title' => '<h2 class="widget-title">',
|
|
|
|
'after_title' => '</h2>',
|
|
|
|
)
|
|
|
|
);
|
|
|
|
}
|
|
|
|
add_action( 'widgets_init', 'xarxaprod_widgets_init' );
|
|
|
|
|