"open"),
array( "name" => __("Menu", 'altop'),
"type" => "title",
),
array( "name" => __("Pages or categories", 'altop'),
"type" => "select",
"desc" => __("Show PAGES or CATEGORIES in the main menu. Theme default is "Pages"", 'altop'),
"id" => $shortname."_menue_pages",
"std" => "",
"options" => array ("","Pages","Categories"),
),
array( "name" => __("Exclude"),
"type" => "text",
"desc" => __("Exclude this pages or categories from menu (comma seperated)", 'altop'),
"id" => $shortname."_page_exclude",
"std" => "",
),
array( "name" => __("Depth", 'altop'),
"type" => "select",
"desc" => __("How many level are to be displayed? 0 (all), 1 or 2.
See also Wordpress-Codex | wp_list_pages for pages or Wordpress-Codex | wp_list_categories for categories. Theme default is 0 for both.
Note: Depth "0" will be display all pages or categories. The menu effect works perfect with this value.", 'altop'),
"id" => $shortname."_page_depth",
"std" => "",
"options" => array("","0","1","2"),
),
array( "name" => __("Home Link", 'altop'),
"type" => "checkbox",
"desc" => __("Display the HOME Link in the menu", 'altop'),
"id" => $shortname."_show_home",
"std" => "false",
),
array( "name" => __("Home name", 'altop'),
"type" => "text",
"desc" => __("The name of the HOME link. Theme default is "Home"", 'altop'),
"id" => $shortname."_home_name",
"std" => "Home",
),
array( "name" => __("Posts & Pages", 'altop'),
"type" => "title",
),
array( "name" => __("Author", 'altop'),
"type" => "checkbox",
"desc" => __("Show the author on posts", 'altop'),
"id" => $shortname."_posts_author",
"std" => "",
),
array( "name" => __("Post Thumbnail", 'altop'),
"type" => "checkbox",
"desc" => __("Show the post thumbnail in posts, archives and pages?", 'altop'),
"id" => $shortname."_post_thumbnail",
"std" => "",
),
array( "name" => __("Comment Tags", 'altop'),
"type" => "checkbox",
"desc" => __("Show allowed XHTML-Tags in your comment form.", 'altop'),
"id" => $shortname."_xhtml_tags",
"std" => "",
),
array( "name" => __("Bottombar", 'altop'),
"type" => "title",
),
array( "name" => __("Bottombar", 'altop'),
"type" => "checkbox",
"desc" => __("Use the "Bottombar" in your theme. Here you can place some little widgets or text.", 'altop'),
"id" => $shortname."_bottombar_show",
"std" => "false",
),
array( "name" => __("Bottombar Image", 'altop'),
"type" => "select",
"desc" => __("Select the "Bottombar" background image
", 'altop') . '
' . (__(" 1 = purple (default)
", 'altop')) . '
' . (__(" 2 = grey
", 'altop')) . '
' . (__(" 0 = only color grey", 'altop')),
"id" => $shortname."_bottombar_image",
"std" => "",
"options" => array("","1","2","0"),
),
array( "name" => "Sidebar",
"type" => "title",
),
array( "name" => __("Sidebar align", 'altop'),
"type" => "select",
"desc" => __("Sidebar align left, right or none (hidden). Theme default is "right" Note: You will hide the sidebar on any page and posts if you select none. If you only want to hide the sidebar for some pages, use the page template without sidebar.", 'altop'),
"id" => $shortname."_sidebar_align",
"std" => "",
"options" => array("","left","right","none"),
),
array( "name" => "Twitter",
"type" => "title",
),
array( "name" => __("Button", 'altop'),
"type" => "checkbox",
"desc" => __("Show the Twitter button in the head", 'altop'),
"id" => $shortname."_twitter_logo",
"std" => "false",
),
array( "name" => "Name",
"type" => "text",
"desc" => __("Your Twitter username?
You can follow me on Twitter too. Visit my page under twitter.com/t3blogart.", 'altop'),
"id" => $shortname."_twitter_name",
"std" => ""),
array( "name" => "RSS Feed",
"type" => "title",
),
array( "name" => __("Custom Feed URL", 'altop'),
"type" => "text",
"desc" => __("Your custom feed URL? (Feedburner...)", 'altop'),
"id" => $shortname."_feed_url",
"std" => "",
),
array( "type" => "close")
);
function altop_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=functions.php&saved=true");
die;
} else if( 'reset' == $_REQUEST['action'] ) {
foreach ($options as $value) {
delete_option( $value['id'] ); }
header("Location: themes.php?page=functions.php&reset=true");
die;
}
}
add_theme_page($themename." Options", "".$themename." Options", 'edit_themes', basename(__FILE__), 'altop_admin');
}
function altop_admin() {
global $themename, $shortname, $options;
$saved = __('settings saved.', 'altop');
$reset = __('settings reset.', 'altop');
if ( $_REQUEST['saved'] ) echo '
'.$themename.' '.$saved.'
'.$themename.' '.$reset.'
site.
Update informations and bugfixes are also available at my site or follow me on Twitter.
Have fun with my theme and Happy Blogging... :)', 'altop'); ?>
%1s %2s said this (%3s at %4s)', 'altop'), ++$commentnumber, get_comment_author_link(), get_comment_date(), get_comment_time() ); edit_comment_link(__('Edit', 'altop'), ' |'); echo ('
'); echo ('