Пример #1
0
//***********************************************************************
// Message Box
//***********************************************************************
// add custom animation
$param = WPBMap::getParam('vc_message', 'css_animation');
$param['value'] = presscore_get_vc_animation_options();
WPBMap::mutateParam('vc_message', $param);
//***********************************************************************
// Toggle
//***********************************************************************
// add custom animation
$param = WPBMap::getParam('vc_toggle', 'css_animation');
$param['value'] = presscore_get_vc_animation_options();
WPBMap::mutateParam('vc_toggle', $param);
//***********************************************************************
// Single Image
//***********************************************************************
// add custom animation
$param = WPBMap::getParam('vc_single_image', 'css_animation');
$param['value'] = presscore_get_vc_animation_options();
WPBMap::mutateParam('vc_single_image', $param);
vc_add_param("vc_single_image", array("type" => "dropdown", "class" => "", "heading" => __("Image hovers", 'the7mk2'), "param_name" => "image_hovers", "std" => "true", "value" => array("Disabled" => "false", "Enabled" => "true")));
//***********************************************************************
// Accordion
//***********************************************************************
vc_add_param("vc_accordion", array("type" => "dropdown", "heading" => __("Style", 'the7mk2'), "param_name" => "style", "value" => array('Style 1 (no background)' => '1', 'Style 2 (with background)' => '2', 'Style 3 (with dividers)' => '3'), "description" => ""));
//***********************************************************************
// Deprecated shortcodes
//***********************************************************************
vc_map_update('vc_text_separator', array("name" => __("Separator with Text (deprecated)", 'the7mk2'), "category" => __('Deprecated', 'the7mk2'), "weight" => -1));
vc_map_update('vc_separator', array("name" => __("Separator (deprecated)", 'the7mk2'), "category" => __('Deprecated', 'the7mk2'), "weight" => -1));
<?php

/**
 * Logos shortcodes VC bridge
 */
// File Security Check
if (!defined('ABSPATH')) {
    exit;
}
// ! Logos
vc_map(array("weight" => -1, "name" => __("Clients", 'the7mk2'), "base" => "dt_logos", "icon" => "dt_vc_ico_logos", "class" => "dt_vc_sc_logos", "category" => __('by Dream-Theme', 'the7mk2'), "params" => array(array("type" => "dt_taxonomy", "taxonomy" => "dt_logos_category", "class" => "", "admin_label" => true, "heading" => __("Categories", 'the7mk2'), "param_name" => "category", "description" => __("Note: By default, all your logotypes will be displayed. <br>If you want to narrow output, select category(s) above. Only selected categories will be displayed.", 'the7mk2')), array("type" => "textfield", "class" => "", "heading" => __("Column minimum width (px)", 'the7mk2'), "param_name" => "column_width", "value" => "180"), array("type" => "textfield", "class" => "", "heading" => __("Desired columns number", 'the7mk2'), "param_name" => "columns_number", "value" => "3"), array("type" => "textfield", "class" => "", "heading" => __("Number of logotypes to show", 'the7mk2'), "param_name" => "number", "value" => "12", "description" => ""), array("type" => "dropdown", "class" => "", "heading" => __("Order by", 'the7mk2'), "param_name" => "orderby", "value" => array("Date" => "date", "Author" => "author", "Title" => "title", "Slug" => "name", "Date modified" => "modified", "ID" => "id", "Random" => "rand"), "description" => __("Select how to sort retrieved posts.", 'the7mk2')), array("type" => "dropdown", "class" => "", "heading" => __("Order way", 'the7mk2'), "param_name" => "order", "value" => array("Descending" => "desc", "Ascending" => "asc"), "description" => __("Designates the ascending or descending order.", 'the7mk2')), array("type" => "dropdown", "class" => "", "heading" => __("Animation", 'the7mk2'), "param_name" => "animation", "value" => presscore_get_vc_animation_options(), "description" => ""), array("type" => "dropdown", "class" => "", "heading" => __("Animate", 'the7mk2'), "param_name" => "animate", "value" => array("One-by-one" => 'one_by_one', "At the same time" => 'at_the_same_time'), "description" => ""))));
<?php

/**
 * Benefits shortcodes VC bridge
 */
