Beispiel #1
0
/**
 * Add basic widgets.
 * ONLY USED WHEN WONDERFLUX ACTIVATED DIRECTLY.
 *
 * @since	0.902
 * @version	2.1
 *
 * @param	none
 */
function wfx_core_default_widgets()
{
    // Runs wf_widgets() just like any good Wonderflux theme should.
    // Define AND insert on any hook quickly and easily.
    wfx_widgets(array(array("name" => __('Above sidebar', 'wonderflux'), "description" => __('Drag widgets into here to include them above the sidebar on your site.', 'wonderflux'), "location" => "wfsidebar_before_all", "titleclass" => "primary-widget-title"), array("name" => __('Below sidebar', 'wonderflux'), "description" => __('Drag widgets into here to include them below the sidebar on your site.', 'wonderflux'), "location" => "wfsidebar_after_all", "titleclass" => "primary-widget-title")));
}
/**
 *
 * Defines and automatically inserts widget areas using the Wonderflux display hook system.
 * If no 'location' set, you insert widget area as normal in theme file.
 *
 */
function my_wfx_widgets()
{
    wfx_widgets(array(array("name" => __('Above sidebar', 'wfxgider'), "description" => __('Drag widgets here to be shown above the sidebar on all pages.', 'wfxgider'), "location" => "wfsidebar_before_all", "container" => "div", "containerclass" => "widget-box", "titlestyle" => "h4", "titleclass" => "sidebar-title", "before" => "", "after" => ""), array("name" => __('Below homepage sidebar', 'wfxgider'), "description" => __('Drag widgets here to be shown below the sidebar, ONLY on the homepage.', 'wfxgider'), "location" => "wfsidebar_after_home", "titleclass" => "sidebar-title", "containerclass" => "widget-box", "titlestyle" => "h4"), array("name" => __('Below content', 'wfxgider'), "location" => "wfloop_after_found_posts_home", "description" => __('Drag widgets here to be shown below the main content, ONLY on the homepage.', 'wfxgider'), "containerclass" => "box-1-1 widget-box widget-box-below-content", "titlestyle" => "h2"), array("name" => __('Footer primary 1', 'wfxgider'), "description" => __('Drag widgets here to be shown in the footer area (small left area)', 'wfxgider'), "titleclass" => "sidebar-title", "containerclass" => "widget-box", "titlestyle" => "h4"), array("name" => __('Footer primary 2', 'wfxgider'), "description" => __('Drag widgets here to be shown in the footer area (small right area)', 'wfxgider'), "titleclass" => "sidebar-title", "containerclass" => "widget-box", "titlestyle" => "h4")));
}