"General settings", "id" => $shortname."generalheader", "type" => "header", "before" => "", "after" => "", "categoryend" => 0), array( "name" => "Color scheme", "id" => $shortname."color", "type" => "radio", "before" => "", "after" => "Choose the color scheme for your blog.", "std" => "white", "options" => array("white", "black"), "categoryend" => 0), array( "name" => "Number of Columns", "id" => $shortname."columns", "type" => "radio", "before" => "", "after" => "Choose whether the theme shall display one or two columns.", "std" => "2", "options" => array("2", "1"), "categoryend" => 0), array( "name" => "Header images path", "id" => $shortname."headerimagespath", "type" => "text", "before" => "", "after" => "Choose the directory for the header images.", "std" => "wp-content/themes/an-an-ordinary-theme/images", "categoryend" => 0), array( "name" => "Number of random header pictures", "id" => $shortname."headerpics", "type" => "text", "before" => "", "after" => "If you have not uploaded as many pictures as you set here there will be a blank area.", "std" => "3", "categoryend" => 1), array( "name" => "Menu settings", "id" => $shortname."menuheader", "type" => "header", "before" => "", "after" => "", "categoryend" => 0), array( "name" => "Pages style", "id" => $shortname."pagesstyle", "type" => "select", "before" => "", "after" => "Choose the style to display your pages in the menu bar.", "std" => "A pages dropdown in menu bar", "options" => array("A pages dropdown in menu bar", "One menu item per page", "Don't show pages in menu bar"), "categoryend" => 0), array( "name" => "Home link style", "id" => $shortname."homelinkstyle", "type" => "select", "before" => "", "after" => "Choose the style to display the home link in the menu bar .", "std" => "In pages dropdown (only if pages dropdown is activated)", "options" => array("In pages dropdown (only if pages dropdown is activated)", "As a single menu item", "Hide it"), "categoryend" => 0), array( "name" => "Home link title", "id" => $shortname."homelinktitle", "type" => "text", "before" => "", "after" => "Choose the title for the home link in the menu bar .", "std" => "Home", "categoryend" => 0), array( "name" => "Links style", "id" => $shortname."linksstyle", "type" => "select", "before" => "", "after" => "Choose the style to display your links in the menu bar.", "std" => "A links dropdown in menu bar", "options" => array("A links dropdown in menu bar", "One dropdown per link category in menu bar", "Don't show links in menu bar"), "categoryend" => 0), array( "name" => "Categories style", "id" => $shortname."categoriesstyle", "type" => "select", "before" => "", "after" => "Choose the style to display categories in the menu bar.", "std" => "A categories dropdown in menu bar", "options" => array("A categories dropdown in menu bar", "One dropdown per category in menu bar", "Hide categories"), "categoryend" => 0), array( "name" => "Display the number of posts in brackets for each category", "id" => $shortname."categorycount", "type" => "radio", "before" => "", "after" => "You have to change two lines in a WordPress core file for a correct result. Check out the instructions in the FAQ section of my web site.", "std" => "No", "options" => array("Yes", "No"), "categoryend" => 0), array( "name" => "Archives type", "id" => $shortname."archivestype", "type" => "select", "before" => "", "after" => "Choose the style to display archives in the menu bar.", "std" => "monthly", "options" => array("yearly", "monthly", "weekly", "daily", "postbypost", "no archives"), "categoryend" => 0), array( "name" => "Display the number of posts in brackets for archives", "id" => $shortname."archivescount", "type" => "radio", "before" => "", "after" => "You have to change two lines in a WordPress core file for a correct result. Check out the instructions in the FAQ section of my web site.", "std" => "No", "options" => array("Yes", "No"), "categoryend" => 0), array( "name" => "Show latest posts in menu", "id" => $shortname."showlatestposts", "type" => "radio", "before" => "", "after" => "Choose whether to show or hide the 'latest posts' in the menu bar.", "std" => "Yes", "options" => array("Yes", "No"), "categoryend" => 0), array( "name" => "Number of posts to be listed in 'Latest posts'", "id" => $shortname."latestpostslimit", "type" => "text", "before" => "", "after" => "Choose the number of posts that shall be listed in the dropdown menu 'Latest posts'.", "std" => "5", "categoryend" => 1), array( "name" => "Post settings", "id" => $shortname."postsheader", "type" => "header", "before" => "", "after" => "", "categoryend" => 0), array( "name" => "Show edit post link", "id" => $shortname."editpostlink", "type" => "radio", "before" => "", "after" => "Choose whether to show or hide the 'edit post' link at the top of each post.", "std" => "No", "options" => array("No", "Yes"), "categoryend" => 1) /*array( "name" => "Textarea", "id" => $shortname."_bigger_box", "std" => "Default Text", "type" => "textarea"),*/ ); 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'], addslashes(htmlentities($_REQUEST[ $value['id'] ] ))); } foreach ($options as $value) { if( isset( $_REQUEST[ $value['id'] ] ) ) { update_option( $value['id'], addslashes(htmlentities($_REQUEST[ $value['id'] ] ))); } else { delete_option( $value['id'] ); } } header("Location: themes.php?page=controlpanel.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=controlpanel.php&reset=true"); die; } } add_theme_page("options for ".$themename, "an ordinary theme", 'edit_themes', basename(__FILE__), 'mytheme_admin'); } function mytheme_admin() { global $themename, $shortname, $options; if ( $_REQUEST['saved'] ) echo '
'.$themename.' settings saved.
'.$themename.' settings reset.
First of all, thank you for using 'an ordinary theme' in your blog.
'an ordinary theme' is continuously being refined and updated. Check out my web site every now and again to get new information about the theme.
It is published under the GNU General Public License. You are free to change whatever you like. Of course I'd be happy about you leaving the link to my blog in the footer.
You can change lots of things on the settings page (Design > an ordinary theme). If you want to change anything else, you might find it in the FAQ section of my development web site.
Visit dev.fabians.ch for further information. Don't hesitate to ask, if you've got questions about the theme. But please check out the FAQ before.
* Version 2.8.1 (24.12.2010)
Removed readme file since instructions are in the FAQ section on dev.fabians.ch now. Merry Christmas!
* Version 2.8.0 (22.12.2010)
Added option to choose pages style
Added option to choose links style
Added option to choose home link style
Added option to choose home link title
Added option to choose the categories style
Added option to choose whether to show or to hide latest posts in menu bar
Reorganized the options page
Extended option to choose the archives type by the ability to hide the archives
* Version 2.7.4 (22.12.2010)
Adjusted the options page
Added licence URI to theme information
* Version 2.7.3 (21.12.2010)
Adjusted stylesheet, readme and footer
* Version 2.7.2 (20.12.2010)
Revised code structure
Fixed header image error
* Version 2.7.1 (20.12.2010)
Revised code structure
Adjusted code to WP theme requirements
Code cosmetics
* Version 2.7 (15.12.2010)
Added setting to change the header images path
Added setting to display the number of posts for archives
Code cosmetics
* Version 2.6 (22.12.2009)
Code cosmetics
* Version 2.5 (02.07.2009)
Removed duplicate comment form in single view
Ordered attributes in Stylesheet alphabetically
Removed alt attribute for links in footer due to xhtml validity
* Version 2.4 (11.06.2009)
Added WP styles for wrapping text around images (http://codex.wordpress.org/Wrapping_Text_Around_Images)
* Version 2.3 (24.04.2009)
Fixed search engine problems
Fixed navigation problems in IE<7
Reduced margins and paddings for ul and ol in entries
Stylesheet cosmetics
* Version 2.2 (08.04.2009)
Corrected category bug in sidebar
Corrected some typing errors
Added theme name and version to the footer
* Version 2.1 (07.04.2009)
Added a couple of settings to the admin panel
Improved the html and css structure
Reorganized the file structure
* Version 2.0 (16.03.2009)
Improved the html structure
* Version 1.9 (13.03.2009)
Fixed some tiny imperfections
* Version 1.8 (12.02.2009)
Increased the font size in entries
Altered the font family in entries
Added some additional font family stlyes if default font isn't available
Lit the 'add comment' button
* Version 1.7 (05.02.2009)
Removed the border for image links
Altered index.php, single.php and search.php for code cosmetics
* Version 1.6 (29.01.2009)
Removed the post counting for each category in brackets due to necessary changes in wp core files
Added an instruction for readding the post counting for categories in brackets
Lit the alternating comments background color
* Version 1.5 (24.01.2009)
Added min-height for overall div #contentwrap
Added important notice to readme
Altered header.php for 404 error page reasons
* Version 1.4 (23.01.2009)
Altered comments.php for style reasons
* Version 1.3 (19.01.2009)
Altered footer for copyright reasons
Removed non-existent images
Adjusted theme tags
* Version 1.2 (15.01.2009)
Altered style.css for style reasons
* Version 1.1 (10.01.2009)
Altered style.css for style reasons
* Version 1.0 (12.12.2008)
Initial version