Example #1
0
 function et_pb_font_icon_list()
 {
     echo et_pb_get_font_icon_list();
 }
 function get_fields()
 {
     add_filter('et_pb_font_icon_symbols', 'et_pb_scroll_down_icon_list');
     $down_icon_list = et_pb_get_font_icon_list();
     remove_filter('et_pb_font_icon_symbols', 'et_pb_scroll_down_icon_list');
     $fields = array('title' => array('label' => __('Title', 'et_builder'), 'type' => 'text', 'description' => __('Enter your page title here.', 'et_builder')), 'subhead' => array('label' => __('Subheading Text', 'et_builder'), 'type' => 'text', 'description' => __('If you would like to use a subhead, add it here. Your subhead will appear below your title in a small font.', 'et_builder')), 'background_layout' => array('label' => __('Text Color', 'et_builder'), 'type' => 'select', 'options' => array('light' => __('Dark', 'et_builder'), 'dark' => __('Light', 'et_builder')), 'description' => __('Here you can choose the value of your text. If you are working with a dark background, then your text should be set to light. If you are working with a light background, then your text should be dark.', 'et_builder')), 'text_orientation' => array('label' => __('Text & Logo Orientation', 'et_builder'), 'type' => 'select', 'options' => et_builder_get_text_orientation_options(), 'description' => __('This controls the how your text is aligned within the module.', 'et_builder')), 'header_fullscreen' => array('label' => __('Make Fullscreen', 'et_builder'), 'type' => 'yes_no_button', 'options' => array('off' => __('No', 'et_builder'), 'on' => __('Yes', 'et_builder')), 'affects' => array('#et_pb_content_orientation'), 'description' => __('Here you can choose whether the header is expanded to fullscreen size.', 'et_builder')), 'header_scroll_down' => array('label' => __('Show Scroll Down Button', 'et_builder'), 'type' => 'yes_no_button', 'options' => array('off' => __('No', 'et_builder'), 'on' => __('Yes', 'et_builder')), 'affects' => array('#et_pb_scroll_down_icon'), 'description' => __('Here you can choose whether the scroll down button is shown.', 'et_builder')), 'scroll_down_icon' => array('label' => __('Icon', 'et_builder'), 'type' => 'text', 'class' => array('et-pb-font-icon'), 'renderer' => $down_icon_list, 'renderer_with_field' => true, 'description' => __('Choose an icon to display for the scroll down button.', 'et_builder'), 'depends_show_if' => 'on'), 'scroll_down_icon_color' => array('label' => __('Scroll Down Icon Color', 'et_builder'), 'type' => 'color-alpha', 'custom_color' => true, 'tab_slug' => 'advanced'), 'scroll_down_icon_size' => array('label' => __('Scroll Down Icon Size', 'et_builder'), 'type' => 'range', 'tab_slug' => 'advanced'), 'title_font' => array('label' => __('Title Font', 'et_builder'), 'type' => 'font', 'tab_slug' => 'advanced', 'toggle_slug' => 'title_styles'), 'title_font_color' => array('label' => __('Title Font Color', 'et_builder'), 'type' => 'color', 'custom_color' => true, 'tab_slug' => 'advanced', 'toggle_slug' => 'title_styles'), 'title_font_size' => array('label' => __('Title Font Size', 'et_builder'), 'type' => 'range', 'tab_slug' => 'advanced', 'toggle_slug' => 'title_styles'), 'subhead_font' => array('label' => __('Subhead Font', 'et_builder'), 'type' => 'font', 'tab_slug' => 'advanced', 'toggle_slug' => 'subhead_styles'), 'subhead_font_color' => array('label' => __('Subhead Font Color', 'et_builder'), 'type' => 'color', 'custom_color' => true, 'tab_slug' => 'advanced', 'toggle_slug' => 'subhead_styles'), 'subhead_font_size' => array('label' => __('Subhead Font Size', 'et_builder'), 'type' => 'range', 'tab_slug' => 'advanced', 'toggle_slug' => 'subhead_styles'), 'content_font' => array('label' => __('Content Font', 'et_builder'), 'type' => 'font', 'tab_slug' => 'advanced', 'toggle_slug' => 'content_styles'), 'content_font_color' => array('label' => __('Content Font Color', 'et_builder'), 'type' => 'color', 'custom_color' => true, 'tab_slug' => 'advanced', 'toggle_slug' => 'content_styles'), 'content_font_size' => array('label' => __('Content Font Size', 'et_builder'), 'type' => 'range', 'tab_slug' => 'advanced', 'toggle_slug' => 'content_styles'), 'max_width' => array('label' => __('Text Max Width', 'et_builder'), 'type' => 'text', 'tab_slug' => 'advanced'), 'button_one_text' => array('label' => sprintf(__('Button %1$s Text', 'et_builder'), '#1'), 'type' => 'text', 'description' => __('Enter the text for the Button.', 'et_builder')), 'button_one_url' => array('label' => sprintf(__('Button %1$s URL', 'et_builder'), '#1'), 'type' => 'text', 'description' => __('Enter the URL for the Button.', 'et_builder')), 'button_two_text' => array('label' => sprintf(__('Button %1$s Text', 'et_builder'), '#2'), 'type' => 'text', 'description' => __('Enter the text for the Button.', 'et_builder')), 'button_two_url' => array('label' => sprintf(__('Button %1$s URL', 'et_builder'), '#2'), 'type' => 'text', 'description' => __('Enter the URL for the Button.', 'et_builder')), 'background_url' => array('label' => __('Background Image URL', 'et_builder'), 'type' => 'upload', 'upload_button_text' => __('Upload an image', 'et_builder'), 'choose_text' => __('Choose an Image', 'et_builder'), 'update_text' => __('Set As Image', 'et_builder'), 'description' => __('Upload your desired image, or type in the URL to the image you would like to display.', 'et_builder')), 'background_color' => array('label' => __('Background Color', 'et_builder'), 'type' => 'color-alpha'), 'background_overlay_color' => array('label' => __('Background Overlay Color', 'et_builder'), 'type' => 'color-alpha'), 'parallax' => array('label' => __('Use Parallax effect', 'et_builder'), 'type' => 'yes_no_button', 'options' => array('off' => __('No', 'et_builder'), 'on' => __('Yes', 'et_builder')), 'affects' => array('#et_pb_parallax_method'), 'description' => __('If enabled, your background images will have a fixed position as your scroll, creating a fun parallax-like effect.', 'et_builder')), 'parallax_method' => array('label' => __('Parallax method', 'et_builder'), 'type' => 'select', 'options' => array('off' => __('CSS', 'et_builder'), 'on' => __('True Parallax', 'et_builder')), 'depends_show_if' => 'on', 'description' => __('Define the method, used for the parallax effect.', 'et_builder')), 'logo_image_url' => array('label' => __('Logo Image URL', 'et_builder'), 'type' => 'upload', 'upload_button_text' => __('Upload an image', 'et_builder'), 'choose_text' => __('Choose an Image', 'et_builder'), 'update_text' => __('Set As Image', 'et_builder'), 'description' => __('Upload your desired image, or type in the URL to the image you would like to display.', 'et_builder')), 'content_orientation' => array('label' => __('Text Vertical Alignment', 'et_builder'), 'type' => 'select', 'options' => array('center' => __('Center', 'et_builder'), 'bottom' => __('Bottom', 'et_builder')), 'description' => __('This setting determines the vertical alignment of your content. Your content can either be vertically centered, or aligned to the bottom.', 'et_builder'), 'depends_show_if' => 'on'), 'header_image_url' => array('label' => __('Header Image URL', 'et_builder'), 'type' => 'upload', 'upload_button_text' => __('Upload an image', 'et_builder'), 'choose_text' => __('Choose an Image', 'et_builder'), 'update_text' => __('Set As Image', 'et_builder'), 'description' => __('Upload your desired image, or type in the URL to the image you would like to display.', 'et_builder')), 'image_orientation' => array('label' => __('Image Vertical Alignment', 'et_builder'), 'type' => 'select', 'options' => array('center' => __('Vertically Centered', 'et_builder'), 'bottom' => __('Bottom', 'et_builder')), 'description' => __('This controls the orientation of the image within the module.', 'et_builder')), 'content_new' => array('label' => __('Content', 'et_builder'), 'type' => 'tiny_mce', 'description' => __('Here you can define the content that will be placed within the infobox for the pin.', 'et_builder')), 'admin_label' => array('label' => __('Admin Label', 'et_builder'), 'type' => 'text', 'description' => __('This will change the label of the module in the builder for easy identification.', 'et_builder')), 'module_id' => array('label' => __('CSS ID', 'et_builder'), 'type' => 'text', 'description' => __('Enter an optional CSS ID to be used for this module. An ID can be used to create custom CSS styling, or to create links to particular sections of your page.', 'et_builder')), 'module_class' => array('label' => __('CSS Class', 'et_builder'), 'type' => 'text', 'description' => __('Enter optional CSS classes to be used for this module. A CSS class can be used to create custom CSS styling. You can add multiple classes, separated with a space.', 'et_builder')));
     return $fields;
 }