예제 #1
0
 function ebor_custom_metaboxes($meta_boxes)
 {
     /**
      * Setup variables
      */
     $prefix = '_ebor_';
     $social_options = ebor_get_icons();
     $meta_boxes[] = array('id' => 'team_social_metabox', 'title' => __('Team Member Details', 'machine'), 'object_types' => array('team'), 'context' => 'normal', 'priority' => 'high', 'show_names' => true, 'fields' => array(array('name' => __('Job Title', 'machine'), 'desc' => '(Optional) Enter a Job Title for this Team Member', 'id' => $prefix . 'the_job_title', 'type' => 'text'), array('id' => $prefix . 'team_social_icons', 'type' => 'group', 'options' => array('add_button' => __('Add Another Icon', 'keepsake'), 'remove_button' => __('Remove Icon', 'keepsake'), 'sortable' => true), 'fields' => array(array('name' => 'Social Icon', 'desc' => 'What icon would you like for this team members first social profile?', 'id' => $prefix . 'social_icon', 'type' => 'select', 'options' => $social_options), array('name' => __('URL for Social Icon', 'keepsake'), 'desc' => __("Enter the URL for Social Icon 1 e.g www.google.com", 'keepsake'), 'id' => $prefix . 'social_icon_url', 'type' => 'text_url')))));
     /**
      * Social Icons for Users
      */
     $meta_boxes[] = array('id' => 'social_metabox', 'title' => __('Social Icons: Click To Add More', 'huntington'), 'object_types' => array('user'), 'context' => 'normal', 'priority' => 'high', 'show_names' => true, 'fields' => array(array('id' => $prefix . 'user_social_icons', 'type' => 'group', 'options' => array('add_button' => __('Add Another Icon', 'huntington'), 'remove_button' => __('Remove Icon', 'huntington'), 'sortable' => true), 'fields' => array(array('name' => 'Social Icon', 'desc' => 'What icon would you like for this team members first social profile?', 'id' => $prefix . 'social_icon', 'type' => 'select', 'options' => $social_options), array('name' => __('URL for Social Icon', 'huntington'), 'desc' => __("Enter the URL for Social Icon 1 e.g www.google.com", 'huntington'), 'id' => $prefix . 'social_icon_url', 'type' => 'text')))));
     return $meta_boxes;
 }
/**
 * The VC Functions
 */
function ebor_service_shortcode_vc()
{
    vc_map(array("icon" => 'malory-vc-block', "name" => esc_html__("Service Box", 'malory'), "base" => "malory_service", "category" => esc_html__('malory WP Theme', 'malory'), 'description' => 'Add a service block of text with a side icon,', "params" => array(array("type" => "textarea_html", "heading" => esc_html__("Block Content", 'malory'), "param_name" => "content", 'holder' => 'div'), array("type" => "ebor_icons", "heading" => esc_html__("Icon", 'malory'), "param_name" => "icon", "value" => array_keys(ebor_get_icons())))));
}
/**
 * The VC Functions
 */
function ebor_icon_box_shortcode_vc()
{
    $icons = ebor_get_icons();
    vc_map(array("icon" => 'pillar-vc-block', "name" => esc_html__("Icon & Text", 'pillar'), "base" => "pillar_icon_box", "category" => esc_html__('pillar WP Theme', 'pillar'), "params" => array(array("type" => "ebor_icons", "heading" => esc_html__("Click an Icon to choose", 'pillar'), "param_name" => "icon", "value" => $icons, 'description' => 'Type "none" or leave blank to hide icons.'), array("type" => "textfield", "heading" => esc_html__("Title", 'pillar'), "param_name" => "title", 'holder' => 'div'), array("type" => "textarea_html", "heading" => esc_html__("Block Content", 'pillar'), "param_name" => "content", 'holder' => 'div'), array("type" => "dropdown", "heading" => esc_html__("Icon Box Display Type", 'pillar'), "param_name" => "layout", "value" => array('Standard' => 'standard', 'Small' => 'small', 'Large' => 'large', 'Large with Colored Icon' => 'large-colored', 'Boxed' => 'boxed', 'Boxed With Colored Icon' => 'boxed-color-icon', 'Boxed Large' => 'boxed-large', 'Boxed Icon' => 'boxed-icon', 'Combined Icon + Title' => 'combined', 'Side Icon Small' => 'side-small', 'Side Icon Small Colored Icon' => 'side-small-color', 'Side Icon Large' => 'side-large')), array("type" => "dropdown", "heading" => esc_html__("Alignment", 'pillar'), "param_name" => "alignment", "value" => array('Text Left' => 'standard', 'Text Center' => 'text-center', 'Text Right' => 'text-right')))));
}
예제 #4
0
/**
 * The VC Functions
 */
