<?php
vc_add_param("cms_grid", array(
	"type" => "dropdown",
    "class" => "",
    "heading" => esc_html__("Pricing Table Layout", 'haswell'),
    "param_name" => "cms_pricing_layout",
    "value" => array(
    	"Pricing Layout 1" => "pr-default",
        "Pricing Layout 2" => "pr-layout-2",
        "Pricing Layout 2 & Animate" => "pr-layout-2 pr-pricing-animate",
    ),
    'dependency' => array(
		'element' => 'cms_template',
		'value' => 'cms_grid--pricing-layout-1.php',
	),
    "template" => array("cms_grid--pricing-layout-1.php"),
    "description" => esc_html__('Select Pricing Table Layout', 'haswell'),
    "group" => esc_html__("Template", 'haswell')
));

vc_add_param("cms_grid", array(
    "type" => "textfield",
    "class" => "",
    "heading" => esc_html__("Gutter", 'haswell'),
    "param_name" => "cms_portfolio_gutter",
    "value" => "",
    'dependency' => array(
        'element' => 'cms_template',
        'value' => array(
                'cms_grid--portfolio-shuffle.php',
                'cms_grid--portfolio-boxed.php', 
                'cms_grid--portfolio-wide.php',
                'cms_grid--shop-wide.php',
                'cms_grid--travel.php',
            ),
    ),
    "description" => esc_html__('Select gutter for masonry layout in pixel, default is 0px', 'haswell'),
    "group" => esc_html__("Template", 'haswell')
));

vc_add_param("cms_grid", array(
    "type" => "dropdown",
    "class" => "",
    "heading" => esc_html__("Thumbnail Image Size", 'haswell'),
    "param_name" => "cms_portfolio_thumb",
    'value' => array(
        esc_html__( 'Wide', 'haswell' ) => 'wide',
        esc_html__( 'Square', 'haswell' ) => 'square',
        esc_html__( 'Fixed Width', 'haswell' ) => 'fixed_w',
    ),
    'dependency' => array(
        'element' => 'cms_template',
        'value' => array(
            'cms_grid--portfolio-boxed.php', 
            'cms_grid--portfolio-wide.php',
            'cms_grid--shop-wide.php',
            'cms_grid--travel.php',
        ),
    ),
    "template" => array(
        'cms_grid--portfolio.php',
        'cms_grid--portfolio-boxed.php', 
        'cms_grid--portfolio-wide.php',
        'cms_grid--shop-wide.php',
        'cms_grid--travel.php',
    ),
    "description" => esc_html__('Select thumbnail image size', 'haswell'),
    "group" => esc_html__("Template", 'haswell')
));

vc_add_param("cms_grid", array(
    "type" => "dropdown",
    "class" => "",
    "heading" => esc_html__("Thumbnail Image Size", 'haswell'),
    "param_name" => "cms_team_thumb",
    'value' => array(
        esc_html__( 'Default', 'haswell' ) => 'default',
        esc_html__( 'Square', 'haswell' ) => 'square',
    ),
    'dependency' => array(
        'element' => 'cms_template',
        'value' => array(
                'cms_grid--team.php'
            ),
    ),
    "template" => array(
        'cms_grid--team.php',
    ),
    "description" => esc_html__('Select thumbnail image size', 'haswell'),
    "group" => esc_html__("Template", 'haswell')
));

vc_add_param("cms_grid", array(
    'type' => 'checkbox',
    'heading' => esc_html__( 'Show Pagination', 'haswell' ),
    'param_name' => 'cms_port_navigation',
    'std' => false,
    'description' => '',
    'dependency' => array(
        'element' => 'cms_template',
        'value' => array(
            'cms_grid--portfolio-boxed.php', 
            'cms_grid--portfolio-wide.php',
            'cms_grid--shop-wide.php',
        ),
    ),
    "group" => esc_html__("Template", 'haswell')
));

$params = array(
    array(
        'type' => 'checkbox',
        'heading' => esc_html__( 'Use view all link ?', 'haswell' ),
        'param_name' => 'cms_viewall',
        'std' => false,
        'description' => esc_html__( 'Use view all link', 'haswell' ),
        "template" => array(
            'cms_grid--portfolio-boxed.php', 
            'cms_grid--portfolio-wide.php',
            'cms_grid--team.php',
        )
    ),
    array(
        'type' => 'textfield',
        'heading' => esc_html__( 'View all text', 'haswell' ),
        'param_name' => 'cms_viewall_text',
        'description' => esc_html__( 'View all text', 'haswell' ),
        'dependency' => array(
            'element' => 'cms_viewall',
            'value' => 'true',
        ),
        "group" => esc_html__("Template", 'haswell')
    ),
    array(
        'type' => 'textfield',
        'heading' => esc_html__( 'View all link', 'haswell' ),
        'param_name' => 'cms_viewall_link',
        'description' => esc_html__( 'View all link', 'haswell' ),
        'dependency' => array(
            'element' => 'cms_viewall',
            'value' => 'true',
        ),
        "group" => esc_html__("Template", 'haswell')
    ),
    array(
        'type' => 'dropdown',
        'heading' => esc_html__( 'View all button style', 'haswell' ),
        'param_name' => 'cms_viewall_style',
        'description' => esc_html__( 'View all button layout: gray, dark', 'haswell' ),
        'dependency' => array(
            'element' => 'cms_viewall',
            'value' => 'true',
        ),
        'value' => array(
            esc_html__( 'Grey Style', 'haswell' ) => 'viewall-grey',
            esc_html__( 'Dark Style', 'haswell' ) => 'viewall-dark',
        ),
        "template" => array(
            'cms_grid--portfolio-boxed.php', 
            'cms_grid--portfolio-wide.php',
            'cms_grid--team.php',
        ),
        "group" => esc_html__("Template", 'haswell')
    ),
    array(
        'type' => 'textfield',
        'heading' => esc_html__( 'Custom title', 'haswell' ),
        'param_name' => 'cms_portfolio_custom_title',
        'description' => esc_html__( 'Custom title', 'haswell' ),
        "template" => array(
            'cms_grid--portfolio-shuffle.php',
        ),
        "group" => esc_html__("Template", 'haswell')
    ),
);