예제 #1
0
function porto_ct_default_meta_view_boxes()
{
    $theme_layouts = porto_ct_layouts();
    $sidebar_options = porto_ct_sidebars();
    $banner_pos = porto_ct_banner_pos();
    $banner_type = porto_ct_banner_type();
    $footer_view = porto_ct_footer_view();
    $master_sliders = porto_ct_master_sliders();
    $rev_sliders = porto_ct_rev_sliders();
    return array("breadcrumbs" => array("name" => "breadcrumbs", "title" => __("Breadcrumbs", 'porto'), "desc" => __("Hide breadcrumbs", 'porto'), "type" => "checkbox"), "title" => array("name" => "page_title", "title" => __("Page Title", 'porto'), "desc" => __("Hide page title", 'porto'), "type" => "checkbox"), "header" => array("name" => "header", "title" => __("Header", 'porto'), "desc" => __("Hide header", 'porto'), "type" => "checkbox"), "footer" => array("name" => "footer", "title" => __("Footer", 'porto'), "desc" => __("Hide footer", 'porto'), "type" => "checkbox"), "default" => array("name" => "default", "title" => __("Layout & Sidebar", 'porto'), "desc" => __("Use selected layout and sidebar", 'porto'), "type" => "checkbox"), "layout" => array("name" => "layout", "title" => __("Layout", 'porto'), "desc" => __("Select layout.", 'porto'), "type" => "radio", "default" => "right-sidebar", "options" => $theme_layouts), "sidebar" => array("name" => "sidebar", "title" => __("Sidebar", 'porto'), "desc" => __("Select the sidebar you would like to display. <strong>Note</strong>: You must first create the sidebar under <strong>Appearance > Sidebars</strong>.", 'porto'), "type" => "select", "default" => "blog-sidebar", "options" => $sidebar_options), "banner_pos" => array("name" => "banner_pos", "title" => __("Banner Position", 'porto'), "type" => "radio", "default" => "", "options" => $banner_pos), "footer_view" => array("name" => "footer_view", "title" => __("Footer View", 'porto'), "type" => "radio", "default" => "", "options" => $footer_view), "banner_type" => array("name" => "banner_type", "title" => __("Banner Type", 'porto'), "type" => "select", "options" => $banner_type), "master_slider" => array("name" => "master_slider", "title" => __("Master Slider", 'porto'), "desc" => __("Select the Master Slider.", 'porto'), "type" => "select", "options" => $master_sliders), "rev_slider" => array("name" => "rev_slider", "title" => __("Revolution Slider", 'porto'), "desc" => __("Select the Revolution Slider.", 'porto'), "type" => "select", "options" => $rev_sliders), "banner_block" => array("name" => "banner_block", "title" => __("Banner Block", 'porto'), "desc" => __("You should input block slug name. You can create a block in <strong>Blocks/Add New</strong>.", 'porto'), "type" => "text"), "content_top" => array("name" => "content_top", "title" => __("Content Top", 'porto'), "desc" => __("You should input block slug name. You can create a block in <strong>Blocks/Add New</strong>.", 'porto'), "type" => "text"), "content_inner_top" => array("name" => "content_inner_top", "title" => __("Content Inner Top", 'porto'), "desc" => __("You should input block slug name. You can create a block in <strong>Blocks/Add New</strong>.", 'porto'), "type" => "text"), "content_inner_bottom" => array("name" => "content_inner_bottom", "title" => __("Content Inner Bottom", 'porto'), "desc" => __("You should input block slug name. You can create a block in <strong>Blocks/Add New</strong>.", 'porto'), "type" => "text"), "content_bottom" => array("name" => "content_bottom", "title" => __("Content Bottom", 'porto'), "desc" => __("You should input block slug name. You can create a block in <strong>Blocks/Add New</strong>.", 'porto'), "type" => "text"));
}
예제 #2
0
function porto_ct_default_meta_view_boxes()
{
    $theme_layouts = porto_ct_layouts();
    $sidebar_options = porto_ct_sidebars();
    $banner_pos = porto_ct_banner_pos();
    $banner_type = porto_ct_banner_type();
    $footer_view = porto_ct_footer_view();
    $master_sliders = porto_ct_master_sliders();
    $rev_sliders = porto_ct_rev_sliders();
    // Get menus
    $menus = wp_get_nav_menus(array('orderby' => 'name'));
    $menu_options = array();
    if (!empty($menus)) {
        foreach ($menus as $menu) {
            $menu_options[$menu->term_id] = $menu->name;
        }
    }
    return array("loading_overlay" => array("name" => "loading_overlay", "title" => __("Loading Overlay", 'porto'), "type" => "radio", "default" => "", "options" => array_merge(porto_ct_show_options())), "breadcrumbs" => array("name" => "breadcrumbs", "title" => __("Breadcrumbs", 'porto'), "desc" => __("Hide breadcrumbs", 'porto'), "type" => "checkbox"), "title" => array("name" => "page_title", "title" => __("Page Title", 'porto'), "desc" => __("Hide page title", 'porto'), "type" => "checkbox"), "header" => array("name" => "header", "title" => __("Header", 'porto'), "desc" => __("Hide header", 'porto'), "type" => "checkbox"), "sticky_header" => array("name" => "sticky_header", "title" => __("Sticky Header", 'porto'), "type" => "radio", "default" => "", "options" => array_merge(porto_ct_show_options())), "footer" => array("name" => "footer", "title" => __("Footer", 'porto'), "desc" => __("Hide footer", 'porto'), "type" => "checkbox"), "main_menu" => array("name" => "main_menu", "title" => __("Main Menu", 'porto'), "desc" => __("Select the main menu you would like to display.", 'porto'), "type" => "select", "default" => "", "options" => $menu_options), "sidebar_menu" => array("name" => "sidebar_menu", "title" => __("Sidebar Menu", 'porto'), "desc" => __("Select the main menu you would like to display.", 'porto'), "type" => "select", "default" => "", "options" => $menu_options), "default" => array("name" => "default", "title" => __("Layout & Sidebar", 'porto'), "desc" => __("Use selected layout and sidebar", 'porto'), "type" => "checkbox"), "layout" => array("name" => "layout", "title" => __("Layout", 'porto'), "desc" => __("Select layout.", 'porto'), "type" => "radio", "default" => "right-sidebar", "options" => $theme_layouts), "sidebar" => array("name" => "sidebar", "title" => __("Sidebar", 'porto'), "desc" => __("Select the sidebar you would like to display. <strong>Note</strong>: You must first create the sidebar under <strong>Appearance > Sidebars</strong>.", 'porto'), "type" => "select", "default" => "blog-sidebar", "options" => $sidebar_options), "banner_pos" => array("name" => "banner_pos", "title" => __("Banner Position", 'porto'), "type" => "radio", "default" => "", "options" => $banner_pos), "footer_view" => array("name" => "footer_view", "title" => __("Footer View", 'porto'), "type" => "radio", "default" => "", "options" => $footer_view), "banner_type" => array("name" => "banner_type", "title" => __("Banner Type", 'porto'), "type" => "select", "options" => $banner_type), "master_slider" => array("name" => "master_slider", "title" => __("Master Slider", 'porto'), "desc" => __("Select the Master Slider.", 'porto'), "type" => "select", "options" => $master_sliders), "rev_slider" => array("name" => "rev_slider", "title" => __("Revolution Slider", 'porto'), "desc" => __("Select the Revolution Slider.", 'porto'), "type" => "select", "options" => $rev_sliders), "banner_block" => array("name" => "banner_block", "title" => __("Banner Block", 'porto'), "desc" => __("You should input block slug name. You can create a block in <strong>Blocks/Add New</strong>.", 'porto'), "type" => "text"), "content_top" => array("name" => "content_top", "title" => __("Content Top", 'porto'), "desc" => __("You should input block slug name. You can create a block in <strong>Blocks/Add New</strong>.", 'porto'), "type" => "text"), "content_inner_top" => array("name" => "content_inner_top", "title" => __("Content Inner Top", 'porto'), "desc" => __("You should input block slug name. You can create a block in <strong>Blocks/Add New</strong>.", 'porto'), "type" => "text"), "content_inner_bottom" => array("name" => "content_inner_bottom", "title" => __("Content Inner Bottom", 'porto'), "desc" => __("You should input block slug name. You can create a block in <strong>Blocks/Add New</strong>.", 'porto'), "type" => "text"), "content_bottom" => array("name" => "content_bottom", "title" => __("Content Bottom", 'porto'), "desc" => __("You should input block slug name. You can create a block in <strong>Blocks/Add New</strong>.", 'porto'), "type" => "text"));
}