/**
 * The VC Functions
 */
function ebor_portfolio_shortcode_vc()
{
    $layouts = ebor_get_portfolio_layouts();
    vc_map(array("icon" => 'huntington-vc-block', "name" => __("Portfolio", 'huntington'), "base" => "huntington_portfolio", "category" => __('Huntington WP Theme', 'huntington'), "params" => array(array("type" => "textfield", "heading" => __("Show How Many Posts?", 'huntington'), "param_name" => "pppage", "value" => '8'), array("type" => "dropdown", "heading" => __("Display type", 'huntington'), "param_name" => "type", "value" => $layouts))));
}
/**
 * The VC Functions
 */
function ebor_portfolio_shortcode_vc()
{
    $portfolio_types = ebor_get_portfolio_layouts();
    vc_map(array("icon" => 'malory-vc-block', "name" => esc_html__("Portfolio Feeds", 'malory'), "base" => "malory_portfolio", "category" => esc_html__('malory WP Theme', 'malory'), 'description' => 'Show portfolio posts in the page.', "params" => array(array("type" => "textfield", "heading" => esc_html__("Show How Many Posts?", 'malory'), "param_name" => "pppage", "value" => '8'), array("type" => "dropdown", "heading" => esc_html__("Display type", 'malory'), "param_name" => "type", "value" => $portfolio_types), array("type" => "dropdown", "heading" => esc_html__("Show Filters?", 'malory'), "param_name" => "filters", "value" => array('Yes' => 'yes', 'No' => 'no')))));
}
Beispiel #3
0
 * Uses the Ebor_Options class found in the ebor-framework plugin
 * Panels are WP 4.0+!!!
 * 
 * @since 1.0.0
 * @author tommusrhodus
 */
if (class_exists('Ebor_Options')) {
    $ebor_options = new Ebor_Options();
    /**
     * Variables
     */
    $theme = wp_get_theme();
    $theme_name = $theme->get('Name');
    $footer_default = 'Modify this text from "appearance => customise"';
    $social_options = ebor_get_icons();
    $portfolio_layouts = array_flip(ebor_get_portfolio_layouts());
    /**
     * Default stuff
     * 
     * Each of these is a default option that appears in each theme, demo data, favicons and a custom css input
     * 
     * @since 1.0.0
     * @author tommusrhodus
     */
    $ebor_options->add_panel($theme_name . ': Demo Data', 5, '');
    $ebor_options->add_panel($theme_name . ': Styling Settings', 205, 'All of the controls in this section directly relate to the styling page of ' . $theme_name);
    $ebor_options->add_section('demo_data_section', 'Import Demo Data', 10, $theme_name . ': Demo Data', '<strong>Please read this before importing demo data via this control:</strong><br /><br />The demo data this will install includes images from my demo site with <strong>heavy blurring applied</strong> this is due to licensing restrictions. Simply replace these images with your own.<br /><br />Note that this process can take up to 15mins on slower servers, go make a cup of tea. If you havn\'t had a notification in 30mins, use the fallback method outlined in the written documentation.<br /><br />');
    $ebor_options->add_section('favicon_section', 'Favicons', 30, $theme_name . ': Styling Settings');
    $ebor_options->add_section('custom_css_section', 'Custom CSS', 40, $theme_name . ': Styling Settings');
    $ebor_options->add_setting('image', 'custom_favicon', 'Custom Favicon Upload (Use .png)', 'favicon_section', '', 10);
    $ebor_options->add_setting('image', 'mobile_favicon', 'Mobile Favicon Upload (Use .png)', 'favicon_section', '', 15);
/**
 * The VC Functions
 */
function ebor_portfolio_shortcode_vc()
{
    $layouts = ebor_get_portfolio_layouts();
    vc_map(array("icon" => 'pillar-vc-block', "name" => esc_html__("Portfolio Feeds", 'pillar'), "base" => "pillar_portfolio", "category" => esc_html__('pillar WP Theme', 'pillar'), 'description' => 'Show portfolio posts with layout options.', "params" => array(array("type" => "textfield", "heading" => esc_html__("Show How Many Posts?", 'pillar'), "param_name" => "pppage", "value" => '4'), array("type" => "dropdown", "heading" => esc_html__("Portfolio Display Type", 'pillar'), "param_name" => "layout", "value" => $layouts))));
}