cat_ID] = $zm_cat->category_nicename; } $categories_tmp = array_unshift($zm_categories, "Select a category:"); $number_entries = array("Select a Number:","1","2","3","4","5","6","7","8","9","10", "12","14", "16", "18", "20"); $options = array ( array( "type" => "close"), array( "name" => "Choose your Template", "type" => "title", "desc" => "Here type number of template (1-20)", ), array( "type" => "open"), array( "name" => "Templete ID", "desc" => "Here type number of template (1-20)", "id" => $shortname."_theme", "std" => "2", "type" => "text"), array("type" => "close"), array( "name" => "Advertisement - color palettes", "type" => "title", "desc" => "Setup the ad banners", ), array("type" => "open"), array("name" => "Ad-code 1", "desc" => "Google adsense or other ad-code - 250x250px.", "id" => $shortname."_ad1", "std" => "", "type" => "textarea"), array("name" => "Ad-code 2", "desc" => "Google adsense or other ad-code - 468x15px.", "id" => $shortname."_ad2", "std" => "", "type" => "textarea"), array("name" => "Ad-code 3", "desc" => "Google adsense or other ad-code - 728x90px.", "id" => $shortname."_ad3", "std" => "", "type" => "textarea"), array("name" => "Ad-code 4", "desc" => "Google adsense or other ad-code - 180x150px.", "id" => $shortname."_ad4", "std" => "", "type" => "textarea"), array("type" => "close"), ); function mytheme_add_admin() { global $themename, $shortname, $options; if ( $_GET['page'] == basename(__FILE__) ) { if ( 'save' == $_REQUEST['action'] ) { foreach ($options as $value) { update_option( $value['id'], $_REQUEST[ $value['id'] ] ); } foreach ($options as $value) { if( isset( $_REQUEST[ $value['id'] ] ) ) { update_option( $value['id'], $_REQUEST[ $value['id'] ] ); } else { delete_option( $value['id'] ); } } header("Location: themes.php?page=theme_options.php&saved=true"); die; } else if( 'reset' == $_REQUEST['action'] ) { foreach ($options as $value) { delete_option( $value['id'] ); update_option( $value['id'], $value['std'] );} header("Location: themes.php?page=theme_options.php&reset=true"); die; } } add_theme_page($themename." Options", "$themename Options", 'edit_themes', basename(__FILE__), 'mytheme_admin'); } function mytheme_admin() { global $themename, $shortname, $options; ?>

theme options

'.$themename.' settings saved.

'; if ( $_REQUEST['reset'] ) echo '

'.$themename.' settings reset.

'; ?>

 

WordPress themes from web2feel.com

" />
 
 
 
 
 
 
/>