88 lines
2.4 KiB
PHP
88 lines
2.4 KiB
PHP
<?php
|
|
/**
|
|
* Studio Pro Theme
|
|
*
|
|
* This file contains the widget functions for this theme.
|
|
*
|
|
* @package StudioPro
|
|
* @link https://seothemes.com/themes/studio-pro
|
|
* @author SEO Themes
|
|
* @copyright Copyright © 2017 SEO Themes
|
|
* @license GPL-2.0+
|
|
*/
|
|
|
|
// If this file is called directly, abort.
|
|
if ( ! defined( 'WPINC' ) ) {
|
|
|
|
die;
|
|
|
|
}
|
|
|
|
// Register Front Page 1 widget area.
|
|
genesis_register_sidebar( array(
|
|
'id' => 'front-page-1',
|
|
'name' => __( 'Front Page 1', 'studio-pro' ),
|
|
'description' => __( 'Front page 1 widget area.', 'studio-pro' ),
|
|
'before_title' => '<h1 itemprop="headline">',
|
|
'after_title' => '</h1>',
|
|
) );
|
|
|
|
// Register Front Page 2 widget area.
|
|
genesis_register_sidebar( array(
|
|
'id' => 'front-page-2',
|
|
'name' => __( 'Front Page 2', 'studio-pro' ),
|
|
'description' => __( 'Front page 2 widget area.', 'studio-pro' ),
|
|
) );
|
|
|
|
// Register Front Page 3 widget area.
|
|
genesis_register_sidebar( array(
|
|
'id' => 'front-page-3',
|
|
'name' => __( 'Front Page 3', 'studio-pro' ),
|
|
'description' => __( 'Front page 3 widget area.', 'studio-pro' ),
|
|
) );
|
|
|
|
// Register Front Page 4 widget area.
|
|
genesis_register_sidebar( array(
|
|
'id' => 'front-page-4',
|
|
'name' => __( 'Front Page 4', 'studio-pro' ),
|
|
'description' => __( 'Front page 4 widget area.', 'studio-pro' ),
|
|
) );
|
|
|
|
// Register Front Page 5 widget area.
|
|
genesis_register_sidebar( array(
|
|
'id' => 'front-page-5',
|
|
'name' => __( 'Front Page 5', 'studio-pro' ),
|
|
'description' => __( 'Front page 5 widget area.', 'studio-pro' ),
|
|
) );
|
|
|
|
// Register Front Page 6 widget area.
|
|
genesis_register_sidebar( array(
|
|
'id' => 'front-page-6',
|
|
'name' => __( 'Front Page 6', 'studio-pro' ),
|
|
'description' => __( 'Front page 6 widget area.', 'studio-pro' ),
|
|
) );
|
|
|
|
// Register Before Footer widget area.
|
|
genesis_register_sidebar( array(
|
|
'id' => 'before-footer',
|
|
'name' => __( 'Before Footer', 'studio-pro' ),
|
|
'description' => __( 'Before Footer widget area.', 'studio-pro' ),
|
|
) );
|
|
|
|
add_action( 'genesis_before_footer_wrap', 'studio_before_footer_widget_area', 0 );
|
|
/**
|
|
* Display Before Footer widget area.
|
|
*
|
|
* @since 1.0.0
|
|
*
|
|
* @return null
|
|
*/
|
|
function studio_before_footer_widget_area() {
|
|
|
|
genesis_widget_area( 'before-footer', array(
|
|
'before' => '<div class="before-footer widget-area"><div class="wrap">',
|
|
'after' => '</div></div>',
|
|
) );
|
|
|
|
}
|