Esempio n. 1
0
/**
 * Registers sidebars.
 *
 * @since  1.0.0
 * @access public
 * @return void
 */
function ubuntugnome_register_sidebars()
{
    hybrid_register_sidebar(array('id' => 'footer-1', 'name' => esc_html_x('Footer 1', 'sidebar', 'magik'), 'description' => esc_html__('Add sidebar description.', 'magik')));
    hybrid_register_sidebar(array('id' => 'footer-2', 'name' => esc_html_x('Footer 2', 'sidebar', 'magik'), 'description' => esc_html__('Add sidebar description.', 'magik')));
    hybrid_register_sidebar(array('id' => 'footer-3', 'name' => esc_html_x('Footer 3', 'sidebar', 'magik'), 'description' => esc_html__('Add sidebar description.', 'magik')));
    hybrid_register_sidebar(array('id' => 'footer-4', 'name' => esc_html_x('Footer 4', 'sidebar', 'magik'), 'description' => esc_html__('Add sidebar description.', 'magik')));
}
Esempio n. 2
0
/**
 * Registers sidebars.
 *
 * @since  1.0.0
 * @access public
 * @return void
 */
function magik_register_sidebars()
{
    hybrid_register_sidebar(array('id' => 'primary', 'name' => esc_html_x('Primary', 'sidebar', 'magik'), 'description' => esc_html__('Add sidebar description.', 'magik')));
    hybrid_register_sidebar(array('id' => 'footer-1', 'name' => esc_html_x('Footer 1', 'sidebar', 'magik'), 'description' => esc_html__('Add sidebar description.', 'magik')));
    hybrid_register_sidebar(array('id' => 'footer-2', 'name' => esc_html_x('Footer 2', 'sidebar', 'magik'), 'description' => esc_html__('Add sidebar description.', 'magik')));
    hybrid_register_sidebar(array('id' => 'footer-3', 'name' => esc_html_x('Footer 3', 'sidebar', 'magik'), 'description' => esc_html__('Add sidebar description.', 'magik')));
}
Esempio n. 3
0
/**
 * Registers sidebars.
 *
 * @since  1.0.0
 * @access public
 * @return void
 */
function vaidusworld_register_sidebars()
{
    hybrid_register_sidebar(array('id' => 'primary', 'name' => esc_html_x('Primary', 'sidebar', 'vaidusworld'), 'description' => esc_html__('Add sidebar description.', 'vaidusworld')));
    // hybrid_register_sidebar(
    // 	array(
    // 		'id'          => 'header-right',
    // 		'name'        => esc_html_x( 'Header Right', 'sidebar', 'vaidusworld' ),
    // 		'description' => esc_html__( 'Add sidebar description.', 'vaidusworld' )
    // 	)
    // );
    //
    // hybrid_register_sidebar(
    // 	array(
    // 		'id'          => 'footer-1',
    // 		'name'        => esc_html_x( 'Footer 1', 'sidebar', 'vaidusworld' ),
    // 		'description' => esc_html__( 'Add sidebar description.', 'vaidusworld' )
    // 	)
    // );
    //
    // hybrid_register_sidebar(
    // 	array(
    // 		'id'          => 'footer-2',
    // 		'name'        => esc_html_x( 'Footer 2', 'sidebar', 'vaidusworld' ),
    // 		'description' => esc_html__( 'Add sidebar description.', 'vaidusworld' )
    // 	)
    // );
    //
    // hybrid_register_sidebar(
    // 	array(
    // 		'id'          => 'footer-3',
    // 		'name'        => esc_html_x( 'Footer 3', 'sidebar', 'vaidusworld' ),
    // 		'description' => esc_html__( 'Add sidebar description.', 'vaidusworld' )
    // 	)
    // );
}
Esempio n. 4
0
function ct_tracks_register_widget_areas()
{
    /* register after post content widget area */
    hybrid_register_sidebar(array('name' => __('After Post Content', 'tracks'), 'id' => 'after-post-content', 'description' => __('Widgets in this area will be shown after post content before the prev/next post links', 'tracks')));
    /* register after page content widget area */
    hybrid_register_sidebar(array('name' => __('After Page Content', 'tracks'), 'id' => 'after-page-content', 'description' => __('Widgets in this area will be shown after page content', 'tracks')));
    /* register footer widget area */
    hybrid_register_sidebar(array('name' => __('Footer', 'tracks'), 'id' => 'footer', 'description' => __('Widgets in this area will be shown in the footer', 'tracks'), 'before_title' => '<h4 class="widget-title">', 'after_title' => '</h4>'));
}
 /**
  * Register footer widget areas based on the number of widget areas the user
  * wishes to create with `add_theme_support()`.
  *
  * @since  1.0.0
  * @uses   register_sidebar() Register footer widget areas.
  * @return null Return early if there's no theme support.
  */
 public function register_footer_widgets()
 {
     // Return early if we don't have any footer widgets to display.
     if (!isset($this->footer_widgets[0]) || !is_numeric($this->footer_widgets[0])) {
         return;
     }
     $counter = $this->counter;
     while ($counter <= absint($this->footer_widgets[0])) {
         hybrid_register_sidebar(array('id' => sprintf('footer-%d', $counter), 'name' => sprintf(__('Footer %d', 'flagship-library'), $counter), 'description' => sprintf(__('Footer %d widget area.', 'flagship-library'), $counter)));
         $counter++;
     }
 }
