'column1', 'before_widget' => '
', 'before_title' => 'comment_count > 1 ) : ?>“”
—
Grab an Atom feed:
H4
tag."),
array( "name" => "About Blurb",
"id" => $dojomenu_shortname."_about_blurb",
"type" => "textarea",
"std" => "To customize this about blurb, log into the admin area, and go to the \"Dojo Options\" page in the Design section. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.",
"how" => "HTML is allowed, but be careful that you don't break your layout with bad code. This will be wrapped in a P
tag."),
array( "name" => "Use Custom Styles",
"id" => $dojomenu_shortname."_use_custom_styles",
"type" => "checkbox",
"std" => "false",
"how" => "Load the custom stylesheets in addition to the default ones."),
array( "name" => "Show Byline by Title",
"id" => $dojomenu_shortname."_byline_in_title",
"type" => "checkbox",
"std" => "false",
"how" => "Put the byline with the author name and date by the post title instead of at the bottom."),
array( "name" => "Disable Categories",
"id" => $dojomenu_shortname."_disable_categories",
"type" => "checkbox",
"std" => "false",
"how" => "Hide categories and just display tags."),
array( "name" => "Use Custom Copyright",
"id" => $dojomenu_shortname."_use_custom_copyright",
"type" => "checkbox",
"std" => "false",
"how" => "Replace the default copyright statement with the custom one."),
array( "name" => "Custom Copyright",
"id" => $dojomenu_shortname."_custom_copyright",
"type" => "text",
"std" => "This weblog is licensed under a Creative Commons License.",
"how" => "This will be wrapped in a P
tag.")
);
function mytheme_add_admin() {
global $dojomenu_themename, $dojomenu_shortname, $dojomenu_options;
if ( $_GET['page'] == basename(__FILE__) ) {
if ( 'save' == $_REQUEST['action'] ) {
foreach ($dojomenu_options as $value) {
update_option( $value['id'], $_REQUEST[ $value['id'] ] ); }
foreach ($dojomenu_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 ($dojomenu_options as $value) {
delete_option( $value['id'] ); }
header("Location: themes.php?page=functions.php&reset=true");
die;
}
}
add_theme_page($dojomenu_themename." Options", "$dojomenu_themename Options", 'edit_themes', basename(__FILE__), 'mytheme_admin');
}
function mytheme_admin() {
global $dojomenu_themename, $dojomenu_shortname, $dojomenu_options;
if ( $_REQUEST['saved'] ) echo ''.$dojomenu_themename.' settings saved.
'.$dojomenu_themename.' settings reset.
%s says:'), get_comment_author_link()) ?>
comment_approved == '0') : // If comment is not approved ?>Posted on . '(Reply)', 'depth' => $depth, 'max_depth' => $args['max_depth']))) ?>