File "shortcode-vc-posts-slider.php"
Full Path: /home/arielcor/public_html/wp-content/plugins/js_composer/config/content/shortcode-vc-posts-slider.php
File size: 6.78 KB
MIME-type: text/x-php
Charset: utf-8
<?php
if ( ! defined( 'ABSPATH' ) ) {
die( '-1' );
}
return array(
'name' => esc_html__( 'Posts Slider', 'js_composer' ),
'base' => 'vc_posts_slider',
'icon' => 'icon-wpb-slideshow',
'category' => esc_html__( 'Content', 'js_composer' ),
'description' => esc_html__( 'Slider with WP Posts', 'js_composer' ),
'params' => array(
array(
'type' => 'textfield',
'heading' => esc_html__( 'Widget title', 'js_composer' ),
'param_name' => 'title',
'description' => esc_html__( 'Enter text used as widget title (Note: located above content element).', 'js_composer' ),
),
array(
'type' => 'dropdown',
'heading' => esc_html__( 'Slider type', 'js_composer' ),
'param_name' => 'type',
'admin_label' => true,
'value' => array(
esc_html__( 'Flex slider fade', 'js_composer' ) => 'flexslider_fade',
esc_html__( 'Flex slider slide', 'js_composer' ) => 'flexslider_slide',
esc_html__( 'Nivo slider', 'js_composer' ) => 'nivo',
),
'description' => esc_html__( 'Select slider type.', 'js_composer' ),
),
array(
'type' => 'textfield',
'heading' => esc_html__( 'Slider count', 'js_composer' ),
'param_name' => 'count',
'value' => 3,
'description' => esc_html__( 'Enter number of slides to display (Note: Enter "All" to display all slides).', 'js_composer' ),
),
array(
'type' => 'dropdown',
'heading' => esc_html__( 'Auto rotate', 'js_composer' ),
'param_name' => 'interval',
'value' => array(
3,
5,
10,
15,
esc_html__( 'Disable', 'js_composer' ) => 0,
),
'description' => esc_html__( 'Auto rotate slides each X seconds.', 'js_composer' ),
),
array(
'type' => 'posttypes',
'heading' => esc_html__( 'Post types', 'js_composer' ),
'param_name' => 'posttypes',
'description' => esc_html__( 'Select source for slider.', 'js_composer' ),
),
array(
'type' => 'dropdown',
'heading' => esc_html__( 'Description', 'js_composer' ),
'param_name' => 'slides_content',
'value' => array(
esc_html__( 'No description', 'js_composer' ) => '',
esc_html__( 'Teaser (Excerpt)', 'js_composer' ) => 'teaser',
),
'description' => esc_html__( 'Select source to use for description (Note: some sliders do not support it).', 'js_composer' ),
'dependency' => array(
'element' => 'type',
'value' => array(
'flexslider_fade',
'flexslider_slide',
),
),
),
array(
'type' => 'checkbox',
'heading' => esc_html__( 'Output post title?', 'js_composer' ),
'param_name' => 'slides_title',
'description' => esc_html__( 'If selected, title will be printed before the teaser text.', 'js_composer' ),
'value' => array( esc_html__( 'Yes', 'js_composer' ) => true ),
'dependency' => array(
'element' => 'slides_content',
'value' => array( 'teaser' ),
),
),
array(
'type' => 'dropdown',
'heading' => esc_html__( 'Link', 'js_composer' ),
'param_name' => 'link',
'value' => array(
esc_html__( 'Link to post', 'js_composer' ) => 'link_post',
esc_html__( 'Link to bigger image', 'js_composer' ) => 'link_image',
esc_html__( 'Open custom links', 'js_composer' ) => 'custom_link',
esc_html__( 'No link', 'js_composer' ) => 'link_no',
),
'description' => esc_html__( 'Link type.', 'js_composer' ),
),
array(
'type' => 'exploded_textarea_safe',
'heading' => esc_html__( 'Custom links', 'js_composer' ),
'param_name' => 'custom_links',
'value' => site_url() . '/',
'dependency' => array(
'element' => 'link',
'value' => 'custom_link',
),
'description' => esc_html__( 'Enter links for each slide here. Divide links with linebreaks (Enter).', 'js_composer' ),
),
array(
'type' => 'textfield',
'heading' => esc_html__( 'Thumbnail size', 'js_composer' ),
'param_name' => 'thumb_size',
'value' => 'medium',
'description' => esc_html__( 'Enter thumbnail size. Example: thumbnail, medium, large, full or other sizes defined by current theme. Alternatively enter image size in pixels: 200x100 (Width x Height) . ', 'js_composer' ),
),
array(
'type' => 'textfield',
'heading' => esc_html__( 'Post/Page IDs', 'js_composer' ),
'param_name' => 'posts_in',
'description' => esc_html__( 'Enter page/posts IDs to display only those records (Note: separate values by commas (,)). Use this field in conjunction with "Post types" field.', 'js_composer' ),
),
array(
'type' => 'exploded_textarea_safe',
'heading' => esc_html__( 'Categories', 'js_composer' ),
'param_name' => 'categories',
'description' => esc_html__( 'Enter categories by names to narrow output (Note: only listed categories will be displayed, divide categories with linebreak (Enter)).', 'js_composer' ),
),
array(
'type' => 'dropdown',
'heading' => esc_html__( 'Order by', 'js_composer' ),
'param_name' => 'orderby',
'value' => array(
'',
esc_html__( 'Date', 'js_composer' ) => 'date',
esc_html__( 'ID', 'js_composer' ) => 'ID',
esc_html__( 'Author', 'js_composer' ) => 'author',
esc_html__( 'Title', 'js_composer' ) => 'title',
esc_html__( 'Modified', 'js_composer' ) => 'modified',
esc_html__( 'Random', 'js_composer' ) => 'rand',
esc_html__( 'Comment count', 'js_composer' ) => 'comment_count',
esc_html__( 'Menu order', 'js_composer' ) => 'menu_order',
),
'description' => sprintf( esc_html__( 'Select how to sort retrieved posts. More at %s.', 'js_composer' ), '<a href="https://codex.wordpress.org/Class_Reference/WP_Query#Order_.26_Orderby_Parameters" target="_blank">WordPress codex page</a>' ),
),
array(
'type' => 'dropdown',
'heading' => esc_html__( 'Sort order', 'js_composer' ),
'param_name' => 'order',
'value' => array(
esc_html__( 'Descending', 'js_composer' ) => 'DESC',
esc_html__( 'Ascending', 'js_composer' ) => 'ASC',
),
'description' => sprintf( esc_html__( 'Select ascending or descending order. More at %s.', 'js_composer' ), '<a href="https://codex.wordpress.org/Class_Reference/WP_Query#Order_.26_Orderby_Parameters" target="_blank">WordPress codex page</a>' ),
),
array(
'type' => 'el_id',
'heading' => esc_html__( 'Element ID', 'js_composer' ),
'param_name' => 'el_id',
'description' => sprintf( esc_html__( 'Enter element ID (Note: make sure it is unique and valid according to %sw3c specification%s).', 'js_composer' ), '<a href="https://www.w3schools.com/tags/att_global_id.asp" target="_blank">', '</a>' ),
),
array(
'type' => 'textfield',
'heading' => esc_html__( 'Extra class name', 'js_composer' ),
'param_name' => 'el_class',
'description' => esc_html__( 'Style particular content element differently - add a class name and refer to it in custom CSS.', 'js_composer' ),
),
array(
'type' => 'css_editor',
'heading' => esc_html__( 'CSS box', 'js_composer' ),
'param_name' => 'css',
'group' => esc_html__( 'Design Options', 'js_composer' ),
),
),
);