?> "

General Settings


","type" => "heading"), array( "name" => "Keywords", "desc" => "Give your site some META keywords



", "id" => $shortname."_keywords", "std" => "Enter keywords seperated with a comma and a space", "type" => "text"), array( "name" => "Description", "desc" => "Give your site a META description



", "id" => $shortname."_description", "std" => "Enter a description for the search engines", "type" => "text"), array( "name" => "Enable RSS Block?", "desc" => "Check to enable the middle RSS block", "id" => $shortname."_show_rssmid", "std" => "true", "type" => "checkbox"), array( "name" => "More News Block Title", "desc" => "Give this block a suitable title", "id" => $shortname."_morenewstxt", "std" => "More News", "type" => "text"), array( "name" => "

Sideblock Settings


", "type" => "heading"), array( "name" => "Enable Block #1?", "desc" => "Check to enable this sideblock", "id" => $shortname."_show_sb1", "std" => "true", "type" => "checkbox"), array( "name" => "Block #1 Title", "desc" => "Give this block a suitable title", "id" => $shortname."_nb1title", "std" => "Sideblock 1", "type" => "text"), array( "name" => "Block #1 Image", "desc" => "Add an image to this block", "id" => $shortname."_nb1img", "std" => "Enter the image URL here", "type" => "text"), array( "name" => "Block #1 Destination", "desc" => "Link this block somewhere else", "id" => $shortname."_nb1link", "std" => "Enter the destination URL here", "type" => "text"), array( "name" => "Block #1 Text", "desc" => "Add some text to this block



", "id" => $shortname."_nb1txt", "std" => "Your sideblock text goes here", "type" => "text"), array( "name" => "Enable Block #2?", "desc" => "Check to enable this sideblock", "id" => $shortname."_show_sb2", "std" => "true", "type" => "checkbox"), array( "name" => "Block #2 Title", "desc" => "Give this block a suitable title", "id" => $shortname."_nb2title", "std" => "Sideblock 2", "type" => "text"), array( "name" => "Block #2 Image", "desc" => "Add an image to this block", "id" => $shortname."_nb2img", "std" => "Enter the image URL here", "type" => "text"), array( "name" => "Block #2 Destination", "desc" => "Link this block somewhere else", "id" => $shortname."_nb2link", "std" => "Enter the destination URL here", "type" => "text"), array( "name" => "Block #2 Text", "desc" => "Add some text to this block



", "id" => $shortname."_nb2txt", "std" => "Your sideblock text goes here", "type" => "text"), array( "name" => "Enable Block #3?", "desc" => "Check to enable this sideblock", "id" => $shortname."_show_sb3", "std" => "true", "type" => "checkbox"), array( "name" => "Block #3 Title", "desc" => "Give this block a suitable title", "id" => $shortname."_nb3title", "std" => "Sideblock 3", "type" => "text"), array( "name" => "Block #3 Image", "desc" => "Add an image to this block", "id" => $shortname."_nb3img", "std" => "Enter the image URL here", "type" => "text"), array( "name" => "Block #3 Destination", "desc" => "Link this block somewhere else", "id" => $shortname."_nb3link", "std" => "Enter the destination URL here", "type" => "text"), array( "name" => "Block #3 Text", "desc" => "Add some text to this block



", "id" => $shortname."_nb3txt", "std" => "Your sideblock text goes here", "type" => "text"), array( "name" => "Enable Block #4?", "desc" => "Check to enable this sideblock", "id" => $shortname."_show_sb4", "std" => "true", "type" => "checkbox"), array( "name" => "Block #4 Title", "desc" => "Give this block a suitable title", "id" => $shortname."_nb4title", "std" => "Sideblock 4", "type" => "text"), array( "name" => "Block #4 Image", "desc" => "Add an image to this block", "id" => $shortname."_nb4img", "std" => "Enter the image URL here", "type" => "text"), array( "name" => "Block #4 Destination", "desc" => "Link this block somewhere else", "id" => $shortname."_nb4link", "std" => "Enter the destination URL here", "type" => "text"), array( "name" => "Block #4 Text", "desc" => "Add some text to this block



