You are using
- Change Logo ', 'aplau'), admin_url('themes.php?page=custom-header')); ?>
- Theme Support
- Donate
- Upgrade to Pro
- # Why Upgrade?
"Advertisements", "type" => "section"), array( "name" => __('Insert Ads code to show on your website/blog','aplau'), "type" => "section-desc"), array( "type" => "open"), array( "name" => "Header Ad", "desc" => "Enter your Advertisement code here. This ad will be displayed at header area. Recommended size 468x60", "id" => $shortname."_header_ad", "std" => "", "type" => "textarea"), array( "type" => "close"), //Analytics Code array( "name" => "Website Tracking / Analytics", "type" => "section"), array( "name" => __('Insert Website tracking / analytics code','aplau'), "type" => "section-desc"), array( "type" => "open"), array( "name" => __('Analytics/Tracking Code','aplau'), "desc" => __('Insert your Google Analytics or any other website tracking code here.','aplau'), "id" => $shortname."_analytics_code", "type" => "textarea", "std" => ""), array( "type" => "close"), ); function aplau_add_admin() { global $themename, $shortname, $options; if ( isset ( $_GET['page'] ) && ( $_GET['page'] == basename(__FILE__) ) ) { if ( isset ($_REQUEST['action']) && ( 'save' == $_REQUEST['action'] ) ){ foreach ( $options as $value ) { if ( array_key_exists('id', $value) ) { if ( isset( $_REQUEST[ $value['id'] ] ) ) { update_option( $value['id'], $_REQUEST[ $value['id'] ] ); } else { delete_option( $value['id'] ); } } } $_REQUEST['saved'] = 1; } else if ( isset ($_REQUEST['action']) && ( 'reset' == $_REQUEST['action'] ) ) { foreach ($options as $value) { if ( array_key_exists('id', $value) ) { delete_option( $value['id'] ); } } $_REQUEST['reset'] = 1; } } add_theme_page($themename, $themename, 'administrator', basename(__FILE__), 'aplau_admin'); add_theme_page(basename(__FILE__), $themename . ' Theme Options', 'Theme Options', 'administrator', basename(__FILE__),'aplau_admin'); // Default add_object_page($themename, $themename, 'administrator', basename(__FILE__), 'aplau_admin', content_url ('themes/aplau/images/a.ico', __FILE__),3); add_object_page(basename(__FILE__), $themename . ' Theme Options', 'Theme Options', 'administrator', basename(__FILE__),'aplau_admin'); } function aplau_add_init() { $file_dir=get_bloginfo('template_directory'); wp_enqueue_style("aplauCss", $file_dir."/functions/ap.css", false, "1.0", "all"); wp_enqueue_script("aplauScript", $file_dir."/functions/ap.js", false, "1.0"); } function aplau_admin() { global $themename, $shortname, $version, $options; $i=0; if ( isset ($_REQUEST['saved']) && ($_REQUEST['saved'] ) )echo '
'.$themename.' settings saved.
'.$themename.' settings reset.