__('Text Group', 'jevelin'), 'base' => 'vcj_text_group', 'description' => __('2 text input field columns', 'jevelin'), 'category' => __('Jevelin Elements', 'jevelin'), 'icon' => get_template_directory_uri().'/img/builder-icon.png', 'params' => array( array ( 'param_name' => 'content', 'heading' => 'Content (left column)', 'description' => 'Enter content', 'type' => 'textarea_html', 'class' => '', 'std' => '
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
', 'group' => 'General', 'admin_label' => true, ), array ( 'param_name' => 'content_right', 'heading' => 'Content (right column)', 'description' => 'Enter content', 'type' => 'textarea', 'class' => '', 'std' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.', 'group' => 'General', 'admin_label' => true, ), array ( 'param_name' => 'content_right_alignment', 'heading' => 'Content (right column) Text Alignment', 'value' => array ( 'Left' => 'left', 'Center' => 'center', 'Right' => 'right', ), 'type' => 'dropdown', 'class' => '', 'std' => 'right', 'group' => 'General', ), array ( 'param_name' => 'layout', 'heading' => 'Layout', 'description' => 'Choose column layout', 'value' => array ( '50% + %50 column layout' => 'layout1', 'Inline both columns' => 'layout2', ), 'type' => 'dropdown', 'class' => '', 'std' => 'style1', 'group' => 'General', ), array ( 'param_name' => 'paragraph_whitespace', 'heading' => 'Paragraph Whitespace', 'description' => 'Enable or disable paragraph line brake whitespace', 'value' => array ( 'Off' => 'off', 'On' => 'on', ), 'type' => 'dropdown', 'std' => 'on', 'group' => 'Styling', ), array ( 'param_name' => 'text_font', 'heading' => 'Text Font Famility', 'description' => 'Select text font famility', 'value' => array ( 'Heading' => 'heading', 'Body' => 'body', 'Additional font 1' => 'additional1', 'Additional font 2' => 'additional2', ), 'type' => 'dropdown', 'class' => '', 'std' => 'body', 'group' => 'Styling', ), array ( 'param_name' => 'heading_font', 'heading' => 'Heading Font Famility', 'description' => 'Select heading font famility', 'value' => array ( 'Heading' => 'heading', 'Body' => 'body', 'Additional font 1' => 'additional1', 'Additional font 2' => 'additional2', ), 'type' => 'dropdown', 'class' => '', 'std' => 'heading', 'group' => 'Styling', ), array ( 'param_name' => 'heading_font_weight', 'heading' => 'Heading Font Weight', 'description' => 'Select heading font weight', 'value' => array ( 'Extra Light' => 200, 'Light' => 300, 'Regular' => 400, 'Semi-Bold' => 600, 'Bold' => 700, 'Extra Bold' => 900, ), 'type' => 'dropdown', 'class' => '', 'std' => '700', 'group' => 'Styling', ), array( 'param_name' => 'font_size', 'heading' => __( 'Font Size', 'jevelin' ), 'description' => __( 'Enter font size (Note: CSS measurement units allowed).', 'jevelin' ), 'type' => 'textfield', 'group' => 'Styling', ), ), ) ); } public function _html( $atts, $content ) { // Params extraction extract( shortcode_atts( array( //'content' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.
', 'content_right' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.', 'content_right_alignment' => 'right', 'layout' => 'style1', 'paragraph_whitespace' => 'on', 'text_font' => 'body', 'heading_font' => 'heading', 'heading_font_weight' => '700', 'font_size' => '', ), $atts ) ); // HTML $class = array(); $class[] = 'sh-text-group'; $id = 'sh-text-group-'.jevelin_rand(); ob_start(); ?>