", "id" => $shortname."_nb4txt", "std" => "Your sideblock text goes here", "type" => "text"), array( "name" => "Enable Block #5?", "desc" => "Check to enable this sideblock", "id" => $shortname."_show_sb5", "std" => "true", "type" => "checkbox"), array( "name" => "Block #5 Title", "desc" => "Give this block a suitable title", "id" => $shortname."_nb5title", "std" => "Sideblock 5", "type" => "text"), array( "name" => "Block #5 Image", "desc" => "Add an image to this block", "id" => $shortname."_nb5img", "std" => "Enter the image URL here", "type" => "text"), array( "name" => "Block #5 Destination", "desc" => "Link this block somewhere else", "id" => $shortname."_nb5link", "std" => "Enter the destination URL here", "type" => "text"), array( "name" => "Block #5 Text", "desc" => "Add some text to this block



", "id" => $shortname."_nb5txt", "std" => "Your sideblock text goes here", "type" => "text"), array( "name" => "Enable Block #6?", "desc" => "Check to enable this sideblock", "id" => $shortname."_show_sb6", "std" => "true", "type" => "checkbox"), array( "name" => "Block #6 Title", "desc" => "Give this block a suitable title", "id" => $shortname."_nb6title", "std" => "Sideblock 6", "type" => "text"), array( "name" => "Block #6 Image", "desc" => "Add an image to this block", "id" => $shortname."_nb6img", "std" => "Enter the image URL here", "type" => "text"), array( "name" => "Block #6 Destination", "desc" => "Link this block somewhere else", "id" => $shortname."_nb6link", "std" => "Enter the destination URL here", "type" => "text"), array( "name" => "Block #6 Text", "desc" => "Add some text to this block



", "id" => $shortname."_nb6txt", "std" => "Your sideblock text goes here", "type" => "text"), array( "name" => "Enable Block #7?", "desc" => "Check to enable this sideblock", "id" => $shortname."_show_sb7", "std" => "true", "type" => "checkbox"), array( "name" => "Block #7 Title", "desc" => "Give this block a suitable title", "id" => $shortname."_nb7title", "std" => "Sideblock 7", "type" => "text"), array( "name" => "Block #7 Image", "desc" => "Add an image to this block", "id" => $shortname."_nb7img", "std" => "Enter the image URL here", "type" => "text"), array( "name" => "Block #7 Destination", "desc" => "Link this block somewhere else", "id" => $shortname."_nb7link", "std" => "Enter the destination URL here", "type" => "text"), array( "name" => "Block #7 Text", "desc" => "Add some text to this block



", "id" => $shortname."_nb7txt", "std" => "Your sideblock text goes here", "type" => "text"), array( "name" => "Enable Block #8?", "desc" => "Check to enable this sideblock", "id" => $shortname."_show_sb8", "std" => "true", "type" => "checkbox"), array( "name" => "Block #8 Title", "desc" => "Give this block a suitable title", "id" => $shortname."_nb8title", "std" => "Sideblock 8", "type" => "text"), array( "name" => "Block #8 Image", "desc" => "Add an image to this block", "id" => $shortname."_nb8img", "std" => "Enter the image URL here", "type" => "text"), array( "name" => "Block #8 Destination", "desc" => "Link this block somewhere else", "id" => $shortname."_nb8link", "std" => "Enter the destination URL here", "type" => "text"), array( "name" => "Block #8 Text", "desc" => "Add some text to this block