function ebor_fact_block_shortcode_vc()
{
    vc_map(array("icon" => 'malory-vc-block', "name" => esc_html__("Fact Counter", 'malory'), "base" => "malory_fact_block", "category" => esc_html__('malory WP Theme', 'malory'), 'description' => 'Counter elements for facts.', "params" => array(array("type" => "ebor_icons", "heading" => esc_html__("Icon", 'malory'), "param_name" => "icon", "value" => array_keys(ebor_get_icons()), 'description' => 'view all icons here: http://ionicons.com'), array("type" => "textarea_html", "heading" => esc_html__("Title & Description", 'malory'), "param_name" => "content", 'holder' => 'div'))));
}
/**
 * The VC Functions
 */
function ebor_pricing_table_shortcode_vc()
{
    vc_map(array("icon" => 'morello-vc-block', "name" => esc_html__("Pricing Table", 'morello'), "base" => "morello_pricing_table", "category" => esc_html__('morello WP Theme', 'morello'), 'description' => 'Add a pricing table to the page.', "params" => array(array("type" => "textfield", "heading" => esc_html__("Title", 'morello'), "param_name" => "title", 'holder' => 'div'), array("type" => "textfield", "heading" => esc_html__("Subtitle", 'morello'), "param_name" => "subtitle"), array("type" => "textfield", "heading" => esc_html__("Currency", 'morello'), "param_name" => "currency", "value" => '$'), array("type" => "textfield", "heading" => esc_html__("Amount", 'morello'), "param_name" => "amount", "value" => '3'), array("type" => "textfield", "heading" => esc_html__("Duration", 'morello'), "param_name" => "duration", "value" => 'Year'), array("type" => "textfield", "heading" => esc_html__("Button Text", 'morello'), "param_name" => "button_text", "value" => 'Select Plan'), array("type" => "textfield", "heading" => esc_html__("Button URL", 'morello'), "param_name" => "button_url"), array("type" => "exploded_textarea", "heading" => esc_html__("Pricing details, one per line", 'morello'), "param_name" => "text"), array("type" => "ebor_icons", "heading" => esc_html__("Icon", 'morello'), "param_name" => "icon", "value" => array_values(ebor_get_icons())))));
}
/**
 * The VC Functions
 */
