'', 'ak_favicon'=> '', 'header_text'=>'Call us : 984187523XX', 'show_search'=>true, 'menu_alignment'=>'Left', 'welcome_post' => '', 'show_fontawesome' => false, 'big_icons' => false, 'featured_post1' => '', 'featured_post2' => '', 'featured_post3' => '', 'featured_post1_icon' => '', 'featured_post2_icon' => '', 'featured_post3_icon' => '', 'event_cat' => '', 'testimonial_cat' => '', 'blog_cat' => '', 'portfolio_cat' => '', 'footer_copyright' => get_bloginfo('name'), 'show_slider' => 'yes', 'slider_show_pager' => 'yes1', 'slider_show_controls' => 'yes2', 'slider_mode' => 'slide', 'slider_auto' => 'yes3', 'slider_speed' => '500', 'slider_caption'=>'yes4', 'slider1'=>'', 'slider2'=>'', 'slider3'=>'', 'slider4'=>'', 'leftsidebar_show_latest_events'=>true, 'leftsidebar_show_testimonials'=>true, 'rightsidebar_show_latest_events'=>true, 'rightsidebar_show_testimonials'=>true, 'ak_facebook' => '', 'ak_twitter' => '', 'ak_gplus' => '', 'ak_youtube' => '', 'ak_pinterest' => '', 'ak_linkedin' => '', 'ak_flickr' => '', 'ak_vimeo' => '', 'ak_stumbleupon' => '', 'ak_skype' => '', 'ak_rss' => '', 'show_social_header'=>'', 'show_social_footer'=>'', 'google_map' => '', 'contact_address' => '', 'ak_home_page_layout' => 'Default', 'ak_webpage_layout' => 'Fullwidth', 'gallery_code' => '', ); add_action( 'admin_init', 'ak_register_settings' ); add_action( 'admin_menu', 'ak_theme_options' ); function ak_register_settings() { register_setting( 'ak_theme_options', 'ak_options', 'ak_validate_options' ); } function ak_theme_options() { // Add theme options page to the addmin menu add_theme_page( 'Theme Options', 'Theme Options', 'edit_theme_options', 'theme_options', 'ak_theme_options_page' ); } // Store Posts in array $ak_postlist[0] = array( 'value' => 0, 'label' => '--choose--' ); $arg = array('posts_per_page' => -1); $ak_posts = get_posts($arg); $i = 1; foreach( $ak_posts as $ak_post ) : $ak_postlist[$ak_post->ID] = array( 'value' => $ak_post->ID, 'label' => $ak_post->post_title ); $i++; endforeach; wp_reset_query(); // Store categories in array $ak_catlist[0] = array( 'value' => 0, 'label' => '--choose--' ); $arg1 = array( 'hide_empty' => 0, 'orderby' => 'name', 'parent' => 0, ); $ak_cats = get_categories($arg1); $i = 1; foreach( $ak_cats as $ak_cat ) : $ak_catlist[$ak_cat->cat_ID] = array( 'value' => $ak_cat->cat_ID, 'label' => $ak_cat->cat_name ); $i++; endforeach; // Store slider setting in array $ak_slider = array( 'yes' => array( 'value' => 'yes', 'label' => 'show' ), 'no' => array( 'value' => 'no', 'label' => 'hide' ), ); $ak_slider_show_pager = array( 'yes1' => array( 'value' => 'yes1', 'label' => 'yes' ), 'no1' => array( 'value' => 'no1', 'label' => 'no' ), ); $ak_slider_show_controls = array( 'yes2' => array( 'value' => 'yes2', 'label' => 'yes' ), 'no2' => array( 'value' => 'no2', 'label' => 'no' ), ); $ak_slider_auto = array( 'yes3' => array( 'value' => 'yes3', 'label' => 'yes' ), 'no3' => array( 'value' => 'no3', 'label' => 'no' ), ); $ak_slider_mode = array( 'fade' => array( 'value' => 'fade', 'label' => 'fade' ), 'slide' => array( 'value' => 'slide', 'label' => 'slide' ), ); $ak_slider_caption = array( 'yes4' => array( 'value' => 'yes4', 'label' => 'show' ), 'no4' => array( 'value' => 'no4', 'label' => 'hide' ), ); // Function to generate options page function ak_theme_options_page() { global $ak_options, $ak_postlist, $ak_slider, $ak_slider_show_pager, $ak_slider_show_controls, $ak_slider_mode, $ak_slider_auto, $ak_slider_caption, $ak_catlist; if ( ! isset( $_REQUEST['settings-updated'] ) ) $_REQUEST['settings-updated'] = false; // This checks whether the form has just been submitted. ?>

Follow us for new updates

Facebook Twitter Wordpress

Basic Settings

/>
/>
  Upload favicon(.png) with size of 16px X 16px
Remove
Upload

Html content allowed
 
array( 'src' => array() ) ); $input[ 'google_map' ] = wp_kses( $input[ 'google_map' ],$allowed_tags ); } if( isset( $input[ 'contact_address' ] ) ) { $input[ 'contact_address' ] = wp_kses_post( $input[ 'contact_address' ] ); } if( isset( $input[ 'gallery_code' ] ) ) { $input[ 'gallery_code' ] = wp_kses_post( $input[ 'gallery_code' ] ); } return $input; } endif; // EndIf is_admin() ?>