Esempio n. 6
0
/**
 * Register footer widget areas based on the number of widget areas the user
 * wishes to create with `add_theme_support()`.
 *
 * @since  1.0.0
 * @uses   register_sidebar() Register footer widget areas.
 * @return null Return early if there's no theme support.
 */
function flagship_register_footer_widget_areas()
{
    // Get the current theme's support for footer widgets.
    $footer_widgets = get_theme_support('flagship-footer-widgets');
    if (!$footer_widgets || !isset($footer_widgets[0]) || !is_numeric($footer_widgets[0])) {
        return;
    }
    $footer_widgets = (int) $footer_widgets[0];
    $counter = 1;
    while ($counter <= $footer_widgets) {
        hybrid_register_sidebar(array('id' => sprintf('footer-%d', $counter), 'name' => sprintf(__('Footer %d', 'compass'), $counter), 'description' => sprintf(__('Footer %d widget area.', 'compass'), $counter)));
        $counter++;
    }
}
Esempio n. 7
0
function clea_2_register_sidebars()
{
    hybrid_register_sidebar(array('id' => 'before-front-page', 'name' => _x('Before Front Page', 'sidebar', 'stargazer'), 'description' => __('A sidebar displayed before the content of the front page, full width', 'stargazer')));
    hybrid_register_sidebar(array('id' => 'inside-header', 'name' => _x('Inside Header', 'sidebar', 'stargazer'), 'description' => __('A sidebar displayed inside the header', 'stargazer')));
}
Esempio n. 8
0
function taylor_register_sidebars()
{
    hybrid_register_sidebar(array('id' => 'primary', 'name' => _x('Primary', 'sidebar', 'taylor'), 'description' => __('The main sidebar. Displayed on either the left or right side of the page depending on the selected layout.', 'taylor')));
    hybrid_register_sidebar(array('id' => 'subsidiary', 'name' => _x('Subsidiary', 'sidebar', 'taylor'), 'description' => __('A sidebar located in the footer of the site. It is optimized for three footer widgets.', 'taylor')));
}
Esempio n. 9
0
/**
 * Registers sidebars.
 *
 * @since  1.0.0
 * @access public
 * @return void
 */
function hybrid_base_register_sidebars()
{
    hybrid_register_sidebar(array('id' => 'primary', 'name' => _x('Primary', 'sidebar', 'hybrid-base'), 'description' => __('Add sidebar description.', 'hybrid-base')));
    hybrid_register_sidebar(array('id' => 'subsidiary', 'name' => _x('Subsidiary', 'sidebar', 'hybrid-base'), 'description' => __('Add sidebar description.', 'hybrid-base')));
}
Esempio n. 10
0
/**
 * Registers sidebars.
 *
 * @since  1.0.0
 * @access public
 * @return void
 */
function ejo_register_sidebars()
{
    hybrid_register_sidebar(array('id' => 'sidebar-primary', 'name' => 'Sidebar - Primary', 'description' => 'Drag widgets to here'));
    hybrid_register_sidebar(array('id' => 'home-blocks', 'name' => 'Home - Blocks', 'description' => 'Drag widgets to here', 'before_widget' => '<article id="%1$s" class="widget %2$s">', 'after_widget' => '</article>'));
    hybrid_register_sidebar(array('id' => 'home-services', 'name' => 'Home - Services', 'description' => 'Drag widgets to here', 'before_widget' => '<article id="%1$s" class="widget %2$s">', 'after_widget' => '</article>'));
}
Esempio n. 11
0
/**
 * Registers sidebars.
 */
function croft_register_sidebars()
{
    hybrid_register_sidebar(array('id' => 'primary', 'name' => esc_html_x('Primary', 'sidebar', 'croft'), 'description' => esc_html__('The main sidebar area.', 'croft')));
    hybrid_register_sidebar(array('id' => 'subsidiary', 'name' => esc_html_x('Subsidiary', 'sidebar', 'croft'), 'description' => esc_html__('The footer widget area.', 'croft')));
}
Esempio n. 12
0
/**
 * Registers sidebars.
 *
 * @since  1.0.0
 * @access public
 * @return void
 */
function compass_register_sidebars()
{
    hybrid_register_sidebar(array('id' => 'primary', 'name' => _x('Primary Sidebar', 'sidebar', 'compass'), 'description' => __('The main sidebar. It is displayed on either the left or right side of the page based on the chosen layout.', 'compass')));
    hybrid_register_sidebar(array('id' => 'header-right', 'name' => _x('Header Right', 'sidebar', 'compass'), 'description' => __('The header right sidebar area. It is displayed to the right of the site title area.', 'compass'), 'before_widget' => '<div id="%1$s" class="widget %2$s">', 'after_widget' => '</div>', 'before_title' => '<span class="widget-title">', 'after_title' => '</span>'));
}
Esempio n. 13
0
/**
 * Registers sidebars.
 *
 * @since  1.0.0
 * @access public
 * @return void
 */
