"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" => "text",
"desc" => __("Show a HOME-Link in your main menu. Type in the name of your Home Link. If you leave it blank, the home link will not been shown!", 'altop'),
"id" => $shortname."_home_link",
"std" => "",
),
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" => "select",
"desc" => __("Use the "Bottombar" in your theme and choose the background image. Here you can place some little widgets or text. If you don´t want to show the Bottombar, choose none.
", 'altop') . '
' . (__(" 1 = purple (default)
", 'altop')) . '
' . (__(" 2 = grey
", 'altop')) . '
' . (__(" 0 = only color grey", 'altop')),
"id" => $shortname."_bottombar",
"std" => "none",
"options" => array("none","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" => "Social Networks",
"type" => "title",
),
array( "name" => "Twitter",
"type" => "text",
"desc" => __("Type in your Twitter-Username (without slashes!) to create a link to your Twitter Account. The Twitter Logo will be displayed in the head of your site.
You can follow me on Twitter too. Visit my page under twitter.com/t3blogart.", 'altop'),
"id" => $shortname."_twitter",
"std" => ""),
array( "name" => "Facebook",
"type" => "text",
"desc" => __("Type in your Facebook-ID to create a link to your Facebook-Account. The Facebook Logo will be displayed in the head of your site.
If you need help to find your Facebook ID, visit my site. I wrote a little tutorial to use this function.", 'altop'),
"id" => $shortname."_facebook",
"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( "name" => __("Comments Workaround", 'altop'),
"type" => "title",
),
array( "name" => __("Comments Workaround", 'altop'),
"type" => "checkbox",
"desc" => __("Activate this Option to load another comments.php (based on the Kubrick basic comments.php). Older Browser have a problem with the "modern" Comment-Design.", 'altop'),
"id" => $shortname."_work",
"std" => "",
),
array( "type" => "close")
);
function altop_add_admin() {
global $themename, $shortname, $options;
if (isset( $_GET['page']))
if ( $_GET['page'] == basename(__FILE__) ) {
if (isset($_REQUEST['action']))
if ( 'save' == $_REQUEST['action'] ) {
foreach ($options as $value)
if (isset( $value['id'] ) && isset($_REQUEST[ $value['id'] ]) ) {
update_option( $value['id'], $_REQUEST[ $value['id'] ] ); }
foreach ($options as $value) {
if (isset( $value['id'] ) && isset($_REQUEST[ $value['id'] ])) {
update_option( $value['id'], $_REQUEST[ $value['id'] ] ); }
else if( isset( $value['id'] )){ delete_option( $value['id'] ); } }
header("Location: themes.php?page=functions.php&saved=true");
die;
} else if( 'reset' == $_REQUEST['action'] ) {
foreach ($options as $value) {
if (isset($value['id']))
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 (isset($_REQUEST['saved']))
if ( $_REQUEST['saved'] ) echo '
'.$themename.' '.$saved.'
'.$themename.' '.$reset.'
Support Forum.
Update informations and bugfixes are 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) %5s', 'altop'), ++$commentnumber, get_comment_author_link(), get_comment_date(), get_comment_time(), get_comment_reply_link(array_merge( $args, array('depth' => $depth, 'max_depth' => $args['max_depth']))) ); edit_comment_link(__('Edit', 'altop'), ' |', '
'); echo (''); echo ('