// File Security Check
if (!defined('ABSPATH')) {
    exit;
}
// ! Benefits
vc_map(array("weight" => -1, "name" => __("Benefits", 'the7mk2'), "base" => "dt_benefits_vc", "icon" => "dt_vc_ico_benefits", "class" => "dt_vc_sc_benefits", "category" => __('by Dream-Theme', 'the7mk2'), "params" => array(array("type" => "dt_taxonomy", "taxonomy" => "dt_benefits_category", "class" => "", "admin_label" => true, "heading" => __("Categories", 'the7mk2'), "param_name" => "category", "description" => __("Note: By default, all your benefits will be displayed. <br>If you want to narrow output, select category(s) above. Only selected categories will be displayed.", 'the7mk2')), array("type" => "textfield", "class" => "", "heading" => __("Column minimum width (px)", 'the7mk2'), "param_name" => "column_width", "value" => "180"), array("type" => "textfield", "class" => "", "heading" => __("Desired columns number", 'the7mk2'), "param_name" => "columns_number", "value" => "3"), array("type" => "dropdown", "class" => "", "heading" => __("Benefits layout", 'the7mk2'), "param_name" => "style", "value" => array("Image, title & content centered" => "1", "Image & title inline" => "2", "Image on the left" => "3"), "description" => ""), array("type" => "dropdown", "class" => "", "heading" => __("Icons backgrounds", 'the7mk2'), "param_name" => "image_background", "value" => array("Show" => "true", "Hide" => "false"), "description" => ""), array("type" => "dropdown", "class" => "", "heading" => __("Border radius for image backgrounds", 'the7mk2'), "param_name" => "image_background_border", "value" => array("Default" => "", "Custom" => "custom"), "description" => ""), array("type" => "textfield", "class" => "", "heading" => __("Border radius (in px)", 'the7mk2'), "param_name" => "image_background_border_radius", "value" => "", "description" => "", "dependency" => array("element" => "image_background_border", "value" => array("custom"))), array("type" => "textfield", "class" => "", "heading" => __("Background size (in px)", 'the7mk2'), "param_name" => "image_background_size", "value" => "70", "description" => ""), array("type" => "dropdown", "class" => "", "heading" => __("Backgrounds color", 'the7mk2'), "param_name" => "image_background_paint", "value" => array("Default" => "light", "Accent" => "accent", "Custom color" => "custom"), "description" => ""), array("type" => "colorpicker", "class" => "", "heading" => "", "param_name" => "image_background_color", "value" => "#222222", "description" => "", "dependency" => array("element" => "image_background_paint", "value" => array("custom"))), array("type" => "dropdown", "class" => "", "heading" => __("Backgrounds hover color", 'the7mk2'), "param_name" => "image_hover_background_paint", "value" => array("Default" => "light", "Accent" => "accent", "Custom color" => "custom"), "description" => ""), array("type" => "colorpicker", "class" => "", "heading" => "", "param_name" => "image_hover_background_color", "value" => "#444444", "description" => "", "dependency" => array("element" => "image_hover_background_paint", "value" => array("custom"))), array("type" => "textfield", "class" => "", "heading" => __("Icon size (in px)", 'the7mk2'), "param_name" => "icons_size", "value" => "38", "description" => ""), array("type" => "dropdown", "class" => "", "heading" => __("Icons color", 'the7mk2'), "param_name" => "icons_paint", "value" => array("Semitransparent" => "light", "Accent" => "accent", "Custom color" => "custom"), "description" => ""), array("type" => "colorpicker", "class" => "", "heading" => "", "param_name" => "icons_color", "value" => "#ffffff", "description" => "", "dependency" => array("element" => "icons_paint", "value" => array("custom"))), array("type" => "dropdown", "class" => "", "heading" => __("Icons hover color", 'the7mk2'), "param_name" => "icons_hover_paint", "value" => array("Semitransparent" => "light", "Accent" => "accent", "Custom color" => "custom"), "description" => ""), array("type" => "colorpicker", "class" => "", "heading" => "", "param_name" => "icons_hover_color", "value" => "#dddddd", "description" => "", "dependency" => array("element" => "icons_hover_paint", "value" => array("custom"))), array("type" => "dropdown", "class" => "", "heading" => __("Decorative lines", 'the7mk2'), "param_name" => "decorative_lines", "value" => array("Accent" => "hover", "Semitransparent" => "static", "Disabled" => "disabled"), 'std' => 'disabled', "description" => ""), array("type" => "dropdown", "class" => "", "heading" => __("Title font size", 'the7mk2'), "param_name" => "header_size", "value" => array("H1" => "h1", "H2" => "h2", "H3" => "h3", "H4" => "h4", "H5" => "h5", "H6" => "h6"), 'std' => 'h5', "description" => ""), array("type" => "dropdown", "class" => "", "heading" => __("Content font size", 'the7mk2'), "param_name" => "content_size", "value" => array("Large" => "big", "Medium" => "normal", "Small" => "small"), "description" => ""), array("type" => "textfield", "class" => "", "heading" => __("Number of benefits to show", 'the7mk2'), "param_name" => "number", "value" => "8", "description" => ""), array("type" => "dropdown", "class" => "", "heading" => __("Open link in", 'the7mk2'), "param_name" => "target_blank", "value" => array("Same window" => "false", "New window" => "true"), "description" => ""), array("type" => "dropdown", "class" => "", "heading" => __("Order by", 'the7mk2'), "param_name" => "orderby", "value" => array("Date" => "date", "Author" => "author", "Title" => "title", "Slug" => "name", "Date modified" => "modified", "ID" => "id", "Random" => "rand"), "description" => __("Select how to sort retrieved posts.", 'the7mk2')), array("type" => "dropdown", "class" => "", "heading" => __("Order way", 'the7mk2'), "param_name" => "order", "value" => array("Descending" => "desc", "Ascending" => "asc"), "description" => __("Designates the ascending or descending order.", 'the7mk2')), array("type" => "dropdown", "class" => "", "heading" => __("Animation", 'the7mk2'), "admin_label" => true, "param_name" => "animation", "value" => presscore_get_vc_animation_options(), "description" => ""), array("type" => "dropdown", "class" => "", "heading" => __("Animate", 'the7mk2'), "param_name" => "animate", "value" => array("One-by-one" => 'one_by_one', "At the same time" => 'at_the_same_time'), "description" => ""))));
 * DT Mini Blog.
 */
