コード例 #1
0
ファイル: page.php プロジェクト: robwri32/garland
function venedor_page_get_postdata()
{
    global $page_meta_boxes, $wp_registered_sidebars;
    // Page Meta Options
    $theme_layouts = venedor_ct_layouts();
    $theme_layouts = array_merge(array("widewidth" => "Wide Width"), $theme_layouts);
    $sidebar_options = venedor_ct_sidebars();
    $banner_type = venedor_ct_banner_type();
    $banner_width = venedor_ct_banner_width();
    $layer_sliders = venedor_ct_layer_sliders();
    $rev_sliders = venedor_ct_rev_sliders();
    $portfolio_columns = array("2" => "2 Columns", "3" => "3 Columns", "4" => "4 Columns");
    $portfolio_cats = array();
    $portfolio_cats[0] = 'All Categories';
    $pcats = get_categories(array('taxonomy' => 'portfolio_cat'));
    foreach ($pcats as $pcat) {
        $portfolio_cats[$pcat->term_id] = $pcat->name;
    }
    $faq_cats = array();
    $faq_cats[0] = 'All Categories';
    $fcats = get_categories(array('taxonomy' => 'faq_cat'));
    foreach ($fcats as $fcat) {
        $faq_cats[$fcat->term_id] = $fcat->name;
    }
    // Page Meta Boxes
    $page_meta_boxes = array("breadcrumbs" => venedor_labels_meta("breadcrumbs", "Breadcrumbs", "Disable breadcrumbs", "checkbox"), "title" => venedor_labels_meta("title", "Page Title", "Hide page title", "checkbox"), "layout" => venedor_labels_meta("layout", "Layout", "Select the layout.", "radio", "fullwidth", "radio", $theme_layouts), "sidebar" => venedor_labels_meta("sidebar", "Sidebar", "Select the sidebar you would like to display. <strong>Note</strong>: You must first create the sidebar under <strong>Appearance > Sidebars</strong>.", "customselect", "blog-sidebar", "", $sidebar_options), "header_on_banner" => venedor_labels_meta("header_on_banner", "Header on Banner", "Show header on banner. When select <strong>\"Banner Type\"</strong> to <strong>\"Layerslider\"</strong>, <strong>\"Revolution Slider\"</strong> or <strong>\"Banner\"</strong>, this option will be work.", "checkbox"), "bg_rev_slider" => venedor_labels_meta("bg_rev_slider", "Background Slider", "Select the Background Revolution Slider. If you should select <strong>\"Banner Type\"</strong> to <strong>\"Revolution Slider\"</strong>, this will be <strong>synchronize</strong> with <strong>banner revolution slider</strong>.", "customselect", "", "", $rev_sliders), "banner_type" => venedor_labels_meta("banner_type", "Banner Type", "Select the banner type which display above the page content.", "customselect", "", "", $banner_type), "banner_width" => venedor_labels_meta("banner_width", "Banner Width", "Select the banner width", "radio", "wide", "radio", $banner_width), "layer_slider" => venedor_labels_meta("layer_slider", "LayerSlider", "Select the LayerSlider.", "customselect", "", "", $layer_sliders), "rev_slider" => venedor_labels_meta("rev_slider", "Revolution Slider", "Select the Revolution Slider.", "customselect", "", "", $rev_sliders), "banner" => venedor_labels_meta("banner", "Banner", "", "textarea"), "product_slider" => venedor_labels_meta("product_slider", "Product Slider", "Comma separated list of product id.", "text"), "infinite_scroll" => venedor_labels_meta("infinite_scroll", "Infinite Scroll", "Enable infinite scroll. Use in <strong>Portfolio</strong> templates.", "checkbox"), "portfolio_columns" => venedor_labels_meta("portfolio_columns", "Portfolio Columns", "The number of the columns in the portfolio page. Use in <strong>Portfolio</strong> template.", "radio", "4", "radio", $portfolio_columns), "portfolio_cat" => venedor_labels_meta("portfolio_cat", "Portfolio Category", "Select the portfolio categories. Use in <strong>Portfolio</strong> template.", "multi_checkbox", "", "", $portfolio_cats), "portfolio_filters" => venedor_labels_meta("portfolio_filters", "Portfolio Filters", "Show the portfolio filters. Use in <strong>Portfolio</strong> template.", "checkbox"), "faq_cat" => venedor_labels_meta("faq_cat", "FAQ Category", "Select the faq categories. Use in <strong>FAQs</strong> template.", "multi_checkbox", "", "", $faq_cats), "faq_filters" => venedor_labels_meta("faq_filters", "FAQ Filters", "Show the faq filters. Use in <strong>FAQs</strong> template.", "checkbox"), "content_top" => venedor_labels_meta("content_top", "Content Top", "Input the content top block.", "text"), "content_bottom" => venedor_labels_meta("content_bottom", "Content Bottom", "Input the content bottom block.", "text"));
}
コード例 #2
0
ファイル: portfolio.php プロジェクト: robwri32/garland
function venedor_portfolio_get_postdata()
{
    global $portfolio_meta_boxes, $portfolio_cat_meta_boxes;
    // Portfolio Meta Options
    $theme_layouts = venedor_ct_layouts();
    $sidebar_options = venedor_ct_sidebars();
    $banner_type = venedor_ct_banner_type();
    $banner_width = venedor_ct_banner_width();
    $layer_sliders = venedor_ct_layer_sliders();
    $rev_sliders = venedor_ct_rev_sliders();
    // Portfolio Meta Boxes
    $portfolio_meta_boxes = array("breadcrumbs" => venedor_labels_meta("breadcrumbs", "Breadcrumbs", "Disable breadcrumbs", "checkbox"), "default" => venedor_labels_meta("default", "Layout & Sidebar", "Use selected layout and sidebar", "checkbox"), "layout" => venedor_labels_meta("layout", "Layout", "Select layout.", "radio", "fullwidth", "radio", $theme_layouts), "sidebar" => venedor_labels_meta("sidebar", "Sidebar", "Select the sidebar you would like to display. <strong>Note</strong>: You must first create the sidebar under <strong>Appearance > Sidebars</strong>.", "customselect", "blog-sidebar", "", $sidebar_options), "header_on_banner" => venedor_labels_meta("header_on_banner", "Header on Banner", "Show header on banner. When select <strong>\"Banner Type\"</strong> to <strong>\"Layerslider\"</strong>, <strong>\"Revolution Slider\"</strong> or <strong>\"Banner\"</strong>, this option will be work.", "checkbox"), "bg_rev_slider" => venedor_labels_meta("bg_rev_slider", "Background Slider", "Select the Background Revolution Slider. If you should select <strong>\"Banner Type\"</strong> to <strong>\"Revolution Slider\"</strong>, this will be <strong>synchronize</strong> with <strong>banner revolution slider</strong>.", "customselect", "", "", $rev_sliders), "banner_type" => venedor_labels_meta("banner_type", "Banner Type", "Select the banner type which display above the page content.", "customselect", "", "", $banner_type), "banner_width" => venedor_labels_meta("banner_width", "Banner Width", "Select the banner width", "radio", "wide", "radio", $banner_width), "layer_slider" => venedor_labels_meta("layer_slider", "LayerSlider", "Select the LayerSlider.", "customselect", "", "", $layer_sliders), "rev_slider" => venedor_labels_meta("rev_slider", "Revolution Slider", "Select the Revolution Slider.", "customselect", "", "", $rev_sliders), "banner" => venedor_labels_meta("banner", "Banner", "", "textarea"), "product_slider" => venedor_labels_meta("product_slider", "Product Slider", "Comma separated list of product id.", "text"), "slideshow_type" => venedor_labels_meta("slideshow_type", "Portfolio Type", "Select the portfolio type mode you want to use either image or video.", "radio", "images", "radio", array("images" => "Images", "video" => "Video & Audio", "none" => "None")), "video_code" => venedor_labels_meta("video_code", "Video & Audio Embed Code", "Paste the iframe code of the Flash (YouTube or Vimeo etc). Only necessary when the portfolio type is video.", "textarea"), "portfolio_link" => venedor_labels_meta("portfolio_link", "Portfolio link", "External Link for the Portfolio which adds a visit site button with the link. Leave blank for post URL.", "text"), "content_top" => venedor_labels_meta("content_top", "Content Top", "Input the content top block.", "text"), "content_bottom" => venedor_labels_meta("content_bottom", "Content Bottom", "Input the content bottom block.", "text"));
    // Category Meta Boxes
    $portfolio_cat_meta_boxes = array("breadcrumbs" => venedor_labels_meta("breadcrumbs", "Breadcrumbs", "Disable breadcrumbs", "checkbox"), "default" => venedor_labels_meta("default", "Layout & Sidebar", "Use selected layout and sidebar", "checkbox"), "layout" => venedor_labels_meta("layout", "Layout", "Select layout.", "radio", "right-sidebar", "radio", $theme_layouts), "sidebar" => venedor_labels_meta("sidebar", "Sidebar", "Select the sidebar you would like to display. <strong>Note</strong>: You must first create the sidebar under <strong>Appearance > Sidebars</strong>.", "customselect", "blog-sidebar", "", $sidebar_options), "header_on_banner" => venedor_labels_meta("header_on_banner", "Header on Banner", "Show header on banner. When select <strong>\"Banner Type\"</strong> to <strong>\"Layerslider\"</strong>, <strong>\"Revolution Slider\"</strong> or <strong>\"Banner\"</strong>, this option will be work.", "checkbox"), "bg_rev_slider" => venedor_labels_meta("bg_rev_slider", "Background Slider", "Select the Background Revolution Slider. If you should select <strong>\"Banner Type\"</strong> to <strong>\"Revolution Slider\"</strong>, this will be <strong>synchronize</strong> with <strong>banner revolution slider</strong>.", "customselect", "", "", $rev_sliders), "banner_type" => venedor_labels_meta("banner_type", "Banner Type", "Select the banner type which display above the page content.", "customselect", "", "", $banner_type), "banner_width" => venedor_labels_meta("banner_width", "Banner Width", "Select the banner width", "radio", "wide", "radio", $banner_width), "layer_slider" => venedor_labels_meta("layer_slider", "LayerSlider", "Select the LayerSlider.", "customselect", "", "", $layer_sliders), "rev_slider" => venedor_labels_meta("rev_slider", "Revolution Slider", "Select the Revolution Slider.", "customselect", "", "", $rev_sliders), "banner" => venedor_labels_meta("banner", "Banner", "", "textarea"), "product_slider" => venedor_labels_meta("product_slider", "Product Slider", "Comma separated list of product id.", "text"), "content_top" => venedor_labels_meta("content_top", "Content Top", "Input the content top block.", "text"), "content_bottom" => venedor_labels_meta("content_bottom", "Content Bottom", "Input the content bottom block.", "text"));
}
コード例 #3
0
ファイル: product.php プロジェクト: robwri32/garland
function venedor_product_get_postdata()
{
    global $product_meta_boxes, $product_cat_meta_boxes;
    // Product Meta Options
    $theme_layouts = venedor_ct_layouts();
    $sidebar_options = venedor_ct_sidebars();
    $banner_type = venedor_ct_banner_type();
    $banner_width = venedor_ct_banner_width();
    $layer_sliders = venedor_ct_layer_sliders();
    $rev_sliders = venedor_ct_rev_sliders();
    $product_meta_boxes = array("breadcrumbs" => venedor_labels_meta("breadcrumbs", "Breadcrumbs", "Disable breadcrumbs", "checkbox"), "default" => venedor_labels_meta("default", "Layout & Sidebar", "Use selected layout and sidebar", "checkbox"), "layout" => venedor_labels_meta("layout", "Layout", "Select layout.", "radio", "fullwidth", "radio", $theme_layouts), "sidebar" => venedor_labels_meta("sidebar", "Sidebar", "Select the sidebar you would like to display. <strong>Note</strong>: You must first create the sidebar under <strong>Appearance > Sidebars</strong>.", "customselect", "woocommerce-sidebar", "", $sidebar_options), "header_on_banner" => venedor_labels_meta("header_on_banner", "Header on Banner", "Show header on banner. When select <strong>\"Banner Type\"</strong> to <strong>\"Layerslider\"</strong>, <strong>\"Revolution Slider\"</strong> or <strong>\"Banner\"</strong>, this option will be work.", "checkbox"), "bg_rev_slider" => venedor_labels_meta("bg_rev_slider", "Background Slider", "Select the Background Revolution Slider. If you should select <strong>\"Banner Type\"</strong> to <strong>\"Revolution Slider\"</strong>, this will be <strong>synchronize</strong> with <strong>banner revolution slider</strong>.", "customselect", "", "", $rev_sliders), "banner_type" => venedor_labels_meta("banner_type", "Banner Type", "Select the banner type which display above the page content.", "customselect", "", "", $banner_type), "banner_width" => venedor_labels_meta("banner_width", "Banner Width", "Select the banner width", "radio", "wide", "radio", $banner_width), "layer_slider" => venedor_labels_meta("layer_slider", "LayerSlider", "Select the LayerSlider.", "customselect", "", "", $layer_sliders), "rev_slider" => venedor_labels_meta("rev_slider", "Revolution Slider", "Select the Revolution Slider.", "customselect", "", "", $rev_sliders), "banner" => venedor_labels_meta("banner", "Banner", "", "textarea"), "product_slider" => venedor_labels_meta("product_slider", "Product Slider", "Comma separated list of product id.", "text"), "content_top" => venedor_labels_meta("content_top", "Content Top", "Input the content top block.", "text"), "content_bottom" => venedor_labels_meta("content_bottom", "Content Bottom", "Input the content bottom block.", "text"), "custom_tab_title1" => venedor_labels_meta("custom_tab_title1", "Custom Tab Title 1", "Input the custom tab title.", "text"), "custom_tab_content1" => venedor_labels_meta("custom_tab_content1", "Custom Tab Content 1", "Input the custom tab content.", "textarea"), "custom_tab_title2" => venedor_labels_meta("custom_tab_title2", "Custom Tab Title 2", "Input the custom tab title.", "text"), "custom_tab_content2" => venedor_labels_meta("custom_tab_content2", "Custom Tab Content 2", "Input the custom tab content.", "textarea"));
    $banner_type['featured_products'] = "Featured Products";
    $banner_type['hide_banner'] = "Hide Banner";
    // Category Meta Boxes
    $product_cat_meta_boxes = array("breadcrumbs" => venedor_labels_meta("breadcrumbs", "Breadcrumbs", "Disable breadcrumbs", "checkbox"), "default" => venedor_labels_meta("default", "Layout & Sidebar", "Use selected layout and sidebar", "checkbox"), "layout" => venedor_labels_meta("layout", "Layout", "Select layout.", "radio", "right-sidebar", "radio", $theme_layouts), "sidebar" => venedor_labels_meta("sidebar", "Sidebar", "Select the sidebar you would like to display. <strong>Note</strong>: You must first create the sidebar under <strong>Appearance > Sidebars</strong>.", "customselect", "woocommerce-sidebar", "", $sidebar_options), "header_on_banner" => venedor_labels_meta("header_on_banner", "Header on Banner", "Show header on banner. When select <strong>\"Banner Type\"</strong> to <strong>\"Layerslider\"</strong>, <strong>\"Revolution Slider\"</strong> or <strong>\"Banner\"</strong>, this option will be work.", "checkbox"), "bg_rev_slider" => venedor_labels_meta("bg_rev_slider", "Background Slider", "Select the Background Revolution Slider. If you should select <strong>\"Banner Type\"</strong> to <strong>\"Revolution Slider\"</strong>, this will be <strong>synchronize</strong> with <strong>banner revolution slider</strong>.", "customselect", "", "", $rev_sliders), "banner_type" => venedor_labels_meta("banner_type", "Banner Type", "Select the banner type which display above the page content.", "customselect", "", "", $banner_type), "banner_width" => venedor_labels_meta("banner_width", "Banner Width", "Select the banner width", "radio", "wide", "radio", $banner_width), "layer_slider" => venedor_labels_meta("layer_slider", "LayerSlider", "Select the LayerSlider.", "customselect", "", "", $layer_sliders), "rev_slider" => venedor_labels_meta("rev_slider", "Revolution Slider", "Select the Revolution Slider.", "customselect", "", "", $rev_sliders), "banner" => venedor_labels_meta("banner", "Banner", "", "textarea"), "product_slider" => venedor_labels_meta("product_slider", "Product Slider", "Comma separated list of product id.", "text"), "content_top" => venedor_labels_meta("content_top", "Content Top", "Input the content top block.", "text"), "content_bottom" => venedor_labels_meta("content_bottom", "Content Bottom", "Input the content bottom block.", "text"));
}