function ebor_top_left_icon_block_shortcode_vc()
{
    vc_map(array("icon" => 'morello-vc-block', "name" => esc_html__("Top Left Icon & Text", 'morello'), "base" => "morello_top_left_icon_block", "category" => esc_html__('morello WP Theme', 'morello'), "params" => array(array("type" => "ebor_icons", "heading" => esc_html__("Icon", 'morello'), "param_name" => "icon", "value" => array_values(ebor_get_icons())), array("type" => "textarea_html", "heading" => esc_html__("Block Content", 'morello'), "param_name" => "content", 'holder' => 'div'), array("type" => "textfield", "heading" => esc_html__("Animation Duration (seconds)(numbers only)", 'morello'), "param_name" => "duration", 'value' => '1'), array("type" => "textfield", "heading" => esc_html__("Animation Delay (seconds)(numbers only)", 'morello'), "param_name" => "delay", 'value' => '0.3'), array('type' => 'dropdown', "heading" => esc_html__("Layout", 'morello'), 'param_name' => 'layout', 'value' => array('Icon above title' => 'on-top', 'Icon behind title' => 'behind')))));
}
function ebor_text_carousel_content_shortcode_vc()
{
    $icons = ebor_get_icons();
    vc_map(array("icon" => 'partner-vc-block', 'name' => esc_html__('Text Carousel Slide', 'partner'), 'base' => 'partner_text_carousel_content', 'description' => esc_html__('A slide for the image slider.', 'partner'), "category" => esc_html__('partner WP Theme', 'partner'), 'content_element' => true, 'as_child' => array('only' => 'partner_text_carousel'), 'params' => array(array("type" => "ebor_icons", "heading" => esc_html__("Click an Icon to choose", 'partner'), "param_name" => "icon", "value" => $icons, 'description' => 'Type "none" or leave blank to hide icons.'), array("type" => "textarea_html", "heading" => esc_html__("Slide Content", 'partner'), "param_name" => "content", 'holder' => 'div'))));
}
예제 #8
0
/**
 * The VC Functions
 */
function ebor_text_shortcode_vc()
{
    vc_map(array("icon" => 'meetup-vc-block', "name" => __("Text & Icon", 'meetup'), "base" => "meetup_text", "category" => __('Meetup - WP Theme', 'meetup'), "params" => array(array("type" => "ebor_icons", "heading" => __("Show an Icon?", 'meetup'), "param_name" => "icon", "value" => array_values(ebor_get_icons())), array("type" => "textarea_html", "heading" => __("Content", 'meetup'), "param_name" => "content", "value" => '', 'holder' => 'div'))));
}
/**
 * The VC Functions
 */
function ebor_icon_box_shortcode_vc()
{
    $icons = ebor_get_icons();
    vc_map(array("icon" => 'partner-vc-block', "name" => esc_html__("Icon Box", 'partner'), "base" => "partner_icon_box", "category" => esc_html__('partner WP Theme', 'partner'), "params" => array(array("type" => "ebor_icons", "heading" => esc_html__("Click an Icon to choose", 'partner'), "param_name" => "icon", "value" => $icons, 'description' => 'Type "none" or leave blank to hide icons.'), array("type" => "textfield", "heading" => esc_html__("Title", 'partner'), "param_name" => "title", 'holder' => 'div'), array("type" => "textarea_html", "heading" => esc_html__("Block Content", 'partner'), "param_name" => "content", 'holder' => 'div'), array("type" => "dropdown", "heading" => esc_html__("Icon Box Display Type", 'partner'), "param_name" => "layout", "value" => array('Standard' => 'standard', 'Boxed' => 'boxed', 'Large' => 'large')), array("type" => "textfield", "heading" => esc_html__("Link URL", 'partner'), "param_name" => "link", 'description' => 'Leave blank not to link block, enter URL to link entire block'), array("type" => "textfield", "heading" => esc_html__("Link Target Attribute", 'partner'), "param_name" => "target"))));
}
/**
 * The VC Functions
 */
function ebor_big_icon_shortcode_vc()
{
    vc_map(array("icon" => 'meetup-vc-block', "name" => __("Big Icon", 'meetup'), "base" => "meetup_big_icon", "category" => __('Meetup - WP Theme', 'meetup'), "params" => array(array("type" => "ebor_icons", "heading" => __("Show an Icon?", 'meetup'), "param_name" => "icon", "value" => array_values(ebor_get_icons())))));
}
예제 #11
0
 * Build theme options
 * 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);
/**
 * The VC Functions
 */