vc_map(array("weight" => -1, "name" => __("Blog Mini", 'the7mk2'), "base" => "dt_blog_posts_small", "icon" => "dt_vc_ico_blog_posts_small", "class" => "dt_vc_sc_blog_posts_small", "category" => __('by Dream-Theme', 'the7mk2'), "params" => array(array("type" => "dt_taxonomy", "taxonomy" => "category", "class" => "", "heading" => __("Categories", 'the7mk2'), "admin_label" => true, "param_name" => "category", "description" => __("Note: By default, all your posts will be displayed. <br>If you want to narrow output, select category(s) above. Only selected categories will be displayed.", 'the7mk2')), array("type" => "dropdown", "class" => "", "heading" => __("Layout", 'the7mk2'), "param_name" => "columns", "value" => array("List" => "1", "2 columns" => "2", "3 columns" => "3"), "description" => ""), array("type" => "dropdown", "class" => "", "heading" => __("Featured images", 'the7mk2'), "param_name" => "featured_images", "value" => array("Show" => "true", "Hide" => "false"), "description" => "", "group" => __("Featured images", 'the7mk2')), array("type" => "checkbox", "class" => "", "heading" => __("Enable rounded corners", 'the7mk2'), "param_name" => "round_images", "value" => array("" => "true"), "group" => __("Featured images", 'the7mk2'), "dependency" => array("element" => "featured_images", "value" => array("true"))), array("type" => "textfield", "class" => "", "heading" => __("Images width (in px)", 'the7mk2'), "param_name" => "images_width", "value" => "60", "description" => "", "group" => __("Featured images", 'the7mk2'), "dependency" => array("element" => "featured_images", "value" => array("true"))), array("type" => "textfield", "class" => "", "heading" => __("Images height (in px)", 'the7mk2'), "param_name" => "images_height", "value" => "60", "description" => "", "group" => __("Featured images", 'the7mk2'), "dependency" => array("element" => "featured_images", "value" => array("true"))), array("type" => "textfield", "class" => "", "heading" => __("Number of posts to show", 'the7mk2'), "param_name" => "number", "value" => "6", "description" => ""), array("type" => "dropdown", "class" => "", "heading" => __("Order by", 'the7mk2'), "param_name" => "orderby", "value" => array("Date" => "date", "Author" => "author", "Title" => "title", "Slug" => "name", "Date modified" => "modified", "ID" => "id", "Random" => "rand"), "description" => __("Select how to sort retrieved posts.", 'the7mk2')), array("type" => "dropdown", "class" => "", "heading" => __("Order way", 'the7mk2'), "param_name" => "order", "value" => array("Descending" => "desc", "Ascending" => "asc"), "description" => __("Designates the ascending or descending order.", 'the7mk2')))));
/**
 * DT Blog.
 */
