"open"), array( "id" => "arclite_imageless", "default" => "no", "type" => "arclite_imageless"), array( "id" => "arclite_3col", "default" => "no", "type" => "arclite_3col"), array( "id" => "arclite_jquery", "default" => "yes", "type" => "arclite_jquery"), array( "id" => "arclite_meta", "default" => "", "type" => "arclite_meta"), array( "id" => "arclite_header", "default" => "default", "type" => "arclite_header"), array( "id" => "arclite_logo", "default" => "no", "type" => "arclite_logo"), array( "id" => "arclite_sidebarpos", "default" => "right", "type" => "arclite_sidebarpos"), array( "id" => "arclite_sidebarcat", "default" => "yes", "type" => "arclite_sidebarcat"), array( "id" => "arclite_widgetbg", "default" => "", "type" => "arclite_widgetbg"), array( "id" => "arclite_contentbg", "default" => "", "type" => "arclite_contentbg"), array( "id" => "arclite_indexposts", "default" => "full", "type" => "arclite_indexposts"), array( "id" => "arclite_topnav", "default" => "pages", "type" => "arclite_topnav"), array( "id" => "arclite_search", "default" => "yes", "type" => "arclite_search"), array( "id" => "arclite_footer", "default" => "", "type" => "arclite_footer"), array( "id" => "arclite_css", "default" => "", "type" => "arclite_css"), array( "id" => "arclite_headercolor", "default" => "261c13", "type" => "arclite_headercolor"), array("type" => "close") ); $uploadpath = wp_upload_dir(); if ($uploadpath['baseurl']=='') $uploadpath['baseurl'] = get_bloginfo('siteurl').'/wp-content/uploads'; function arclite_options() { global $options, $uploadpath; if ('arclite_save'== $_REQUEST['action'] ) { foreach ($options as $value) { if( !isset( $_REQUEST[ $value['id'] ] ) ) { } else { update_option( $value['id'], stripslashes($_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 = $uploadpath['basedir'].'/'; move_uploaded_file($_FILES["file-logo"]["tmp_name"], $directory . $_FILES["file-logo"]["name"]); update_option('arclite_logoimage', $uploadpath['baseurl']. "/". $_FILES["file-logo"]["name"]); } if ($_FILES["file-header"]["type"]){ $directory = $uploadpath['basedir'].'/'; move_uploaded_file($_FILES["file-header"]["tmp_name"], $directory . $_FILES["file-header"]["name"]); update_option('arclite_headerimage', $uploadpath['baseurl']. "/". $_FILES["file-header"]["name"]); } if ($_FILES["file-header2"]["type"]){ $directory = $uploadpath['basedir'].'/'; move_uploaded_file($_FILES["file-header2"]["tmp_name"], $directory . $_FILES["file-header2"]["name"]); update_option('arclite_headerimage2', $uploadpath['baseurl']. "/". $_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, $uploadpath; ?>

Arclite homepage


  

  

  

  

  
  
'; } ?>

'; } ?> Change write permissions with CHMOD 755 or 777','arclite'), $uploadpath['baseurl']); ?>
   '; } ?> Change write permissions with CHMOD 755 or 777','arclite'), $uploadpath['baseurl']); ?>

  
  




Examples:

/* Set a fixed page width (960px) */
.block-content{ width: 960px; max-width: 960px; }

/* Set fluid page width (not recommended) */
.block-content{ width: 95%; max-width: 95%; }

/* Hide post information bar */
.post p.post-date, .post p.post-author{ display: none; }

/* Use Windows Arial style fonts, instead of Mac's Lucida */
body, input, textarea, select, h1, h2, h6,
.post h3, .box .titlewrap h4{ font-family: Arial, Helvetica; }

/* Make text logo/headline smaller */
#pagetitle{ font-size: 75%; }

$value): if ( sanitize_title($value['name']) == $index): $index = $key; break; endif; endforeach; endif; $sidebars_widgets = wp_get_sidebars_widgets(); if (empty($wp_registered_sidebars[$index]) || !array_key_exists($index, $sidebars_widgets) || !is_array($sidebars_widgets[$index]) || empty($sidebars_widgets[$index])) return false; else return true; } // register sidebars if ( function_exists('register_sidebar')) { register_sidebar(array( 'name' => 'Default sidebar', 'id' => 'sidebar-1', 'before_widget' => '
  • ', 'after_widget' => '
  • ', 'before_title' => '

    ', 'after_title' => '

    ' )); register_sidebar(array( 'name' => 'Footer', 'id' => 'sidebar-2', 'before_widget' => '
  • ', 'after_widget' => '
  • ', 'before_title' => '
    ', 'after_title' => '
    ' )); register_sidebar(array( 'name' => 'Secondary sidebar', 'id' => 'sidebar-3', 'before_widget' => '
  • ', 'after_widget' => '
  • ', 'before_title' => '

    ', 'after_title' => '

    ' )); } // list pings function list_pings($comment, $args, $depth) { $GLOBALS['comment'] = $comment; ?>
  • comment_type == 'pingback' || $comment->comment_type == 'trackback') { ?>
  • comment_type == 'trackback') _e("Trackback:","arclite"); else _e("Pingback:","arclite"); ?>

  • id="comment-">

    '.get_comment_author().''; else: $authorlink=''.get_comment_author().''; endif; printf(__('%s by %s on %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))); } ?>

    comment_approved == '0') : ?>

    is added automatically } } ?>