function ebor_skill_bar_block_shortcode_vc()
{
    $icons = ebor_get_icons();
    vc_map(array("icon" => 'pillar-vc-block', "name" => esc_html__("Progress Bar", 'pillar'), "base" => "pillar_skill_bar_block", "category" => esc_html__('pillar WP Theme', 'pillar'), 'description' => 'Coloured bars for demonstrating your skills.', "params" => array(array("type" => "textfield", "heading" => esc_html__("Skill Title", 'pillar'), "param_name" => "title", 'holder' => 'div'), array("type" => "textfield", "heading" => esc_html__("Skill Amount", 'pillar'), "param_name" => "amount", 'description' => 'Use a value between 0 - 100 only.'), array("type" => "dropdown", "heading" => esc_html__("Display Type", 'pillar'), "param_name" => "layout", "value" => array('Horizontal Thick Bar' => 'horizontal-thick', 'Horizontal Thin Bar' => 'horizontal-thin', 'Vertical Thick Bar' => 'vertical-thick', 'Vertical Thin Bar' => 'vertical-thin', 'Percentage Radial' => 'percentage-radial', 'Titled Radial' => 'titled-radial', 'Process Radial' => 'process-radial', 'Icon Radial' => 'icon-radial')), array("type" => "ebor_icons", "heading" => esc_html__("Click an Icon to choose", 'pillar'), "param_name" => "icon", "value" => $icons, 'description' => 'Type "none" or leave blank to hide icons.'))));
}
/**
 * The VC Functions
 */
function ebor_hero_shortcode_vc()
{
    $icons = ebor_get_icons();
    $args = array('post_type' => 'wpcf7_contact_form', 'posts_per_page' => -1);
    $form_options = get_posts($args);
    $forms[0] = 'None';
    foreach ($form_options as $form_option) {
        $forms[$form_option->post_title] = $form_option->ID;
    }
    vc_map(array("icon" => 'pillar-vc-block', "name" => esc_html__("Hero Header", 'pillar'), "base" => "pillar_hero", "category" => esc_html__('pillar WP Theme', 'pillar'), 'as_parent' => array('except' => 'pillar_tabs_content'), 'content_element' => true, 'show_settings_on_create' => true, "js_view" => 'VcColumnView', "params" => array(array("type" => "dropdown", "heading" => esc_html__("Hero Header Display Type", 'pillar'), "param_name" => "layout", "value" => array('Fullscreen Left Align Text' => 'intro-left', 'Fullscreen Video Background, Text, Form & Social Icons' => 'video-social', 'Half Height Video Background, Text' => 'video-half', 'Fullscreen Split, Image Left, Text Right & Social Icons' => 'split', 'Video Popup, Designed for the Modal Video Element' => 'video-popup', 'Video Popup, Designed for the Modal Video Element, Form at Bottom' => 'video-form', 'Primary Color Overlay' => 'overlay', 'Fullscreen Center Text, Social Icons Botom' => 'intro-social', 'Content Left, Form Right' => 'half-form', 'Content Bottom Left' => 'bottom-left')), array("type" => "attach_image", "heading" => esc_html__("Slide Image", 'pillar'), "param_name" => "image"), array("type" => "dropdown", "heading" => __("Hero Height", 'pillar'), "param_name" => "slider_height", "value" => array('100vh' => 'height-100', '90vh' => 'height-90', '80vh' => 'height-80', '70vh' => 'height-70', '60vh' => 'height-60', '50vh' => 'height-50')), array("type" => "dropdown", "heading" => __("Background Image Overlay Opacity (Default 40%)", 'pillar'), "param_name" => "overlay_opacity", "value" => array('40%' => '4', '90%' => '9', '80%' => '8', '70%' => '7', '60%' => '6', '50%' => '5', '30%' => '3', '20%' => '2', '10%' => '1', '0%' => '0')), array("type" => "textfield", "heading" => esc_html__("Button Text", 'pillar'), "param_name" => "button_text"), array("type" => "textfield", "heading" => esc_html__("Button URL", 'pillar'), "param_name" => "button_url"), array("type" => "dropdown", "heading" => esc_html__("Contact Form 7 Form", 'pillar'), "param_name" => "shortcode", "description" => esc_html__('Choose a contact form 7 form if required.', 'pillar'), 'value' => $forms), array("type" => "dropdown", "heading" => esc_html__("Use Parallax Scrolling on this element?", 'pillar'), "param_name" => "parallax", "value" => array('Parallax On' => 'parallax', 'Parallax Off' => 'parallax-off'), 'description' => 'Parallax scrolling works best when this element is at the top of a page, if it isn\'t, turn this off so the element displays at its best.'), array("type" => "textfield", "heading" => esc_html__("Self Hosted Video Background .webm extension", 'pillar'), "param_name" => "webm", "description" => esc_html__('Please fill all extensions if using a video based header', 'pillar')), array("type" => "textfield", "heading" => esc_html__("Self Hosted Video Background .mp4 extension", 'pillar'), "param_name" => "mpfour", "description" => esc_html__('Please fill all extensions if using a video based header', 'pillar')), array("type" => "textfield", "heading" => esc_html__("Self Hosted Video Background .ogv extension", 'pillar'), "param_name" => "ogv", "description" => esc_html__('Please fill all extensions if using a video based header', 'pillar')))));
}
예제 #14
0
/**
 * The VC Functions
 */