vc_map(array("weight" => -1, "name" => __("Blog Masonry & Grid", 'the7mk2'), "base" => "dt_blog_posts", "icon" => "dt_vc_ico_blog_posts", "class" => "dt_vc_sc_blog_posts", "category" => __('by Dream-Theme', 'the7mk2'), "params" => array(array("type" => "dt_taxonomy", "taxonomy" => "category", "class" => "", "admin_label" => true, "heading" => __("Categories", 'the7mk2'), "param_name" => "category", "description" => __("Note: By default, all your posts will be displayed. <br>If you want to narrow output, select category(s) above. Only selected categories will be displayed.", 'the7mk2')), array("type" => "dropdown", "class" => "", "heading" => __("Appearance", 'the7mk2'), "param_name" => "type", "value" => array("Masonry" => "masonry", "Grid" => "grid"), "description" => ""), array("type" => "textfield", "class" => "", "heading" => __("Gap between posts (px)", 'the7mk2'), "description" => __("Post paddings (e.g. 5 pixel padding will give you 10 pixel gaps between posts)", 'the7mk2'), "param_name" => "padding", "value" => "20"), array("type" => "textfield", "class" => "", "heading" => __("Column minimum width (px)", 'the7mk2'), "param_name" => "column_width", "value" => "370"), array("type" => "textfield", "class" => "", "heading" => __("Desired columns number", 'the7mk2'), "param_name" => "columns_number", "value" => "3"), array("type" => "checkbox", "class" => "", "heading" => __("Fancy date", 'the7mk2'), "param_name" => "fancy_date", "value" => array("" => "true")), array("type" => "dropdown", "class" => "", "heading" => __("Image & background style", 'the7mk2'), "param_name" => "background", "value" => array("No background" => "disabled", "Fullwidth image" => "fullwidth", "Image with paddings" => "with_paddings"), "description" => ""), array("type" => "textfield", "class" => "", "heading" => __("Post proportions", 'the7mk2'), "param_name" => "proportion", "value" => "", "description" => __("Width:height (e.g. 16:9). Leave this field empty to preserve original image proportions.", 'the7mk2')), array("type" => "dropdown", "class" => "", "heading" => __("Posts width", 'the7mk2'), "param_name" => "same_width", "value" => array("Preserve original width" => "false", "Make posts same width" => "true"), "description" => ""), array("type" => "textfield", "class" => "", "heading" => __("Number of posts to show", 'the7mk2'), "param_name" => "number", "value" => "12", "description" => ""), array("type" => "textfield", "class" => "", "heading" => __("Number of posts to display on one page", 'the7mk2'), "param_name" => "posts_per_page", "value" => "-1", "description" => ""), array("type" => "dropdown", "class" => "", "heading" => __("Loading effect", 'the7mk2'), "param_name" => "loading_effect", "value" => array('None' => 'none', 'Fade in' => 'fade_in', 'Move up' => 'move_up', 'Scale up' => 'scale_up', 'Fall perspective' => 'fall_perspective', 'Fly' => 'fly', 'Flip' => 'flip', 'Helix' => 'helix', 'Scale' => 'scale'), "description" => ""), array("type" => "dropdown", "class" => "", "heading" => __("Order by", 'the7mk2'), "param_name" => "orderby", "value" => array("Date" => "date", "Author" => "author", "Title" => "title", "Slug" => "name", "Date modified" => "modified", "ID" => "id", "Random" => "rand"), "description" => __("Select how to sort retrieved posts.", 'the7mk2')), array("type" => "dropdown", "class" => "", "heading" => __("Order way", 'the7mk2'), "param_name" => "order", "value" => array("Descending" => "desc", "Ascending" => "asc"), "description" => __("Designates the ascending or descending order.", 'the7mk2')), array("type" => "checkbox", "class" => "", "heading" => __("Show excerpts", 'the7mk2'), "param_name" => "show_excerpts", "value" => array("" => "true")), array("type" => "checkbox", "class" => "", "heading" => __('Show "Read more" buttons', 'the7mk2'), "param_name" => "show_read_more_button", "value" => array("" => "true")), array("type" => "checkbox", "class" => "", "heading" => __("Show post categories", 'the7mk2'), "param_name" => "show_post_categories", "value" => array("" => "true")), array("type" => "checkbox", "class" => "", "heading" => __("Show post date", 'the7mk2'), "param_name" => "show_post_date", "value" => array("" => "true")), array("type" => "checkbox", "class" => "", "heading" => __("Show post author", 'the7mk2'), "param_name" => "show_post_author", "value" => array("" => "true")), array("type" => "checkbox", "class" => "", "heading" => __("Show post comments", 'the7mk2'), "param_name" => "show_post_comments", "value" => array("" => "true")), array("type" => "checkbox", "class" => "", "heading" => __("Show categories filter", 'the7mk2'), "param_name" => "show_filter", "value" => array("" => "true")), array("type" => "checkbox", "class" => "", "heading" => __("Show name / date ordering", 'the7mk2'), "param_name" => "show_orderby", "value" => array("" => "true")), array("type" => "checkbox", "class" => "", "heading" => __("Show asc. / desc. ordering", 'the7mk2'), "param_name" => "show_order", "value" => array("" => "true")))));
/**
 * DT Blog Scroller.
 */
