"open"), array( "id" => "arclite_imageless", "default" => "no", "type" => "arclite_imageless"), 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") ); 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_option('siteurl'). "/wp-content/themes/". get_option('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_option('siteurl'). "/wp-content/themes/". get_option('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_option('siteurl'). "/wp-content/themes/". get_option('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; ?>

Arclite homepage


  

  

  

  
  
'; } ?>
'; } ?>
   '; } ?>

  
  




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; }

/* Set footer to fit 3 widgets (instead of 4) */
ul#footer-widgets li.widget{ width: 33%; }

$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; } if ( function_exists('register_sidebar')) { register_sidebar(array( 'name' => 'Default sidebar', 'before_widget' => '
  • ', 'after_widget' => '
  • ', 'before_title' => '

    ', 'after_title' => '

    ' )); register_sidebar(array( 'name' => 'Footer', 'before_widget' => '
  • ', 'after_widget' => '
  • ', 'before_title' => '
    ', 'after_title' => '
    ' )); } function list_pings($comment, $args, $depth) { $GLOBALS['comment'] = $comment; ?>
  • id="comment-">

    '.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))); } ?> |

    comment_approved == '0') : ?>