function ebor_modal_shortcode_vc()
{
    $icons = ebor_get_icons();
    vc_map(array("icon" => 'pillar-vc-block', 'name' => esc_html__('Modal', 'pillar'), 'base' => 'pillar_modal', 'description' => esc_html__('Create a modal popup', 'pillar'), 'as_parent' => array('except' => 'pillar_tabs_content'), 'content_element' => true, 'show_settings_on_create' => true, "js_view" => 'VcColumnView', "category" => esc_html__('pillar WP Theme', 'pillar'), 'params' => array(array("type" => "ebor_icons", "heading" => __("Button Icon, click to choose", 'pillar'), "param_name" => "icon", "value" => $icons, 'description' => 'Type "none" or leave blank to hide icons.'), array("type" => "textfield", "heading" => esc_html__("Button Text", 'pillar'), "param_name" => "button_text"), array("type" => "dropdown", "heading" => __("Button Alignment", 'pillar'), "param_name" => "align", "value" => array('Center' => 'text-center', 'Left' => 'text-left', 'Right' => 'text-right')), array("type" => "attach_image", "heading" => esc_html__("Modal background image?", 'pillar'), "param_name" => "image"), array("type" => "textfield", "heading" => esc_html__("Video URL", 'pillar'), "param_name" => "video", 'description' => 'Youtube or Vimeo URL, if added this becomes a video only modal'), array("type" => "textfield", "heading" => __("Delay Timer", 'pillar'), "param_name" => "delay", 'description' => 'Leave blank for infinite delay (manual trigger only) enter milliseconds for automatic popup on timer, e.g: 2000'), array("type" => "textfield", "heading" => __("Cookie Name", 'pillar'), "param_name" => "cookie", 'description' => 'Set a plain text cookie name here to stop the delay popup if someone has already closed it.'), array("type" => "textfield", "heading" => __("Modal Width", 'pillar'), "param_name" => "width", 'description' => 'Video & Image Modal only. Numeric only, value in %, for 50% width type only: 50', 'value' => '60'), array("type" => "textfield", "heading" => __("Modal Height", 'pillar'), "param_name" => "height", 'description' => 'Video & Image Modal only. Numeric only, value in %, for 50% height type only: 50', 'value' => '60'))));
}
/**
 * The VC Functions
 */