vc_map(array("weight" => -1, "name" => __("Blog Scroller", 'the7mk2'), "base" => "dt_blog_scroller", "icon" => "dt_vc_ico_blog_posts", "class" => "dt_vc_sc_blog_posts", "category" => __('by Dream-Theme', 'the7mk2'), "params" => array(array("type" => "dt_taxonomy", "taxonomy" => "category", "class" => "", "admin_label" => true, "heading" => __("Categories", 'the7mk2'), "param_name" => "category", "description" => __("Note: By default, all your posts will be displayed. <br>If you want to narrow output, select category(s) above. Only selected categories will be displayed.", 'the7mk2')), array("type" => "textfield", "class" => "", "heading" => __("Thumbnails height", 'the7mk2'), "param_name" => "height", "value" => "210", "description" => __("In pixels.", 'the7mk2')), array("type" => "textfield", "class" => "", "heading" => __("Thumbnails width", 'the7mk2'), "param_name" => "width", "value" => "", "description" => __("In pixels. Leave this field empty if you want to preserve original thumbnails proportions.", 'the7mk2')), array("type" => "textfield", "class" => "", "heading" => __("Gap between images (px)", 'the7mk2'), "description" => '', "param_name" => "padding", "value" => "20"), array("type" => "dropdown", "class" => "", "heading" => __("Arrows", 'the7mk2'), "param_name" => "arrows", "value" => array('light' => 'light', 'dark' => 'dark', 'rectangular accent' => 'rectangular_accent', 'disabled' => 'disabled')), array("type" => "dropdown", "class" => "", "heading" => __("Image hover background color", 'the7mk2'), "param_name" => "hover_bg_color", "value" => array('Color (from Theme Options)' => 'accent', 'Dark' => 'dark')), array("type" => "dropdown", "class" => "", "heading" => __("Background under projects", 'the7mk2'), "param_name" => "bg_under_posts", "value" => array('Enabled (image with paddings)' => 'with_paddings', 'Enabled (image without paddings)' => 'fullwidth', 'Disabled' => 'disabled')), array("type" => "dropdown", "class" => "", "heading" => __("Content alignment", 'the7mk2'), "param_name" => "content_aligment", "value" => array('Left' => 'left', 'Centre' => 'center')), array("type" => "checkbox", "class" => "", "heading" => __("Show excerpt", 'the7mk2'), "param_name" => "show_excerpt", "value" => array("" => "true"), "description" => ""), array("type" => "checkbox", "class" => "", "heading" => __("Show post categories", 'the7mk2'), "param_name" => "show_categories", "value" => array("" => "true"), "description" => ""), array("type" => "checkbox", "class" => "", "heading" => __("Show post date", 'the7mk2'), "param_name" => "show_date", "value" => array("" => "true"), "description" => ""), array("type" => "checkbox", "class" => "", "heading" => __("Show post author", 'the7mk2'), "param_name" => "show_author", "value" => array("" => "true"), "description" => ""), array("type" => "checkbox", "class" => "", "heading" => __("Show post comments", 'the7mk2'), "param_name" => "show_comments", "value" => array("" => "true"), "description" => ""), array("type" => "textfield", "class" => "", "heading" => __("Number of posts to show", 'the7mk2'), "param_name" => "number", "value" => "12", "description" => ""), array("type" => "textfield", "class" => "", "heading" => __("Autoslide interval (in milliseconds)", 'the7mk2'), "description" => "", "param_name" => "autoslide", "value" => ""), array("type" => "checkbox", "class" => "", "heading" => __("Loop", 'the7mk2'), "param_name" => "loop", "value" => array("" => "true"), "description" => ""), array("type" => "dropdown", "class" => "", "heading" => __("Order by", 'the7mk2'), "param_name" => "orderby", "value" => array("Date" => "date", "Author" => "author", "Title" => "title", "Slug" => "name", "Date modified" => "modified", "ID" => "id", "Random" => "rand"), "description" => __("Select how to sort retrieved posts.", 'the7mk2')), array("type" => "dropdown", "class" => "", "heading" => __("Order way", 'the7mk2'), "param_name" => "order", "value" => array("Descending" => "desc", "Ascending" => "asc"), "description" => __("Designates the ascending or descending order.", 'the7mk2')))));
/**
 * DT Gap.
 */
vc_map(array("weight" => -1, "name" => __("Gap", 'the7mk2'), "base" => "dt_gap", "deprecated" => '4.6', "icon" => "dt_vc_ico_gap", "class" => "dt_vc_sc_gap", "category" => __('by Dream-Theme', 'the7mk2'), "params" => array(array("type" => "textfield", "class" => "", "heading" => __("Gap height", 'the7mk2'), "admin_label" => true, "param_name" => "height", "value" => "10", "description" => __("In pixels.", 'the7mk2')))));
/**
 * DT Fancy Media.
 */
vc_map(array("weight" => -1, "name" => __("Fancy Media", 'the7mk2'), "base" => "dt_fancy_image", "icon" => "dt_vc_ico_fancy_image", "class" => "dt_vc_sc_fancy_image", "category" => __('by Dream-Theme', 'the7mk2'), "params" => array(array("type" => "dropdown", "class" => "", "heading" => __("Type", 'the7mk2'), "param_name" => "type", "value" => array("Uploaded media" => "uploaded_image", "Media from url" => "from_url"), "description" => ""), array("type" => "attach_image", "holder" => "img", "class" => "dt_image", "heading" => __("Choose image", 'the7mk2'), "param_name" => "image_id", "value" => "", "description" => "", "dependency" => array("element" => "type", "value" => array("uploaded_image"))), array("type" => "textfield", "class" => "dt_image", "heading" => __("Image URL", 'the7mk2'), "param_name" => "image", "value" => "", "description" => "", "dependency" => array("element" => "type", "value" => array("from_url"))), array("type" => "textfield", "class" => "dt_image", "heading" => __("Image ALT", 'the7mk2'), "param_name" => "image_alt", "value" => "", "dependency" => array("element" => "type", "value" => array("from_url"))), array("type" => "textfield", "class" => "", "heading" => __("Video URL", 'the7mk2'), "admin_label" => true, "param_name" => "media", "value" => "", "description" => "", "dependency" => array("element" => "type", "value" => array("from_url"))), array("type" => "checkbox", "class" => "", "heading" => __("Open in lighbox", 'the7mk2'), "param_name" => "lightbox", "value" => array("" => "true"), "description" => __("If selected, larger image will be opened on click.", 'the7mk2')), array("type" => "dropdown", "class" => "", "heading" => __("Image hovers", 'the7mk2'), "param_name" => "image_hovers", "std" => "true", "value" => array("Disabled" => "false", "Enabled" => "true"), "dependency" => array("element" => "lightbox", "value" => array("true"))), array("type" => "dropdown", "class" => "", "heading" => __("Style", 'the7mk2'), "param_name" => "style", "value" => array("Full-width media" => "1", "Media with padding & outline" => "2", "Media with padding & background fill" => "3"), "description" => ""), array("type" => "textfield", "class" => "", "heading" => __("Width", 'the7mk2'), "param_name" => "width", "value" => "270", "description" => __("In pixels. Proportional height will be calculated automatically.", 'the7mk2')), array("type" => "textfield", "class" => "", "heading" => __("Padding", 'the7mk2'), "param_name" => "padding", "value" => "10", "description" => __("In pixels.", 'the7mk2')), array("type" => "textfield", "class" => "", "heading" => __("Margin-top", 'the7mk2'), "param_name" => "margin_top", "value" => "0", "description" => __("In pixels.", 'the7mk2')), array("type" => "textfield", "class" => "", "heading" => __("Margin-bottom", 'the7mk2'), "param_name" => "margin_bottom", "value" => "0", "description" => __("In pixels.", 'the7mk2')), array("type" => "textfield", "class" => "", "heading" => __("Margin-left", 'the7mk2'), "param_name" => "margin_left", "value" => "0", "description" => __("In pixels.", 'the7mk2')), array("type" => "textfield", "class" => "", "heading" => __("Margin-right", 'the7mk2'), "param_name" => "margin_right", "value" => "0", "description" => __("In pixels.", 'the7mk2')), array("type" => "dropdown", "class" => "", "heading" => __("Align", 'the7mk2'), "param_name" => "align", "value" => array("Left" => "left", "Center" => "center", "Right" => "right"), "description" => ""), array("type" => "dropdown", "class" => "", "heading" => __("Animation", 'the7mk2'), "param_name" => "animation", "value" => presscore_get_vc_animation_options(), "description" => ""))));
/**
 * DT Button.
 */
vc_map(array("weight" => -1, "name" => __("Button", 'the7mk2'), "base" => "dt_button", "icon" => "dt_vc_ico_button", "class" => "dt_vc_sc_button", "category" => __('by Dream-Theme', 'the7mk2'), "params" => array(array("type" => "textfield", "heading" => __("Extra class name", 'the7mk2'), "param_name" => "el_class", "value" => "", "description" => __("If you wish to style particular content element differently, then use this field to add a class name and then refer to it in your css file.", 'the7mk2')), array("type" => "textfield", "class" => "", "heading" => __("Caption", 'the7mk2'), "admin_label" => true, "param_name" => "content", "value" => ""), array("type" => "textfield", "class" => "", "heading" => __("Link URL", 'the7mk2'), "param_name" => "link", "value" => ""), array("type" => "dropdown", "class" => "", "heading" => __("Open link in", 'the7mk2'), "param_name" => "target_blank", "value" => array("Same window" => "false", "New window" => "true")), array('type' => 'checkbox', 'heading' => __('Smooth scroll?', 'the7mk2'), 'param_name' => 'smooth_scroll', 'description' => __('for #anchor navigation', 'the7mk2')), array("type" => "dropdown", "class" => "", "heading" => __("Button alignment", 'the7mk2'), "param_name" => "button_alignment", "value" => array("Default" => "default", "Centre" => "center")), array("type" => "dropdown", "class" => "", "heading" => __("Animation", 'the7mk2'), "param_name" => "animation", "value" => presscore_get_vc_animation_options()), array("group" => __("Style", 'the7mk2'), "type" => "dropdown", "class" => "", "heading" => __("Size", 'the7mk2'), "param_name" => "size", "value" => array("Small" => "small", "Medium" => "medium", "Large" => "big")), array("group" => __("Style", 'the7mk2'), "type" => "dropdown", "class" => "", "heading" => __("Style", 'the7mk2'), "param_name" => "style", "value" => array("Default (from Theme Options / Buttons)" => "default", "Link" => "link", "Light" => "light", "Light with background on hover" => "light_with_bg", "Outline" => "outline", "Outline with background on hover" => "outline_with_bg")), array("group" => __("Style", 'the7mk2'), "type" => "dropdown", "class" => "", "heading" => __("Background (border) color", 'the7mk2'), "param_name" => "bg_color_style", "value" => array("Default (from Theme Options / Buttons)" => "default", "Accent" => "accent", "Custom" => "custom"), "dependency" => array("element" => "style", "value" => array('default', 'outline', 'outline_with_bg'))), array("group" => __("Style", 'the7mk2'), "type" => "colorpicker", "class" => "", "heading" => __("Custom background color", 'the7mk2'), "param_name" => "bg_color", "value" => '#888888', "dependency" => array("element" => "bg_color_style", "value" => array("custom"))), array("group" => __("Style", 'the7mk2'), "type" => "dropdown", "class" => "", "heading" => __("Background (border) hover color", 'the7mk2'), "param_name" => "bg_hover_color_style", "value" => array("Default (from Theme Options / Buttons)" => "default", "Accent" => "accent", "Custom" => "custom"), "dependency" => array("element" => "style", "value" => array('default', 'light_with_bg', 'outline', 'outline_with_bg'))), array("group" => __("Style", 'the7mk2'), "type" => "colorpicker", "class" => "", "heading" => __("Custom background hover color", 'the7mk2'), "param_name" => "bg_hover_color", "value" => '#888888', "dependency" => array("element" => "bg_hover_color_style", "value" => array("custom"))), array("group" => __("Style", 'the7mk2'), "type" => "dropdown", "class" => "", "heading" => __("Text color", 'the7mk2'), "param_name" => "text_color_style", "value" => array("Default (from Theme Options / Buttons)" => "default", "Title" => "context", "Accent" => "accent", "Custom" => "custom")), array("group" => __("Style", 'the7mk2'), "type" => "colorpicker", "class" => "", "heading" => __("Custom text color", 'the7mk2'), "param_name" => "text_color", "value" => '#888888', "dependency" => array("element" => "text_color_style", "value" => array("custom"))), array("group" => __("Style", 'the7mk2'), "type" => "dropdown", "class" => "", "heading" => __("Text hover color", 'the7mk2'), "param_name" => "text_hover_color_style", "value" => array("Default (from Theme Options / Buttons)" => "default", "Title" => "context", "Accent" => "accent", "Custom" => "custom")), array("group" => __("Style", 'the7mk2'), "type" => "colorpicker", "class" => "", "heading" => __("Custom text hover color", 'the7mk2'), "param_name" => "text_hover_color", "value" => '#888888', "dependency" => array("element" => "text_hover_color_style", "value" => array("custom"))), array("group" => __("Icon", 'the7mk2'), "type" => "textarea_raw_html", "class" => "", "heading" => __("Icon", 'the7mk2'), "param_name" => "icon", "value" => '', "description" => __('f.e. <code>&lt;i class="fa fa-coffee"&gt;&lt;/i&gt;</code>', 'the7mk2')), array("group" => __("Icon", 'the7mk2'), "type" => "dropdown", "class" => "", "heading" => __("Icon align", 'the7mk2'), "param_name" => "icon_align", "value" => array("Left" => "left", "Right" => "right")))));
/**
 * DT Fancy List.
 */
