"open"), array( "name" => __("Disable all design-related images","arclite"), "desc" => __("(Full CSS layout, no background images)","arclite"), "id" => "arclite_imageless", "default" => "no", "type" => "arclite_imageless"), array( "name" => __("Use jQuery effects","arclite"), "desc" => __("(for testing purposes only, you shouldnt change this)","arclite"), "id" => "arclite_jquery", "default" => "yes", "type" => "arclite_jquery"), array( "name" => __("Homepage meta keywords","arclite"), "desc" => __("(Separate with commas. Tags are used as keywords on other pages. Leave empty if you are using a SEO plugin)","arclite"), "id" => "arclite_meta", "default" => "", "type" => "arclite_meta"), array( "name" => __("Header background","arclite"), "id" => "arclite_header", "default" => "default", "type" => "arclite_header"), array( "name" => __("Logo image","arclite"), "desc" => __("Upload a custom logo image","arclite"), "id" => "arclite_logo", "default" => "no", "type" => "arclite_logo"), array( "name" => __("Sidebar position","arclite"), "id" => "arclite_sidebarpos", "default" => "right", "type" => "arclite_sidebarpos"), array( "name" => __("Show theme-default category block","arclite"), "id" => "arclite_sidebarcat", "default" => "yes", "type" => "arclite_sidebarcat"), array( "name" => __("Top navigation shows","arclite"), "id" => "arclite_topnav", "default" => "pages", "type" => "arclite_topnav"), array( "name" => __("Show search","arclite"), "id" => "arclite_search", "default" => "yes", "type" => "arclite_search"), array( "name" => __("Hide Home navigation link","arclite"), "desc" => __("(Select YES if you're using a static page as your hompage)","arclite"), "id" => "arclite_hidehome", "default" => "no", "type" => "arclite_hidehome"), array( "name" => __("Add content","arclite"), "desc" => __("(HTML allowed)","arclite"), "id" => "arclite_footer", "default" => "", "type" => "arclite_footer"), array( "name" => __("Modify anything related to design using simple CSS","arclite"), "desc" => __("(Avoid modifying theme files and use this option to preserve changes after update)","arclite"), "id" => "arclite_css", "default" => "", "type" => "arclite_css"), array( "type" => "close") ); function arclite_options() { global $options; if ( 'save' == $_REQUEST['action'] ) { foreach ($options as $value) { if( !isset( $_REQUEST[ $value['id'] ] ) ) { } else { update_option( $value['id'], $_REQUEST[ $value['id'] ] ); } } if(stristr($_SERVER['REQUEST_URI'],'&saved=true')) { $location = $_SERVER['REQUEST_URI']; } else { $location = $_SERVER['REQUEST_URI'] . "&saved=true"; } if ($_FILES["file-logo"]["type"]){ $directory = dirname(__FILE__) . "/upload/"; move_uploaded_file($_FILES["file-logo"]["tmp_name"], $directory . $_FILES["file-logo"]["name"]); update_option('arclite_logoimage', get_settings('siteurl'). "/wp-content/themes/". get_settings('template')."/upload/". $_FILES["file-logo"]["name"]); } if ($_FILES["file-header"]["type"]){ $directory = dirname(__FILE__) . "/upload/"; move_uploaded_file($_FILES["file-header"]["tmp_name"], $directory . $_FILES["file-header"]["name"]); update_option('arclite_headerimage', get_settings('siteurl'). "/wp-content/themes/". get_settings('template')."/upload/". $_FILES["file-header"]["name"]); } if ($_FILES["file-header2"]["type"]){ $directory = dirname(__FILE__) . "/upload/"; move_uploaded_file($_FILES["file-header2"]["tmp_name"], $directory . $_FILES["file-header2"]["name"]); update_option('arclite_headerimage2', get_settings('siteurl'). "/wp-content/themes/". get_settings('template')."/upload/". $_FILES["file-header2"]["name"]); } header("Location: $location"); die; } // set default options foreach ($options as $default) { if(get_option($default['id'])=="") { update_option($default['id'],$default['default']); } } /* // delete all options foreach ($options as $default) { delete_option($default['id'],$default['default']); } */ // add_menu_page('Arclite', __('Arclite theme','arclite'), 10, 'arclite-settings', 'arclite_admin'); add_theme_page(__('Arclite settings','arclite'), __('Arclite settings','arclite'), 10, 'arclite-settings', 'arclite_admin'); } function arclite_admin() { global $options; ?>
'Default sidebar', 'before_widget' => '
'.get_comment_author().''; else: $authorlink=''.get_comment_author().''; endif; printf(__('%s by %s at %s', 'arclite'), '#'.++$commentcount.'', $authorlink, get_comment_time(__('F jS, Y', 'arclite')), get_comment_time(__('H:i', 'arclite'))); ?>
'comment-reply', 'depth' => $depth, 'max_depth' => $args['max_depth'], 'reply_text' => ''.__('Reply','arclite').''.$my_comment_count))) ?> |