<?php
vc_map(
	array(
		'name' => __( 'Text Block', 'mk_framework' ),
		'base' => 'vc_column_text',
		'html_template' => dirname( __FILE__ ) . '/vc_column_text.php',
		'icon' => 'icon-wpb-layer-shape-text',
		'wrapper_class' => 'clearfix',
		'category' => __( 'Content', 'js_composer' ),
		'description' => __( 'A block of text with WYSIWYG editor', 'js_composer' ),
		'params' => array(
			array(
				'type' => 'textarea_html',
				'holder' => 'div',
				'heading' => __( 'Text', 'mk_framework' ),
				'param_name' => 'content',
				'value' => __( '<p>I am text block. Click edit button to change this text. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.</p>', 'mk_framework' ),
				'description' => __( 'Enter your content.', 'mk_framework' ),
			),
			array(
				'type' => 'textfield',
				'heading' => __( 'Title', 'mk_framework' ),
				'param_name' => 'title',
				'value' => '',
				'description' => __( "You can optionally have global style title for this text block or leave this blank if you create your own title. Moreover you can disable this heading title's pattern divider using below option.", 'mk_framework' ),
			),
			array(
				'type' => 'toggle',
				'heading' => __( 'Title Pattern?', 'mk_framework' ),
				'param_name' => 'disable_pattern',
				'value' => 'true',
				'description' => __( 'If you want to remove the title pattern, disable this option.', 'mk_framework' ),
			),
			array(
				'type' => 'dropdown',
				'heading' => __( 'Text Align', 'mk_framework' ),
				'param_name' => 'align',
				'width' => 150,
				'value' => array(
					__( 'Left', 'mk_framework' ) => 'left',
					__( 'Right', 'mk_framework' ) => 'right',
					__( 'Center', 'mk_framework' ) => 'center',
				),
				'description' => __( '', 'mk_framework' ),
			),
			array(
				'type' => 'range',
				'heading' => __( 'Margin Bottom', 'mk_framework' ),
				'param_name' => 'margin_bottom',
				'value' => '0',
				'min' => '0',
				'max' => '200',
				'step' => '1',
				'unit' => 'px',
				'description' => __( '', 'mk_framework' ),
			),
			$add_css_animations,
			$add_device_visibility,
			array(
				'type' => 'textfield',
				'heading' => __( 'Extra class name', 'mk_framework' ),
				'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.', 'mk_framework' ),
			),
			array(
				'type' => 'css_editor',
				'heading' => __( 'CSS box', 'js_composer' ),
				'param_name' => 'css',
				'group' => __( 'Design Options', 'js_composer' ),
			),
		),
	)
);