", "id" => $shortname."_nb8txt", "std" => "Your sideblock text goes here", "type" => "text"), array( "name" => "Enable Block #9?", "desc" => "Check to enable this sideblock", "id" => $shortname."_show_sb9", "std" => "true", "type" => "checkbox"), array( "name" => "Block #9 Title", "desc" => "Give this block a suitable title", "id" => $shortname."_nb9title", "std" => "Sideblock 9", "type" => "text"), array( "name" => "Block #9 Image", "desc" => "Add an image to this block", "id" => $shortname."_nb9img", "std" => "Enter the image URL here", "type" => "text"), array( "name" => "Block #9 Destination", "desc" => "Link this block somewhere else", "id" => $shortname."_nb9link", "std" => "Enter the destination URL here", "type" => "text"), array( "name" => "Block #9 Text", "desc" => "Add some text to this block



", "id" => $shortname."_nb9txt", "std" => "Your sideblock text goes here", "type" => "text"), array( "name" => "Enable Block #10?", "desc" => "Check to enable this sideblock", "id" => $shortname."_show_sb10", "std" => "true", "type" => "checkbox"), array( "name" => "Block #10 Title", "desc" => "Give this block a suitable title", "id" => $shortname."_nb10title", "std" => "Sideblock 10", "type" => "text"), array( "name" => "Block #10 Image", "desc" => "Add an image to this block", "id" => $shortname."_nb10img", "std" => "Enter the image URL here", "type" => "text"), array( "name" => "Block #10 Destination", "desc" => "Link this block somewhere else", "id" => $shortname."_nb10link", "std" => "Enter the destination URL here", "type" => "text"), array( "name" => "Block #10 Text", "desc" => "Add some text to this block



", "id" => $shortname."_nb10txt", "std" => "Your sideblock text goes here", "type" => "text"), array( "name" => "

Toolbar Settings


", "type" => "heading"), array( "name" => "Enable alignment options?", "desc" => "Check to enable the left and center alignment options



", "id" => $shortname."_show_align", "std" => "true", "type" => "checkbox"), array( "name" => "Enable RSS option?", "desc" => "Check to enable the RSS option



", "id" => $shortname."_show_rss", "std" => "true", "type" => "checkbox"), array( "name" => "Enable Technorati option?", "desc" => "Check to enable the Technorati bookmark option



", "id" => $shortname."_show_technorati", "std" => "true", "type" => "checkbox"), array( "name" => "Enable YouTube option?", "desc" => "Check to enable the YouTube option", "id" => $shortname."_show_youtube", "std" => "true", "type" => "checkbox"), array( "name" => "YouTube ID", "desc" => "Enter your YouTube id
(case sensitive)



", "id" => $shortname."_youtubechannel", "std" => "Enter your YouTube username", "type" => "text"), array( "name" => "Enable Twitter option?", "desc" => "Check to enable the Twitter option", "id" => $shortname."_show_twitter", "std" => "true", "type" => "checkbox"), array( "name" => "Twitter ID", "desc" => "Enter your Twitter id
(case sensitive)



", "id" => $shortname."_twitterchannel", "std" => "Enter your Twitter id", "type" => "text"), array( "name" => "Enable MySpace option?", "desc" => "Check to enable the MySpace option", "id" => $shortname."_show_myspace", "std" => "true", "type" => "checkbox"), array( "name" => "MySpace ID", "desc" => "Enter your MySpace id
(case sensitive)



", "id" => $shortname."_myspacechannel", "std" => "Enter your MySpace id", "type" => "text"), array( "name" => "Enable Flickr option?", "desc" => "Check to enable the Flickr option", "id" => $shortname."_show_flickr", "std" => "true", "type" => "checkbox"), array( "name" => "Flickr ID", "desc" => "Enter your Flickr id
(case sensitive)", "id" => $shortname."_flickrchannel", "std" => "Enter your Flickr id", "type" => "text"), array( "name" => "

Footer Settings


", "type" => "heading"), array( "name" => "Copyright Years", "desc" => "Enter your years of copyright.
(EG: 2004 - 2008)



", "id" => $shortname."_txt_copyyear", "std" => "2004 - 2008", "type" => "text"), array( "name" => "Your Company Link", "desc" => "Enter the full URL you want your company link to link to



