Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /** Qui iniziano le sidebar **/
- /**
- * Register widgetized areas, including two sidebars and four widget-ready columns in the footer.
- *
- * To override appaqua_widgets_init() in a child theme, remove the action hook and add your own
- * function tied to the init hook.
- *
- * @since Appartamenti Acquario 1.0
- * @uses register_sidebar
- */
- function appaqua_widgets_init() {
- // Area 1, located at the top of the sidebar.
- register_sidebar( array(
- 'name' => __( 'Primary Widget Area', 'appaqua' ),
- 'id' => 'primary-widget-area',
- 'description' => __( 'The primary widget area', 'appaqua' ),
- 'before_widget' => '<li id="%1$s" class="widget-container %2$s">',
- 'after_widget' => '</li>',
- 'before_title' => '<h3 class="widget-title">',
- 'after_title' => '</h3>',
- ) );
- // Area 2, located below the Primary Widget Area in the sidebar. Empty by default.
- register_sidebar( array(
- 'name' => __( 'Secondary Widget Area', 'appaqua' ),
- 'id' => 'secondary-widget-area',
- 'description' => __( 'The secondary widget area', 'appaqua' ),
- 'before_widget' => '<li id="%1$s" class="widget-container %2$s">',
- 'after_widget' => '</li>',
- 'before_title' => '<h3 class="widget-title">',
- 'after_title' => '</h3>',
- ) );
- // Area 3, located in the footer. Empty by default.
- register_sidebar( array(
- 'name' => __( 'First Footer Widget Area', 'appaqua' ),
- 'id' => 'first-footer-widget-area',
- 'description' => __( 'The first footer widget area', 'appaqua' ),
- 'before_widget' => '<li id="%1$s" class="widget-container %2$s">',
- 'after_widget' => '</li>',
- 'before_title' => '<h3 class="widget-title">',
- 'after_title' => '</h3>',
- ) );
- // Area 4, located in the footer. Empty by default.
- register_sidebar( array(
- 'name' => __( 'Second Footer Widget Area', 'appaqua' ),
- 'id' => 'second-footer-widget-area',
- 'description' => __( 'The second footer widget area', 'appaqua' ),
- 'before_widget' => '<li id="%1$s" class="widget-container %2$s">',
- 'after_widget' => '</li>',
- 'before_title' => '<h3 class="widget-title">',
- 'after_title' => '</h3>',
- ) );
- // Area 5, located in the footer. Empty by default.
- register_sidebar( array(
- 'name' => __( 'Third Footer Widget Area', 'appaqua' ),
- 'id' => 'third-footer-widget-area',
- 'description' => __( 'The third footer widget area', 'appaqua' ),
- 'before_widget' => '<li id="%1$s" class="widget-container %2$s">',
- 'after_widget' => '</li>',
- 'before_title' => '<h3 class="widget-title">',
- 'after_title' => '</h3>',
- ) );
- // Area 6, located in the footer. Empty by default.
- register_sidebar( array(
- 'name' => __( 'Fourth Footer Widget Area', 'appaqua' ),
- 'id' => 'fourth-footer-widget-area',
- 'description' => __( 'The fourth footer widget area', 'appaqua' ),
- 'before_widget' => '<li id="%1$s" class="widget-container %2$s">',
- 'after_widget' => '</li>',
- 'before_title' => '<h3 class="widget-title">',
- 'after_title' => '</h3>',
- ) );
- // Area 7, vicino allo slideshow.
- register_sidebar( array(
- 'name' => __( 'Vicino allo slideshow', 'appaqua' ),
- 'id' => 'slide-box',
- 'description' => __( 'Vicino allo slideshow, utile per uno slogan', 'appaqua' ),
- 'before_widget' => '<li id="%1$s" class="widget-container %2$s">',
- 'after_widget' => '</li>',
- 'before_title' => '<h3 class="widget-title">',
- 'after_title' => '</h3>',
- ) );
- }
- /** Register sidebars by running appaqua_widgets_init() on the widgets_init hook. */
- add_action( 'widgets_init', 'appaqua_widgets_init' );
- /** End of the sidebars **/
- /** Register sidebars by running appaqua_widgets_init() on the widgets_init hook. */
- add_action( 'widgets_init', 'appaqua_widgets_init' );
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement