File: /home/buildfft/public_html/wp-content/plugins/pixfort-core/functions/elements/shortcode-card.php
<?php
// Card ----------------------------------------------
vc_map( array (
'base' => 'pix_card',
'name' => __('Card', 'pixfort-core'),
'category' => __('pixfort', 'pixfort-core'),
'class' => 'pixfort_element',
'icon' => PIX_CORE_PLUGIN_URI . 'functions/images/elements/card.png',
'description' => __('Create custom card styles', 'pixfort-core'),
"weight" => "1000",
'params' => array_merge(
array (
array(
'type' => 'dropdown',
'param_name' => 'layout',
'value' => array(
__( 'Small', 'pixfort-core' ) => 'small',
__( 'Big', 'pixfort-core' ) => 'big',
__( 'Big with padding', 'pixfort-core' ) => 'big_padding',
),
'heading' => __( 'Layout', 'pixfort-core' ),
'description' => __( 'Select tabs display style.', 'pixfort-core' ),
),
array (
'param_name' => 'title',
'type' => 'textfield',
'heading' => __('Title', 'pixfort-core'),
'admin_label' => true,
),
array (
'param_name' => 'text',
'type' => 'textarea',
'heading' => __('Card text', 'pixfort-core'),
'admin_label' => true,
'dependency' => array(
"element" => "layout",
"value" => array("big","big_padding")
)
),
array (
'param_name' => 'link_text',
'type' => 'textfield',
'heading' => __('Link Text', 'pixfort-core'),
'admin_label' => true,
// 'value' => "Learn more",
'dependency' => array(
"element" => "layout",
"value" => array('big_padding', "big")
)
),
array (
'param_name' => 'link',
'type' => 'textfield',
'heading' => __('Link', 'pixfort-core'),
'admin_label' => true,
'dependency' => array(
"element" => "layout",
"value" => array("small", 'big', 'big_padding')
)
),
array(
"type" => "checkbox",
"heading" => __( "Open in a new tab", "pixfort-core" ),
"param_name" => "target",
"value" => __( "Yes", "pixfort-core" ),
"dependency" => array(
"element" => "link",
"not_empty" => true
),
),
array (
'param_name' => 'image',
'type' => 'attach_image',
'heading' => __('Image', 'pixfort-core'),
'admin_label' => false,
),
),
$effects_params,
pix_get_text_format_params(array(
'prefix' => '',
'name' => 'Title',
'bold' => true,
'bold_value' => 'font-weight-bold',
'italic' => true,
'italic_value' => '',
'secondary_font' => true,
'secondary_font_value' => '',
'color' => true,
'color_value' => 'heading-default',
'text_group' => "Advanced"
)),
array(
array (
'param_name' => 'title_size',
'type' => 'dropdown',
'heading' => __('Title size', 'pixfort-core'),
'admin_label' => false,
'std' => 'h6',
'group' => 'Advanced',
'value' => array(
__('H1','pixfort-core') => 'h1',
__('H2','pixfort-core') => 'h2',
__('H3','pixfort-core') => 'h3',
__('H4','pixfort-core') => 'h4',
__('H5','pixfort-core') => 'h5',
__('H6','pixfort-core') => 'h6',
__('Custom','pixfort-core') => 'custom',
),
),
array (
'param_name' => 'title_custom_size',
'type' => 'textfield',
'heading' => __('Title Size', 'pixfort-core'),
'admin_label' => false,
'group' => 'Advanced',
"dependency" => array(
"element" => "title_size",
"value" => "custom"
),
),
),
pix_get_text_format_params(array(
'prefix' => 'text_',
'name' => 'Text',
'bold' => true,
'bold_value' => '',
'italic' => true,
'italic_value' => '',
'secondary_font' => true,
'secondary_font_value' => '',
'text_group' => "Advanced",
'color' => true,
'color_value' => 'body-default',
'dependency' => true,
'dependency_value' => array(
"element" => "layout",
"value" => array('big', 'big_padding')
),
)),
array(
array (
'param_name' => 'text_size',
'type' => 'dropdown',
'heading' => __('Text font Size', 'pixfort-core'),
'description' => __('Select the size of the text.', 'pixfort-core'),
'admin_label' => false,
'group' => 'Advanced',
'value' => array_flip(array(
'' => 'Default (16px)',
'text-xs' => '12px',
'text-sm' => '14px',
'text-sm' => '14px',
'text-18' => '18px',
'text-20' => '20px',
'text-24' => '24px',
)),
"dependency" => array(
"element" => "layout",
"value" => array('big', 'big_padding')
),
),
),
pix_get_text_format_params(array(
'prefix' => 'link_',
'name' => 'Link',
'bold' => true,
'bold_value' => 'font-weight-bold',
'italic' => true,
'italic_value' => '',
'secondary_font' => true,
'secondary_font_value' => '',
'text_group' => "Advanced",
'color' => true,
'color_value' => 'heading-default',
'dependency' => true,
'dependency_value' => array(
"element" => "layout",
"value" => array('big', 'big_padding')
),
)),
array(
array (
'param_name' => 'link_size',
'type' => 'dropdown',
'heading' => __('Link font Size', 'pixfort-core'),
'description' => __('Select the size of the text.', 'pixfort-core'),
'admin_label' => false,
'group' => 'Advanced',
'value' => array_flip(array(
'' => 'Default (16px)',
'text-xs' => '12px',
'text-sm' => '14px',
'text-sm' => '14px',
'text-18' => '18px',
'text-20' => '20px',
'text-24' => '24px',
)),
"dependency" => array(
"element" => "layout",
"value" => array('big', 'big_padding')
),
),
),
array (
array (
'param_name' => 'rounded_img',
'type' => 'dropdown',
'heading' => __('Rounded corners', 'pixfort-core'),
'admin_label' => false,
'std' => 'rounded-lg',
'group' => 'Advanced',
'value' => array(
__('No','pixfort-core') => 'rounded-0',
__('Rounded','pixfort-core') => 'rounded',
__('Rounded Large','pixfort-core') => 'rounded-lg',
__('Rounded 5px','pixfort-core') => 'rounded-xl',
__('Rounded 10px','pixfort-core') => 'rounded-10',
)
),
array(
"type" => "checkbox",
"heading" => __( "Add image height & width attributes", "pixfort-core" ),
"param_name" => "explicit_width_height",
"value" => __( "Yes", "pixfort-core" ),
'group' => 'Advanced',
),
array (
'param_name' => 'animation',
'type' => 'dropdown',
'heading' => __('Animation', 'pixfort-core'),
'description' => __('Select the animation of the heading.', 'pixfort-core'),
'admin_label' => false,
'value' => pix_get_animations(),
),
array (
'param_name' => 'delay',
'type' => 'textfield',
'heading' => __('Animation delay (in miliseconds)', 'pixfort-core'),
'admin_label' => true,
"dependency" => array(
"element" => "animation",
"not_empty" => true
),
),
array(
'type' => 'css_editor',
'heading' => __( 'Css', 'essentials-core' ),
'param_name' => 'css',
'group' => __( 'Design options', 'essentials-core' ),
),
)
)
));
?>