示例#1
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', 's_title' => TRUE, 'label' => __('Title', 'dfd')), 'sub_title' => array('type' => 'text', 'label' => __('Sub Title', 'dfd')), 'contacts_form_mail' => array('type' => 'text', 'label' => __('Сontacts form mail', 'dfd')), 'show_captcha' => array('type' => 'select', 'label' => __('Captcha', 'dfd'), 'default' => '0', 'options' => mvb_yes_no(), 'col_span' => 'lbl_half'), 'submit_button_align' => array('type' => 'select', 'label' => __('Submit Button Align', 'dfd'), 'default' => 0, 'options' => crum_get_align_ext(), 'col_span' => 'lbl_half'), 'size' => array('type' => 'select', 'label' => __('Show half-size form', 'dfd'), 'default' => 0, 'options' => mvb_yes_no(), '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;
 }
示例#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('image' => array('type' => 'image', 'label' => __('Image', 'mvb'), 'col_span' => 'lbl_half'), 'main_title' => array('type' => 'text', 'label' => __('Title', 'mvb'), 'col_span' => 'lbl_half'), 'separator-align' => array('type' => 'separator'), 'text_align' => array('type' => 'select', 'label' => __('Align', 'mvb'), 'options' => crum_get_align_ext(), 'col_span' => 'lbl_half'), 'content' => array('type' => 'textarea', 'editor' => TRUE, 'label' => __('Content', 'mvb')), '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_half'), 'separator-crop' => array('type' => 'separator'), 'crop_height' => array('type' => 'text', 'label' => __('Crop Height', 'mvb'), 'help' => __('For 400px please write <b>400</b>'), 'default' => '', 'col_span' => 'lbl_half'));
     $the_fields = apply_filters('mvb_fields_filter', $the_fields);
     return $the_fields;
 }
示例#3
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')), 'content' => array('type' => 'textarea', 'editor' => TRUE, 'label' => __('Content', 'mvb'), 'insert_image' => true), 'text_align' => array('type' => 'select', 'label' => __('Text align', 'mvb'), 'options' => crum_get_align_ext(), 'col_span' => 'lbl_half'), 'separator-dropcaps' => array('type' => 'separator'), 'dropcaps_enable' => array('type' => 'select', 'label' => __('Dropcaps Enable', 'mvb'), 'options' => mvb_yes_no(), 'col_span' => 'lbl_third'), 'dropcaps_type' => array('type' => 'select', 'label' => __('Dropcaps Type', 'mvb'), 'options' => self::dropcaps_types(), 'col_span' => 'lbl_third'), 'dropcaps_style' => array('type' => 'select', 'label' => __('Dropcaps Style', 'mvb'), 'options' => self::dropcaps_styles(), 'col_span' => 'lbl_third'), '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_half'), 'separator-heading' => array('type' => 'separator'));
     $the_fields = apply_filters('mvb_fields_filter', $the_fields);
     return $the_fields;
 }
示例#4
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')), 'separator1' => array('type' => 'separator'), 'multicolumn_text' => array('type' => 'repeater', 'button' => __('Add text box', 'mvb'), 'label' => __('Text Box', 'mvb'), 'lbl_d' => __('Text Box Title', 'mvb'), 'fields' => array('content' => array('type' => 'textarea', 'editor' => true, 'label' => __('Content', 'mvb'), 'insert_image' => true), 'text_align' => array('type' => 'select', 'label' => __('Text align', 'mvb'), 'options' => crum_get_align_ext(), 'col_span' => 'lbl_half'), 'text_columns' => array('type' => 'select', 'label' => __('Column span', 'mvb'), 'default' => '6', 'options' => mvb_get_col_span()), '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'))), '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);
     $the_fields['multicolumn_text']['fields'] = apply_filters('mvb_fields_filter', $the_fields['multicolumn_text']['fields']);
     return $the_fields;
 }
示例#5
0
 public function the_icon_field()
 {
     $fields = array('icon' => array('type' => 'icon', 'label' => __('Icon', 'mvb')), 'icon_background_type' => array('type' => 'select', 'label' => __('Icon background type', 'mvb'), 'default' => '', 'options' => mvb_icon_background_type()), 'icon_background_color' => array('type' => 'colorpicker', 'label' => __('Icon background color', 'mvb')), 'icon_background_color_hover' => array('type' => 'colorpicker', 'label' => __('Icon background color hover', 'mvb')), 'icon_size' => array('type' => 'text', 'label' => __('Icon size (in px)', 'mvb'), 'default' => '120'), 'icon_color' => array('type' => 'colorpicker', 'label' => __('Icon Color', 'mvb'), 'default' => 'DBDBDB', 'col_span' => 'lbl_third'), 'icon_color_hover' => array('type' => 'colorpicker', 'label' => __('Icon Color hover', 'mvb'), 'default' => 'DBDBDB', 'col_span' => 'lbl_third'), 'icon_align' => array('type' => 'select', 'label' => __('Icon Align', 'mvb'), 'options' => crum_get_align_ext()));
     return $fields;
 }