"Welcome",
"type" => "title"),
array( "type" => "open"),
/*array( "name" => __('Layout settings', 'Luno'),
"id" => $shortname."_layout_settings",
"options" => array(__('Original','Luno'), __('Wider','Luno')),
"std" => __('Original','Luno'),
"desc" => __('','Luno'),
"type" => "select"),*/
array( "name" => __('Cufón settings', 'Luno'),
"desc" => __('Show some texts in your blog using Cufón¹ (blog title, tagline, post titles, page titles, etc.).
Select Extra² (or Disabled) for languages with accents and special characters.','Luno'),
"id" => $shortname."_cufon_settings",
"options" => array(__('Enabled','Luno'), __('Disabled','Luno'), __('Extra','Luno'), __('CSS3 Font-face (lightweight)')),
"std" => __('Enabled','Luno'),
"type" => "select"),
/* array( "name" => __('Christmas Joy','Luno'),
"desc" => __('Because its Christmas! Happy Holidays and thanks for downloading Luno theme','Luno'),
"id" => $shortname."_christmas_joy",
"type" => "checkbox",
"std" => "false"),*/
array( "name" => __('Disable comments on pages','Luno'),
"desc" => __('Check this box if you would like to DISABLE COMMENTS on pages','Luno'),
"id" => $shortname."_disable_comments",
"type" => "checkbox",
"std" => "false"),
/*array( "name" => __('Custom image header', 'Luno'),
"id" => $shortname."_top_header_image",
"options" => array( __('Disabled','Luno'), __('Enabled','Luno') ),
"std" => __('Disabled','Luno'),
"desc" => '',
"type" => "select"),
array( "name" => __('Header image height in pixels','Luno'),
"desc" => '',
"id" => $shortname."_top_header_image_height",
"type" => "header_image_height",
"std" => "56"),
array( "name" => __('Header image width in pixels','Luno'),
"desc" => '',
"id" => $shortname."_top_header_image_width",
"type" => "header_image_width",
"std" => "600"),*/
array( "name" => __('About author feature', 'Luno'),
"desc" => __('Add information about post author','Luno'),
"id" => $shortname."_post_author",
"options" => array(__('Disabled','Luno'), __('Main page','Luno'), __('Single page','Luno'), __('Both','Luno')),
"std" => __('Disabled','Luno'),
"type" => "select"),
array( "name" => __('Enjoy this post feature','Luno'),
"desc" => __('Check this box if you would like to ACTIVATE Enjoy this post feature','Luno'),
"id" => $shortname."_enjoy_post",
"type" => "checkbox",
"std" => "false"),
array( "name" => __('Use basic wordpress pages/categories in front menu','Luno'),
"desc" => __('I don\'t want those awesome WP3 features.','Luno'),
"id" => $shortname."_use_wp_menus",
"type" => "checkbox",
"std" => ""),
array( "name" => __('Show categories on front menu','Luno'),
"desc" => __('Check this box if you would like to SHOW CATEGORIES instead pages on front menu','Luno'),
"id" => $shortname."_show_categories",
"type" => "checkbox",
"std" => "false"),
array( "name" => __('Exclude pages from front menu','Luno'),
"desc" => __('Type the pages id in the box below. Example input: 5,19,24
','Luno'),
"id" => $shortname."_exclude_pages",
"type" => "exclude_pages",
"std" => ""),
array( "name" => __('Exclude categories from front menu','Luno'),
"desc" => __('Type the categories id in the box below. Example input: 5,19,24
','Luno'),
"id" => $shortname."_exclude_categories",
"type" => "exclude_categories",
"std" => ""),
array( "name" => __('Remove home button','Luno'),
"desc" => __('Remove home button from front menu','Luno'),
"id" => $shortname."_remove_homebtn",
"type" => "checkbox",
"std" => "false"),
/*array( "name" => __('Remove search box','Luno'),
"desc" => __('Remove search box and expand space for front menu','Luno'),
"id" => $shortname."_remove_searchbox",
"type" => "checkbox",
"std" => "false"),*/
array( "name" => __('Remove tags from posts','Luno'),
"desc" => __('Show only categories in post footer','Luno'),
"id" => $shortname."_disable_tags",
"type" => "checkbox",
"std" => "false"),
/*array( "name" => __('Remove RSS badge','Luno'),
"desc" => __('Remove RSS badge from blog header','Luno'),
"id" => $shortname."_remove_rss",
"type" => "checkbox",
"std" => "false"),*/
array( "name" => __('Google Custom Search Engine','Luno'),
"desc" => __('Find name="cx"
in the Search box code of Google CSE, and type the value
here.','Luno'),
"id" => $shortname."_google_search_code",
"type" => "text",
"std" => ""),
array( "name" => __('Sidebox settings', 'Luno'),
"id" => $shortname."_sidebox_settings",
"options" => array(__('Enabled','Luno'), __('Disabled','Luno'), __('Show only date','Luno'), __('Show only in posts','Luno'), __('Last two options together','Luno')),
"std" => __('Enabled','Luno'),
"desc" => '',
"type" => "select"),
/*array( "name" => __('Sidebar settings', 'Luno'),
"id" => $shortname."_sidebar_settings",
"desc" => __('Two sidebars option is available on Wider layout only','Luno'),
"options" => array(__('One sidebar','Luno'), __('Two sidebars','Luno')),
"std" => __('One sidebar','Luno'),
"type" => "select"),*/
array( "name" => __('Custom CSS', 'Luno'),
"desc" => __('Put your custom css code here','Luno'),
"id" => $shortname."_custom_css",
"type" => "textarea",
"std" => ""),
array( "name" => __('AdSense', 'Luno'),
"desc" => __('Copy your AdSense code or any other ADS service and paste it here.
Usually 468x60 text or image ad but you can use anything ad format you want.','Luno'),
"id" => $shortname."_adsense_spot",
"type" => "textarea",
"std" => ""),
array( "name" => __('Additional header content', 'Luno'),
"desc" => __('Additional header content, including scripts, etc','Luno'),
"id" => $shortname."_header_content",
"type" => "textarea",
"std" => ""),
array( "name" => __('Additional footer content', 'Luno'),
"desc" => __('Additional footer content for Google Analytics or any other service','Luno'),
"id" => $shortname."_footer_content",
"type" => "textarea",
"std" => ""),
array( "type" => "close")
);
// ADMIN PAGE FUNCTIONS
function Luno_admin() {
global $themename, $shortname, $options;
if ( nullit($_GET['page']) == basename(__FILE__) ) {
if ( 'save' == nullit($_REQUEST['action']) ) {
foreach ($options as $value) {
update_option( @$value['id'], Luno_stripslash_check(@$_REQUEST[ $value['id'] ]) ); }
foreach ($options as $value) {
if( isset( $_REQUEST[ @$value['id'] ] ) ) {
update_option( @$value['id'], Luno_stripslash_check($_REQUEST[ $value['id'] ]) );
} else {
delete_option( @$value['id'] );
}
}
header("Location: " . admin_url( 'themes.php?page=functions.php&saved=true' ));
} else if( 'reset' == nullit($_REQUEST['action']) ) {
foreach ($options as $value) {
delete_option( @$value['id'] ); }
header("Location: " . admin_url( 'themes.php?page=functions.php&reset=true' ));
}
}
add_theme_page(__('Luno Settings','Luno'), __('Luno Settings','Luno'), 'edit_themes', basename(__FILE__), 'Luno_admin_page');
}
// ADMIN PAGE LAYOUT
function Luno_admin_page() {
global $themename, $themeversion, $shortname, $options, $lw_top_header_image, $top_header_image_height, $lw_show_categories;
if ( nullit($_REQUEST['saved']) ) { echo '
'.$themename.' '; _e('settings saved','Luno'); echo '.
'.$themename.' '; _e('settings reset','Luno'); echo '.