get_charset_collate(); $table_name = $wpdb->prefix . 'aus_host_form_submits'; $sql = "CREATE TABLE $table_name ( id mediumint(9) NOT NULL AUTO_INCREMENT, time datetime DEFAULT CURRENT_TIMESTAMP NOT NULL, name text NOT NULL, email text NOT NULL, phone text NOT NULL, UNIQUE KEY id (id) ) $charset_collate;"; require_once( ABSPATH . 'wp-admin/includes/upgrade.php' ); dbDelta( $sql ); } add_action('admin_menu', 'add_plugin_menu'); function add_plugin_menu() { add_menu_page('Forms Submits', 'Forms Submits', 'administrator', 'aushost-form-submits', 'aushost_form_submits_settings', 'dashicons-email',3); } function aushost_form_submits_settings() { global $wpdb; $table_name = $wpdb->prefix . 'aus_host_form_submits'; $rows = $wpdb->get_results("SELECT * FROM $table_name ORDER BY time desc"); ?>

Form Submits

Name Email Phone Submit Date
Name Email Phone Submit Date
name; ?> email; ?> phone; ?> time; ?>
__( 'Primary Menu', 'MCHACBOOT' ), 'footmenu' => __( 'Foot Menu', 'MCHACBOOT' ), 'mob' => __( 'Mobile Menu', 'MCHACBOOT' ), ) ); /* function to create sitemap.xml file in root directory of site */ add_action("publish_post", "eg_create_sitemap"); add_action("publish_page", "eg_create_sitemap"); add_action( "save_post", "eg_create_sitemap" ); function eg_create_sitemap() { $postsForSitemap = get_posts( array( 'numberposts' => -1, 'orderby' => 'modified', 'post_type' => array( 'post', 'page' ), 'order' => 'DESC' ) ); $sitemap .= '' . ''; $sitemap .= "\n" . '' . "\n"; foreach( $postsForSitemap as $post ) { setup_postdata( $post ); $postdate = explode( " ", $post->post_modified ); $sitemap .= "\t" . '' . "\n" . "\t\t" . '' . get_permalink( $post->ID ) . '' . "\n\t\t" . '' . $postdate[0] . '' . "\n\t\t" . 'monthly' . "\n\t\t" . '1.0' . "\n\t" . '' . "\n"; } $sitemap .= ''; $fp = fopen( ABSPATH . "sitemap.xml", 'w' ); fwrite( $fp, $sitemap ); fclose( $fp ); } /* function to create sitemap.xml file in root directory of site */ add_theme_support( 'post-thumbnails', array('logos','blog','projects' ) ); // Disable support for comments and trackbacks in post types function df_disable_comments_post_types_support() { $post_types = get_post_types(); foreach ($post_types as $post_type) { if(post_type_supports($post_type, 'comments')) { remove_post_type_support($post_type, 'comments'); remove_post_type_support($post_type, 'trackbacks'); } } } add_action('admin_init', 'df_disable_comments_post_types_support'); // Close comments on the front-end function df_disable_comments_status() { return false; } add_filter('comments_open', 'df_disable_comments_status', 20, 2); add_filter('pings_open', 'df_disable_comments_status', 20, 2); // Hide existing comments function df_disable_comments_hide_existing_comments($comments) { $comments = array(); return $comments; } add_filter('comments_array', 'df_disable_comments_hide_existing_comments', 10, 2); // Remove comments page in menu function df_disable_comments_admin_menu() { remove_menu_page('edit-comments.php'); } add_action('admin_menu', 'df_disable_comments_admin_menu'); // Redirect any user trying to access comments page function df_disable_comments_admin_menu_redirect() { global $pagenow; if ($pagenow === 'edit-comments.php') { wp_redirect(admin_url()); exit; } } add_action('admin_init', 'df_disable_comments_admin_menu_redirect'); // Remove comments metabox from dashboard function df_disable_comments_dashboard() { remove_meta_box('dashboard_recent_comments', 'dashboard', 'normal'); } add_action('admin_init', 'df_disable_comments_dashboard'); // Remove comments links from admin bar function df_disable_comments_admin_bar() { if (is_admin_bar_showing()) { remove_action('admin_bar_menu', 'wp_admin_bar_comments_menu', 60); } } add_action('init', 'df_disable_comments_admin_bar'); /***Projects***/ add_action( 'init', 'projects_init' ); function projects_init() { $labels = array( 'name' => _x( 'Projects', 'MCHACBOOT' ), 'singular_name' => _x( 'Projects', 'post type singular name', 'MCHACBOOT' ), 'menu_name' => _x( 'Projects', 'admin menu', 'MCHACBOOT' ), 'name_admin_bar' => _x( 'Project', 'add new on admin bar', 'MCHACBOOT' ), 'add_new' => _x( 'Add New', 'Project', 'MCHACBOOT' ), 'add_new_item' => __( 'Add New Project', 'MCHACBOOT' ), 'new_item' => __( 'New Project', 'MCHACBOOT' ), 'edit_item' => __( 'Edit Project', 'MCHACBOOT' ), 'view_item' => __( 'View Projects', 'MCHACBOOT' ), 'all_items' => __( 'All Projects', 'MCHACBOOT' ), 'search_items' => __( 'Search Projects', 'MCHACBOOT' ), 'parent_item_colon' => __( 'Parent Project:', 'MCHACBOOT' ), 'not_found' => __( 'No Projects found.', 'MCHACBOOT' ), 'not_found_in_trash' => __( 'No Projects found in Trash.', 'MCHACBOOT' ) ); $args = array( 'labels' => $labels, 'public' => true, 'publicly_queryable' => true, 'show_ui' => true, 'show_in_menu' => true, 'query_var' => true, 'rewrite' => array( 'slug' => 'projects' ), 'capability_type' => 'post', 'has_archive' => true, 'hierarchical' => true, 'menu_position' => null, 'supports' => array( 'title','editor','thumbnail' ) ); register_post_type( 'projects', $args ); } /***testimonials***/ add_action( 'init', 'testimonials_init' ); function testimonials_init() { $labels = array( 'name' => _x( 'Testimonials', 'MCHACBOOT' ), 'singular_name' => _x( 'Testimonial', 'post type singular name', 'MCHACBOOT' ), 'menu_name' => _x( 'Testimonials', 'admin menu', 'MCHACBOOT' ), 'name_admin_bar' => _x( 'Testimonial', 'add new on admin bar', 'MCHACBOOT' ), 'add_new' => _x( 'Add New', 'Testimonials', 'MCHACBOOT' ), 'add_new_item' => __( 'Add New Testimonial', 'MCHACBOOT' ), 'new_item' => __( 'New Testimonial', 'MCHACBOOT' ), 'edit_item' => __( 'Edit Testimonials', 'MCHACBOOT' ), 'view_item' => __( 'View Testimonials', 'MCHACBOOT' ), 'all_items' => __( 'All Testimonials', 'MCHACBOOT' ), 'search_items' => __( 'Search Testimonials', 'MCHACBOOT' ), 'parent_item_colon' => __( 'Parent Testimonials:', 'MCHACBOOT' ), 'not_found' => __( 'No Testimonials found.', 'MCHACBOOT' ), 'not_found_in_trash' => __( 'No Testimonials found in Trash.', 'MCHACBOOT' ) ); $args = array( 'labels' => $labels, 'public' => true, 'publicly_queryable' => true, 'show_ui' => true, 'show_in_menu' => true, 'query_var' => true, 'rewrite' => array( 'slug' => 'testimonials' ), 'capability_type' => 'post', 'has_archive' => true, 'hierarchical' => true, 'menu_position' => null, 'supports' => array( 'title','editor','thumbnail' ) ); register_post_type( 'testimonials', $args ); } /***blog***/ add_action( 'init', 'blog_init' ); function blog_init() { $labels = array( 'name' => _x( 'Blog', 'MCHACBOOT' ), 'singular_name' => _x( 'Blog', 'post type singular name', 'MCHACBOOT' ), 'menu_name' => _x( 'Blog', 'admin menu', 'MCHACBOOT' ), 'name_admin_bar' => _x( 'Blog', 'add new on admin bar', 'MCHACBOOT' ), 'add_new' => _x( 'Add New', 'Blog', 'MCHACBOOT' ), 'add_new_item' => __( 'Add New Blog', 'MCHACBOOT' ), 'new_item' => __( 'New Blog', 'MCHACBOOT' ), 'edit_item' => __( 'Edit Blog', 'MCHACBOOT' ), 'view_item' => __( 'View Blogs', 'MCHACBOOT' ), 'all_items' => __( 'All Blogs', 'MCHACBOOT' ), 'search_items' => __( 'Search Blogs', 'MCHACBOOT' ), 'parent_item_colon' => __( 'Parent Blog:', 'MCHACBOOT' ), 'not_found' => __( 'No Blogs found.', 'MCHACBOOT' ), 'not_found_in_trash' => __( 'No Blogs found in Trash.', 'MCHACBOOT' ) ); $args = array( 'labels' => $labels, 'public' => true, 'publicly_queryable' => true, 'show_ui' => true, 'show_in_menu' => true, 'query_var' => true, 'rewrite' => array( 'slug' => 'blog' ), 'capability_type' => 'post', 'has_archive' => true, 'hierarchical' => true, 'menu_position' => null, 'supports' => array( 'title','editor','thumbnail' ) ); register_post_type( 'blog', $args ); } /***Logos***/ add_action( 'init', 'logo_init' ); function logo_init() { $labels = array( 'name' => _x( 'Logos', 'MCHACBOOT' ), 'singular_name' => _x( 'Logos', 'post type singular name', 'MCHACBOOT' ), 'menu_name' => _x( 'Logo', 'admin menu', 'MCHACBOOT' ), 'name_admin_bar' => _x( 'Logo', 'add new on admin bar', 'MCHACBOOT' ), 'add_new' => _x( 'Add New', 'Logo', 'MCHACBOOT' ), 'add_new_item' => __( 'Add New Logo', 'MCHACBOOT' ), 'new_item' => __( 'New Logo', 'MCHACBOOT' ), 'edit_item' => __( 'Edit Logo', 'MCHACBOOT' ), 'view_item' => __( 'View Logos', 'MCHACBOOT' ), 'all_items' => __( 'All Logos', 'MCHACBOOT' ), 'search_items' => __( 'Search Logos', 'MCHACBOOT' ), 'parent_item_colon' => __( 'Parent Logo:', 'MCHACBOOT' ), 'not_found' => __( 'No Logos found.', 'MCHACBOOT' ), 'not_found_in_trash' => __( 'No Logos found in Trash.', 'MCHACBOOT' ) ); $args = array( 'labels' => $labels, 'public' => true, 'publicly_queryable' => true, 'show_ui' => true, 'show_in_menu' => true, 'query_var' => true, 'rewrite' => array( 'slug' => 'logos' ), 'capability_type' => 'post', 'has_archive' => true, 'hierarchical' => true, 'menu_position' => null, 'supports' => array( 'title','thumbnail' ) ); register_post_type( 'logos', $args ); } $argsoptone = array( /* (string) The title displayed on the options page. Required. */ 'page_title' => 'Site Settings', /* (string) The icon class for this menu. Defaults to default WordPress gear. Read more about dashicons here: https://developer.wordpress.org/resource/dashicons/ */ 'icon_url' => 'dashicons-admin-tools', ); $argsopttwo = array( /* (string) The title displayed on the options page. Required. */ 'page_title' => 'Footer Settings', /* (string) The icon class for this menu. Defaults to default WordPress gear. Read more about dashicons here: https://developer.wordpress.org/resource/dashicons/ */ 'icon_url' => 'dashicons-admin-tools', ); if( function_exists('acf_add_options_page') ) { acf_add_options_page($argsoptone); acf_add_options_page($argsopttwo); } function remove_menus(){ //remove_menu_page( 'index.php' ); //Dashboard remove_menu_page( 'edit.php' ); //Posts // remove_menu_page( 'upload.php' ); //Media // remove_menu_page( 'edit.php?post_type=page' ); //Pages //remove_menu_page( 'themes.php' ); //Appearance //remove_menu_page( 'plugins.php' ); //Plugins // remove_menu_page( 'users.php' ); //Users // remove_menu_page( 'tools.php' ); //Tools // remove_menu_page( 'options-general.php' ); //Settings } add_action( 'admin_menu', 'remove_menus' ); if( function_exists('acf_add_local_field_group') ): acf_add_local_field_group(array ( 'key' => 'group_598fa2dfb23f9', 'title' => 'General Settings', 'fields' => array ( array ( 'key' => 'field_598fa75ff5104', 'label' => 'Logo', 'name' => 'logo', 'type' => 'image', 'instructions' => '', 'required' => 0, 'conditional_logic' => 0, 'wrapper' => array ( 'width' => '', 'class' => '', 'id' => '', ), 'return_format' => 'url', 'preview_size' => 'thumbnail', 'library' => 'all', 'min_width' => '', 'min_height' => '', 'min_size' => '', 'max_width' => '', 'max_height' => '', 'max_size' => '', 'mime_types' => '', ), array ( 'key' => 'field_598fa77b1a014', 'label' => 'Phone Number', 'name' => 'phone_number', 'type' => 'text', 'instructions' => '', 'required' => 0, 'conditional_logic' => 0, 'wrapper' => array ( 'width' => '', 'class' => '', 'id' => '', ), 'default_value' => '', 'placeholder' => '', 'prepend' => '', 'append' => '', 'maxlength' => '', 'readonly' => 0, 'disabled' => 0, ), array ( 'key' => 'field_598fa77b1a016', 'label' => 'Open Hours', 'name' => 'open_hours', 'type' => 'text', 'instructions' => '', 'required' => 0, 'conditional_logic' => 0, 'wrapper' => array ( 'width' => '', 'class' => '', 'id' => '', ), 'default_value' => '', 'placeholder' => '', 'prepend' => '', 'append' => '', 'maxlength' => '', 'readonly' => 0, 'disabled' => 0, ), array ( 'key' => 'field_598fa78a1a015', 'label' => 'Email Address For Forms', 'name' => 'email_address_for_forms', 'type' => 'text', 'instructions' => '', 'required' => 0, 'conditional_logic' => 0, 'wrapper' => array ( 'width' => '', 'class' => '', 'id' => '', ), 'default_value' => '', 'placeholder' => '', 'prepend' => '', 'append' => '', 'maxlength' => '', 'readonly' => 0, 'disabled' => 0, ), array ( 'key' => 'field_598fa78a1a019', 'label' => 'Google UA Number', 'name' => 'googleuanum', 'type' => 'text', 'instructions' => '', 'required' => 0, 'conditional_logic' => 0, 'wrapper' => array ( 'width' => '', 'class' => '', 'id' => '', ), 'default_value' => '', 'placeholder' => '', 'prepend' => '', 'append' => '', 'maxlength' => '', 'readonly' => 0, 'disabled' => 0, ), array ( 'key' => 'field_598fa75ff5129', 'label' => 'Paralax Background', 'name' => 'paraimg', 'type' => 'image', 'instructions' => '', 'required' => 0, 'conditional_logic' => 0, 'wrapper' => array ( 'width' => '', 'class' => '', 'id' => '', ), 'return_format' => 'url', 'preview_size' => 'thumbnail', 'library' => 'all', 'min_width' => '', 'min_height' => '', 'min_size' => '', 'max_width' => '', 'max_height' => '', 'max_size' => '', 'mime_types' => '', ), ), 'location' => array ( array ( array ( 'param' => 'options_page', 'operator' => '==', 'value' => 'acf-options-site-settings', ), ), ), 'menu_order' => 0, 'position' => 'normal', 'style' => 'default', 'label_placement' => 'top', 'instruction_placement' => 'label', 'hide_on_screen' => '', 'active' => 1, 'description' => '', )); endif; if( function_exists('acf_add_local_field_group') ): acf_add_local_field_group(array ( 'key' => 'group_598fa7f661441', 'title' => 'Page Settings', 'fields' => array ( array ( 'key' => 'field_598fa8072688a', 'label' => 'Featured Banner Image', 'name' => 'slider', 'type' => 'repeater', 'instructions' => 'Adding more then 1 image will cause the site to display a slider. ', 'required' => 0, 'conditional_logic' => 0, 'wrapper' => array ( 'width' => '', 'class' => '', 'id' => '', ), 'collapsed' => '', 'min' => '', 'max' => '', 'layout' => 'block', 'button_label' => 'Add Row', 'sub_fields' => array ( array ( 'key' => 'field_598fa80e2688b', 'label' => 'Image', 'name' => 'slide', 'type' => 'image', 'instructions' => '', 'required' => 0, 'conditional_logic' => 0, 'wrapper' => array ( 'width' => '', 'class' => '', 'id' => '', ), 'return_format' => 'url', 'preview_size' => 'thumbnail', 'library' => 'all', 'min_width' => '', 'min_height' => '', 'min_size' => '', 'max_width' => '', 'max_height' => '', 'max_size' => '', 'mime_types' => '', ), array ( 'key' => 'field_598fa80e2688c', 'label' => 'Title', 'name' => 'title', 'type' => 'text', 'instructions' => '', 'required' => 0, 'conditional_logic' => 0, 'wrapper' => array ( 'width' => '', 'class' => '', 'id' => '', ), 'default_value' => '', 'placeholder' => '', 'prepend' => '', 'append' => '', 'maxlength' => '', 'readonly' => 0, 'disabled' => 0, ), array ( 'key' => 'field_598fa80e2688d', 'label' => 'Content', 'name' => 'content', 'type' => 'wysiwyg', 'instructions' => '', 'required' => 0, 'conditional_logic' => 0, 'wrapper' => array ( 'width' => '', 'class' => '', 'id' => '', ), 'default_value' => '', 'tabs' => 'all', 'toolbar' => 'full', 'media_upload' => 1, ), ), ), ), 'location' => array ( array ( array ( 'param' => 'post_type', 'operator' => '==', 'value' => 'page', ), ), array ( array ( 'param' => 'post_type', 'operator' => '==', 'value' => 'post', ), ), array ( array ( 'param' => 'post_type', 'operator' => '==', 'value' => 'testimonials', ), ), array ( array ( 'param' => 'post_type', 'operator' => '==', 'value' => 'blog', ), ), ), 'menu_order' => 0, 'position' => 'normal', 'style' => 'default', 'label_placement' => 'top', 'instruction_placement' => 'label', 'hide_on_screen' => '', 'active' => 1, 'description' => '', )); endif; if( function_exists('acf_add_local_field_group') ): acf_add_local_field_group(array ( 'key' => 'group_598faa2b9c2f1', 'title' => 'Default Featured Images', 'fields' => array ( array ( 'key' => 'field_598faa4565730', 'label' => 'Site Level', 'name' => 'site_level', 'type' => 'repeater', 'instructions' => 'Will be displayed on all pages that don\'t have a featured banner set. NOTE: Adding more then 1 image will cause the site to display a slider. ', 'required' => 0, 'conditional_logic' => 0, 'wrapper' => array ( 'width' => '', 'class' => '', 'id' => '', ), 'collapsed' => '', 'min' => '', 'max' => '', 'layout' => 'block', 'button_label' => 'Add Row', 'sub_fields' => array ( array ( 'key' => 'field_598fa80e2688b', 'label' => 'Image', 'name' => 'slide', 'type' => 'image', 'instructions' => '', 'required' => 0, 'conditional_logic' => 0, 'wrapper' => array ( 'width' => '', 'class' => '', 'id' => '', ), 'return_format' => 'url', 'preview_size' => 'thumbnail', 'library' => 'all', 'min_width' => '', 'min_height' => '', 'min_size' => '', 'max_width' => '', 'max_height' => '', 'max_size' => '', 'mime_types' => '', ), ), ), array ( 'key' => 'field_598faab165732', 'label' => 'Testimonial Archive', 'name' => 'testimonial_archive', 'type' => 'repeater', 'instructions' => 'If set this will be displayed on the Testimonials Archive page if no image is set the Site Level banner will be displayed. NOTE: Adding more then 1 image will cause the site to display a slider. ', 'required' => 0, 'conditional_logic' => 0, 'wrapper' => array ( 'width' => '', 'class' => '', 'id' => '', ), 'collapsed' => '', 'min' => '', 'max' => '', 'layout' => 'block', 'button_label' => 'Add Row', 'sub_fields' => array ( array ( 'key' => 'field_598fa80e2688b', 'label' => 'Image', 'name' => 'slide', 'type' => 'image', 'instructions' => '', 'required' => 0, 'conditional_logic' => 0, 'wrapper' => array ( 'width' => '', 'class' => '', 'id' => '', ), 'return_format' => 'url', 'preview_size' => 'thumbnail', 'library' => 'all', 'min_width' => '', 'min_height' => '', 'min_size' => '', 'max_width' => '', 'max_height' => '', 'max_size' => '', 'mime_types' => '', ), ), ), array ( 'key' => 'field_598faaf765735', 'label' => 'Blog Archive', 'name' => 'blog_archive', 'type' => 'repeater', 'instructions' => 'If set this will be displayed on the Blog Archive page if no image is set the Site Level banner will be displayed. NOTE: Adding more then 1 image will cause the site to display a slider. ', 'required' => 0, 'conditional_logic' => 0, 'wrapper' => array ( 'width' => '', 'class' => '', 'id' => '', ), 'collapsed' => '', 'min' => '', 'max' => '', 'layout' => 'block', 'button_label' => 'Add Row', 'sub_fields' => array ( array ( 'key' => 'field_598fa80e2688b', 'label' => 'Image', 'name' => 'slide', 'type' => 'image', 'instructions' => '', 'required' => 0, 'conditional_logic' => 0, 'wrapper' => array ( 'width' => '', 'class' => '', 'id' => '', ), 'return_format' => 'url', 'preview_size' => 'thumbnail', 'library' => 'all', 'min_width' => '', 'min_height' => '', 'min_size' => '', 'max_width' => '', 'max_height' => '', 'max_size' => '', 'mime_types' => '', ), ), ), array ( 'key' => 'field_598faaf765739', 'label' => 'Projects Archive', 'name' => 'projects_archive', 'type' => 'repeater', 'instructions' => 'If set this will be displayed on the Blog Archive page if no image is set the Site Level banner will be displayed. NOTE: Adding more then 1 image will cause the site to display a slider. ', 'required' => 0, 'conditional_logic' => 0, 'wrapper' => array ( 'width' => '', 'class' => '', 'id' => '', ), 'collapsed' => '', 'min' => '', 'max' => '', 'layout' => 'block', 'button_label' => 'Add Row', 'sub_fields' => array ( array ( 'key' => 'field_598fa80e2688b', 'label' => 'Image', 'name' => 'slide', 'type' => 'image', 'instructions' => '', 'required' => 0, 'conditional_logic' => 0, 'wrapper' => array ( 'width' => '', 'class' => '', 'id' => '', ), 'return_format' => 'url', 'preview_size' => 'thumbnail', 'library' => 'all', 'min_width' => '', 'min_height' => '', 'min_size' => '', 'max_width' => '', 'max_height' => '', 'max_size' => '', 'mime_types' => '', ), ), ), ), 'location' => array ( array ( array ( 'param' => 'options_page', 'operator' => '==', 'value' => 'acf-options-site-settings', ), ), ), 'menu_order' => 1, 'position' => 'normal', 'style' => 'default', 'label_placement' => 'top', 'instruction_placement' => 'label', 'hide_on_screen' => '', 'active' => 1, 'description' => '', )); endif; if( function_exists('acf_add_local_field_group') ): acf_add_local_field_group(array ( 'key' => 'group_596f6895ca371', 'title' => 'Accordions', 'fields' => array ( array ( 'key' => 'field_596f68bb945ae', 'label' => 'Content Accordion', 'name' => 'content_accordion', 'type' => 'repeater', 'instructions' => '', 'required' => 0, 'conditional_logic' => 0, 'wrapper' => array ( 'width' => '', 'class' => '', 'id' => '', ), 'collapsed' => '', 'min' => '', 'max' => '', 'layout' => 'block', 'button_label' => 'Add Row', 'sub_fields' => array ( array ( 'key' => 'field_596f68cd945af', 'label' => 'Title', 'name' => 'title', 'type' => 'text', 'instructions' => '', 'required' => 0, 'conditional_logic' => 0, 'wrapper' => array ( 'width' => '', 'class' => '', 'id' => '', ), 'default_value' => '', 'placeholder' => '', 'prepend' => '', 'append' => '', 'maxlength' => '', 'readonly' => 0, 'disabled' => 0, ), array ( 'key' => 'field_596f68d5945b0', 'label' => 'Content', 'name' => 'content', 'type' => 'wysiwyg', 'instructions' => '', 'required' => 0, 'conditional_logic' => 0, 'wrapper' => array ( 'width' => '', 'class' => '', 'id' => '', ), 'default_value' => '', 'tabs' => 'all', 'toolbar' => 'full', 'media_upload' => 1, ), array ( 'key' => 'field_596f6a5f8db2c', 'label' => 'State', 'name' => 'state', 'type' => 'select', 'instructions' => '', 'required' => 0, 'conditional_logic' => 0, 'wrapper' => array ( 'width' => '', 'class' => '', 'id' => '', ), 'choices' => array ( 0 => 'Closed', 1 => 'Open', ), 'default_value' => array ( 0 => 'Closed', ), 'allow_null' => 0, 'multiple' => 0, 'ui' => 0, 'ajax' => 0, 'placeholder' => '', 'disabled' => 0, 'readonly' => 0, ), ), ), ), 'location' => array ( array ( array ( 'param' => 'post_type', 'operator' => '==', 'value' => 'page', ), ), array ( array ( 'param' => 'post_type', 'operator' => '==', 'value' => 'blog', ), ), array ( array ( 'param' => 'post_type', 'operator' => '==', 'value' => 'testimonials', ), ), ), 'menu_order' => 0, 'position' => 'normal', 'style' => 'default', 'label_placement' => 'top', 'instruction_placement' => 'label', 'hide_on_screen' => '', 'active' => 1, 'description' => '', )); endif; if( function_exists('acf_add_local_field_group') ): acf_add_local_field_group(array ( 'key' => 'group_598fd88dd8782', 'title' => 'Service Panels', 'fields' => array ( array ( 'key' => 'field_598fd8e95ee7a', 'label' => 'Panel One', 'name' => '', 'type' => 'tab', 'instructions' => '', 'required' => 0, 'conditional_logic' => 0, 'wrapper' => array ( 'width' => '', 'class' => '', 'id' => '', ), 'placement' => 'top', 'endpoint' => 0, ), array ( 'key' => 'field_598fd8a3ae31f', 'label' => 'Image', 'name' => 'image', 'type' => 'image', 'instructions' => '', 'required' => 0, 'conditional_logic' => 0, 'wrapper' => array ( 'width' => '', 'class' => '', 'id' => '', ), 'return_format' => 'url', 'preview_size' => 'thumbnail', 'library' => 'all', 'min_width' => '', 'min_height' => '', 'min_size' => '', 'max_width' => '', 'max_height' => '', 'max_size' => '', 'mime_types' => '', ), array ( 'key' => 'field_598fd8acae320', 'label' => 'Title', 'name' => 'title', 'type' => 'text', 'instructions' => '', 'required' => 0, 'conditional_logic' => 0, 'wrapper' => array ( 'width' => '', 'class' => '', 'id' => '', ), 'default_value' => '', 'placeholder' => '', 'prepend' => '', 'append' => '', 'maxlength' => '', 'readonly' => 0, 'disabled' => 0, ), array ( 'key' => 'field_598fd8b2ae321', 'label' => 'Description', 'name' => 'description', 'type' => 'textarea', 'instructions' => '', 'required' => 0, 'conditional_logic' => 0, 'wrapper' => array ( 'width' => '', 'class' => '', 'id' => '', ), 'default_value' => '', 'placeholder' => '', 'maxlength' => '', 'rows' => '', 'new_lines' => 'wpautop', 'readonly' => 0, 'disabled' => 0, ), array ( 'key' => 'field_598fd8cdae322', 'label' => 'Link', 'name' => 'link', 'type' => 'page_link', 'instructions' => '', 'required' => 0, 'conditional_logic' => 0, 'wrapper' => array ( 'width' => '', 'class' => '', 'id' => '', ), 'post_type' => array ( ), 'taxonomy' => array ( ), 'allow_null' => 0, 'multiple' => 0, ), array ( 'key' => 'field_598fd8fc5ee7b', 'label' => 'Panel Two', 'name' => '_copy', 'type' => 'tab', 'instructions' => '', 'required' => 0, 'conditional_logic' => 0, 'wrapper' => array ( 'width' => '', 'class' => '', 'id' => '', ), 'placement' => 'top', 'endpoint' => 0, ), array ( 'key' => 'field_598fd90e5ee7c', 'label' => 'Image', 'name' => 'image_two', 'type' => 'image', 'instructions' => '', 'required' => 0, 'conditional_logic' => 0, 'wrapper' => array ( 'width' => '', 'class' => '', 'id' => '', ), 'return_format' => 'url', 'preview_size' => 'thumbnail', 'library' => 'all', 'min_width' => '', 'min_height' => '', 'min_size' => '', 'max_width' => '', 'max_height' => '', 'max_size' => '', 'mime_types' => '', ), array ( 'key' => 'field_598fd91a5ee7d', 'label' => 'Title', 'name' => 'title_two', 'type' => 'text', 'instructions' => '', 'required' => 0, 'conditional_logic' => 0, 'wrapper' => array ( 'width' => '', 'class' => '', 'id' => '', ), 'default_value' => '', 'placeholder' => '', 'prepend' => '', 'append' => '', 'maxlength' => '', 'readonly' => 0, 'disabled' => 0, ), array ( 'key' => 'field_598fd9235ee7e', 'label' => 'Description', 'name' => 'description_two', 'type' => 'textarea', 'instructions' => '', 'required' => 0, 'conditional_logic' => 0, 'wrapper' => array ( 'width' => '', 'class' => '', 'id' => '', ), 'default_value' => '', 'placeholder' => '', 'maxlength' => '', 'rows' => '', 'new_lines' => 'wpautop', 'readonly' => 0, 'disabled' => 0, ), array ( 'key' => 'field_598fd9305ee7f', 'label' => 'Link', 'name' => 'link_two', 'type' => 'page_link', 'instructions' => '', 'required' => 0, 'conditional_logic' => 0, 'wrapper' => array ( 'width' => '', 'class' => '', 'id' => '', ), 'post_type' => array ( ), 'taxonomy' => array ( ), 'allow_null' => 0, 'multiple' => 0, ), array ( 'key' => 'field_598fd93d5ee80', 'label' => 'Panel Three', 'name' => '', 'type' => 'tab', 'instructions' => '', 'required' => 0, 'conditional_logic' => 0, 'wrapper' => array ( 'width' => '', 'class' => '', 'id' => '', ), 'placement' => 'top', 'endpoint' => 0, ), array ( 'key' => 'field_598fd94a5ee81', 'label' => 'Image', 'name' => 'image_three', 'type' => 'image', 'instructions' => '', 'required' => 0, 'conditional_logic' => 0, 'wrapper' => array ( 'width' => '', 'class' => '', 'id' => '', ), 'return_format' => 'url', 'preview_size' => 'thumbnail', 'library' => 'all', 'min_width' => '', 'min_height' => '', 'min_size' => '', 'max_width' => '', 'max_height' => '', 'max_size' => '', 'mime_types' => '', ), array ( 'key' => 'field_598fd9575ee82', 'label' => 'Title', 'name' => 'title_three', 'type' => 'text', 'instructions' => '', 'required' => 0, 'conditional_logic' => 0, 'wrapper' => array ( 'width' => '', 'class' => '', 'id' => '', ), 'default_value' => '', 'placeholder' => '', 'prepend' => '', 'append' => '', 'maxlength' => '', 'readonly' => 0, 'disabled' => 0, ), array ( 'key' => 'field_598fd9675ee83', 'label' => 'Description', 'name' => 'description_three', 'type' => 'textarea', 'instructions' => '', 'required' => 0, 'conditional_logic' => 0, 'wrapper' => array ( 'width' => '', 'class' => '', 'id' => '', ), 'default_value' => '', 'placeholder' => '', 'maxlength' => '', 'rows' => '', 'new_lines' => 'wpautop', 'readonly' => 0, 'disabled' => 0, ), array ( 'key' => 'field_598fd9745ee84', 'label' => 'Link', 'name' => 'link_three', 'type' => 'page_link', 'instructions' => '', 'required' => 0, 'conditional_logic' => 0, 'wrapper' => array ( 'width' => '', 'class' => '', 'id' => '', ), 'post_type' => array ( ), 'taxonomy' => array ( ), 'allow_null' => 0, 'multiple' => 0, ), ), 'location' => array ( array ( array ( 'param' => 'page_template', 'operator' => '==', 'value' => 'page-home.php', ), ), ), 'menu_order' => 0, 'position' => 'normal', 'style' => 'default', 'label_placement' => 'top', 'instruction_placement' => 'label', 'hide_on_screen' => '', 'active' => 1, 'description' => '', )); endif; ?>