", "id" => $shortname."_txt_copyurl", "std" => "http://www.yourcompany.com", "type" => "text"), array( "name" => "Your Company Name", "desc" => "Enter the company name that will appear within your footer



", "id" => $shortname."_txt_copylink", "std" => "Your Company Name, LLC", "type" => "text"), array( "name" => "Enable 'Back to the Top' link?", "desc" => "Check to show the top jump link



", "id" => $shortname."_show_toplink", "std" => "true", "type" => "checkbox"), array( "name" => "Enable MooFX?", "desc" => "Check to enable MooFX in the above link



", "id" => $shortname."_show_moofx", "std" => "true", "type" => "checkbox"), array( "name" => "Enable Credit Links?", "desc" => "Check to show the credit links within your footer", "id" => $shortname."_show_credits", "std" => "true", "type" => "checkbox"), ); function mytheme_add_admin() { global $themename, $shortname, $options; if ( $_GET['page'] == basename(__FILE__) ) { if ( 'save' == $_REQUEST['action'] ) { foreach ($options as $value) { if($value['type'] != 'multicheck'){ update_option( $value['id'], $_REQUEST[ $value['id'] ] ); }else{ foreach($value['options'] as $mc_key => $mc_value){ $up_opt = $value['id'].'_'.$mc_key; update_option($up_opt, $_REQUEST[$up_opt] ); } } } foreach ($options as $value) { if($value['type'] != 'multicheck'){ if( isset( $_REQUEST[ $value['id'] ] ) ) { update_option( $value['id'], $_REQUEST[ $value['id'] ] ); } else { delete_option( $value['id'] ); } }else{ foreach($value['options'] as $mc_key => $mc_value){ $up_opt = $value['id'].'_'.$mc_key; if( isset( $_REQUEST[ $up_opt ] ) ) { update_option( $up_opt, $_REQUEST[ $up_opt ] ); } else { delete_option( $up_opt ); } } } } header("Location: themes.php?page=functions.php&saved=true"); die; } else if( 'reset' == $_REQUEST['action'] ) { foreach ($options as $value) { if($value['type'] != 'multicheck'){ delete_option( $value['id'] ); }else{ foreach($value['options'] as $mc_key => $mc_value){ $del_opt = $value['id'].'_'.$mc_key; delete_option($del_opt); } } } header("Location: themes.php?page=functions.php&reset=true"); die; } } add_theme_page($themename." Control Panel", "$themename Control Panel", 'edit_themes', basename(__FILE__), 'mytheme_admin'); } function mytheme_admin() { global $themename, $shortname, $options; if ( $_REQUEST['saved'] ) echo '

'.$themename.' settings saved.

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

'.$themename.' settings reset.

'; ?>
" /> $option) { $radio_setting = get_settings($value['id']); if($radio_setting != ''){ if ($key == get_settings($value['id']) ) { $checked = "checked=\"checked\""; } else { $checked = ""; } }else{ if($key == $value['std']){ $checked = "checked=\"checked\""; }else{ $checked = ""; } }?> />
/> $option) { $ss_key = $value['id'] . '_' . $key; $checkbox_setting = get_settings($ss_key); if($checkbox_setting != ''){ if (get_settings($ss_key) ) { $checked = "checked=\"checked\""; } else { $checked = ""; } }else{ if($key == $value['std']){ $checked = "checked=\"checked\""; }else{ $checked = ""; } }?> />


COPYRIGHT © 2007 - StyleWP. All rights reserved.
An InType Media production.

:   '', 'after_widget' => '
', 'before_title' => '', )); $bm_trackbacks = array(); $bm_comments = array(); function split_comments( $source ) { if ( $source ) foreach ( $source as $comment ) { global $bm_trackbacks; global $bm_comments; if ( $comment->comment_type == 'trackback' || $comment->comment_type == 'pingback' ) { $bm_trackbacks[] = $comment; } else { $bm_comments[] = $comment; } } } ?>