Doug Stewart avatar Doug Stewart committed ba2f84d

PHPDoc first pass plus some hook-izing of the post meta information.

Comments (0)

Files changed (22)

 <?php
-/*
-Template Name: 404'd
+/**
+* Template Name: 404'd
+*
+* @package 		Elbee-Elgee
+* @copyright	Copyright (c) 2011, Doug Stewart
+* @license		http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU General Public License, v2 (or newer)
+*
+* @since 		Elbee-Elgee 1.0
 */
 ?>
 <?php header("HTTP/1.1 404 Not Found"); ?>
 <?php
-/*
-Template Name: Archives
+/**
+* Template Name: Archives
+* Displays chronologically-ordered post archives
+* 
+* @package 		Elbee-Elgee
+* @copyright	Copyright (c) 2011, Doug Stewart
+* @license		http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU General Public License, v2 (or newer)
+*
+* @since 		Elbee-Elgee 1.0
 */
 ?>
 <?php get_header(); ?>

bbp-wrapper-footer.php

+<?php
+/**
+* Simple wrapper template for the bottom of bbPress pages.
+*
+* @package 		Elbee-Elgee
+* @copyright	Copyright (c) 2011, Doug Stewart
+* @license		http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU General Public License, v2 (or newer)
+*
+* @since 		Elbee-Elgee 1.0
+*/
+?>
 		</div><!-- #lb-content -->
 	</div><!-- #wrapper -->
 	

bbp-wrapper-header.php

+<?php
+/**
+* Simple wrapper template for the top of bbPress pages.
+*
+* @package 		Elbee-Elgee
+* @copyright	Copyright (c) 2011, Doug Stewart
+* @license		http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU General Public License, v2 (or newer)
+*
+* @since 		Elbee-Elgee 1.0
+*/
+?>
 <div id="allwrapper">
 	<div id="wrapper">
 		<div id="lb-content" role="main">

bp-navigation.php

+<?php
+/**
+* Responsible for the search form and nav menu displayed in the header
+* when an active BuddyPress install is detected.
+*
+* @package 		Elbee-Elgee
+* @copyright	Copyright (c) 2011, Doug Stewart
+* @license		http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU General Public License, v2 (or newer)
+*
+* @since 		Elbee-Elgee 1.0
+*/
+?>
 <div id="lb-bp-nav">
 
 	<div id="lb-bp-search-bar">

bp-wrapper-footer.php

+<?php
+/**
+* Simple wrapper template for the bottom of BuddyPress pages.
+*
+* @package 		Elbee-Elgee
+* @copyright	Copyright (c) 2011, Doug Stewart
+* @license		http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU General Public License, v2 (or newer)
+*
+* @since 		Elbee-Elgee 1.0
+*/
+?>
 			</div><!-- .padder -->
 		</div><!-- #lb-content -->
 	</div><!-- #wrapper -->

bp-wrapper-header.php

+<?php
+/**
+* Simple wrapper template for the top of BuddyPress pages.
+*
+* @package 		Elbee-Elgee
+* @copyright	Copyright (c) 2011, Doug Stewart
+* @license		http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU General Public License, v2 (or newer)
+*
+* @since 		Elbee-Elgee 1.0
+*/
+?>
 <div id="allwrapper">
 	<div id="wrapper">
 		<div id="lb-content">
 <?php 