function ebor_notification_shortcode_vc()
{
    $icons = ebor_get_icons();
    vc_map(array("icon" => 'partner-vc-block', 'name' => esc_html__('Notification', 'partner'), 'base' => 'partner_notification', 'description' => esc_html__('Create a notification popup', 'partner'), 'as_parent' => array('except' => 'partner_tabs_content'), 'content_element' => true, 'show_settings_on_create' => true, "js_view" => 'VcColumnView', "category" => esc_html__('partner WP Theme', 'partner'), 'params' => array(array("type" => "textfield", "heading" => esc_html__("Unique Title", 'partner'), "param_name" => "title", 'description' => 'Use a unique lowercase title for each notification on a page.'), array("type" => "textfield", "heading" => esc_html__("Button Text", 'partner'), "param_name" => "button_text"), array("type" => "dropdown", "heading" => esc_html__("Modal Layout", 'partner'), "param_name" => "layout", "value" => array('Notification From Bottom' => 'bottom', 'Notification From Right' => 'right')))));
}
예제 #16
0
function ebor_tabs_content_shortcode_vc()
{
    $icons = ebor_get_icons();
    vc_map(array("icon" => 'pillar-vc-block', 'name' => esc_html__('Tabs Content', 'pillar'), 'base' => 'pillar_tabs_content', 'description' => esc_html__('Toggle Content Element', 'pillar'), "category" => esc_html__('pillar WP Theme', 'pillar'), 'content_element' => true, 'as_child' => array('only' => 'pillar_tabs'), 'params' => array(array("type" => "textfield", "heading" => esc_html__("Title", 'pillar'), "param_name" => "title", 'holder' => 'div'), array("type" => "textarea_html", "heading" => esc_html__("Block Content", 'pillar'), "param_name" => "content"), array("type" => "ebor_icons", "heading" => esc_html__("Click an Icon to choose (Icon tabs only)", 'pillar'), "param_name" => "icon", "value" => $icons, 'description' => 'Type "none" or leave blank to hide icons.'))));
}
/**
 * The VC Functions
 */
function ebor_stats_grid_block_shortcode_vc()
{
    $icons = ebor_get_icons();
    vc_map(array("icon" => 'partner-vc-block', "name" => esc_html__("Stats Grid", 'partner'), "base" => "partner_stats_grid_block", "category" => esc_html__('partner WP Theme', 'partner'), 'description' => 'Show your stats in a small bordered box', "params" => array(array("type" => "textfield", "heading" => esc_html__("Main Title", 'partner'), "param_name" => "main_title", 'holder' => 'div'), array("type" => "ebor_icons", "heading" => esc_html__("Click an Icon to choose", 'partner'), "param_name" => "icon", "value" => $icons, 'description' => 'Type "none" or leave blank to hide icons.'), array("type" => "textfield", "heading" => esc_html__("Title 1", 'partner'), "param_name" => "title1", 'holder' => 'div'), array("type" => "textarea", "heading" => esc_html__("Content 1", 'partner'), "param_name" => "content1", 'holder' => 'div'), array("type" => "textfield", "heading" => esc_html__("Title 2", 'partner'), "param_name" => "title2", 'holder' => 'div'), array("type" => "textarea", "heading" => esc_html__("Content 2", 'partner'), "param_name" => "content2", 'holder' => 'div'), array("type" => "textfield", "heading" => esc_html__("Title 3", 'partner'), "param_name" => "title3", 'holder' => 'div'), array("type" => "textarea", "heading" => esc_html__("Content 3", 'partner'), "param_name" => "content3", 'holder' => 'div'), array("type" => "textfield", "heading" => esc_html__("Title 4", 'partner'), "param_name" => "title4", 'holder' => 'div'), array("type" => "textarea", "heading" => esc_html__("Content 4", 'partner'), "param_name" => "content4", 'holder' => 'div'))));
}
/**
 * The VC Functions
 */
