Beispiel #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', '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;
 }
Beispiel #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')), 'content' => array('type' => 'textarea', 'label' => __('Shortcode', 'mvb')), 'separator' => array('type' => 'separator'), 'preloader' => array('type' => 'select', 'label' => __('Preloader enable', 'mvb'), 'options' => mvb_yes_no(), 'default' => 0, 'col_span' => 'lbl_half'), 'start_height' => array('type' => 'text', 'label' => __('Start height', 'mvb'), 'default' => 0, '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_third'), '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;
 }
Beispiel #3
0
 public function the_settings_page()
 {
     global $mvb_metro_factory;
     $load = array();
     if (isset($_POST['mvb_plugin_posted']) and $_POST['mvb_plugin_posted'] == 'posted') {
         $this->save_options();
         mvb_initialize_options();
     }
     if ($this->messenger_status != '') {
         $load['messenger_status'] = $this->messenger_status;
         $load['messenger'] = $this->messenger;
         $this->messenger_status = '';
         $this->messenger = '';
     }
     $load['post_types'] = get_post_types(array('_builtin' => false), 'objects');
     $mvb_post_types = array('page' => __('Pages', 'mvb'), 'post' => __('Posts', 'mvb'));
     foreach ($load['post_types'] as $post_type) {
         $mvb_post_types[$post_type->name] = $post_type->labels->name;
     }
     // endforeach;
     $load['mvb_yes_no'] = mvb_yes_no();
     $load['mvb_grids'] = array('default' => __('Default Grid', 'mvb'), 'custom' => __('Custom', 'mvb'), 'foundation.v3' => __('Foundation v3', 'mvb'), 'foundation.v4' => __('Foundation v4', 'mvb'), 'bootstrap' => __('Bootstrap', 'mvb'));
     $load['mvb_post_types'] = $mvb_post_types;
     $load['mvb_skins'] = array('none' => __('None', 'mvb'), 'red' => __('MVB Red', 'mvb'), 'green' => __('MVB Green', 'mvb'), 'blue' => __('MVB Blue', 'mvb'));
     $load['mvb_o_activate'] = mvb_get_option('activate');
     $load['mvb_o_show'] = mvb_get_option('show');
     $load['mvb_o_color_scheme'] = mvb_get_option('color_scheme');
     $load['mvb_o_cpts'] = mvb_get_option('cpts');
     $load['mvb_o_grid'] = mvb_get_option('grid');
     echo $mvb_metro_factory->_load_view('html/options/page.php', $load);
 }
 /**
  * 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'), 'show_title' => array('type' => 'select', 'label' => __('Show title and subtitle in hover box', 'dfd'), 'help' => __('The title and subtitle will be displayed in hover-box if YES is selected and under the image if NO', 'dfd'), 'default' => 1, 'options' => mvb_yes_no(), 'col_span' => 'lbl_half'), 'separator1' => array('type' => 'separator'), 'content' => array('type' => 'textarea', 'label' => __('Content', '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'))), '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;
 }
Beispiel #5
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', 'dfd')), 'sub_title' => array('type' => 'text', 'label' => __('Sub Title', 'dfd')), 'diagram_type' => array('type' => 'select', 'label' => __('Diagram Type', 'dfd'), 'default' => 0, 'options' => array('none' => __('None', 'dfd'), 'circle' => __('Circle', 'dfd'))), 'separator-animate' => array('type' => 'separator'), 'animate_facts' => array('type' => 'select', 'label' => __('Animate facts', 'dfd'), 'default' => 0, 'options' => mvb_yes_no()), 'separator1' => array('type' => 'separator'), 'fact' => array('type' => 'repeater', 'button' => __('Add fact', 'dfd'), 'label' => __('Fact', 'dfd'), 'lbl_d' => __('Fact Name', 'dfd'), 'fields' => array('icon' => array('type' => 'icon', 'label' => __('Icon', 'dfd'), 'col_span' => 'lbl_third'), 'number' => array('type' => 'text', 'label' => __('Number', 'dfd'), 'col_span' => 'lbl_third'), 'title' => array('type' => 'text', 's_title' => TRUE, 'label' => __('Title', 'dfd'), 'col_span' => 'lbl_third'), 'subtitle' => array('type' => 'text', 'label' => __('Subtitle', 'dfd'), 'col_span' => 'lbl_third'), 'separator' => array('type' => 'separator'))), 'description' => array('type' => 'textarea', 'editor' => true, 'label' => __('Description', 'dfd')), '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'), 'separator' => array('type' => 'separator'), 'unique_id' => array('type' => 'text', 'default' => uniqid('mvbf_'), 'label' => __('Unique ID', 'dfd'), 'help' => __('Must be unique for every module on the page.', 'dfd'), 'col_span' => 'lbl_half'));
     $the_fields = apply_filters('mvb_fields_filter', $the_fields);
     return $the_fields;
 }
Beispiel #6
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')), 'cols' => array('type' => 'select', 'label' => __('Cols', 'mvb'), 'default' => 1, 'options' => array(1 => __('One', 'mvb'), 2 => __('Two', 'mvb'), 3 => __('Three', 'mvb'))), 'separator1' => array('type' => 'separator'), 'features_item' => array('type' => 'repeater', 'button' => __('Add box', 'mvb'), 'label' => __('Box', 'mvb'), 'lbl_d' => __('Box Title', 'mvb'), 'fields' => array('main_title' => array('type' => 'text', 's_title' => TRUE, 'label' => __('Title', 'mvb'), 'col_span' => 'lbl_half'), 'color' => array('type' => 'colorpicker', 'label' => __('Color', 'mvb'), 'default' => '', 'col_span' => 'lbl_third'), 'separator' => array('type' => 'separator'), 'read_more' => array('type' => 'select', 'label' => __('Display as link', 'mvb'), 'default' => 1, 'options' => mvb_yes_no(), 'col_span' => 'lbl_forth'), 'page_id' => array('type' => 'mvb_dropdown', 'label' => __('Link to page', 'mvb'), 'what' => 'pages', 'default' => 0, 'col_span' => 'lbl_forth'), 'link_url' => array('type' => 'text', 'label' => __('Link (URL)', 'mvb'), 'col_span' => 'lbl_half'), 'separator-effects' => array('type' => 'separator'), 'css' => array('type' => 'text', 'label' => __('Additional CSS classes', 'mvb'), 'help' => __('Separated by space', 'mvb'), 'col_span' => 'lbl_full'), 'css_styles' => array('type' => 'text', 'label' => __('Additional CSS styles', 'mvb'), 'help' => __('Separated by <b>;</b>', 'mvb'), 'col_span' => 'lbl_full'))), 'separator2' => array('type' => 'separator'), 'display_read_more' => array('type' => 'select', 'label' => __('Display Readmore Link', 'mvb'), 'default' => 1, 'options' => mvb_yes_no(), 'col_span' => 'lbl_forth'), 'page_id' => array('type' => 'mvb_dropdown', 'label' => __('Link to page', 'mvb'), 'what' => 'pages', 'default' => 0, 'col_span' => 'lbl_forth'), 'link_url' => array('type' => 'text', 'label' => __('Link (URL)', 'mvb'), 'col_span' => 'lbl_half'), 'read_more_text' => array('type' => 'text', 'label' => __('Link Text', 'mvb'), 'default' => __('Read More', 'mvb'), 'col_span' => 'lbl_twelve'), 'separator3' => array('type' => 'separator'), 'css' => array('type' => 'text', 'label' => __('Additional CSS classes', 'mvb'), 'help' => __('Separated by space', 'mvb')));
     $the_fields = apply_filters('mvb_fields_filter', $the_fields);
     return $the_fields;
 }
Beispiel #7
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')), 'image' => array('type' => 'image', 'label' => __('Image', 'mvb'), 'col_span' => 'lbl_half'), 'name' => array('type' => 'text', 'label' => __('Name', 'mvb'), 'col_span' => 'lbl_half'), 'client_job' => array('type' => 'text', 'label' => __('Job position', 'mvb'), 'col_span' => 'lbl_half'), 'description' => array('type' => 'textarea', 'label' => __('Description', 'mvb')), 'separator-animate' => array('type' => 'separator'), 'animate_skill' => array('type' => 'select', 'label' => __('Animate skills', 'mvb'), 'default' => 0, 'options' => mvb_yes_no()), 'skill' => array('type' => 'repeater', 'button' => __('Add skill', 'mvb'), 'label' => __('Skill', 'mvb'), 'lbl_d' => __('Skill Title', 'mvb'), 'fields' => array('skill_title' => array('type' => 'text', 's_title' => TRUE, 'label' => __('Skill Title', 'mvb'), 'col_span' => 'lbl_half'), 'skill_percent' => array('type' => 'text', 'label' => __('Skill percent', 'mvb'), 'col_span' => 'lbl_forth'), 'separator' => array('type' => 'separator'), 'icon' => array('type' => 'icon', 'label' => __('Icon', 'mvb'), 'col_span' => 'lbl_forth'), 'icon_color' => array('type' => 'colorpicker', 'label' => __('Icon text color', 'mvb'), 'default' => 'c0c0c0', 'col_span' => 'lbl_forth'))), '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_third'), '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;
 }
 /**
  * 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('simple_mode' => array('type' => 'select', 'label' => __('Simple Mode', 'mvb'), 'default' => 0, 'options' => mvb_yes_no(), 'col_span' => 'lbl_half'), 'separator-slideshow' => array('type' => 'separator'), 'slideshow' => array('type' => 'select', 'label' => __('Autostart Slideshow', 'mvb'), 'default' => 1, 'options' => mvb_yes_no(), 'col_span' => 'lbl_half'), 'slideshow_speed' => array('type' => 'text', 'label' => __('Slideshow Speed', 'mvb'), 'help' => __('Set slideshow speed in ms', 'mvb'), 'defaut' => '7000', '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_third'), '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;
 }
Beispiel #9
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')), 'categories' => array('type' => 'select_multi', 'title' => __('Select category', 'mvb'), 'label' => __('Categories', 'mvb'), 'callback' => 'mvb_get_select_options_multi', 'options' => 'category'), 'no_of_posts' => array('type' => 'text', 'default' => 4, 'label' => __('Number of columns', 'mvb'), 'col_span' => 'lbl_fourth'), 'all_of_posts' => array('type' => 'text', 'default' => 8, 'label' => __('Number of posts', 'mvb'), 'col_span' => 'lbl_fourth'), 'excerpt' => array('type' => 'select', 'label' => __('Display a short excerpt', 'mvb'), 'default' => 0, 'options' => mvb_yes_no(), 'col_span' => 'lbl_fourth'), 'excerpt_length' => array('type' => 'text', 'default' => 25, 'label' => __('Length of excerpt', 'mvb'), 'help' => __('Number of words', 'mvb'), 'col_span' => 'lbl_fourth'), '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_third'), 'css' => array('type' => 'text', 'label' => __('Additional CSS classes', 'mvb'), 'help' => __('Separated by space', 'mvb'), 'col_span' => 'lbl_third'), 'css_styles' => array('type' => 'text', 'label' => __('Additional CSS styles', 'mvb'), 'help' => __('Separated by <b>;</b>', 'mvb'), 'col_span' => 'lbl_full'), 'unique_id' => array('type' => 'text', 'default' => uniqid('mvbtab_'), 'label' => __('Unique ID', 'mvb'), 'help' => __('Must be unique for every tab on the page.', 'mvb'), 'col_span' => 'lbl_third'));
     $the_fields = apply_filters('mvb_fields_filter', $the_fields);
     return $the_fields;
 }
Beispiel #10
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'), 'sliding_text' => array('type' => 'repeater', 'button' => __('Add text box', 'mvb'), 'label' => __('Text Box', 'mvb'), 'lbl_d' => __('Text Box', 'mvb'), 'fields' => array('content' => array('type' => 'textarea', 'editor' => true, 'label' => __('Content', 'mvb'), 'insert_image' => true))), 'separator-slideshow' => array('type' => 'separator'), 'slideshow' => array('type' => 'select', 'label' => __('Autostart Slideshow', 'mvb'), 'default' => 1, 'options' => mvb_yes_no(), 'col_span' => 'lbl_half'), 'slideshow_speed' => array('type' => 'text', 'label' => __('Slideshow Speed', 'mvb'), 'help' => __('Set slideshow speed in ms', 'mvb'), 'default' => '7000', 'col_span' => 'lbl_half'), 'slideshow_effect' => array('type' => 'select', 'label' => __('Slideshow effect', 'mvb'), 'default' => 'slide', 'options' => array('horizontal' => __('Slide horisontal', 'mvb'), 'vertical' => __('Slide vertical', 'mvb'), 'fade' => __('Fade', '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'), 'unique_id' => array('type' => 'text', 'default' => uniqid('mvbst_'), 'label' => __('Unique ID', 'mvb'), 'help' => __('Must be unique for every tab on the page.', 'mvb'), 'col_span' => 'lbl_third'));
     $the_fields = apply_filters('mvb_fields_filter', $the_fields);
     return $the_fields;
 }
Beispiel #11
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'), 'tab' => array('type' => 'repeater', 'button' => __('Add tab', 'mvb'), 'label' => __('Tab', 'mvb'), 'lbl_d' => __('Tab Title', 'mvb'), 'fields' => array('tab_title' => array('type' => 'text', 's_title' => TRUE, 'label' => __('Tab Title', 'mvb'), 'col_span' => 'lbl_half'), 'tab_selected' => array('type' => 'select', 'label' => __('Selected', 'mvb'), 'default' => 0, 'options' => mvb_yes_no(), 'col_span' => 'lbl_forth'), 'content' => array('type' => 'textarea', 'label' => __('Tab content', 'mvb'), 'editor' => true))), 'css' => array('type' => 'text', 'label' => __('Additional CSS classes', 'mvb'), 'help' => __('Separated by space', 'mvb'), 'col_span' => 'lbl_third'), 'css_styles' => array('type' => 'text', 'label' => __('Additional CSS styles', 'mvb'), 'help' => __('Separated by <b>;</b>', 'mvb'), 'col_span' => 'lbl_full'), 'unique_id' => array('type' => 'text', 'default' => uniqid('mvbtab_'), 'label' => __('Unique ID', 'mvb'), 'help' => __('Must be unique for every tab on the page.', 'mvb'), 'col_span' => 'lbl_half'));
     $the_fields = apply_filters('mvb_fields_filter', $the_fields);
     return $the_fields;
 }
Beispiel #12
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')), 'few_rows' => array('type' => 'select', 'label' => __('Few rows', 'mvb'), 'default' => 0, 'options' => mvb_yes_no()), 'separator1' => array('type' => 'separator'), 'single_client' => array('type' => 'repeater', 'button' => __('Add client', 'mvb'), 'label' => __('Client', 'mvb'), 'lbl_d' => __('Client Name', 'mvb'), 'fields' => array('image' => array('type' => 'image', 'label' => __('Image', 'mvb'), 'col_span' => 'lbl_half'), 'main_title' => array('type' => 'text', 's_title' => TRUE, 'label' => __('Client Name', 'mvb'), 'col_span' => 'lbl_half'), 'client_url' => array('type' => 'text', 'label' => __('Client URL', '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'), 'separator' => array('type' => 'separator'), 'new_tab' => array('type' => 'select', 'label' => __('Opens in new tab', 'mvb'), 'default' => 0, 'options' => mvb_yes_no(), 'col_span' => 'lbl_half'), 'unique_id' => array('type' => 'text', 'default' => uniqid('mvbacct_'), 'label' => __('Unique ID', 'mvb'), 'help' => __('Must be unique for every module on the page.', 'mvb'), 'col_span' => 'lbl_half'));
     $the_fields = apply_filters('mvb_fields_filter', $the_fields);
     return $the_fields;
 }
Beispiel #13
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;
 }
Beispiel #14
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;
 }
Beispiel #15
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', 'dfd')), 'separator1' => array('type' => 'separator'), 'single_client' => array('type' => 'repeater', 'button' => __('Add client', 'dfd'), 'label' => __('Client', 'dfd'), 'lbl_d' => __('Client Name', 'dfd'), 'fields' => array('image' => array('type' => 'image', 'label' => __('Image', 'dfd'), 'col_span' => 'lbl_half'), 'main_title' => array('type' => 'text', 's_title' => TRUE, 'label' => __('Client Name', 'dfd'), 'col_span' => 'lbl_half'), 'client_url' => array('type' => 'text', 'label' => __('Client URL', 'dfd'), 'col_span' => 'lbl_half'))), 'separator-slideshow' => array('type' => 'separator'), 'slideshow' => array('type' => 'select', 'label' => __('Autostart Slideshow', 'dfd'), 'default' => 1, 'options' => mvb_yes_no(), 'col_span' => 'lbl_half'), 'slideshow_speed' => array('type' => 'text', 'label' => __('Slideshow Speed', 'dfd'), 'help' => __('Set slideshow speed in ms', 'dfd'), 'defaut' => '7000', 'col_span' => 'lbl_half'), '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'), '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'), 'separator' => array('type' => 'separator'), 'new_tab' => array('type' => 'select', 'label' => __('Opens in new tab', 'dfd'), 'default' => 0, 'options' => mvb_yes_no(), 'col_span' => 'lbl_half'), 'unique_id' => array('type' => 'text', 'default' => uniqid('mvbacc_'), 'label' => __('Unique ID', 'dfd'), 'help' => __('Must be unique for every module on the page.', 'dfd'), 'col_span' => 'lbl_half'), 'separator2' => array('type' => 'separator'), 'description' => array('type' => 'textarea', 'editor' => true, 'label' => __('Description', 'dfd')), 'separator2' => array('type' => 'separator'), 'view_all_show' => array('type' => 'select', 'label' => __('Display the "view all" link', 'dfd'), 'default' => '1', 'options' => mvb_yes_no(), 'col_span' => 'lbl_half'), 'view_all_text' => array('type' => 'text', 'label' => __('"View all" link text', 'dfd'), 'default' => __('View all', 'dfd'), 'col_span' => 'lbl_half'), 'link_url' => array('type' => 'text', 'label' => __('View all 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'));
     $the_fields = apply_filters('mvb_fields_filter', $the_fields);
     return $the_fields;
 }
 /**
  * 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'), 'presentation_box' => array('type' => 'repeater', 'button' => __('Add box', 'mvb'), 'label' => __('Box', 'mvb'), 'lbl_d' => __('Box Title', 'mvb'), 'fields' => array('image' => array('type' => 'image', 'label' => __('Image', 'mvb'), 'col_span' => 'lbl_half'), 'main_title' => array('type' => 'text', 's_title' => TRUE, 'label' => __('Title', 'mvb'), 'col_span' => 'lbl_half'), 'sub_title' => array('type' => 'text', 'label' => __('Subtitle', 'mvb'), 'col_span' => 'lbl_half'), 'separator' => array('type' => 'separator'), 'color' => array('type' => 'colorpicker', 'label' => __('Background Color', 'mvb'), 'default' => '61727b', 'col_span' => 'lbl_third'), 'icon_color' => array('type' => 'colorpicker', 'label' => __('Icon text color', 'mvb'), 'default' => 'DBDBDB', 'col_span' => 'lbl_third'), 'icon_shadow_color' => array('type' => 'colorpicker', 'label' => __('Icon shadow color', 'mvb'), 'default' => 'DBDBDB', 'col_span' => 'lbl_third'), 'separator' => array('type' => 'separator'), 'icon' => array('type' => 'icon', 'label' => __('Icon', 'mvb'), 'col_span' => 'lbl_third'), 'separator1' => 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_third'), 'css' => array('type' => 'text', 'label' => __('Additional CSS classes', 'mvb'), 'help' => __('Separated by space', 'mvb'), 'col_span' => 'lbl_third'))), 'separator' => array('type' => 'separator'), 'css' => array('type' => 'text', 'label' => __('Additional CSS classes', 'mvb'), 'help' => __('Separated by space', 'mvb'), 'col_span' => 'lbl_third'), '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;
 }
Beispiel #17
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'), 'gallery_photo' => array('type' => 'repeater', 'button' => __('Add photo', 'mvb'), 'label' => __('Photo', 'mvb'), 'lbl_d' => __('Photo Title', 'mvb'), 'fields' => array('image' => array('type' => 'image', 'label' => __('Image', 'mvb'), 'col_span' => 'lbl_half'), 'main_title' => array('type' => 'text', 's_title' => TRUE, 'label' => __('Photo Title', 'mvb'), 'col_span' => 'lbl_half'), 'gall_tags' => array('type' => 'text', 'label' => __('Picture tags', 'mvb'), 'col_span' => 'lbl_half', 'help' => __('Separate tags with commas', 'mvb')))), 'no_of_columns_photos' => array('type' => 'select', 'label' => __('Number of columns', 'mvb'), 'default' => 3, 'options' => array(2 => 2, 3 => 3, 4 => 4, 6 => 6), 'col_span' => 'lbl_third'), 'isotope_filtering' => array('type' => 'select', 'label' => __('Isotope filtering', 'mvb'), 'default' => 0, 'options' => mvb_yes_no(), 'col_span' => 'lbl_third'), 'image_format' => array('type' => 'select', 'label' => __('Image format', 'mvb'), 'default' => 'auto', 'options' => mvb_get_image_sizes(), 'col_span' => 'lbl_third'), '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'), 'unique_id' => array('type' => 'text', 'default' => uniqid('mvbacc_'), 'label' => __('Unique ID', 'mvb'), 'help' => __('Must be unique for every module on the page.', 'mvb'), 'col_span' => 'lbl_half'));
     $the_fields = apply_filters('mvb_fields_filter', $the_fields);
     return $the_fields;
 }
Beispiel #18
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('button_text' => array('type' => 'text', 'label' => __('Button text', 'mvb'), 'col_span' => 'lbl_third'), 'icon' => array('type' => 'icon', 'label' => __('Icon', 'mvb'), 'col_span' => 'lbl_third'), 'new_tab' => array('type' => 'select', 'label' => __('Opens in new tab', 'mvb'), 'default' => 0, 'options' => mvb_yes_no(), 'col_span' => 'lbl_third'), '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'), 'separator2' => array('type' => 'separator'), 'content' => array('type' => 'textarea', 'editor' => false, 'label' => __('Content', 'mvb')), 'description' => array('type' => 'textarea', 'editor' => false, 'label' => __('Description', '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_full'));
     $the_fields = apply_filters('mvb_fields_filter', $the_fields);
     return $the_fields;
 }
Beispiel #19
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')), 'categories' => array('type' => 'select_multi', 'title' => __('Select category', 'mvb'), 'label' => __('Categories', 'mvb'), 'callback' => 'mvb_get_select_options_multi', 'options' => 'category'), 'no_of_posts' => array('type' => 'text', 'default' => 5, 'label' => __('Number of posts', 'mvb'), 'col_span' => 'lbl_half'), 'show_meta' => array('type' => 'select', 'label' => __('Display the meta', 'mvb'), 'default' => 0, 'options' => mvb_yes_no(), '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;
 }
Beispiel #20
0
 public function the_title_field()
 {
     $fields = array('main_title' => array('type' => 'text', 's_title' => TRUE, 'label' => __('Title', 'mvb')), 'main_title_type' => array('type' => 'select', 'label' => __('Title type', 'mvb'), 'default' => 0, 'options' => array(__('Small title(h3)', 'mvb'), __('Big title (h2)', 'mvb')), 'col_span' => 'lbl_half'), 'main_title_align' => array('type' => 'select', 'label' => __('Title Align', 'mvb'), 'default' => 0, 'options' => crum_get_align_ext(), 'col_span' => 'lbl_half'), 'main_title_style' => array('type' => 'select', 'label' => __('Title italic', 'mvb'), 'default' => 0, 'options' => mvb_yes_no(), 'col_span' => 'lbl_half'), 'main_title_allocate' => array('type' => 'select', 'label' => __('Title allocate', 'mvb'), 'default' => 0, 'options' => mvb_yes_no(), 'col_span' => 'lbl_half'), 'separator-main-title' => array('type' => 'separator'), 'sub_title' => array('type' => 'text', 'label' => __('Sub Title', 'mvb')), 'sub_title_align' => array('type' => 'select', 'label' => __('Sub Title Align', 'mvb'), 'default' => 0, 'options' => crum_get_align_ext()), 'separator-sub-title' => array('type' => 'separator'));
     return $fields;
 }
Beispiel #21
0
 public function row_settings_fields()
 {
     global $mvb_metro_factory;
     $the_fields = array('bgimage' => array('type' => 'image', 'label' => __('Background Image', 'mvb'), 'col_span' => 'lbl_half'), 'bgrepeat' => array('type' => 'select', 'label' => __('Background repeat', 'mvb'), 'default' => '', 'options' => mvb_get_bgrepeat(), 'col_span' => 'lbl_half'), 'bgposition' => array('type' => 'select', 'label' => __('Background Attachment', 'mvb'), 'default' => 'normal', 'options' => crum_get_bgattachment(), 'col_span' => 'lbl_half'), 'separator' => array('type' => 'separator'), 'bgcolor' => array('type' => 'colorpicker', 'label' => __('Background Color', 'mvb'), 'col_span' => 'lbl_forth'), 'textcolor' => array('type' => 'colorpicker', 'label' => __('Text Color', 'mvb'), 'col_span' => 'lbl_forth'), 'background_check' => array('type' => 'select', 'label' => __('Background Check', 'mvb'), 'default' => '', 'options' => dfd_get_background_check(), 'col_span' => 'lbl_half'), 'separator0' => array('type' => 'separator'), 'row_padding_top' => array('type' => 'customselectinput', 'label' => __('Row padding Top', 'mvb'), 'default' => 'medium-padding', 'options' => crum_get_padding(), 'col_span' => 'lbl_half'), 'row_padding_bottom' => array('type' => 'customselectinput', 'label' => __('Row padding Bottom', 'mvb'), 'default' => 'medium-padding', 'options' => crum_get_padding(), 'col_span' => 'lbl_half'), 'row_full_width' => array('type' => 'select', 'label' => __('Row Full width', 'mvb'), 'default' => '0', 'options' => mvb_yes_no(), 'col_span' => 'lbl_half'), 'cssclass_manual' => array('type' => 'text', 'label' => __('CSS Class', 'mvb'), 'default' => '', 'col_span' => 'lbl_half'), 'css' => array('type' => 'text', 'label' => __('Additional CSS rules', 'mvb'), 'col_span' => 'lbl_half'), 'totop' => array('type' => 'select', 'label' => __('Display back to top button', 'mvb'), 'default' => 0, 'options' => mvb_yes_no(), 'col_span' => 'lbl_half'), 'row_full_height' => array('type' => 'select', 'label' => __('Full window height', 'mvb'), 'default' => '0', 'options' => mvb_yes_no(), 'col_span' => 'lbl_half'), 'separator-video' => array('type' => 'separator'), 'video_display' => array('type' => 'select', 'label' => __('Display Video', 'mvb'), 'default' => 0, 'options' => mvb_yes_no(), 'col_span' => 'lbl_half'), 'video_repeat' => array('type' => 'select', 'label' => __('Loop Video', 'mvb'), 'default' => 1, 'options' => mvb_yes_no(), 'col_span' => 'lbl_half'), 'video_shadow' => array('type' => 'select', 'label' => __('Video Shadow', 'mvb'), 'default' => '', 'options' => array(0 => __('No', 'mvb'), 1, 2, 3, 4, 5), 'col_span' => 'lbl_half'), 'video_poster' => array('type' => 'image', 'label' => __('Video Poster', 'mvb'), 'col_span' => 'lbl_half'), 'video_mp4' => array('type' => 'image', 'label' => __('Video MP4', 'mvb'), 'help' => __('<b>MP4 file are required</b>', 'mvb'), 'col_span' => 'lbl_half'), 'video_webm' => array('type' => 'image', 'label' => __('Video WEBM', 'mvb'), 'col_span' => 'lbl_half'), 'video_ogg' => array('type' => 'image', 'label' => __('Video OGG', 'mvb'), 'col_span' => 'lbl_half'), 'separator-copy' => array('type' => 'separator'), 'post_id' => array('type' => 'select', 'label' => __('Copy row options to select post', 'mvb'), 'options' => mvb_posts_select(), 'col_span' => 'lbl_half'));
     return $the_fields;
 }