"; if ( !is_home() || is_paged() ) { ?>
  • \n"; } function veryplaintxt_admin_hCard() { global $wpdb, $user_info; $user_info = get_userdata(1); echo '' . $user_info->first_name . ' ' . $user_info->last_name . ''; } function veryplaintxt_author_hCard() { global $wpdb, $authordata; echo '' . get_the_author() . ''; } function veryplaintxt_body_class( $print = true ) { global $wp_query, $current_user; $c = array('wordpress'); veryplaintxt_date_classes(time(), $c); is_home() ? $c[] = 'home' : null; is_archive() ? $c[] = 'archive' : null; is_date() ? $c[] = 'date' : null; is_search() ? $c[] = 'search' : null; is_paged() ? $c[] = 'paged' : null; is_attachment() ? $c[] = 'attachment' : null; is_404() ? $c[] = 'four04' : null; if ( is_single() ) { the_post(); $c[] = 'single'; if ( isset($wp_query->post->post_date) ) veryplaintxt_date_classes(mysql2date('U', $wp_query->post->post_date), $c, 's-'); foreach ( (array) get_the_category() as $cat ) $c[] = 's-category-' . $cat->category_nicename; $c[] = 's-author-' . get_the_author_login(); rewind_posts(); } else if ( is_author() ) { $author = $wp_query->get_queried_object(); $c[] = 'author'; $c[] = 'author-' . $author->user_nicename; } else if ( is_category() ) { $cat = $wp_query->get_queried_object(); $c[] = 'category'; $c[] = 'category-' . $cat->category_nicename; } else if ( is_page() ) { the_post(); $c[] = 'page'; $c[] = 'page-author-' . get_the_author_login(); rewind_posts(); } if ( $current_user->ID ) $c[] = 'loggedin'; $c = join(' ', apply_filters('body_class', $c)); return $print ? print($c) : $c; } function veryplaintxt_post_class( $print = true ) { global $post, $veryplaintxt_post_alt; $c = array('hentry', "p$veryplaintxt_post_alt", $post->post_type, $post->post_status); $c[] = 'author-' . get_the_author_login(); foreach ( (array) get_the_category() as $cat ) $c[] = 'category-' . $cat->category_nicename; veryplaintxt_date_classes(mysql2date('U', $post->post_date), $c); if ( ++$veryplaintxt_post_alt % 2 ) $c[] = 'alt'; $c = join(' ', apply_filters('post_class', $c)); return $print ? print($c) : $c; } $veryplaintxt_post_alt = 1; function veryplaintxt_comment_class( $print = true ) { global $comment, $post, $veryplaintxt_comment_alt; $c = array($comment->comment_type); if ( $comment->user_id > 0 ) { $user = get_userdata($comment->user_id); $c[] = "byuser commentauthor-$user->user_login"; if ( $comment->user_id === $post->post_author ) $c[] = 'bypostauthor'; } veryplaintxt_date_classes(mysql2date('U', $comment->comment_date), $c, 'c-'); if ( ++$veryplaintxt_comment_alt % 2 ) $c[] = 'alt'; $c[] = "c$veryplaintxt_comment_alt"; if ( is_trackback() ) { $c[] = 'trackback'; } $c = join(' ', apply_filters('comment_class', $c)); return $print ? print($c) : $c; } function veryplaintxt_date_classes($t, &$c, $p = '') { $t = $t + (get_settings('gmt_offset') * 3600); $c[] = $p . 'y' . gmdate('Y', $t); $c[] = $p . 'm' . gmdate('m', $t); $c[] = $p . 'd' . gmdate('d', $t); $c[] = $p . 'h' . gmdate('h', $t); } function veryplaintxt_other_cats($glue) { $current_cat = single_cat_title('', false); $separator = "\n"; $cats = explode($separator, get_the_category_list($separator)); foreach ( $cats as $i => $str ) { if ( strstr($str, ">$current_cat<") ) { unset($cats[$i]); break; } } if ( empty($cats) ) return false; return trim(join($glue, $cats)); } function widget_veryplaintxt_search($args) { extract($args); ?>

    except the home.', 'veryplaintxt'); ?>

    '

    ', 'title_after'=>'

    ', 'show_images'=>true)); } else { global $wpdb; $cats = $wpdb->get_results(" SELECT DISTINCT link_category, cat_name, show_images, show_description, show_rating, show_updated, sort_order, sort_desc, list_limit FROM `$wpdb->links` LEFT JOIN `$wpdb->linkcategories` ON (link_category = cat_id) WHERE link_visible = 'Y' AND list_limit <> 0 ORDER BY cat_name ASC", ARRAY_A); if ($cats) { foreach ($cats as $cat) { $orderby = $cat['sort_order']; $orderby = (bool_from_yn($cat['sort_desc'])?'_':'') . $orderby; echo '
  • ' . $cat['cat_name'] . "

    \n\t
      \n"; get_links($cat['link_category'], '
    • ',"
    • ","\n", bool_from_yn($cat['show_images']), $orderby, bool_from_yn($cat['show_description']), bool_from_yn($cat['show_rating']), $cat['list_limit'], bool_from_yn($cat['show_updated'])); echo "\n\t
    \n
  • \n"; } } } } function veryplaintxt_widgets_init() { if ( !function_exists('register_sidebars') ) return; $p = array( 'before_title' => "

    ", 'after_title' => "

    \n", ); register_sidebars(1, $p); register_sidebar_widget(__('Search', 'veryplaintxt'), 'widget_veryplaintxt_search', null, 'search'); unregister_widget_control('search'); register_sidebar_widget(__('Meta', 'veryplaintxt'), 'widget_veryplaintxt_meta', null, 'meta'); unregister_widget_control('meta'); register_sidebar_widget(__('Links', 'veryplaintxt'), 'widget_veryplaintxt_links', null, 'links'); unregister_widget_control('links'); register_sidebar_widget(array('Home Link', 'widgets'), 'widget_veryplaintxt_homelink', null, 'homelink'); register_widget_control(array('Home Link', 'widgets'), 'widget_veryplaintxt_homelink_control', 300, 125, 'homelink'); register_sidebar_widget(array('RSS Links', 'widgets'), 'widget_veryplaintxt_rsslinks', null, 'rsslinks'); register_widget_control(array('RSS Links', 'widgets'), 'widget_veryplaintxt_rsslinks_control', 300, 90, 'rsslinks'); } function veryplaintxt_add_admin() { if ( $_GET['page'] == basename(__FILE__) ) { if ( 'save' == $_REQUEST['action'] ) { update_option( 'veryplaintxt_basefontsize', $_REQUEST['vp_basefontsize'] ); update_option( 'veryplaintxt_basefontfamily', $_REQUEST['vp_basefontfamily'] ); update_option( 'veryplaintxt_headingfontfamily', $_REQUEST['vp_headingfontfamily'] ); update_option( 'veryplaintxt_posttextalignment', $_REQUEST['vp_posttextalignment'] ); update_option( 'veryplaintxt_layoutwidth', $_REQUEST['vp_layoutwidth'] ); update_option( 'veryplaintxt_maxwidth', $_REQUEST['vp_maxwidth'] ); update_option( 'veryplaintxt_minwidth', $_REQUEST['vp_minwidth'] ); update_option( 'veryplaintxt_sidebarposition', $_REQUEST['vp_sidebarposition'] ); update_option( 'veryplaintxt_sidebartextalignment', $_REQUEST['vp_sidebartextalignment'] ); if( isset( $_REQUEST['vp_basefontsize'] ) ) { update_option( 'veryplaintxt_basefontsize', $_REQUEST['vp_basefontsize'] ); } else { delete_option( 'veryplaintxt_basefontsize' ); } if( isset( $_REQUEST['vp_basefontfamily'] ) ) { update_option( 'veryplaintxt_basefontfamily', $_REQUEST['vp_basefontfamily'] ); } else { delete_option( 'veryplaintxt_basefontfamily' ); } if( isset( $_REQUEST['vp_headingfontfamily'] ) ) { update_option( 'veryplaintxt_headingfontfamily', $_REQUEST['vp_headingfontfamily'] ); } else { delete_option('veryplaintxt_headingfontfamily'); } if( isset( $_REQUEST['vp_posttextalignment' ] ) ) { update_option( 'veryplaintxt_posttextalignment', $_REQUEST['vp_posttextalignment'] ); } else { delete_option('veryplaintxt_posttextalignment'); } if( isset( $_REQUEST['vp_layoutwidth' ] ) ) { update_option( 'veryplaintxt_layoutwidth', $_REQUEST['vp_layoutwidth'] ); } else { delete_option('veryplaintxt_layoutwidth'); } if( isset( $_REQUEST['vp_maxwidth' ] ) ) { update_option( 'veryplaintxt_maxwidth', $_REQUEST['vp_maxwidth'] ); } else { delete_option('veryplaintxt_maxwidth'); } if( isset( $_REQUEST['vp_minwidth' ] ) ) { update_option( 'veryplaintxt_minwidth', $_REQUEST['vp_minwidth'] ); } else { delete_option('veryplaintxt_minwidth'); } if( isset( $_REQUEST['vp_sidebarposition' ] ) ) { update_option( 'veryplaintxt_sidebarposition', $_REQUEST['vp_sidebarposition'] ); } else { delete_option('veryplaintxt_sidebarposition'); } if( isset( $_REQUEST['vp_sidebartextalignment' ] ) ) { update_option( 'veryplaintxt_sidebartextalignment', $_REQUEST['vp_sidebartextalignment'] ); } else { delete_option('veryplaintxt_sidebartextalignment'); } header("Location: themes.php?page=functions.php&saved=true"); die; } else if( 'reset' == $_REQUEST['action'] ) { delete_option('veryplaintxt_basefontsize'); delete_option('veryplaintxt_basefontfamily'); delete_option('veryplaintxt_headingfontfamily'); delete_option('veryplaintxt_posttextalignment'); delete_option('veryplaintxt_layoutwidth'); delete_option('veryplaintxt_maxwidth'); delete_option('veryplaintxt_minwidth'); delete_option('veryplaintxt_sidebarposition'); delete_option('veryplaintxt_sidebartextalignment'); header("Location: themes.php?page=functions.php&reset=true"); die; } add_action('admin_head', 'veryplaintxt_admin_head'); } add_theme_page("veryplaintxt Options", "veryplaintxt Options", 'edit_themes', basename(__FILE__), 'veryplaintxt_admin'); } function veryplaintxt_admin_head() { ?>

    View site ›', 'veryplaintxt'), get_bloginfo('home') . '/'); ?>

    veryplaintxt theme. You can customize this theme with the options below. You must click on Save Options to save any changes. You can also discard your changes and reload the default settings by clicking on Reset.', 'veryplaintxt'); ?>

    " tabindex="1" size="10" />









    Times.', 'veryplaintxt'), 'web safe'); ?>









    Arial. ', 'veryplaintxt'), 'web safe'); ?>

    " tabindex="20" size="10" />
    " tabindex="21" size="10" />
    " tabindex="22" size="10" />



    Resetting clears all changes to the above options. After resetting, default options are loaded and this theme will continue to be the active theme. A reset does not affect the actual theme files in any way.', 'veryplaintxt'); ?>

    veryplaintxt theme, version ' . $installedVersion . ', by Scott Allan Wallick.', 'veryplaintxt'); ?>

    documentation for more information about the veryplaintxt theme and its advanced features.', 'veryplaintxt'), get_template_directory_uri() . '/readme.html'); ?>

    veryplaintxt theme copyright © %1$s by Scott Allan Wallick is distributed with the GNU General Public License.', 'veryplaintxt'), gmdate('Y') ); ?>