function ebor_pricing_table_shortcode_vc()
{
    $icons = ebor_get_icons();
    vc_map(array("icon" => 'pillar-vc-block', "name" => esc_html__("Pricing Table", 'pillar'), "base" => "pillar_pricing_table", "category" => esc_html__('pillar WP Theme', 'pillar'), "params" => array(array("type" => "ebor_icons", "heading" => esc_html__("Click an Icon to choose", 'pillar'), "param_name" => "icon", "value" => $icons, 'description' => 'Type "none" or leave blank to hide icons.'), array("type" => "textfield", "heading" => esc_html__("Title", 'pillar'), "param_name" => "title", 'holder' => 'div'), array("type" => "textfield", "heading" => esc_html__("Currency", 'pillar'), "param_name" => "currency"), array("type" => "textfield", "heading" => esc_html__("Price", 'pillar'), "param_name" => "price"), array("type" => "textfield", "heading" => esc_html__("Button Text", 'pillar'), "param_name" => "button_text"), array("type" => "textfield", "heading" => esc_html__("Button URL", 'pillar'), "param_name" => "button_url"), array("type" => "textarea_html", "heading" => esc_html__("Block Content", 'pillar'), "param_name" => "content", 'holder' => 'div'), array("type" => "dropdown", "heading" => esc_html__("Pricing Table Display Type", 'pillar'), "param_name" => "layout", "value" => array('Standard' => 'standard', 'Blank Background' => 'blank', 'Emphasise' => 'emphasise', 'Image' => 'image', 'Icon' => 'icon', 'Minimal' => 'minimal')), array("type" => "attach_image", "heading" => esc_html__("Block Image", 'pillar'), "param_name" => "image"))));
}
/**
 * The VC Functions
 */
function ebor_icon_large_shortcode_vc()
{
    $icons = ebor_get_icons();
    vc_map(array("icon" => 'partner-vc-block', "name" => esc_html__("Icon Large", 'partner'), "base" => "partner_icon_large", "category" => esc_html__('partner WP Theme', 'partner'), "params" => array(array("type" => "ebor_icons", "heading" => esc_html__("Click an Icon to choose", 'partner'), "param_name" => "icon", "value" => $icons, 'description' => 'Type "none" or leave blank to hide icons.'))));
}
/**
 * The VC Functions
 */
function ebor_side_icon_block_shortcode_vc()
{
    vc_map(array("icon" => 'morello-vc-block', "name" => esc_html__("Side Icon & Text", 'morello'), "base" => "morello_side_icon_block", "category" => esc_html__('morello WP Theme', 'morello'), "params" => array(array("type" => "ebor_icons", "heading" => esc_html__("Icon", 'morello'), "param_name" => "icon", "value" => array_values(ebor_get_icons())), array("type" => "textarea_html", "heading" => esc_html__("Block Content", 'morello'), "param_name" => "content", 'holder' => 'div'), array("type" => "textfield", "heading" => esc_html__("Animation Duration (seconds)(numbers only)", 'morello'), "param_name" => "duration", 'value' => '1'), array("type" => "textfield", "heading" => esc_html__("Animation Delay (seconds)(numbers only)", 'morello'), "param_name" => "delay", 'value' => '0.3'))));
}
예제 #21
0
/**
 * The VC Functions
 */
function ebor_modal_shortcode_vc()
{
    $icons = ebor_get_icons();
    vc_map(array("icon" => 'partner-vc-block', 'name' => esc_html__('Modal', 'partner'), 'base' => 'partner_modal', 'description' => esc_html__('Create a modal popup', 'partner'), 'as_parent' => array('except' => 'partner_tabs_content'), 'content_element' => true, 'show_settings_on_create' => true, "js_view" => 'VcColumnView', "category" => esc_html__('partner WP Theme', 'partner'), 'params' => array(array("type" => "textfield", "heading" => esc_html__("Autoshow Delay Timer", 'partner'), "param_name" => "autoshow", 'description' => 'Leave blank for no autoshow. Add in timer in milliseconds (numeric only) for autoshow, i.e: 5000'), array("type" => "textfield", "heading" => esc_html__("Button Text", 'partner'), "param_name" => "button_text"), array("type" => "attach_image", "heading" => esc_html__("Modal background image?", 'partner'), "param_name" => "image"), array("type" => "dropdown", "heading" => esc_html__("Modal Layout", 'partner'), "param_name" => "layout", "value" => array('Suitable for "Video Player" block' => 'iframe', 'Standard text modal, image background' => 'image', 'Standard text modal' => 'standard', 'Gradient Background modal, suitable for text' => 'gradient')))));
}
/**
 * The VC Functions
 */