function compass_register_sidebars()
{
    hybrid_register_sidebar(array('id' => 'primary', 'name' => _x('Primary Sidebar', 'sidebar', 'compass'), 'description' => __('The main sidebar. It is displayed on either the left or right side of the page based on the chosen layout.', 'compass')));
}
/**
 * Register sidebars.
 *
 * @since  1.0.0
 * @access public
 * @return void
 */
function anp_theme_register_sidebars()
{
    hybrid_register_sidebar(array('id' => 'sidebar1', 'name' => esc_html_x('Primary', 'sidebar', 'anp-main-theme'), 'description' => esc_html__('', 'anp-main-theme')));
    hybrid_register_sidebar(array('id' => 'home-modules', 'name' => esc_html_x('Homepage Modules', 'sidebar', 'anp-main-theme'), 'description' => esc_html__('Modules for the Homepage', 'anp-main-theme')));
    hybrid_register_sidebar(array('id' => 'footer1', 'name' => esc_html_x('Footer 1', 'anp-main-theme'), 'description' => esc_html_x('First footer widget area.', 'anp-main-theme')));
    hybrid_register_sidebar(array('id' => 'footer2', 'name' => esc_html_x('Footer 2', 'anp-main-theme'), 'description' => esc_html_x('Second footer widget area.', 'anp-main-theme')));
    hybrid_register_sidebar(array('id' => 'footer3', 'name' => esc_html_x('Footer 3', 'anp-main-theme'), 'description' => esc_html_x('Third footer widget area.', 'anp-main-theme')));
    hybrid_register_sidebar(array('id' => 'footer4', 'name' => esc_html_x('Footer 4', 'anp-main-theme'), 'description' => esc_html_x('Fourth footer widget area.', 'anp-main-theme')));
    hybrid_register_sidebar(array('id' => 'social', 'name' => __('Social Widget', 'anp-main-theme'), 'description' => __('Widget area for social links.', 'anp-main-theme')));
}
Esempio n. 15
0
/**
 * Register Sidebars
 * @since 0.1.0
 */
function tamatebako_register_sidebars()
{
    /* Get theme-supported sidebars. */
    $sidebars = get_theme_support('tamatebako-sidebars');
    /* No Support, Return */
    if (!is_array($sidebars[0])) {
        return;
    }
    /* Foreach sidebar, register it */
    foreach ($sidebars[0] as $sidebar_id => $sidebar_arg) {
        hybrid_register_sidebar(array('id' => $sidebar_id, 'name' => $sidebar_arg['name'], 'description' => $sidebar_arg['description']));
    }
}
Esempio n. 16
0
function ct_author_register_widget_areas()
{
    /* register after post content widget area */
    hybrid_register_sidebar(array('name' => __('Primary Sidebar', 'author'), 'id' => 'primary', 'description' => __('Widgets in this area will be shown in the sidebar', 'author'), 'before_title' => '<h2 class="widget-title">', 'after_title' => '</h2>'));
}
Esempio n. 17
0
/**
 * Registers sidebars.
 *
 * @since  1.0.0
 * @access public
 * @return void
 */
function stargazer_register_sidebars()
{
    hybrid_register_sidebar(array('id' => 'primary', 'name' => _x('Primary', 'sidebar', 'stargazer'), 'description' => __('The main sidebar. It is displayed on either the left or right side of the page based on the chosen layout.', 'stargazer')));
    hybrid_register_sidebar(array('id' => 'subsidiary', 'name' => _x('Subsidiary', 'sidebar', 'stargazer'), 'description' => __('A sidebar located in the footer of the site. Optimized for one, two, or three widgets (and multiples thereof).', 'stargazer')));
}
Esempio n. 18
0
/**
 * Registers sidebars.
 *
 * @since  1.0.0
 * @access public
 * @return void
 */
function ravel_register_sidebars()
{
    hybrid_register_sidebar(array('id' => 'primary', 'name' => _x('Primary', 'sidebar', 'ravel'), 'description' => __('The main sidebar.', 'ravel')));
}
function ct_apex_register_widget_areas()
{
    /* register after post content widget area */
    hybrid_register_sidebar(array('name' => __('Primary Sidebar', 'apex'), 'id' => 'primary', 'description' => __('Widgets in this area will be shown in the sidebar next to the main post content', 'apex')));
}
Esempio n. 20
0
/**
 * Registers sidebars.
 *
 * @since  1.0.0
 * @access public
 * @return void
 */
function ejo_register_sidebars()
{
    hybrid_register_sidebar(array('id' => 'sidebar-primary', 'name' => 'Sidebar - Primary', 'description' => 'Drag widgets to here'));
}