vc_map(array("weight" => -1, "name" => __("Fancy List", 'the7mk2'), "base" => "dt_vc_list", "icon" => "dt_vc_ico_list", "class" => "dt_vc_sc_list", "category" => __('by Dream-Theme', 'the7mk2'), "params" => array(array("type" => "textarea_html", "holder" => "div", "class" => "", "heading" => __("Caption", 'the7mk2'), "param_name" => "content", "value" => __("<ul><li>Your list</li><li>goes</li><li>here!</li></ul>", 'the7mk2'), "description" => ""), array("type" => "dropdown", "class" => "", "heading" => __("List style", 'the7mk2'), "param_name" => "style", "value" => array("Unordered" => "1", "Ordered (numbers)" => "2", "No bullets" => "3"), "description" => ""), array("type" => "dropdown", "class" => "", "heading" => __("Bullet position", 'the7mk2'), "param_name" => "bullet_position", "value" => array("Top" => "top", "Middle" => "middle"), "description" => ""), array("type" => "dropdown", "class" => "", "heading" => __("Dividers", 'the7mk2'), "param_name" => "dividers", "value" => array("Show" => "true", "Hide" => "false"), "description" => ""))));
/**
 * DT Before / After.
 */
vc_map(array("weight" => -1, 'name' => __('Before / After', 'the7mk2'), 'base' => 'dt_before_after', 'class' => 'dt_vc_sc_before_after', 'icon' => 'dt_vc_ico_before_after', 'category' => __('by Dream-Theme', 'the7mk2'), 'description' => "", 'params' => array(array("type" => "attach_image", "holder" => "img", "class" => "dt_image", "heading" => __("Choose first image", 'the7mk2'), "param_name" => "image_1", "value" => "", "description" => ""), array("type" => "attach_image", "holder" => "img", "class" => "dt_image", "heading" => __("Choose second image", 'the7mk2'), "param_name" => "image_2", "value" => "", "description" => ""), array("type" => "dropdown", "class" => "", "holder" => "div", "heading" => __("Orientation", 'the7mk2'), "param_name" => "orientation", "value" => array("Vertical" => "horizontal", "Horizontal" => "vertical"), "description" => ""), array("type" => "dropdown", "class" => "", "holder" => "div", "heading" => __("Navigation", 'the7mk2'), "param_name" => "navigation", "value" => array("Click and drag" => "drag", "Follow" => "move"), "description" => ""), array('type' => 'textfield', "holder" => "div", 'heading' => __('Visible part of the "Before" image (in %)', 'the7mk2'), 'param_name' => 'offset', 'std' => '50', 'description' => ""))));