'; if ( $section['title'] ) echo "

{$section['title']}

\n"; if ( $section['callback'] ) call_user_func( $section['callback'], $section ); if ( ! isset( $wp_settings_fields ) || !isset( $wp_settings_fields[$page] ) || !isset( $wp_settings_fields[$page][$section['id']] ) ) continue; echo ''; do_settings_fields( $page, $section['id'] ); echo '
'; echo ''; } } /** * * aadi_options_enqueue_scripts function is used to include the js files. * * @aadi_options_enqueue_scripts */ function aadi_options_enqueue_scripts() { wp_register_script( 'custom-script', get_template_directory_uri() .'/functions/custom-script.js', array('jquery','media-upload','thickbox','wp-color-picker') ); wp_enqueue_script('jquery'); wp_enqueue_script('thickbox'); wp_enqueue_style('thickbox'); wp_enqueue_style('wp-color-picker'); wp_enqueue_script('media-upload'); wp_enqueue_script('custom-script'); } add_action('admin_enqueue_scripts', 'aadi_options_enqueue_scripts'); //add_action( 'admin_menu', 'admin_enqueue_scripts' ); /** * * admin_enqueue_scripts function is used for add css files. * * @admin_enqueue_scripts */ function admin_enqueue_scripts() { wp_enqueue_style( 'theme-options', get_template_directory_uri() . '/functions/css/custom-style.css' ); wp_enqueue_style( 'font-options', get_template_directory_uri() . '/functions/css/font-awesome.min.css' ); } function aadi_theme_menu() { $menu=add_theme_page( 'Theme Option', 'Theme Options', 'manage_options', 'aadi_theme_options.php', 'aadi_theme_page'); add_action( 'admin_print_styles-' . $menu, 'admin_enqueue_scripts' ); } add_action('admin_menu', 'aadi_theme_menu'); /** * Callback function to the aadi_theme_page * Will display the theme options page */ function aadi_theme_page() { locate_template('functions/page.php',true, false); } ?> Home Page Template settings', 'aadi_display_section', 'aadi_theme_options.php' ); add_settings_section( 'header_section', ' Header settings', 'aadi_display_section', 'aadi_theme_options.php' ); add_settings_section( 'layout_section', ' Layout settings', 'aadi_display_section', 'aadi_theme_options.php' ); add_settings_section( 'skills_section', ' Skills section', 'aadi_display_section', 'aadi_theme_options.php' ); add_settings_section( 'social_links_section', ' Social Links', 'aadi_display_section', 'aadi_theme_options.php' ); add_settings_section( 'sidebar_section', ' Sidebar Section', 'aadi_display_section', 'aadi_theme_options.php' ); add_settings_section( 'how_we_do_section', ' How We Work Section', 'aadi_display_section', 'aadi_theme_options.php' ); add_settings_section( 'my_blog_section', ' Blog General settings', 'aadi_display_section', 'aadi_theme_options.php' ); add_settings_section( 'my_single_blog_section', ' Blog Single Page Options', 'aadi_display_section', 'aadi_theme_options.php' ); add_settings_section( 'blog_meta_option', ' Blog Meta Options', 'aadi_display_section', 'aadi_theme_options.php' ); add_settings_section( 'about_page_options', ' AboutUs Page Options', 'aadi_display_section', 'aadi_theme_options.php' ); add_settings_section( 'contact_page_options', ' Contact Google Map Options', 'aadi_display_section', 'aadi_theme_options.php' ); /** * * Create slider selection field for home page * * @field_args */ $field_args = array( 'type' => 'select', 'id' => 'pu_textbox', 'name' => 'pu_textbox', 'desc' => 'Select a slider', 'std' => '', 'opt' => array('Nivo Slider' => 'Nivo Slider','Meta Slider' => 'Meta Slider'), 'label_for' => 'pu_textbox', 'class' => 'css_class' ); /** * * create meta slider shortcode field * * @meta_slider_shortcode */ $meta_slider_shortcode = array( 'type' => 'text', 'id' => 'meta_slider_shortcode', 'name' => 'meta_slider_shortcode', 'desc' => 'If you select "Meta Slider" then install meta slider plugin and insert shortcode here. eg:[metaslider id=229]', 'std' => '', 'label_for' => 'meta_slider_shortcode', 'class' => 'css_class' ); /** * * create field for strech slider option * * @strech_slider */ $strech_slider = array( 'type' => 'checkbox', 'id' => 'strech_slider', 'name' => 'strech_slider', 'desc' => 'Check the box to Stretch the home page slider to the width of the screen if using the full width layout.', 'std' => '', 'label_for' => 'strech_slider', 'class' => 'css_class' ); /** * * create field for disable what we do section from home page. * * @disable_what_we_do_home */ $disable_what_we_do_home = array( 'type' => 'checkbox', 'id' => 'disable_what_we_do_home', 'name' => 'disable_what_we_do_home', 'desc' => 'Check the box to Disable the What We do Section from Home Page.', 'std' => '', 'label_for' => 'disable_what_we_do_home', 'class' => 'css_class' ); /** * * create the field for the heading of the what we do section for home page. * * @what_we_do_home */ $what_we_do_home = array( 'type' => 'textarea', 'id' => 'what_we_do_home', 'name' => 'what_we_do_home', 'desc' => 'Select a heading for What We Do section visible on Home page', 'std' => '', 'label_for' => 'what_we_do_home', 'class' => 'css_class' ); /** * * create field for disable latest work section for home page. * * @disable_latest_work_home */ $disable_latest_work_home = array( 'type' => 'checkbox', 'id' => 'disable_latest_work_home', 'name' => 'disable_latest_work_home', 'desc' => 'Check the box to Disable the Latest Work Section from Home Page.', 'std' => '', 'label_for' => 'disable_latest_work_home', 'class' => 'css_class' ); /** * * create field for disable the how we work section for home page. * * @disable_how_we_do_home */ $disable_how_we_do_home = array( 'type' => 'checkbox', 'id' => 'disable_how_we_do_home', 'name' => 'disable_how_we_do_home', 'desc' => 'Check the box to Enable the How We Do Section for Home Page.', 'std' => '', 'label_for' => 'disable_how_we_do_home', 'class' => 'css_class' ); /** * * create field for disable about us section for home page. * * @disable_about_us_home */ $disable_about_us_home = array( 'type' => 'checkbox', 'id' => 'disable_about_us_home', 'name' => 'disable_about_us_home', 'desc' => 'Check the box to Enable the About Us Section for Home Page.', 'std' => '', 'label_for' => 'disable_about_us_home', 'class' => 'css_class' ); /** * * create field for select the data fo about us section of home page. * * @get_about_home */ $get_about_home = array( 'type' => 'select', 'id' => 'get_about_home', 'name' => 'get_about_home', 'desc' => 'Select where from you want to get the data of About Us section.', 'std' => '', 'opt' => array('Default' => 'Default', 'Specific Page' => 'Specific Page'), 'label_for' => 'get_about_home', 'class' => 'css_class' ); /** * * create field for the page id for the about us section for home page. * * @about_home_pageid */ $about_home_pageid = array( 'type' => 'text', 'id' => 'about_home_pageid', 'name' => 'about_home_pageid', 'desc' => 'If you select "Specific Page" then insert the page id of page from you get data', 'std' => '', 'label_for' => 'about_home_pageid', 'class' => 'css_class' ); /** * * create field for the heading of the about us section for home page. * * @about_heading_home */ $about_heading_home = array( 'type' => 'textarea', 'id' => 'about_heading_home', 'name' => 'about_heading_home', 'desc' => 'Insert heading for About Us section visible on Home page', 'std' => '', 'label_for' => 'about_heading_home', 'class' => 'css_class' ); /** * * create field for the discription for the about us section for home page. * * @about_description_home */ $about_description_home = array( 'type' => 'textarea', 'id' => 'about_description_home', 'name' => 'about_description_home', 'desc' => 'Insert Description for About Us section visible on Home page', 'std' => '', 'label_for' => 'about_description_home', 'class' => 'css_class' ); /** * * Create field for upload a photo for the about us section for home page. * * @about_home_background */ $about_home_background = array( 'type' => 'file_about_home', 'id' => 'about_home_background', 'name' => 'about_home_background', 'desc' => 'Select an image or insert an image url to use for the About Us Section Image.', 'std' => '', 'label_for' => 'about_home_background', 'class' => 'css_class' ); /** * * create field for disable our team section from home page. * * @disable_our_team_home */ $disable_our_team_home = array( 'type' => 'checkbox', 'id' => 'disable_our_team_home', 'name' => 'disable_our_team_home', 'desc' => 'Check the box to Disable the Our Team Section from Home Page.', 'std' => '', 'label_for' => 'disable_our_team_home', 'class' => 'css_class' ); /** * * create field for the heading of our team section for home page. * * @our_team_home */ $our_team_home = array( 'type' => 'textarea', 'id' => 'our_team_home', 'name' => 'our_team_home', 'desc' => 'Select a heading for Our Team section visible on Home page', 'std' => '', 'label_for' => 'our_team_home', 'class' => 'css_class' ); /** * * create field for disable latest posts section from home page.. * * @disable_latest_posts_home */ $disable_latest_posts_home = array( 'type' => 'checkbox', 'id' => 'disable_latest_posts_home', 'name' => 'disable_latest_posts_home', 'desc' => 'Check the box to Disable the Latest Posts Section from Home Page.', 'std' => '', 'label_for' => 'disable_latest_posts_home', 'class' => 'css_class' ); /** * * create field for disable testimonial section from home page. * * @disable_testimonial_home */ $disable_testimonial_home = array( 'type' => 'checkbox', 'id' => 'disable_testimonial_home', 'name' => 'disable_testimonial_home', 'desc' => 'Check the box to Disable the Testimonial Section from Home Page.', 'std' => '', 'label_for' => 'disable_testimonial_home', 'class' => 'css_class' ); /** * * create field for disable contact us section from home page. * * @disable_contact_form_home */ $disable_contact_form_home = array( 'type' => 'checkbox', 'id' => 'disable_contact_form_home', 'name' => 'disable_contact_form_home', 'desc' => 'Check the box to Disable the Contact Form Section from Home Page.', 'std' => '', 'label_for' => 'disable_contact_form_home', 'class' => 'css_class' ); /** * * create field for contact form shortcode for the contact us section home page. * * @contact_form_shortcode */ $contact_form_shortcode = array( 'type' => 'text', 'id' => 'contact_form_shortcode', 'name' => 'contact_form_shortcode', 'desc' => 'Insert the shortcode of conactform7 form. eg:[contact-form-7 id="224" title="home page"].', 'std' => '', 'label_for' => 'contact_form_shortcode', 'class' => 'css_class' ); /** * * create field for the parallax image for the background of contact us section. * * @contact_home_background */ $contact_home_background = array( 'type' => 'file_contact_home', 'id' => 'contact_home_background', 'name' => 'contact_home_background', 'desc' => 'Select an image or insert an image url to use for the Contact Us Section Image.', 'std' => '', 'label_for' => 'contact_home_background', 'class' => 'css_class' ); /** * * Get the dynamic menus from backend * * @menus */ $menus = get_terms( 'nav_menu', array( 'hide_empty' => false ) ); $menu_select['Default Menu'] = 'Default Menu'; foreach ( $menus as $menu ) { $menu_select[$menu->name] = $menu->name; } /** * * create field for select a menu for the header part. * * @field_args1 */ $field_args1 = array( 'type' => 'select', 'id' => 'my_textbox', 'name' => 'my_textbox', 'desc' => 'Select a menu', 'std' => '', 'opt' => $menu_select, 'label_for' => 'my_textbox', 'class' => 'css_class' ); /** * * create field for enable sticky menu. * * @sticky_header */ $sticky_header = array( 'type' => 'checkbox', 'id' => 'sticky_header', 'name' => 'sticky_header', 'desc' => 'Check the box to Disable the sticky menu', 'std' => '', 'label_for' => 'sticky_header', 'class' => 'css_class' ); /** * * create field for enable search box or social icons in the header. * * @header_social_icons */ $header_social_icons = array( 'type' => 'checkbox', 'id' => 'header_social_icons', 'name' => 'header_social_icons', 'desc' => 'Check the box to show the social icons or Search Box in the header.', 'std' => '', 'label_for' => 'header_social_icons', 'class' => 'css_class' ); /** * * create field for select social icons or search box for header. * * @social_icons_or_searchbox */ $social_icons_or_searchbox = array( 'type' => 'select', 'id' => 'social_icons_or_searchbox', 'name' => 'social_icons_or_searchbox', 'desc' => 'Select the option you want to display in the header.', 'std' => '', 'opt' => array('Search Box' => 'Search Box', 'Social Icons' => 'Social Icons'), 'label_for' => 'social_icons_or_searchbox', 'class' => 'css_class' ); /** * * create field for enable social icons section in footer. * * @footer_social_icons */ $footer_social_icons = array( 'type' => 'checkbox', 'id' => 'footer_social_icons', 'name' => 'footer_social_icons', 'desc' => 'Check the box to show the social icons in the footer section.', 'std' => '', 'label_for' => 'footer_social_icons', 'class' => 'css_class' ); /** * * create field for copyright text in the footer. * * @copyright_text */ $copyright_text = array( 'type' => 'textarea', 'id' => 'copyright_text', 'name' => 'copyright_text', 'desc' => 'Select a copyright text for footer section', 'std' => '', 'label_for' => 'copyright_text', 'class' => 'css_class' ); /** * * create field for select option for the layout of the site. * * @layout_bound */ $layout_bound = array( 'type' => 'select', 'id' => 'layout_bound', 'name' => 'layout_bound', 'desc' => 'Change the width of the bounding box.', 'std' => '', 'opt' => array('Full Width' => 'Full Width','Boxed' => 'Boxed'), 'label_for' => 'layout_bound', 'class' => 'css_class' ); /** * * create field for heading of first skill you entered. * * @first_skill_text */ $first_skill_text = array( 'type' => 'text', 'id' => 'first_skill_text', 'name' => 'first_skill_text', 'desc' => 'Insert text you want to show as a heading of first skill.', 'std' => '', 'label_for' => 'first_skill_text', 'class' => 'css_class' ); /** * * create field for value of first skill you entered. * * @first_skill_value */ $first_skill_value = array( 'type' => 'text', 'id' => 'first_skill_value', 'name' => 'first_skill_value', 'desc' => 'Insert text you want to show as a value of first skill.', 'std' => '', 'label_for' => 'first_skill_value', 'class' => 'css_class' ); /** * * create field for heading of second skill you entered. * * @second_skill_text */ $second_skill_text = array( 'type' => 'text', 'id' => 'second_skill_text', 'name' => 'second_skill_text', 'desc' => 'Insert text you want to show as a heading of second skill.', 'std' => '', 'label_for' => 'second_skill_text', 'class' => 'css_class' ); /** * * create field for value of second skill you entered. * * @second_skill_value */ $second_skill_value = array( 'type' => 'text', 'id' => 'second_skill_value', 'name' => 'second_skill_value', 'desc' => 'Insert text you want to show as a value of second skill.', 'std' => '', 'label_for' => 'second_skill_value', 'class' => 'css_class' ); /** * * create field for heading of third skill entered. * * @third_skill_text */ $third_skill_text = array( 'type' => 'text', 'id' => 'third_skill_text', 'name' => 'third_skill_text', 'desc' => 'Insert text you want to show as a heading of third skill.', 'std' => '', 'label_for' => 'third_skill_text', 'class' => 'css_class' ); /** * * create field for value of third skill you entered. * * @third_skill_value */ $third_skill_value = array( 'type' => 'text', 'id' => 'third_skill_value', 'name' => 'third_skill_value', 'desc' => 'Insert text you want to show as a value of third skill.', 'std' => '', 'label_for' => 'third_skill_value', 'class' => 'css_class' ); /** * * create field for heading of fourth skill you entered. * * @fourth_skill_text */ $fourth_skill_text = array( 'type' => 'text', 'id' => 'fourth_skill_text', 'name' => 'fourth_skill_text', 'desc' => 'Insert text you want to show as a heading of fourth skill.', 'std' => '', 'label_for' => 'fourth_skill_text', 'class' => 'css_class' ); /** * * create field for value of fourth skill you entered. * * @fourth_skill_value */ $fourth_skill_value = array( 'type' => 'text', 'id' => 'fourth_skill_value', 'name' => 'fourth_skill_value', 'desc' => 'Insert text you want to show as a value of fourth skill.', 'std' => '', 'label_for' => 'fourth_skill_value', 'class' => 'css_class' ); /** * * create field of facebook link for socail icons. * * @facebook_link */ $facebook_link = array( 'type' => 'text', 'id' => 'facebook_link', 'name' => 'facebook_link', 'desc' => 'Insert your custom link to show the Facebook icon. Leave blank to hide icon.', 'std' => '', 'label_for' => 'facebook_link', 'class' => 'css_class' ); /** * * create filed of twitter link for social icons. * * @twitter_link */ $twitter_link = array( 'type' => 'text', 'id' => 'twitter_link', 'name' => 'twitter_link', 'desc' => 'Insert your custom link to show the Twitter icon. Leave blank to hide icon.', 'std' => '', 'label_for' => 'twitter_link', 'class' => 'css_class' ); /** * * create field for behance link for social icons. * * @behance_link */ $behance_link = array( 'type' => 'text', 'id' => 'behance_link', 'name' => 'behance_link', 'desc' => 'Insert your custom link to show the Behance icon. Leave blank to hide icon.', 'std' => '', 'label_for' => 'behance_link', 'class' => 'css_class' ); /** * * create field of linkedin link for social icons. * * @linkedin_link */ $linkedin_link = array( 'type' => 'text', 'id' => 'linkedin_link', 'name' => 'linkedin_link', 'desc' => 'Insert your custom link to show the Linkedin icon. Leave blank to hide icon.', 'std' => '', 'label_for' => 'linkedin_link', 'class' => 'css_class' ); /** * * create field of instagram link for social icons. * * @instagram_link */ $instagram_link = array( 'type' => 'text', 'id' => 'instagram_link', 'name' => 'instagram_link', 'desc' => 'Insert your custom link to show the Instagram icon. Leave blank to hide icon.', 'std' => '', 'label_for' => 'instagram_link', 'class' => 'css_class' ); /** * * create field of pinterest link for social icons. * * @pinterest_link */ $pinterest_link = array( 'type' => 'text', 'id' => 'pinterest_link', 'name' => 'pinterest_link', 'desc' => 'Insert your custom link to show the Pinterest icon. Leave blank to hide icon.', 'std' => '', 'label_for' => 'pinterest_link', 'class' => 'css_class' ); /** * * create field for title of the listing on blogs page. * * @field_args4 */ $field_args4 = array( 'type' => 'text', 'id' => 'blog_page_title', 'name' => 'blog_page_title', 'desc' => 'Select a Title for title bar of assigned Blog page', 'std' => '', 'label_for' => 'blog_page_title', 'class' => 'css_class' ); /** * * create field for enable the latest posts section on blogs page. * * @latest_blog_section */ $latest_blog_section = array( 'type' => 'checkbox', 'id' => 'latest_blog_section', 'name' => 'latest_blog_section', 'desc' => 'Check the box to show the Latest blog section on the top of footer', 'std' => '', 'label_for' => 'latest_blog_section', 'class' => 'css_class' ); /** * * create field to disable the sidebar. * * @disable_sidebar */ $disable_sidebar = array( 'type' => 'checkbox', 'id' => 'disable_sidebar', 'name' => 'disable_sidebar', 'desc' => 'Check the box to Disable the sidebar', 'std' => '', 'label_for' => 'disable_sidebar', 'class' => 'css_class' ); /** * * create field for upload image for col1 of how we work section. * * @how_we_do_col1_background */ $how_we_do_col1_background = array( 'type' => 'file_how_we_do_one', 'id' => 'how_we_do_col1_background', 'name' => 'how_we_do_col1_background', 'desc' => 'Select an image or insert an image url to use for the How We Do Section Column 1 Image.', 'std' => '', 'label_for' => 'how_we_do_col1_background', 'class' => 'css_class' ); /** * * create field for title of col1 of how we work section. * * @how_we_do_col1_heading */ $how_we_do_col1_heading = array( 'type' => 'text', 'id' => 'how_we_do_col1_heading', 'name' => 'how_we_do_col1_heading', 'desc' => 'Insert the Heading you want to show in the How We Do section Column One.', 'std' => '', 'label_for' => 'how_we_do_col1_heading', 'class' => 'css_class' ); /** * * create field for numeric heading of col1 of how we work section. * * @how_we_do_col1_numeric_heading */ $how_we_do_col1_numeric_heading = array( 'type' => 'text', 'id' => 'how_we_do_col1_numeric_heading', 'name' => 'how_we_do_col1_numeric_heading', 'desc' => 'Insert the Numeric Heading you want to show in the How We Do section Column One.', 'std' => '', 'label_for' => 'how_we_do_col1_numeric_heading', 'class' => 'css_class' ); /** * * create field for sup heading of col1 of how we work section. * * @how_we_do_col1_sup_heading */ $how_we_do_col1_sup_heading = array( 'type' => 'text', 'id' => 'how_we_do_col1_sup_heading', 'name' => 'how_we_do_col1_sup_heading', 'desc' => 'Insert the Numeric Heading you want to show in the How We Do section Column One.', 'std' => '', 'label_for' => 'how_we_do_col1_sup_heading', 'class' => 'css_class' ); /** * * create field for insert description of col1 of how we work section. * * @how_we_do_col1_description */ $how_we_do_col1_description = array( 'type' => 'textarea', 'id' => 'how_we_do_col1_description', 'name' => 'how_we_do_col1_description', 'desc' => 'Insert the Description you want to show in the How We Do section Column One.', 'std' => '', 'label_for' => 'how_we_do_col1_description', 'class' => 'css_class' ); /** * * create field for upload image for col2 of how we work section. * * @how_we_do_col2_background */ $how_we_do_col2_background = array( 'type' => 'file_how_we_do_two', 'id' => 'how_we_do_col2_background', 'name' => 'how_we_do_col2_background', 'desc' => 'Select an image or insert an image url to use for the How We Do Section Column 2 Image.', 'std' => '', 'label_for' => 'how_we_do_col2_background', 'class' => 'css_class' ); /** * * create field for insert numeric heading for col2 of how we work section. * * @how_we_do_col2_numeric_heading */ $how_we_do_col2_numeric_heading = array( 'type' => 'text', 'id' => 'how_we_do_col2_numeric_heading', 'name' => 'how_we_do_col2_numeric_heading', 'desc' => 'Insert the Numeric Heading you want to show in the How We Do section Column Two.', 'std' => '', 'label_for' => 'how_we_do_col2_numeric_heading', 'class' => 'css_class' ); /** * * create field for insert sup heading for col2 of how we work section. * * @how_we_do_col2_sup_heading */ $how_we_do_col2_sup_heading = array( 'type' => 'text', 'id' => 'how_we_do_col2_sup_heading', 'name' => 'how_we_do_col2_sup_heading', 'desc' => 'Insert the Numeric Heading you want to show in the How We Do section Column Two.', 'std' => '', 'label_for' => 'how_we_do_col2_sup_heading', 'class' => 'css_class' ); /** * * create field for insert heading for col2 of how we work section. * * @how_we_do_col2_heading */ $how_we_do_col2_heading = array( 'type' => 'text', 'id' => 'how_we_do_col2_heading', 'name' => 'how_we_do_col2_heading', 'desc' => 'Insert the Heading you want to show in the How We Do section Column Two.', 'std' => '', 'label_for' => 'how_we_do_col2_heading', 'class' => 'css_class' ); /** * * create field for insert description for col2 of how we work section. * * @how_we_do_col2_description */ $how_we_do_col2_description = array( 'type' => 'textarea', 'id' => 'how_we_do_col2_description', 'name' => 'how_we_do_col2_description', 'desc' => 'Insert the Description you want to show in the How We Do section Column Two.', 'std' => '', 'label_for' => 'how_we_do_col2_description', 'class' => 'css_class' ); /** * * create field for upload image for col3 of how we work section. * * @how_we_do_col3_background */ $how_we_do_col3_background = array( 'type' => 'file_how_we_do_three', 'id' => 'how_we_do_col3_background', 'name' => 'how_we_do_col3_background', 'desc' => 'Select an image or insert an image url to use for the How We Do Section Column 3 Image.', 'std' => '', 'label_for' => 'how_we_do_col3_background', 'class' => 'css_class' ); /** * * create field for insert numeric heading for col3 of how we work section. * * @how_we_do_col3_numeric_heading */ $how_we_do_col3_numeric_heading = array( 'type' => 'text', 'id' => 'how_we_do_col3_numeric_heading', 'name' => 'how_we_do_col3_numeric_heading', 'desc' => 'Insert the Numeric Heading you want to show in the How We Do section Column Three.', 'std' => '', 'label_for' => 'how_we_do_col3_numeric_heading', 'class' => 'css_class' ); /** * * create field for insert sup heading for col3 of how we work section. * * @how_we_do_col3_sup_heading */ $how_we_do_col3_sup_heading = array( 'type' => 'text', 'id' => 'how_we_do_col3_sup_heading', 'name' => 'how_we_do_col3_sup_heading', 'desc' => 'Insert the Numeric Heading you want to show in the How We Do section Column Three.', 'std' => '', 'label_for' => 'how_we_do_col3_sup_heading', 'class' => 'css_class' ); /** * * create field for insert heading for col3 of how we work section. * * @how_we_do_col3_heading */ $how_we_do_col3_heading = array( 'type' => 'text', 'id' => 'how_we_do_col3_heading', 'name' => 'how_we_do_col3_heading', 'desc' => 'Insert the Heading you want to show in the How We Do section Column Three.', 'std' => '', 'label_for' => 'how_we_do_col3_heading', 'class' => 'css_class' ); /** * * create field for insert description for col3 of how we work section. * * @how_we_do_col3_description */ $how_we_do_col3_description = array( 'type' => 'textarea', 'id' => 'how_we_do_col3_description', 'name' => 'how_we_do_col3_description', 'desc' => 'Insert the Description you want to show in the How We Do section Column Three.', 'std' => '', 'label_for' => 'how_we_do_col3_description', 'class' => 'css_class' ); /** * * create field for insert excerpt length of blog description. * * @excerpt_length */ $excerpt_length = array( 'type' => 'text', 'id' => 'excerpt_length', 'name' => 'excerpt_length', 'desc' => 'Insert the number of words you want to show in the post excerpts.', 'std' => '', 'label_for' => 'excerpt_length', 'class' => 'css_class' ); /** * * create field for disable featured image from single blog page. * * @featured_image_onpost */ $featured_image_onpost = array( 'type' => 'checkbox', 'id' => 'featured_image_onpost', 'name' => 'featured_image_onpost', 'desc' => 'Check the box to disable featured images and videos on single post pages.', 'std' => '', 'label_for' => 'featured_image_onpost', 'class' => 'css_class' ); /** * * create field for display post title for single blog page. * * @single_post_title */ $single_post_title = array( 'type' => 'checkbox', 'id' => 'display_post_title', 'name' => 'display_post_title', 'desc' => 'Check the box to disable the post title that goes below the featured images.', 'std' => '', 'label_for' => 'display_post_title', 'class' => 'css_class' ); /** * * create field for display author information for single blog page. * * @author_info_box */ $author_info_box = array( 'type' => 'checkbox', 'id' => 'display_author_info', 'name' => 'display_author_info', 'desc' => 'Check the box to disable the author info box below posts.', 'std' => '', 'label_for' => 'display_author_info', 'class' => 'css_class' ); /** * * create field for display latest posts for single blog page. * * @related_posts */ $related_posts = array( 'type' => 'checkbox', 'id' => 'display_related_posts', 'name' => 'display_related_posts', 'desc' => 'Check the box to disable Latest posts on single page.', 'std' => '', 'label_for' => 'display_related_posts', 'class' => 'css_class' ); /** * * create field for display comments for single blog page. * * @display_comments */ $display_comments = array( 'type' => 'checkbox', 'id' => 'display_comments', 'name' => 'display_comments', 'desc' => 'Check the box to disable comments.', 'std' => '', 'label_for' => 'display_comments', 'class' => 'css_class' ); /** * * create field for disable social sharing buttons for single blog page. * * @disable_social_sharing_button */ $disable_social_sharing_button = array( 'type' => 'checkbox', 'id' => 'disable_social_sharing_button', 'name' => 'disable_social_sharing_button', 'desc' => 'Check the box to Hide the Social Sharing Buttons.', 'std' => '', 'label_for' => 'disable_social_sharing_button', 'class' => 'css_class' ); /** * * create field for select layout for social sharing buttons for single blog page. * * @social_sharing_button_layout */ $social_sharing_button_layout = array( 'type' => 'select', 'id' => 'social_sharing_button_layout', 'name' => 'social_sharing_button_layout', 'desc' => 'Select the layout in which you want to display the Buttons of Social Sharing.', 'std' => '', 'opt' => array('Large' => 'Large', 'Small' => 'Small'), 'label_for' => 'social_sharing_button_layout', 'class' => 'css_class' ); /** * * create field for enable the sidebar for the blogs page. * * @blog_right_sidebar */ $single_blog_sidebar = array( 'type' => 'checkbox', 'id' => 'single_blog_sidebar', 'name' => 'single_blog_sidebar', 'desc' => 'Check the box to hide the sidebar from single blog page', 'std' => '', 'label_for' => 'single_blog_sidebar', 'class' => 'css_class' ); /** * * create field for display post meta for single blog page. * * @post_meta */ $post_meta = array( 'type' => 'checkbox', 'id' => 'display_post_meta', 'name' => 'display_post_meta', 'desc' => 'Check the box to disable post meta on blog posts.', 'std' => '', 'label_for' => 'display_post_meta', 'class' => 'css_class' ); /** * * create field for disable author meta for single blog page. * * @disable_author_postmeta */ $disable_author_postmeta = array( 'type' => 'checkbox', 'id' => 'disable_author_postmeta', 'name' => 'disable_author_postmeta', 'desc' => 'Check the box to hide the author name from post meta.', 'std' => '', 'label_for' => 'disable_author_postmeta', 'class' => 'css_class' ); /** * * create field for disable date for single blog page. * * @disable_date_postmeta */ $disable_date_postmeta = array( 'type' => 'checkbox', 'id' => 'disable_date_postmeta', 'name' => 'disable_date_postmeta', 'desc' => 'Check the box to hide the date from post meta.', 'std' => '', 'label_for' => 'disable_date_postmeta', 'class' => 'css_class' ); /** * * create field for disable comment meta for single blog page. * * @disable_comment_postmeta */ $disable_comment_postmeta = array( 'type' => 'checkbox', 'id' => 'disable_comment_postmeta', 'name' => 'disable_comment_postmeta', 'desc' => 'Check the box to hide the comments from post meta.', 'std' => '', 'label_for' => 'disable_comment_postmeta', 'class' => 'css_class' ); /** * * create field for select the date format for single blog page. * * @choose_date_format */ $choose_date_format = array( 'type' => 'date', 'id' => 'choose_date_format', 'name' => 'choose_date_format', 'desc' => 'Formatting Date and Time', 'std' => '', 'label_for' => 'choose_date_format', 'class' => 'css_class' ); /** * * create field for display about us image for About Us page. * * @display_aboutus_image */ $display_aboutus_image = array( 'type' => 'checkbox', 'id' => 'display_aboutus_image', 'name' => 'display_aboutus_image', 'desc' => 'Check the box to Hide Image on AboutUs Page', 'std' => '', 'label_for' => 'display_aboutus_image', 'class' => 'css_class' ); /** * * create field for select layout for image for About Us page. * * @aboutus_image_layout */ $aboutus_image_layout = array( 'type' => 'select', 'id' => 'aboutus_image_layout', 'name' => 'aboutus_image_layout', 'desc' => 'Select the layout in which you want to display Main Image of Page', 'std' => '', 'opt' => array('Full Width' => 'Full Width', 'Boxed' => 'Boxed'), 'label_for' => 'aboutus_image_layout', 'class' => 'css_class' ); /** * * create field for disable title section for About Us page. * * @disable_title_section_about */ $disable_title_section_about = array( 'type' => 'checkbox', 'id' => 'disable_title_section_about', 'name' => 'disable_title_section_about', 'desc' => 'Check the box to Hide Title section from page.', 'std' => '', 'label_for' => 'disable_title_section_about', 'class' => 'css_class' ); /** * * create field for heading for About Us page. * * @about_page_title_content */ $about_page_title_content = array( 'type' => 'textarea', 'id' => 'about_page_title_content', 'name' => 'about_page_title_content', 'desc' => 'Write a Title that you want to display on Page.', 'std' => '', 'label_for' => 'about_page_title_content', 'class' => 'css_class' ); /** * * create field for disable team section for About Us page. * * @disable_team_section_about */ $disable_team_section_about = array( 'type' => 'checkbox', 'id' => 'disable_team_section_about', 'name' => 'disable_team_section_about', 'desc' => 'Check the box to Hide Our Team section from page.', 'std' => '', 'label_for' => 'disable_team_section_about', 'class' => 'css_class' ); /** * * create field for disable how we work section for About Us page. * * @disable_how_work_section_about */ $disable_how_work_section_about = array( 'type' => 'checkbox', 'id' => 'disable_how_work_section_about', 'name' => 'disable_how_work_section_about', 'desc' => 'Check the box to Show Our How We Work section from page.', 'std' => '', 'label_for' => 'disable_how_work_section_about', 'class' => 'css_class' ); /** * * create field for insert width of google map for Contact Us page. * * @google_map_width */ $google_map_width = array( 'type' => 'select', 'id' => 'google_map_width', 'name' => 'google_map_width', 'desc' => 'Select the layout in which you want to display google map', 'std' => '', 'opt' => array('Full Width' => 'Full Width', 'Boxed' => 'Boxed'), 'label_for' => 'google_map_width', 'class' => 'css_class' ); /** * * create field for insert height of google map for Contact Us page. * * @google_map_height */ $google_map_height = array( 'type' => 'text', 'id' => 'google_map_height', 'name' => 'google_map_height', 'desc' => 'In pixels, ex: 100px.', 'std' => '', 'label_for' => 'google_map_height', 'class' => 'css_class' ); /** * * create field for insert margin from top of google map for Contact Us page. * * @google_map_top_margin */ $google_map_top_margin = array( 'type' => 'text', 'id' => 'google_map_top_margin', 'name' => 'google_map_top_margin', 'desc' => 'This will only be applied to maps that are not 100% width. It controls the distance to menu/page title. In pixels, ex: 100px.', 'std' => '', 'label_for' => 'google_map_top_margin', 'class' => 'css_class' ); /** * * create field for insert map address of google map for Contact Us page. * * @google_map_address */ $google_map_address = array( 'type' => 'textarea', 'id' => 'google_map_address', 'name' => 'google_map_address', 'desc' => 'Fill the address for ex: 775 New York Ave, Brooklyn, Kings, New York 11203.', 'std' => '', 'label_for' => 'google_map_address', 'class' => 'css_class' ); /** * * create field for insert email address for Contact Us page. * * @contact_email_address */ $contact_email_address = array( 'type' => 'text', 'id' => 'contact_email_address', 'name' => 'contact_email_address', 'desc' => 'Enter the email adress the form will be sent to.', 'std' => '', 'label_for' => 'contact_email_address', 'class' => 'css_class' ); /** * * create field for insert head office address for Contact Us page. * * @contact_email_address */ $head_office_address = array( 'type' => 'textarea', 'id' => 'head_office_address', 'name' => 'head_office_address', 'desc' => 'Fill the address of the head office that you want to show on contact page', 'std' => '', 'label_for' => 'head_office_address', 'class' => 'css_class' ); /** * * create field for insert contact phone for Contact Us page. * * @contact_phone */ $contact_phone = array( 'type' => 'text', 'id' => 'contact_phone', 'name' => 'contact_phone', 'desc' => 'Enter the Phone number you want to show on the contact page.', 'std' => '', 'label_for' => 'contact_phone', 'class' => 'css_class' ); /** * * create field for insert working days for Contact Us page. * * @office_working_days */ $office_working_days = array( 'type' => 'text', 'id' => 'office_working_days', 'name' => 'office_working_days', 'desc' => 'Enter the working days of your office. ex: Mon-Fri', 'std' => '', 'label_for' => 'office_working_days', 'class' => 'css_class' ); /** * * create field for insert working hours for Contact Us page. * * @office_working_hours */ $office_working_hours = array( 'type' => 'text', 'id' => 'office_working_hours', 'name' => 'office_working_hours', 'desc' => 'Enter the working hours of your office. ex: 9:00 AM to 5:00 PM', 'std' => '', 'label_for' => 'office_working_hours', 'class' => 'css_class' ); /** * * Home page Settings options fields. * */ add_settings_field( 'example_textbox', 'Home Page Slider', 'aadi_display_setting', 'aadi_theme_options.php', 'aadi_text_section', $field_args ); add_settings_field( 'meta_slider_shortcode', 'Meta Slider Shortcode', 'aadi_display_setting', 'aadi_theme_options.php', 'aadi_text_section', $meta_slider_shortcode ); add_settings_field( 'strech_slider', 'Strech Home Slider', 'aadi_display_setting', 'aadi_theme_options.php', 'aadi_text_section', $strech_slider ); add_settings_field( 'disable_what_we_do_home', 'Disable What we Do section', 'aadi_display_setting', 'aadi_theme_options.php', 'aadi_text_section', $disable_what_we_do_home ); add_settings_field( 'what_we_do_home', 'What We Do Section Heading', 'aadi_display_setting', 'aadi_theme_options.php', 'aadi_text_section', $what_we_do_home ); add_settings_field( 'disable_latest_work_home', 'Disable Latest Work section', 'aadi_display_setting', 'aadi_theme_options.php', 'aadi_text_section', $disable_latest_work_home ); add_settings_field( 'disable_how_we_do_home', 'Enable How We Work section', 'aadi_display_setting', 'aadi_theme_options.php', 'aadi_text_section', $disable_how_we_do_home); add_settings_field( 'disable_about_us_home', 'Enable About Us section', 'aadi_display_setting', 'aadi_theme_options.php', 'aadi_text_section', $disable_about_us_home ); add_settings_field( 'about_heading_home', 'About Us Section Heading', 'aadi_display_setting', 'aadi_theme_options.php', 'aadi_text_section', $about_heading_home ); add_settings_field( 'get_about_home', 'About Us section Content Path', 'aadi_display_setting', 'aadi_theme_options.php', 'aadi_text_section', $get_about_home ); add_settings_field( 'about_home_pageid', 'About Us section Page Id', 'aadi_display_setting', 'aadi_theme_options.php', 'aadi_text_section', $about_home_pageid ); add_settings_field( 'about_description_home', 'About Us Section Description', 'aadi_display_setting', 'aadi_theme_options.php', 'aadi_text_section', $about_description_home ); add_settings_field('about_home_background_field','About Us Section Image','aadi_display_setting','aadi_theme_options.php','aadi_text_section',$about_home_background); //preview of About us sectionimage add_settings_field('about_home_background_preview', 'About Us Section image preview', 'about_home_background_preview', 'aadi_theme_options.php', 'aadi_text_section'); add_settings_field( 'disable_our_team_home', 'Disable Our Team section', 'aadi_display_setting', 'aadi_theme_options.php', 'aadi_text_section', $disable_our_team_home ); add_settings_field( 'our_team_home', 'Our Team Section Heading', 'aadi_display_setting', 'aadi_theme_options.php', 'aadi_text_section', $our_team_home ); add_settings_field( 'disable_latest_posts_home', 'Disable Latest Posts section', 'aadi_display_setting', 'aadi_theme_options.php', 'aadi_text_section', $disable_latest_posts_home ); add_settings_field( 'disable_testimonial_home', 'Disable Testimonial section', 'aadi_display_setting', 'aadi_theme_options.php', 'aadi_text_section', $disable_testimonial_home ); add_settings_field( 'disable_contact_form_home', 'Disable Contact Form section', 'aadi_display_setting', 'aadi_theme_options.php', 'aadi_text_section', $disable_contact_form_home ); add_settings_field( 'contact_form_shortcode', 'Contact Form7 shortcode', 'aadi_display_setting', 'aadi_theme_options.php', 'aadi_text_section', $contact_form_shortcode ); add_settings_field('contact_home_background_field','Contact Us Section Background Image','aadi_display_setting','aadi_theme_options.php','aadi_text_section',$contact_home_background); //preview of Contact us sectionimage add_settings_field('contact_home_background_preview', 'Contact Us Section Background preview', 'contact_home_background_preview', 'aadi_theme_options.php', 'aadi_text_section'); /** * * Header Section Settings options fields. * */ add_settings_field( 'example_textbox1', 'Header Menu', 'aadi_display_setting', 'aadi_theme_options.php', 'header_section', $field_args1 ); add_settings_field( 'sticky_header', 'Sticky Menu', 'aadi_display_setting', 'aadi_theme_options.php', 'header_section', $sticky_header ); add_settings_field( 'header_social_icons', 'Show Social Icons/Search Box', 'aadi_display_setting', 'aadi_theme_options.php', 'header_section', $header_social_icons ); add_settings_field( 'social_icons_or_searchbox', 'Social Icons/Search Box', 'aadi_display_setting', 'aadi_theme_options.php', 'header_section', $social_icons_or_searchbox ); add_settings_field( 'footer_social_icons', 'Footer Social Icons', 'aadi_display_setting', 'aadi_theme_options.php', 'header_section', $footer_social_icons ); add_settings_field( 'copyright_text', 'Copyright Text', 'aadi_display_setting', 'aadi_theme_options.php', 'header_section', $copyright_text ); //Layout section options add_settings_field( 'layout_bound', 'Layout Bound', 'aadi_display_setting', 'aadi_theme_options.php', 'layout_section', $layout_bound ); /** * * Social Links Section Settings options fields. * */ add_settings_field( 'facebook_link', 'Facebook', 'aadi_display_setting', 'aadi_theme_options.php', 'social_links_section', $facebook_link ); add_settings_field( 'twitter_link', 'Twitter', 'aadi_display_setting', 'aadi_theme_options.php', 'social_links_section', $twitter_link ); add_settings_field( 'behance_link', 'Behance', 'aadi_display_setting', 'aadi_theme_options.php', 'social_links_section', $behance_link ); add_settings_field( 'linkedin_link', 'Linkedin', 'aadi_display_setting', 'aadi_theme_options.php', 'social_links_section', $linkedin_link ); add_settings_field( 'instagram_link', 'Instagram', 'aadi_display_setting', 'aadi_theme_options.php', 'social_links_section', $instagram_link ); add_settings_field( 'pinterest_link', 'Pinterest', 'aadi_display_setting', 'aadi_theme_options.php', 'social_links_section', $pinterest_link ); /** * * Skills Section Settings options fields. * */ add_settings_field( 'first_skill_text', 'First Skill Heading', 'aadi_display_setting', 'aadi_theme_options.php', 'skills_section', $first_skill_text ); add_settings_field( 'first_skill_value', 'First Skill Value', 'aadi_display_setting', 'aadi_theme_options.php', 'skills_section', $first_skill_value ); add_settings_field( 'second_skill_text', 'Second Skill Heading', 'aadi_display_setting', 'aadi_theme_options.php', 'skills_section', $second_skill_text ); add_settings_field( 'second_skill_value', 'Second Skill Value', 'aadi_display_setting', 'aadi_theme_options.php', 'skills_section', $second_skill_value ); add_settings_field( 'third_skill_text', 'Third Skill Heading', 'aadi_display_setting', 'aadi_theme_options.php', 'skills_section', $third_skill_text ); add_settings_field( 'third_skill_value', 'Third Skill Value', 'aadi_display_setting', 'aadi_theme_options.php', 'skills_section', $third_skill_value ); add_settings_field( 'fourth_skill_text', 'Fourth Skill Heading', 'aadi_display_setting', 'aadi_theme_options.php', 'skills_section', $fourth_skill_text ); add_settings_field( 'fourth_skill_value', 'Fourth Skill Value', 'aadi_display_setting', 'aadi_theme_options.php', 'skills_section', $fourth_skill_value ); /** * * Blog Section Section Settings options fields. * */ add_settings_field( 'example_textbox4', 'Blog Page Title', 'aadi_display_setting', 'aadi_theme_options.php', 'my_blog_section', $field_args4 ); add_settings_field( 'excerpt_length_field', 'Excerpt Length', 'aadi_display_setting', 'aadi_theme_options.php', 'my_blog_section', $excerpt_length ); add_settings_field( 'latest_blog_section', 'Latest Blog Section', 'aadi_display_setting', 'aadi_theme_options.php', 'my_blog_section', $latest_blog_section ); /** * * How We Work Section Settings options fields. * */ add_settings_field('how_we_do_col1_background_field','Column One Image','aadi_display_setting','aadi_theme_options.php','how_we_do_section',$how_we_do_col1_background); //preview of How We Do Col1 sectionimage add_settings_field('how_we_do_col1_background_preview', 'Column One Image preview', 'how_we_do_col1_background_preview', 'aadi_theme_options.php', 'how_we_do_section'); add_settings_field('how_we_do_col1_heading','Column One Heading','aadi_display_setting','aadi_theme_options.php','how_we_do_section',$how_we_do_col1_heading); add_settings_field('how_we_do_col1_numeric_heading','Column One Numeric Heading','aadi_display_setting','aadi_theme_options.php','how_we_do_section',$how_we_do_col1_numeric_heading); add_settings_field('how_we_do_col1_sup_heading','Column One Sup Heading','aadi_display_setting','aadi_theme_options.php','how_we_do_section',$how_we_do_col1_sup_heading); add_settings_field('how_we_do_col1_description','Column One Description','aadi_display_setting','aadi_theme_options.php','how_we_do_section',$how_we_do_col1_description); add_settings_field('how_we_do_col2_background_field','Column Two Image','aadi_display_setting','aadi_theme_options.php','how_we_do_section',$how_we_do_col2_background); //preview of How We Do Col2 sectionimage add_settings_field('how_we_do_col2_background_preview', 'Column Two Image preview', 'how_we_do_col2_background_preview', 'aadi_theme_options.php', 'how_we_do_section'); add_settings_field('how_we_do_col2_heading','Column Two Heading','aadi_display_setting','aadi_theme_options.php','how_we_do_section',$how_we_do_col2_heading); add_settings_field('how_we_do_col2_numeric_heading','Column Two Numeric Heading','aadi_display_setting','aadi_theme_options.php','how_we_do_section',$how_we_do_col2_numeric_heading); add_settings_field('how_we_do_col2_sup_heading','Column Two Sup Heading','aadi_display_setting','aadi_theme_options.php','how_we_do_section',$how_we_do_col2_sup_heading); add_settings_field('how_we_do_col2_description','Column Two Description','aadi_display_setting','aadi_theme_options.php','how_we_do_section',$how_we_do_col2_description); add_settings_field('how_we_do_col3_background_field','Column Three Image','aadi_display_setting','aadi_theme_options.php','how_we_do_section',$how_we_do_col3_background); //preview of How We Do Col2 sectionimage add_settings_field('how_we_do_col3_background_preview', 'Column Three Image preview', 'how_we_do_col3_background_preview', 'aadi_theme_options.php', 'how_we_do_section'); add_settings_field('how_we_do_col3_heading','Column Three Heading','aadi_display_setting','aadi_theme_options.php','how_we_do_section',$how_we_do_col3_heading); add_settings_field('how_we_do_col3_numeric_heading','Column Three Numeric Heading','aadi_display_setting','aadi_theme_options.php','how_we_do_section',$how_we_do_col3_numeric_heading); add_settings_field('how_we_do_col3_sup_heading','Column Three Sup Heading','aadi_display_setting','aadi_theme_options.php','how_we_do_section',$how_we_do_col3_sup_heading); add_settings_field('how_we_do_col3_description','Column Three Description','aadi_display_setting','aadi_theme_options.php','how_we_do_section',$how_we_do_col3_description); /** * * Sidebar Section Settings options fields. * */ add_settings_field( 'disable_sidebar', 'Disable Sidebar', 'aadi_display_setting', 'aadi_theme_options.php', 'sidebar_section', $disable_sidebar ); /** * * Single Blog Section Settings options fields. * */ add_settings_field( 'featured_image_onpost_field', 'Featured Image on Single Post Page', 'aadi_display_setting', 'aadi_theme_options.php', 'my_single_blog_section', $featured_image_onpost ); add_settings_field( 'display_post_title_field', 'Post Title', 'aadi_display_setting', 'aadi_theme_options.php', 'my_single_blog_section',$single_post_title); add_settings_field( 'display_author_info_field', 'Author Info Box','aadi_display_setting','aadi_theme_options.php','my_single_blog_section',$author_info_box ); add_settings_field( 'display_related_posts_field', 'Latest Posts','aadi_display_setting','aadi_theme_options.php','my_single_blog_section',$related_posts ); add_settings_field( 'display_comments_field', 'Comments','aadi_display_setting','aadi_theme_options.php','my_single_blog_section',$display_comments ); add_settings_field( 'disable_social_sharing_button', 'Disable Social Sharing Buttons','aadi_display_setting','aadi_theme_options.php','my_single_blog_section',$disable_social_sharing_button ); add_settings_field( 'social_sharing_button_layout', 'Social Sharing Buttons Layout','aadi_display_setting','aadi_theme_options.php','my_single_blog_section',$social_sharing_button_layout ); add_settings_field( 'single_blog_sidebar', 'Disable Sidebar On Single','aadi_display_setting','aadi_theme_options.php','my_single_blog_section',$single_blog_sidebar ); add_settings_field( 'display_postmeta_field', 'Post Meta','aadi_display_setting','aadi_theme_options.php','blog_meta_option',$post_meta ); add_settings_field( 'disable_author_postmeta_field', 'Disable Post Meta Author','aadi_display_setting','aadi_theme_options.php','blog_meta_option',$disable_author_postmeta ); add_settings_field( 'disable_date_postmeta_field', 'Disable Post Meta Date','aadi_display_setting','aadi_theme_options.php','blog_meta_option',$disable_date_postmeta ); add_settings_field( 'disable_comment_postmeta_field', 'Disable Post Meta Comments','aadi_display_setting','aadi_theme_options.php','blog_meta_option',$disable_comment_postmeta ); add_settings_field( 'choose_date_format_field', 'Date Format','aadi_display_setting','aadi_theme_options.php','blog_meta_option',$choose_date_format ); /** * * About Us Section Settings options fields. * */ add_settings_field( 'display_aboutus_image', 'Disable Main Image','aadi_display_setting','aadi_theme_options.php','about_page_options',$display_aboutus_image ); add_settings_field( 'aboutus_image_layout', 'Main Image Layout','aadi_display_setting','aadi_theme_options.php','about_page_options',$aboutus_image_layout ); add_settings_field( 'disable_title_section_about', 'Disable Title Section','aadi_display_setting','aadi_theme_options.php','about_page_options',$disable_title_section_about ); add_settings_field( 'about_page_title_content', 'Title Content','aadi_display_setting','aadi_theme_options.php','about_page_options',$about_page_title_content ); add_settings_field( 'disable_team_section_about', 'Disable Our Team Section','aadi_display_setting','aadi_theme_options.php','about_page_options',$disable_team_section_about ); add_settings_field( 'disable_how_work_section_about', 'Enable How We Work Section','aadi_display_setting','aadi_theme_options.php','about_page_options',$disable_how_work_section_about ); /** * * Contact Us Section Settings options fields. * */ add_settings_field( 'google_map_width_field','Google Map Width','aadi_display_setting','aadi_theme_options.php','contact_page_options',$google_map_width ); add_settings_field( 'google_map_height_field','Google Map Height','aadi_display_setting','aadi_theme_options.php','contact_page_options',$google_map_height ); add_settings_field( 'google_map_top_margin_field','Google Map Top Margin','aadi_display_setting','aadi_theme_options.php','contact_page_options',$google_map_top_margin ); add_settings_field('google_map_address_field','Google Map Address','aadi_display_setting','aadi_theme_options.php','contact_page_options',$google_map_address); add_settings_field('contact_email_address_field','Email Address','aadi_display_setting','aadi_theme_options.php','contact_page_options',$contact_email_address); add_settings_field('head_office_address','Head Office Address','aadi_display_setting','aadi_theme_options.php','contact_page_options',$head_office_address); add_settings_field('contact_phone','Phone Number','aadi_display_setting','aadi_theme_options.php','contact_page_options',$contact_phone); add_settings_field('office_working_days','Office Working Days','aadi_display_setting','aadi_theme_options.php','contact_page_options',$office_working_days); add_settings_field('office_working_hours','Office Working Hours','aadi_display_setting','aadi_theme_options.php','contact_page_options',$office_working_hours); } /** * Function to add extra text to display on each section */ function aadi_display_section(){ ?> "; echo ($desc != '') ? "
$desc
" : ""; break; case 'file': echo "
"; echo '
'; echo ($desc != '') ? "
$desc
" : ""; break; case 'checkbox': if($options[$id]!='') { echo "
"; } else { echo "
"; } echo ($desc != '') ? "
$desc
" : ""; break; case 'date': $options[$id] = stripslashes($options[$id]); $options[$id] = esc_attr( $options[$id]); echo ""; echo ($desc != '') ? "
$desc" : ""; break; case 'select': $options[$id] = stripslashes($options[$id]); $options[$id] = esc_attr( $options[$id]); echo "
"; echo ($desc != '') ? "
$desc
" : ""; break; case 'textarea': $options[$id] = stripslashes($options[$id]); $options[$id] = esc_attr( $options[$id]); echo "
"; echo ($desc != '') ? "
$desc
" : ""; break; case 'file_titlebar': echo "
"; echo '
'; echo ($desc != '') ? "
$desc
" : ""; break; case 'file_ebook': echo "
"; echo '
'; echo ($desc != '') ? "
$desc
" : ""; break; case 'file_about_home': echo "
"; echo '
'; echo ($desc != '') ? "
$desc
" : ""; break; case 'file_contact_home': echo "
"; echo '
'; echo ($desc != '') ? "
$desc
" : ""; break; case 'file_how_we_do_one': echo "
"; echo '
'; echo ($desc != '') ? "
$desc
" : ""; break; case 'file_how_we_do_two': echo "
"; echo '
'; echo ($desc != '') ? "
$desc
" : ""; break; case 'file_how_we_do_three': echo "
"; echo '
'; echo ($desc != '') ? "
$desc
" : ""; break; } } /** * Callback function to the register_settings function will pass through an input variable * You can then validate the values and the return variable will be the values stored in the database. */ function aadi_validate_settings($plugin_options) { if(!isset($plugin_options['pu_textbox'])){ $plugin_options['pu_textbox']='Nivo Slider'; } if(!isset($plugin_options['meta_slider_shortcode'])){ $plugin_options['meta_slider_shortcode']=''; } if(!isset($plugin_options['strech_slider'])){ $plugin_options['strech_slider']=false; } if(!isset($plugin_options['disable_what_we_do_home'])){ $plugin_options['disable_what_we_do_home']=false; } if(!isset($plugin_options['what_we_do_home'])){ $plugin_options['what_we_do_home']=''; } if(!isset($plugin_options['disable_latest_work_home'])){ $plugin_options['disable_latest_work_home']=false; } if(!isset($plugin_options['disable_how_we_do_home'])){ $plugin_options['disable_how_we_do_home']=false; } if(!isset($plugin_options['disable_about_us_home'])){ $plugin_options['disable_about_us_home']=false; } if(!isset($plugin_options['get_about_home'])){ $plugin_options['get_about_home']='Default'; } if(!isset($plugin_options['about_home_pageid'])){ $plugin_options['about_home_pageid']=''; } if(!isset($plugin_options['about_heading_home'])){ $plugin_options['about_heading_home']=''; } if(!isset($plugin_options['about_description_home'])){ $plugin_options['about_description_home']=''; } if(!isset($plugin_options['about_home_background'])){ $plugin_options['about_home_background']=''; } if(!isset($plugin_options['disable_our_team_home'])){ $plugin_options['disable_our_team_home']=false; } if(!isset($plugin_options['our_team_home'])){ $plugin_options['our_team_home']=''; } if(!isset($plugin_options['disable_latest_posts_home'])){ $plugin_options['disable_latest_posts_home']=false; } if(!isset($plugin_options['disable_testimonial_home'])){ $plugin_options['disable_testimonial_home']=false; } if(!isset($plugin_options['disable_contact_form_home'])){ $plugin_options['disable_contact_form_home']=false; } if(!isset($plugin_options['contact_form_shortcode'])){ $plugin_options['contact_form_shortcode']=''; } if(!isset($plugin_options['contact_home_background'])){ $plugin_options['contact_home_background']=''; } if(!isset($plugin_options['my_textbox'])){ $plugin_options['my_textbox']='Default Menu'; } if(!isset($plugin_options['sticky_header'])){ $plugin_options['sticky_header']=false; } if(!isset($plugin_options['header_social_icons'])){ $plugin_options['header_social_icons']=false; } if(!isset($plugin_options['social_icons_or_searchbox'])){ $plugin_options['social_icons_or_searchbox']='Search Box'; } if(!isset($plugin_options['footer_social_icons'])){ $plugin_options['footer_social_icons']=false; } if(!isset($plugin_options['image_url'])){ $plugin_options['image_url']=''; } if(!isset($plugin_options['copyright_text'])){ $plugin_options['copyright_text']=''; } if(!isset($plugin_options['layout_bound'])){ $plugin_options['layout_bound']=''; } if(!isset($plugin_options['first_skill_text'])){ $plugin_options['first_skill_text']=''; } if(!isset($plugin_options['first_skill_value'])){ $plugin_options['first_skill_value']=''; } if(!isset($plugin_options['second_skill_text'])){ $plugin_options['second_skill_text']=''; } if(!isset($plugin_options['second_skill_value'])){ $plugin_options['second_skill_value']=''; } if(!isset($plugin_options['third_skill_text'])){ $plugin_options['third_skill_text']=''; } if(!isset($plugin_options['third_skill_value'])){ $plugin_options['third_skill_value']=''; } if(!isset($plugin_options['fourth_skill_text'])){ $plugin_options['fourth_skill_text']=''; } if(!isset($plugin_options['fourth_skill_value'])){ $plugin_options['fourth_skill_value']=''; } if(!isset($plugin_options['facebook_link'])){ $plugin_options['facebook_link']=''; } if(!isset($plugin_options['twitter_link'])){ $plugin_options['twitter_link']=''; } if(!isset($plugin_options['behance_link'])){ $plugin_options['behance_link']=''; } if(!isset($plugin_options['linkedin_link'])){ $plugin_options['linkedin_link']=''; } if(!isset($plugin_options['instagram_link'])){ $plugin_options['instagram_link']=''; } if(!isset($plugin_options['pinterest_link'])){ $plugin_options['pinterest_link']=''; } if(!isset($plugin_options['blog_page_title'])){ $plugin_options['blog_page_title']=''; } if(!isset($plugin_options['latest_blog_section'])){ $plugin_options['latest_blog_section']=false; } if(!isset($plugin_options['single_blog_sidebar'])){ $plugin_options['single_blog_sidebar']=false; } if(!isset($plugin_options['disable_sidebar'])){ $plugin_options['disable_sidebar']=false; } if(!isset($plugin_options['how_we_do_col1_background'])){ $plugin_options['how_we_do_col1_background']=''; } if(!isset($plugin_options['how_we_do_col1_heading'])){ $plugin_options['how_we_do_col1_heading']=''; } if(!isset($plugin_options['how_we_do_col1_description'])){ $plugin_options['how_we_do_col1_description']=''; } if(!isset($plugin_options['how_we_do_col2_background'])){ $plugin_options['how_we_do_col2_background']=''; } if(!isset($plugin_options['how_we_do_col2_heading'])){ $plugin_options['how_we_do_col2_heading']=''; } if(!isset($plugin_options['how_we_do_col2_description'])){ $plugin_options['how_we_do_col2_description']=''; } if(!isset($plugin_options['how_we_do_col3_background'])){ $plugin_options['how_we_do_col3_background']=''; } if(!isset($plugin_options['how_we_do_col3_heading'])){ $plugin_options['how_we_do_col3_heading']=''; } if(!isset($plugin_options['how_we_do_col3_description'])){ $plugin_options['how_we_do_col3_description']=''; } if(!isset($plugin_options['excerpt_length'])){ $plugin_options['excerpt_length']=''; } if(!isset($plugin_options['featured_image_onpost'])){ $plugin_options['featured_image_onpost']=false; } if(!isset($plugin_options['display_post_title'])){ $plugin_options['display_post_title']=false; } if(!isset($plugin_options['display_author_info'])){ $plugin_options['display_author_info']=false; } if(!isset($plugin_options['display_related_posts'])){ $plugin_options['display_related_posts']=false; } if(!isset($plugin_options['display_comments'])){ $plugin_options['display_comments']=false; } if(!isset($plugin_options['disable_social_sharing_button'])){ $plugin_options['disable_social_sharing_button']=false; } if(!isset($plugin_options['social_sharing_button_layout'])){ $plugin_options['social_sharing_button_layout']='Large'; } if(!isset($plugin_options['display_post_meta'])){ $plugin_options['display_post_meta']=false; } if(!isset($plugin_options['disable_author_postmeta'])){ $plugin_options['disable_author_postmeta']=false; } if(!isset($plugin_options['disable_date_postmeta'])){ $plugin_options['disable_date_postmeta']=false; } if(!isset($plugin_options['disable_comment_postmeta'])){ $plugin_options['disable_comment_postmeta']=false; } if(!isset($plugin_options['choose_date_format'])){ $plugin_options['choose_date_format']=''; } if(!isset($plugin_options['display_aboutus_image'])){ $plugin_options['display_aboutus_image']=false; } if(!isset($plugin_options['aboutus_image_layout'])){ $plugin_options['aboutus_image_layout']='Full Width'; } if(!isset($plugin_options['disable_title_section_about'])){ $plugin_options['disable_title_section_about']=false; } if(!isset($plugin_options['about_page_title_content'])){ $plugin_options['about_page_title_content']=''; } if(!isset($plugin_options['disable_team_section_about'])){ $plugin_options['disable_team_section_about']=false; } if(!isset($plugin_options['disable_how_work_section_about'])){ $plugin_options['disable_how_work_section_about']=false; } if(!isset($plugin_options['google_map_width'])){ $plugin_options['google_map_width']='Full Width'; } if(!isset($plugin_options['google_map_height'])){ $plugin_options['google_map_height']=''; } if(!isset($plugin_options['google_map_top_margin'])){ $plugin_options['google_map_top_margin']=''; } if(!isset($plugin_options['google_map_address'])){ $plugin_options['google_map_address']=''; } if(!isset($plugin_options['contact_email_address'])){ $plugin_options['contact_email_address']=''; } if(!isset($plugin_options['head_office_address'])){ $plugin_options['head_office_address']=''; } if(!isset($plugin_options['contact_phone'])){ $plugin_options['contact_phone']=''; } if(!isset($plugin_options['office_working_days'])){ $plugin_options['office_working_days']=''; } if(!isset($plugin_options['office_working_hours'])){ $plugin_options['office_working_hours']=''; } return $plugin_options; } /** * * page_titlebar_background_preview function to display of preview * */ function page_titlebar_background_preview() { $options = get_option( 'aadi_theme_options' ); ?>