MOON
Server: Apache
System: Linux server.netcommlabs.in 3.10.0-1160.83.1.el7.x86_64 #1 SMP Wed Jan 25 16:41:43 UTC 2023 x86_64
User: dermova (1051)
PHP: 5.4.45
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/dermova/www/india/wp-content/plugins/rit-core/inc/shortcode/team-member.php
<?php
/**
 * RIT Core Plugin
 * @package     RIT Core
 * @version     0.1
 * @author      CleverSoft
 * @link        http://cleversoft.co
 * @copyright   Copyright (c) 2015 CleverSoft
 * @license     GPL v2
 */

function rit_shortcode_member_slider($atts)
{

    $atts = shortcode_atts(
        array(
            'posts_per_page' => "-1",
            'number' => 5,
            'order' => 'DESC',
            'orderby' => 'date',
            'target' => '_blank',
            'speed' => 1000,
            'auto' => 'true',
            'arrow' => 'true',
            'size' => 'medium',
            'el_class'=> '',

        ), $atts);

    return rit_get_template_part('shortcode', 'member-slider', array('atts' => $atts));
}

add_shortcode('rit_member_slider', 'rit_shortcode_member_slider');

add_action('vc_before_init', 'rit_member_slider_integrate_vc');

if (!function_exists('rit_member_slider_integrate_vc')) {
    function rit_member_slider_integrate_vc()
    {
        vc_map(
            array(
                'name' => __('RIT Member Slider', RIT_TEXT_DOMAIN),
                'base' => 'rit_member_slider',
                'icon' => 'icon-rit',
                'category' => __('RIT', RIT_TEXT_DOMAIN),
                'description' => __('Show member carousel', RIT_TEXT_DOMAIN),
                'params' => array(
                    array(
                        'type' => 'textfield',
                        'heading' => __('Number of member', RIT_TEXT_DOMAIN),
                        'value' => '',
                        'param_name' => 'posts_per_page',
                        'description' => __('Number of member in slide', RIT_TEXT_DOMAIN),
                    ),
                    array(
                        'type' => 'textfield',
                        'heading' => __('Number item show', RIT_TEXT_DOMAIN),
                        'value' => '',
                        'param_name' => 'number',
                        'description' => __('Number of image showing', RIT_TEXT_DOMAIN),
                    ),
                    array(
                        'type' => 'dropdown',
                        'heading' => __( 'Order by', RIT_TEXT_DOMAIN ),
                        'param_name' => 'orderby',
                        'value' => array(
                            '',
                            __( 'Date', RIT_TEXT_DOMAIN ) => 'date',
                            __( 'ID', RIT_TEXT_DOMAIN ) => 'ID',
                            __( 'Author', RIT_TEXT_DOMAIN ) => 'author',
                            __( 'Title', RIT_TEXT_DOMAIN ) => 'title',
                            __( 'Modified', RIT_TEXT_DOMAIN ) => 'modified',
                            __( 'Random', RIT_TEXT_DOMAIN ) => 'rand',
                            __( 'Comment count', RIT_TEXT_DOMAIN ) => 'comment_count',
                            __( 'Menu order', RIT_TEXT_DOMAIN ) => 'menu_order'
                        ),
                        'description' => sprintf( __( 'Select how to sort retrieved posts. More at %s.', RIT_TEXT_DOMAIN ), '<a href="http://codex.wordpress.org/Class_Reference/WP_Query#Order_.26_Orderby_Parameters" target="_blank">WordPress codex page</a>' )
                    ),
                    array(
                        'type' => 'dropdown',
                        'heading' => __( 'Order', RIT_TEXT_DOMAIN ),
                        'param_name' => 'order',
                        'value' => array(
                            __( 'Descending', RIT_TEXT_DOMAIN ) => 'DESC',
                            __( 'Ascending', RIT_TEXT_DOMAIN ) => 'ASC'
                        ),
                        'description' => sprintf( __( 'Select ascending or descending order. More at %s.', RIT_TEXT_DOMAIN ), '<a href="http://codex.wordpress.org/Class_Reference/WP_Query#Order_.26_Orderby_Parameters" target="_blank">WordPress codex page</a>' )
                    ),
                    array(
                        'type' => 'dropdown',
                        'heading' => __( 'Link Target', RIT_TEXT_DOMAIN ),
                        'param_name' => 'target',
                        'value' => array(
                            __( 'Same window', RIT_TEXT_DOMAIN ) => '_self',
                            __( 'New window', RIT_TEXT_DOMAIN ) => "_blank"
                        ),
                        'dependency' => array(
                            'element' => 'img_link',
                            'not_empty' => true
                        ),
                        'description' => __('Number of product will showing', RIT_TEXT_DOMAIN),
                    ),
                    array(
                        'type' => 'textfield',
                        'heading' => __('Slide Speed', RIT_TEXT_DOMAIN),
                        'value' => '1000',
                        'param_name' => 'speed',
                    ),
                    array(
                        'type' => 'checkbox',
                        'heading' => __( 'Auto slide', RIT_TEXT_DOMAIN ),
                        'param_name' => 'auto',
                        'description' => __( 'If checked, image will auto run carousel.', RIT_TEXT_DOMAIN ),
                        'value' => array( __( 'Yes', RIT_TEXT_DOMAIN ) => 'true' )
                    ),
                    array(
                        'type' => 'checkbox',
                        'heading' => __( 'Show Arrow', RIT_TEXT_DOMAIN ),
                        'param_name' => 'arrow',
                        'value' => array( __( 'Yes', RIT_TEXT_DOMAIN ) => 'true' )
                    ),
                    array(
                        'type' => 'textfield',
                        'heading' => __( 'Member size', RIT_TEXT_DOMAIN ),
                        'param_name' => 'size',
                        'value' => 'medium',
                        'description' => __( '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) . ', RIT_TEXT_DOMAIN )
                    ),
                    array(
                        'type' => 'textfield',
                        'heading' => __( 'Extra class name', RIT_TEXT_DOMAIN ),
                        'param_name' => 'el_class',
                        'description' => __( 'Style particular content element differently - add a class name and refer to it in custom CSS.', RIT_TEXT_DOMAIN )
                    )

                )
            )
        );
    }
}