/**
  * The shortcodes attributes with the field options
  *
  * @access private
  * @param array $atts
  * @return shortcode output
  */
 public static function fields()
 {
     global $mvb_metro_factory;
     $the_fields = array('main_title' => array('type' => 'text', 'label' => __('Title', 'dfd')), 'separator1' => array('type' => 'separator'), 'presentation_box' => array('type' => 'repeater', 'button' => __('Add box', 'dfd'), 'label' => __('Box', 'dfd'), 'lbl_d' => __('Box Title', 'dfd'), 'fields' => array('image' => array('type' => 'image', 'label' => __('Image', 'dfd'), 'col_span' => 'lbl_half'), 'main_title' => array('type' => 'text', 's_title' => TRUE, 'label' => __('Title', 'dfd'), 'col_span' => 'lbl_half'), 'sub_title' => array('type' => 'text', 'label' => __('Subtitle', 'dfd'), 'col_span' => 'lbl_half'), 'separator1' => array('type' => 'separator'), 'link_url' => array('type' => 'text', 'label' => __('Link (URL)', 'dfd'), 'col_span' => 'lbl_half'), 'page_id' => array('type' => 'mvb_dropdown', 'label' => __('Link to page', 'dfd'), 'what' => 'pages', 'default' => 0, 'col_span' => 'lbl_half'), 'separator' => array('type' => 'separator'), 'link_title' => array('type' => 'text', 'label' => __('Link Title', 'dfd'), 'col_span' => 'lbl_half'), 'link_in_main_title' => array('type' => 'select', 'label' => __('Link In Main Title', 'dfd'), 'default' => 0, 'options' => array(0 => __('No', 'dfd'), 1 => __('Yes', 'dfd')), 'col_span' => 'lbl_half'), 'separator' => array('type' => 'separator'), 'icon' => array('type' => 'icon', 'label' => __('Icon', 'dfd')), 'separator01' => array('type' => 'separator'), 'icon_size' => array('type' => 'text', 'label' => __('Icon size (in px)', 'dfd'), 'default' => '120', 'col_span' => 'lbl_third'), 'content' => array('type' => 'textarea', 'label' => __('Content', 'dfd')), 'css' => array('type' => 'text', 'label' => __('Additional CSS classes', 'dfd'), 'help' => __('Separated by space', 'dfd')))), 'separator-effects' => array('type' => 'separator'), 'effects' => array('type' => 'select', 'label' => __('Appear effects', 'dfd'), 'help' => __('Select one of appear effects for block', 'dfd'), 'default' => '0', 'options' => crum_appear_effects(), 'col_span' => 'lbl_half'), 'image_align' => array('type' => 'select', 'label' => __('Icon or image align', 'dfd'), 'help' => __('The image or cion will appear to the left or to the right from content', 'dfd'), 'options' => crum_get_align(), 'col_span' => 'lbl_half'), 'css' => array('type' => 'text', 'label' => __('Additional CSS classes', 'dfd'), 'help' => __('Separated by space', 'dfd'), 'col_span' => 'lbl_half'), 'css_styles' => array('type' => 'text', 'label' => __('Additional CSS styles', 'dfd'), 'help' => __('Separated by <b>;</b>', 'dfd'), 'col_span' => 'lbl_full'));
     $the_fields = apply_filters('mvb_fields_filter', $the_fields);
     return $the_fields;
 }
Example #2
0
 /**
  * The shortcodes attributes with the field options
  *
  * @access private
  * @param array $atts
  * @return shortcode output
  */
 public static function fields()
 {
     global $mvb_metro_factory;
     $the_fields = array('main_title' => array('type' => 'text', 'label' => __('Title', 'mvb'), 'col_span' => 'lbl_half'), 'separator' => array('type' => 'separator'), 'image' => array('type' => 'image', 'label' => __('Image', 'mvb'), 'col_span' => 'lbl_half'), 'image_align' => array('type' => 'select', 'label' => __('Align', 'mvb'), 'options' => crum_get_align(), 'col_span' => 'lbl_half'), 'separator' => array('type' => 'separator'), 'link_url' => array('type' => 'text', 'label' => __('Link (URL)', 'mvb'), 'col_span' => 'lbl_half'), 'page_id' => array('type' => 'mvb_dropdown', 'label' => __('Link to page', 'mvb'), 'what' => 'pages', 'default' => 0, 'col_span' => 'lbl_half'), 'content' => array('type' => 'textarea', 'label' => __('Content', 'mvb')), 'read_more' => array('type' => 'select', 'label' => __('Display the "read more" link', 'mvb'), 'default' => 1, 'options' => mvb_yes_no(), 'col_span' => 'lbl_half'), 'read_more_text' => array('type' => 'text', 'label' => __('"Read more" link text', 'mvb'), 'default' => __('Read more', 'mvb'), 'col_span' => 'lbl_half'), 'separator-effects' => array('type' => 'separator'), 'effects' => array('type' => 'select', 'label' => __('Appear effects', 'mvb'), 'help' => __('Select one of appear effects for block', 'mvb'), 'default' => '0', 'options' => crum_appear_effects(), 'col_span' => 'lbl_half'), 'css' => array('type' => 'text', 'label' => __('Additional CSS classes', 'mvb'), 'help' => __('Separated by space', 'mvb'), 'col_span' => 'lbl_half'), 'css_styles' => array('type' => 'text', 'label' => __('Additional CSS styles', 'mvb'), 'help' => __('Separated by <b>;</b>', 'mvb'), 'col_span' => 'lbl_full'));
     $the_fields = apply_filters('mvb_fields_filter', $the_fields);
     return $the_fields;
 }