function ebor_colour_blocks_shortcode_vc()
{
    vc_map(array("icon" => 'meetup-vc-block', "name" => __("Colour Blocks", 'meetup'), "base" => "meetup_colour_blocks", "category" => __('Meetup - WP Theme', 'meetup'), "params" => array(array("type" => "textfield", "heading" => __("Title 1", 'meetup'), "param_name" => "title1"), array("type" => "textarea", "heading" => __("Content 1", 'meetup'), "param_name" => "content1", 'holder' => 'div'), array("type" => "textfield", "heading" => __("Link 1", 'meetup'), "param_name" => "link1"), array("type" => "ebor_icons", "heading" => __("Icon 1", 'meetup'), "param_name" => "icon1", "value" => array_values(ebor_get_icons())), array("type" => "textfield", "heading" => __("Title 2", 'meetup'), "param_name" => "title2"), array("type" => "textarea", "heading" => __("Content 2", 'meetup'), "param_name" => "content2", 'holder' => 'div'), array("type" => "textfield", "heading" => __("Link 2", 'meetup'), "param_name" => "link2"), array("type" => "ebor_icons", "heading" => __("Icon 2", 'meetup'), "param_name" => "icon2", "value" => array_values(ebor_get_icons())))));
}
/**
 * The VC Functions
 */
function ebor_icon_title_shortcode_vc()
{
    $icons = ebor_get_icons();
    vc_map(array("icon" => 'partner-vc-block', "name" => esc_html__("Icon Title", 'partner'), "base" => "partner_icon_title", "category" => esc_html__('partner WP Theme', 'partner'), "params" => array(array("type" => "ebor_icons", "heading" => esc_html__("Click an Icon to choose", 'partner'), "param_name" => "icon", "value" => $icons, 'description' => 'Type "none" or leave blank to hide icons.'), array("type" => "textfield", "heading" => esc_html__("Title (1st half)", 'partner'), "param_name" => "title", 'holder' => 'div'), array("type" => "textfield", "heading" => esc_html__("Title (2nd half)", 'partner'), "param_name" => "title2", 'holder' => 'div'))));
}
예제 #24
0
/**
 * The VC Functions
 */
function ebor_fact_block_shortcode_vc()
{
    vc_map(array("icon" => 'morello-vc-block', "name" => esc_html__("Fact Counter", 'morello'), "base" => "morello_fact_block", "category" => esc_html__('morello WP Theme', 'morello'), 'description' => 'Counter elements for facts.', "params" => array(array("type" => "ebor_icons", "heading" => esc_html__("Icon", 'morello'), "param_name" => "icon", "value" => array_values(ebor_get_icons())), array("type" => "textfield", "heading" => esc_html__("Counter Text", 'morello'), "param_name" => "counter", 'value' => '7518'), array("type" => "textfield", "heading" => esc_html__("Description Text", 'morello'), "param_name" => "description", 'value' => 'Shots Taken', 'holder' => 'div'), array("type" => "textfield", "heading" => esc_html__("Animation Duration (seconds)(numbers only)", 'morello'), "param_name" => "duration", 'value' => '1'), array("type" => "textfield", "heading" => esc_html__("Animation Delay (seconds)(numbers only)", 'morello'), "param_name" => "delay", 'value' => '0.3'))));
}