+/**
+ * This file is responsible for displaying both the comment form
+ * and the list of comments on a post.
+ *
+ * @package     Elbee-Elgee
+ * @copyright   Copyright (c) 2011, Doug Stewart
+ * @license     http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU General Public License, v2 (or newer)
+ *
+ * @since       Elbee-Elgee 1.0
+ *
+ */
 if( have_comments() ) { ?>
 	<h2 id="comments"><?php comments_number(); ?></h2>
 

includes/functions/admin.php

 <?php
-// Set up the admin page &  register settings
+/**
+* This file is responsible for setting up and displaying the admin page
+* and register settings
+*
+* @package 		Elbee-Elgee
+* @copyright	Copyright (c) 2011, Doug Stewart
+* @license		http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU General Public License, v2 (or newer)
+*
+* @since 		Elbee-Elgee 1.0
+*/
+
+/**
+ *
+ * @global type $lblg_themename 
+ */
 function lblg_add_admin() {
 	global $lblg_themename;
     add_theme_page( "$lblg_themename Settings", "$lblg_themename Settings", 'edit_theme_options', 'lblg_options_page' , 'lblg_admin' );
 }
 add_action( 'admin_menu', 'lblg_add_admin' );
 
+/**
+ *
+ * @global type $lblg_shortname 
+ */
 function lblg_admin_init(){
 	global $lblg_shortname;
 	register_setting( $lblg_shortname . '_theme_options', $lblg_shortname . '_theme_options', 'lblg_sanitize_options' );
 }
 add_action( 'admin_init', 'lblg_admin_init' );
 
+/**
+ * 
+ */
 function lblg_output_admin_tabs(){
+	global $lblg_default_options;
 	if( isset($_GET['tab'] )) {
 		$current_tab = $_GET['tab'];
 	} else {
 	echo '<h2 class="nav-tab-wrapper">';
 	echo '<a href="http://localhost" class="nav-tab">Localhost</a><a href="http://localhost" class="nav-tab nav-tab-active">Localhost Active</a></h2>';
 }
-//add_action( 'lblg_after_admin_header', 'lblg_output_admin_tabs' );
+add_action( 'lblg_after_admin_header', 'lblg_output_admin_tabs' );
 
+/**
+ *
+ * @global type $lblg_default_options 
+ */
 function lblg_get_admin_tabs(){
 	global $lblg_default_options;
 	
 	print_r($lblg_default_options);
 }
 
-// Display the theme options page
+/**
+ * Display the theme options page
+ *
+ * @global type $lblg_shortname
+ * @global type $lblg_themename
+ * @global type $lblg_version
+ * @global type $lblg_options
+ * @global type $lblg_default_options 
+ * 
+ */
 function lblg_admin() {
 	global $lblg_shortname, $lblg_themename, $lblg_version, $lblg_options, $lblg_default_options;
 
 <?php
 }
 
-// Output Submit/Reset buttons
+/**
+ * Output Submit/Reset buttons
+ *
+ * @global string $lblg_shortname
+ */
 function lblg_print_option_buttons() {
 	global $lblg_shortname;
 	
  	submit_button( "Reset to defaults", "secondary", $reset_name, false );
 }
 
-// Output the per-option table row header markup
+/**
+ * Output the per-option table row header markup
+ *
+ * @param array $values
+ */
 function lblg_option_wrapper_header( $values ){
 	?>
 	<tr valign="top"> 
 	<?php
 }
 
-// Output the per-option table row footer markup 
+/**
+ * Output the per-option table row footer markup
+ *
+ * @param array $values
+ */
 function lblg_option_wrapper_footer( $values ){
 	?>
 		<br /><br />
 	<?php 
 }
 
-/*
- * lblg_options_walker() is responsible for printing all the theme options in the theme's
- * options screen.
+/**
+ *
+ * @global type $lblg_options
+ * @global type $lblg_default_options
+ * @global type $lblg_shortname 
+ * lblg_options_walker() is responsible for printing all the 
+ * theme options in the theme's options screen.
  */
 function lblg_options_walker(){
 	global $lblg_options, $lblg_default_options, $lblg_shortname;

includes/functions/bbpress.php

 <?php
-/*
+/**
 * All code in this file has been adapted from the bbp_twentyten theme provided
 * as a part of the default bbPress plugin install and therefore retains the original
 * GPL license attached to said files.

includes/functions/buddypress.php

 <?php
+/**
+ * Creates a WordPress custom menu based upon the default BuddyPress
+ * activity areas when an active BP install is detected.
+ * 
+ * @global type $lblg_themename
+ */
 function lblg_add_default_buddypress_menu(){
 	global $lblg_themename;
 	$menuname = $lblg_themename . ' BuddyPress Menu';
 }
 add_action( 'after_setup_theme', 'lblg_add_default_buddypress_menu' );
 
+/**
+ * Grabs the template part for the BuddyPress navigation elements.
+ */
 function lblg_bp_menu() {
 		get_template_part( 'bp-navigation' );
 }
 add_action( 'lblg_print_bp_menu', 'lblg_bp_menu' );
 
-/*
-*  BuddyPress support code, adapted from the BuddyPress Template Pack
-*  http://wordpress.org/extend/plugins/bp-template-pack/
-*  By apeatling & boonebgorges
-*/
+/**
+ * BuddyPress support code, adapted from the BuddyPress Template Pack
+ * http://wordpress.org/extend/plugins/bp-template-pack/
+ * By apeatling & boonebgorges
+ * 
+ * @global type $lblg_shortname, $lblg_options
+ */
 function lblg_bp_init(){
 	global $lblg_shortname, $lblg_options;
 	
  * Add support for showing the activity stream as the front page of the site
  */
 
-/* Filter the dropdown for selecting the page to show on front to include "Activity Stream" */
+/**
+ * Filter the dropdown for selecting the page to show on front 
+ * to include "Activity Stream"
+ * 
+ * @param type string $page_html
+ */
 function lblg_bp_wp_pages_filter( $page_html ) {
 	if ( 'page_on_front' != substr( $page_html, 14, 13 ) )
 		return $page_html;
 }
 //add_filter( 'wp_dropdown_pages', 'lblg_bp_wp_pages_filter' );
 
-/* Hijack the saving of page on front setting to save the activity stream setting */
+/** 
+ * Hijack the saving of page on front setting to save the activity 
+ * stream setting 
+ * 
+ * @param type string $oldvalue
+ * @param type string $newvalue
+ */
 function lblg_bp_page_on_front_update( $oldvalue, $newvalue ) {
 	if ( !is_admin() || !is_super_admin() )
 		return false;
 }
 add_action( 'pre_update_option_page_on_front', 'lblg_bp_page_on_front_update', 10, 2 );
 
-/* Load the activity stream template if settings allow */
+/** 
+ * Load the activity stream template if settings allow 
+ * 
+ * @param type string $template
+ */
 function lblg_bp_page_on_front_template( $template ) {
 	global $wp_query;
 
 }
 add_filter( 'page_template', 'lblg_bp_page_on_front_template' );
 
-/* Return the ID of a page set as the home page. */
+/** 
+ * Return the ID of a page set as the home page. 
+ */
 function lblg_bp_page_on_front() {
 	if ( 'page' != get_option( 'show_on_front' ) )
 		return false;
 	return apply_filters( 'lblg_bp_page_on_front', get_option( 'page_on_front' ) );
 }
 
-/* Force the page ID as a string to stop the get_posts query from kicking up a fuss. */
+/**
+ *  Force the page ID as a string to stop the get_posts query from 
+ * kicking up a fuss. 
+ */
 function lblg_bp_fix_get_posts_on_activity_front() {
 	global $wp_query;
 

includes/functions/custom.php

 <?php
+/**
+ * This file contains custom theme functions that don't readily
+ * fit into the other functional areas of the theme.
+ *
+ * @package     Elbee-Elgee
+ * @copyright   Copyright (c) 2011, Doug Stewart
+ * @license     http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU General Public License, v2 (or newer)
+ *
+ * @since       Elbee-Elgee 1.0
+ *
+ */
 
+/**
+ * Custom Theme Header Metadata
+ * 
+ * This function allows the default WordPress Theme Headers
+ * handler (i.e. the code that parses the theme's style.css
+ * to look for theme metadata) to look for custom meta values
+ * such as the theme's short name, the URI for support forums,
+ * etc.
+ * 
+ * @param array $headers
+ * @return array 
+ */
 function lblg_extra_theme_headers( $headers ){
 	if( !in_array( 'Short Name', $headers ) )
 		$headers[] = 'Short Name';
 		$headers[] = 'Support URI';
 	return $headers;
 }
-
 add_filter( 'extra_theme_headers', 'lblg_extra_theme_headers' );

includes/functions/headers.php

 <?php
+/**
+ * This file contains registration of default header images.
+ *
+ * @package     Elbee-Elgee
+ * @copyright   Copyright (c) 2011, Doug Stewart
+ * @license     http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU General Public License, v2 (or newer)
+ *
+ * @since       Elbee-Elgee 1.0
+ *
+ */
+
+
 function lblg_custom_headers_check() {
 	global $lblg_options;
 

includes/functions/hooks.php

 function lblg_after_admin_header(){
 	do_action( 'lblg_after_admin_header' );
 }
+
 function lblg_print_title(){
 	do_action( 'lblg_print_title' );
 }
 	do_action( 'lblg_above_content' );
 }
 
+function lblg_before_post_title(){
+	do_action( 'lblg_before_post_title' );
+}
+
+function lblg_after_post_title(){
+	do_action( 'lblg_after_post_title' );
+}
+
+function lblg_before_itemtext(){
+	do_action( 'lblg_before_itemtext' );
+}
+
+function lblg_after_itemtext(){
+	do_action( 'lblg_after_itemtext' );
+}
+
 function lblg_sidebar_header(){
 	do_action( 'lblg_sidebar_header' );
 }
 	}
 }
 
+function lblg_post_info(){
+		?>
+		<div class="postinfo">
+			<span class="postmeta">Posted by <?php the_author(); ?> on <a href="<?php the_permalink(); ?>"><?php the_time('F jS, Y'); ?></a> <?php if (!is_single() && !is_page() ){ ?>| <span class="commentlink"><?php comments_popup_link('No Comments', '1 Comment', '% Comments'); ?></span><?php } edit_post_link(' Edit this entry.', '', ''); ?></span>
+			<?php if( !is_page() ) { ?>
+			<span class="postcats">Posted in <?php the_category(', '); ?></span>
+			<?php } ?>
+			<?php if( is_single() ){?>
+			<span class="posttags"><?php the_tags('Tagged as: ',','); ?></span>
+		<?php }?>
+		</div>	
+		<?php
+}
+add_action( 'lblg_after_itemtext', 'lblg_post_info' );
+
 function lblg_styles(){
 	global $lblg_shortname, $lblg_options;
 	$layout_handle = $lblg_shortname . '_layout_stylesheet';
 		the_post_thumbnail( 'lb-content-header' );
 	}
 }
+add_action( 'lblg_before_itemtext', 'lblg_the_postimage' );
 
 /*
 *  Utility hooks for use inside <head> and admin <head>,

includes/functions/options.php

 <?php
-/*
-*  Initialize the theme options, save to the DB if we haven't yet been run
-*/
+/**
+ * This file is responsible for options handling.
+ * It draws from static theme files and dynamic theme options
+ * stored in the database.
+ *
+ * @package 		Elbee-Elgee
+ * @copyright	Copyright (c) 2011, Doug Stewart
+ * @license		http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU General Public License, v2 (or newer)
+ *
+ * @since 		Elbee-Elgee 1.0
+ */
+
+/**
+ * Initialize the theme options, save to the DB if we haven't yet been run
+ * 
+ * @global string   $lblg_shortname
+ * @global string   $lblg_themename
+ * @global string   $lblg_version
+ * @global array    $lblg_options
+ * @global array    $lblg_default_options 
+ */
 function lblg_options_init(){
 	global $lblg_shortname, $lblg_themename, $lblg_version, $lblg_options, $lblg_default_options;
 	/* 
 }
 add_action( 'after_setup_theme','lblg_options_init', 9 );
 
+/**
+ *
+ * @param array $default_options
+ * @return array
+ */
 function lblg_get_options_from_defaults( $default_options ){
 	$stripped_opts = array();
 	
 	return $stripped_opts;
 }
 
+/**
+ *
+ * @return array
+ */
 function lblg_get_default_options(){
 	//Default locations for the parent and child options files
 	$parent_options_file = TEMPLATEPATH . '/includes/parent-options.php';
 	return $temp_options;
 }
 
+/**
+ *
+ * @global  type $lblg_shortname
+ * @global  type $lblg_default_options
+ * @global  type $lblg_options
+ * @param   array $input
+ * @return  array
+ */
 function lblg_sanitize_options( $input ){
 	global $lblg_shortname, $lblg_default_options, $lblg_options;
 

includes/functions/supports.php

 <?php
+/**
+ * This file is responsible for registering all the extra core
+ * WordPress functionality the theme supports.
+ *
+ * @package     Elbee-Elgee
+ * @copyright   Copyright (c) 2011, Doug Stewart
+ * @license     http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU General Public License, v2 (or newer)
+ *
+ * @since       Elbee-Elgee 1.0
+ *
+ */
+
 function lblg_register_sidebars() {
 	register_sidebar( array( 'name'=>'Primary',
 						   'before_widget' => '<li>', 

includes/functions/widgets.php

 <?php
+/**
+ * This file contains the custom widget classes necessary to register and
+ * display the custom widgets supplied with the theme.
+ *
+ * @package     Elbee-Elgee
+ * @copyright   Copyright (c) 2011, Doug Stewart
+ * @license     http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU General Public License, v2 (or newer)
+ *
+ * @since       Elbee-Elgee 1.0
+ *
+ */
+
 class Lblg_Smart_Recent_Posts_Widget extends WP_Widget {
 	function Lblg_Smart_Recent_Posts_Widget(){
 		$widget_ops = array('classname' => 'lblg_smart_recent_posts_widget', 'description' => 'A widget that intelligently displays recent posts.' );

includes/parent-options.php

 <?php
+/**
+ * parent-options.php handles the back-end options for Elbee Elgee
+ *
+ * @package		Elbee-Elgee
+ * @copyright	Copyright (c) 2011, Doug Stewart
+ * @license		http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU General Public License, v2 (or newer)
+ *
+ * @since		Elbee-Elgee 1.0
+ */
+
+/** 
+ * Current choices:
+ * 'tabbed': use WordPress' built-in tabbing to separate sections
+ * 'single': single page of options
+ */
+$parent_theme_array[ 'admin_layout' ] = 'tabbed';
+
 // Look for layout CSS files to auto-load
 $layout_path = TEMPLATEPATH . '/layouts/'; 
 $layouts = array();
 $alt_stylesheets_tmp = array_unshift($alt_stylesheets, "Select a stylesheet:", "*none*");
 
 $parent_options_array = array (
-		
-				"style_options" => array(	"name" => "Style Options",
-						"type" => "subhead"),
 
-				"layout_stylesheet" => array(	"name" => "Layout Stylesheet",
-						"desc" => "Place additional layout stylesheets in <code>" . TEMPLATEPATH . "/layouts/</code> to add them as layout options",
-			    		"std" => "Select a layout:",
-			    		"type" => "select",
-			    		"options" => $layouts),
+	"style_options" => array(	"name" => "Style Options",
+			"type" => "subhead"),
 
-				"alt_stylesheet" => array(	"name" => "Theme Stylesheet",
-						"desc" => "Place additional theme stylesheets and assets in <code>" . TEMPLATEPATH . "/styles/</code> to add them as styling options",
-					    "std" => "Select a stylesheet:",
-					    "type" => "select",
-					    "options" => $alt_stylesheets),
+	"layout_stylesheet" => array(	"name" => "Layout Stylesheet",
+			"desc" => "Place additional layout stylesheets in <code>" . TEMPLATEPATH . "/layouts/</code> to add them as layout options",
+    		"std" => "Select a layout:",
+    		"type" => "select",
+    		"options" => $layouts),
 
-				"use_custom_header" => array(	"name" => "Use Custom Headers",
-						"desc" => 'Check this box if you wish to use WordPress\'s built-in <a href="http://codex.wordpress.org/Custom_Headers">Custom Header Image API</a> to define a custom image for your theme',
-						"std" => "1",
-						"type" => "checkbox"),
+	"alt_stylesheet" => array(	"name" => "Theme Stylesheet",
+			"desc" => "Place additional theme stylesheets and assets in <code>" . TEMPLATEPATH . "/styles/</code> to add them as styling options",
+		    "std" => "Select a stylesheet:",
+		    "type" => "select",
+		    "options" => $alt_stylesheets),
 
-				"blog_meta_info" => array(	"name" => "Blog Meta Info",
-						"type" => "subhead"),
+	"use_custom_header" => array(	"name" => "Use Custom Headers",
+			"desc" => 'Check this box if you wish to use WordPress\'s built-in <a href="http://codex.wordpress.org/Custom_Headers">Custom Header Image API</a> to define a custom image for your theme',
+			"std" => "1",
+			"type" => "checkbox"),
 
-				"display_footer_copyright" => array(	"name" => "Display Copyright",
-						"desc" => "Check this box to display your copyright information in the footer.", 
-						"std" => "1",
-						"type" => "checkbox"),
+	"blog_meta_info" => array(	"name" => "Blog Meta Info",
+			"type" => "subhead"),
 
-				"footer_copyright" => array(	"name" => "Copyright Statement",
-						"desc" => "The following text will be displayed by default: <b><p>" . get_bloginfo('name') . " " . lblg_copyright() . "</p></b>",
-						"std" => "",
-						"type" => "textarea",
-						"options" => array("rows" => "5",
-										   "cols" => "40") ),
+	"display_footer_copyright" => array(	"name" => "Display Copyright",
+			"desc" => "Check this box to display your copyright information in the footer.", 
+			"std" => "1",
+			"type" => "checkbox"),
 
-				"display_footer_credits" => array(	"name" => "Display Credits",
-						"desc" => "Check this box to display your site credits in the footer.", 
-						"std" => "1",
-						"type" => "checkbox"),
+	"footer_copyright" => array(	"name" => "Copyright Statement",
+			"desc" => "The following text will be displayed by default: <b><p>" . get_bloginfo('name') . " " . lblg_copyright() . "</p></b>",
+			"std" => "",
+			"type" => "textarea",
+			"options" => array("rows" => "5",
+							   "cols" => "40") ),
 
-				"footer_credit_text" => array(	"name" => "Footer Credits",
-						"desc" => "Footer credit text defaults to: <b><p>Powered by <a href=\"http://wordpress.org\">WordPress</a> " . get_bloginfo('version') . " and <a href=\"http://literalbarrage.org/blog/code/elbee-elgee\">Elbee Elgee</a></p></b> Change it to fit your site. (I'd appreciate the link love, though, if you'd leave it in...)  HTML should work just fine, raw PHP not so much. ",
-						"std" => "",
-						"type" => "textarea",
-						"options" => array("rows" => "5",
-										   "cols" => "40") ),
-		  );
+	"display_footer_credits" => array(	"name" => "Display Credits",
+			"desc" => "Check this box to display your site credits in the footer.", 
+			"std" => "1",
+			"type" => "checkbox"),
 
-	if( function_exists('bp_get_loggedin_user_nav') ) {
-		$parent_options_array['bp_subhead'] = array( "name" => "BuddyPress-specific Options",
-											"type" => "subhead" );
-		
-		$parent_options_array['disable_bp_js'] = array( "name" => "Disable BuddyPress JavaScript/AJAX",
-												"desc" => "Elbee Elgee automatically integrates the BuddyPress default theme javascript and AJAX functionality. You may switch this off, though the experience will degrade somewhat.",
-												"std" => "0",
-												"type" => "checkbox" );
-		
-		$parent_options_array['disable_bp_css'] = array( "name" => "Disable BuddyPress CSS",
-												"desc" => "Elbee Elgee comes with basic CSS styles that give BuddyPress pages a standard look and feel. You can extend upon these styles in your child theme's CSS or simply disable them and construct your own.",
-												"std" => "0",
-												"type" => "checkbox" );
-	}
+	"footer_credit_text" => array(	"name" => "Footer Credits",
+			"desc" => "Footer credit text defaults to: <b><p>Powered by <a href=\"http://wordpress.org\">WordPress</a> " . get_bloginfo('version') . " and <a href=\"http://literalbarrage.org/blog/code/elbee-elgee\">Elbee Elgee</a></p></b> Change it to fit your site. (I'd appreciate the link love, though, if you'd leave it in...)  HTML should work just fine, raw PHP not so much. ",
+			"std" => "",
+			"type" => "textarea",
+			"options" => array("rows" => "5",
+							   "cols" => "40") ),
+);
+
+if( function_exists('bp_get_loggedin_user_nav') ) {
+	$parent_options_array['bp_subhead'] = array( "name" => "BuddyPress-specific Options",
+										"type" => "subhead" );
+	
+	$parent_options_array['disable_bp_js'] = array( "name" => "Disable BuddyPress JavaScript/AJAX",
+											"desc" => "Elbee Elgee automatically integrates the BuddyPress default theme javascript and AJAX functionality. You may switch this off, though the experience will degrade somewhat.",
+											"std" => "0",
+											"type" => "checkbox" );
+	
+	$parent_options_array['disable_bp_css'] = array( "name" => "Disable BuddyPress CSS",
+											"desc" => "Elbee Elgee comes with basic CSS styles that give BuddyPress pages a standard look and feel. You can extend upon these styles in your child theme's CSS or simply disable them and construct your own.",
+											"std" => "0",
+											"type" => "checkbox" );
+}
 
 $parent_theme_array[ 'options' ] = $parent_options_array;
 
+<?php
+/**
+ * 
+ */
+?>
 	<!--hr /-->
 
-	<?php if (is_single()) { ?>
+	<?php if ( is_single() ) { ?>
 
 	<div class="navigation">
 		<div class="left"><?php previous_post_link() ?></div>
  * Author URI: http://literalbarrage.org/blog/
  * License: GPL v2
  * License URI: http://www.gnu.org/licenses/gpl-2.0.html
- * Version: 1.2.2
+ * Version: 1.3-beta1
  * Tags: buddypress, two-columns, three-columns, one-column, left-sidebar, right-sidebar, white, blue, fixed-width, flexible-width, custom-header, custom-menu, featured-images, sticky-post, theme-options
  *
  * Elbee Elgee WordPress Theme, Copyright (C) 2011 Doug Stewart

styles/ng/ng-base.css

 /* @end */
 
 /* @group Content Elements */
-body.home-page #lb-content h2 a, body.home #lb-content h2 a, 
+body.home-page #lb-content h2, body.home #lb-content h2, 
 body.single #lb-content h1, body.page #lb-content h1,
-body.error404 #lb-content h1, h1.entry-title {
+body.error404 #lb-content h1, h1.entry-title,
+body.archive #lb-content h2 {
 	font-size: 2em;
 	font-weight: bold;
-	padding-top: 0.5em;
-	margin-top: 0.5em;
+	padding-bottom: 0.5em;
 }
 
 .itemtext p {
 }
 
 #lb-content div.post {
-	margin-bottom: 1em;
+	margin-bottom: 2em;
+	margin-top: 1em;
 }
 
 #lb-content img.wp-post-image {
 	/* Start The Loop */ if (have_posts()) { while (have_posts()) { the_post(); ?>
 		<?php /* Permalink navigation has to be inside the loop */ if (is_single()) get_template_part('navigation'); ?>
 		<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
+			<?php lblg_before_post_title(); ?>
 			<?php if( !is_single() && !is_page() ) { ?><h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php echo strip_tags(get_the_title()) ?>"><?php the_title(); ?></a></h2>
 			<?php } else { ?><h1><?php the_title(); ?></h1><?php } ?>
-			<?php lblg_the_postimage(); ?>
+
+			<?php lblg_before_itemtext(); ?>
 			<div class="itemtext">
 				<?php 
 				if ( is_archive() or is_search() or is_tag() ) {
 				}
 				wp_link_pages( array( 'before' => '<div class="post-pagination">Pages: ', 'after' => '</div>', 'next_or_number' => 'number')); 
 				?>
-				<div class="postinfo">
-					<span class="postmeta">Posted by <?php the_author(); ?> on <a href="<?php the_permalink(); ?>"><?php the_time('F jS, Y'); ?></a> <?php if (!is_single() && !is_page() ){ ?>| <span class="commentlink"><?php comments_popup_link('No Comments', '1 Comment', '% Comments'); ?></span><?php } edit_post_link(' Edit this entry.', '', ''); ?></span>
-					<?php if( !is_page() ) { ?>
-					<span class="postcats">Posted in <?php the_category(', '); ?></span>
-					<?php } ?>
-					<?php if( is_single() ){?>
-					<span class="posttags"><?php the_tags('Tagged as: ',','); ?></span>
-				<?php }?>
-				</div>
 			</div>
-
+			<?php lblg_after_itemtext(); ?>
 			<!--
 				<?php trackback_rdf(); ?>
 			-->
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.