Invested Traveler: General ACF Settings

Documentation:

PHP:

function acf_options_add_general_tab() { if( function_exists('acf_add_local_field_group') ): acf_add_local_field_group(array ( 'key' => 'group_58484afda489c', 'parent' => 'theme_settings', 'title' => 'Theme Settings', 'fields' => array ( array ( 'placement' => 'left', 'endpoint' => 0, 'key' => 'field_587e196fe03cc', 'parent' => 'theme_settings', 'label' => 'General', 'name' => '', 'type' => 'tab', 'instructions' => '', 'required' => 0, 'conditional_logic' => 0, 'wrapper' => array ( 'width' => '', 'class' => '', 'id' => '', ), ), array ( 'return_format' => 'url', 'preview_size' => 'medium', 'library' => 'all', 'min_width' => '', 'min_height' => '', 'min_size' => '', 'max_width' => '', 'max_height' => '', 'max_size' => '', 'mime_types' => '', 'key' => 'field_58484b10aa812', 'parent' => 'theme_settings', 'label' => 'Logo', 'name' => 'logo', 'type' => 'image', 'instructions' => '', 'required' => 0, 'conditional_logic' => 0, 'wrapper' => array ( 'width' => '', 'class' => '', 'id' => '', ), ), array ( 'sub_fields' => array ( array ( 'return_format' => 'url', 'preview_size' => 'large', 'library' => 'all', 'min_width' => '', 'min_height' => '', 'min_size' => '', 'max_width' => '', 'max_height' => '', 'max_size' => '', 'mime_types' => '', 'key' => 'field_587e1997e03ce', 'parent' => 'theme_settings', 'label' => 'Fallback Image', 'name' => 'fallback_image', 'type' => 'image', 'instructions' => '', 'required' => 0, 'conditional_logic' => 0, 'wrapper' => array ( 'width' => '', 'class' => '', 'id' => '', ), ), ), 'min' => 0, 'max' => 0, 'layout' => 'table', 'button_label' => '', 'collapsed' => '', 'key' => 'field_587e1985e03cd', 'parent' => 'theme_settings', 'label' => 'Fallback Masthead Images', 'name' => 'fallback_masthead_images', 'type' => 'repeater', 'instructions' => '', 'required' => 0, 'conditional_logic' => 0, 'wrapper' => array ( 'width' => '', 'class' => '', 'id' => '', ), ), array ( 'default_value' => '', 'key' => 'field_587e1a229303e', 'parent' => 'theme_settings', 'label' => 'Fallback Masthead Filter', 'name' => 'fallback_masthead_filter', 'type' => 'color_picker', 'instructions' => '', 'required' => 0, 'conditional_logic' => 0, 'wrapper' => array ( 'width' => '', 'class' => '', 'id' => '', ), ), array ( 'default_value' => '', 'key' => 'field_5880bf4708a97', 'parent' => 'theme_settings', 'label' => 'Fallback Masthead Text Color', 'name' => 'fallback_masthead_text_color', 'type' => 'color_picker', 'instructions' => '', 'required' => 0, 'conditional_logic' => 0, 'wrapper' => array ( 'width' => '', 'class' => '', 'id' => '', ), ), array ( 'return_format' => 'url', 'preview_size' => 'large', 'library' => 'all', 'min_width' => '', 'min_height' => '', 'min_size' => '', 'max_width' => '', 'max_height' => '', 'max_size' => '', 'mime_types' => '', 'key' => 'field_587e6290ffd9b', 'label' => 'Blog Masthead Image', 'parent' => 'theme_settings', 'name' => 'blog_masthead_image', 'type' => 'image', 'instructions' => '', 'required' => 0, 'conditional_logic' => 0, 'wrapper' => array ( 'width' => '', 'class' => '', 'id' => '', ), ), ), 'location' => array ( array ( array ( 'param' => 'options_page', 'operator' => '==', 'value' => 'theme-settings', ), ), ), 'menu_order' => 0, 'position' => 'normal', 'style' => 'default', 'label_placement' => 'top', 'instruction_placement' => 'label', 'hide_on_screen' => '', 'active' => 1, 'description' => '', )); endif; } add_action( 'acf/init', 'acf_options_add_general_tab' );