Skip to content

Commit

Permalink
Techozoic 2.1 RC
Browse files Browse the repository at this point in the history
Changelog:
Performance increased by caching css generated by settings.
Added Twitter Feed widget.
Added new template tags to reduce repeated code.
Updated Posts page layout.
Responsive styling updated.
New touch enabled sliding menu in responsive view.
Updated Options Framework to latest version.
New layout for options page.
Removed unneeded meta description and keyword tags.
Minor styling updates.
Updated bbPress theme support to 2.2.
Code cleanup to follow WordPress coding standards.
  • Loading branch information
jeremyclark13 committed Nov 26, 2012
1 parent 23803e1 commit bbc0937
Show file tree
Hide file tree
Showing 87 changed files with 4,161 additions and 4,666 deletions.
52 changes: 28 additions & 24 deletions archive-forum.php
@@ -1,32 +1,36 @@
<?php

/**
* bbPress - Forum Archive
*
* @package bbPress
* @subpackage Theme
*/

get_header();
if ( of_get_option( 'forum_sidebar', '0' ) == "1" ) {
tech_show_sidebar( "l" );
}
?>

<?php get_header();
if (of_get_option('forum_sidebar','0') == "1" ) { tech_show_sidebar("l");}
?>
<div id="content" class="<?php if (of_get_option('forum_sidebar','0') == "1" ) { echo "narrow"; }else {echo "wide";}?>column">

<?php do_action( 'bbp_template_notices' ); ?>

<div id="forum-front" class="bbp-forum-front">
<h1 class="entry-title"><?php bbp_forum_archive_title(); ?></h1>
<div class="entry-content">

<?php bbp_get_template_part( 'bbpress/content', 'archive-forum' ); ?>

</div>
</div><!-- #forum-front -->
</div><!-- #content -->

<?php
if (of_get_option('forum_sidebar','0') == "1" ) { tech_show_sidebar("r"); }
get_footer();
?>
<div id="content" class="<?php if ( of_get_option( 'forum_sidebar', '0' ) == "1" ) {
echo "narrow";
} else {
echo "wide";
} ?>column">
<?php do_action( 'bbp_before_main_content' ); ?>

<?php do_action( 'bbp_template_notices' ); ?>

<div id="forum-front" class="bbp-forum-front">
<h1 class="entry-title"><?php bbp_forum_archive_title(); ?></h1>
<div class="entry-content">

<?php bbp_get_template_part( 'content', 'archive-forum' ); ?>

</div>
</div><!-- #forum-front -->

<?php do_action( 'bbp_after_main_content' ); ?>
</div><!-- #content -->
<?php if ( of_get_option( 'forum_sidebar', '0' ) == "1" ) {
tech_show_sidebar( "r" );
} ?>
<?php get_footer(); ?>
41 changes: 23 additions & 18 deletions archive-topic.php
@@ -1,33 +1,38 @@
<?php

/**
* bbPress - Topic Archive
*
* @package bbPress
* @subpackage Theme
*/

get_header();
if ( of_get_option( 'forum_sidebar', '0' ) == "1" ) {
tech_show_sidebar( "l" );
}
?>
<div id="content" class="<?php if ( of_get_option( 'forum_sidebar', '0' ) == "1" ) {
echo "narrow";
} else {
echo "wide";
} ?>column">

<?php get_header();
if (of_get_option('forum_sidebar','0') == "1" ) { tech_show_sidebar("l");}
?>
<div id="content" class="<?php if (of_get_option('forum_sidebar','0') == "1" ) { echo "narrow"; }else {echo "wide";}?>column">
<?php do_action( 'bbp_before_main_content' ); ?>

<?php do_action( 'bbp_template_notices' ); ?>
<?php do_action( 'bbp_template_notices' ); ?>

<div id="topic-front" class="bbp-topics-front">
<h1 class="entry-title"><?php bbp_topic_archive_title(); ?></h1>
<div class="entry-content">
<div id="topic-front" class="bbp-topics-front">
<h1 class="entry-title"><?php bbp_topic_archive_title(); ?></h1>
<div class="entry-content">

<?php bbp_get_template_part( 'bbpress/content', 'archive-topic' ); ?>
<?php bbp_get_template_part( 'content', 'archive-topic' ); ?>

</div>
</div><!-- #topics-front -->
</div>
</div><!-- #topics-front -->

</div><!-- #content -->
<?php do_action( 'bbp_after_main_content' ); ?>
</div><!-- #content -->

<?php
if (of_get_option('forum_sidebar','0') == "1" ) { tech_show_sidebar("r"); }
get_footer();
?>
<?php if ( of_get_option( 'forum_sidebar', '0' ) == "1" ) {
tech_show_sidebar( "r" );
} ?>
<?php get_footer(); ?>
56 changes: 4 additions & 52 deletions archive.php
Expand Up @@ -7,61 +7,13 @@

<div id="content" class="<?php echo (of_get_option( 'home_sidebar', '1' ) != "1" || of_get_option( 'sidebar_pos', '3-col' ) == '1-col' ) ? "wide" : "narrow"; ?>column">

<?php if ( have_posts() ) { ?>

<?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?>
<?php
/* If this is a category archive */
if ( is_category() ) {
?>
<h2 class="pagetitle"><?php printf( __( '%s Archive', 'techozoic' ), single_cat_title( '', false ) ); ?></h2>

<?php
/* If this is a daily archive */
} elseif ( is_day() ) {
?>
<h2 class="pagetitle"><?php printf( __( 'Archive for %s', 'techozoic' ), get_the_time( 'F jS, Y' ) ); ?></h2>

<?php
/* If this is a monthly archive */
} elseif ( is_month() ) {
?>
<h2 class="pagetitle"><?php printf( __( 'Archive for %s', 'techozoic' ), get_the_time( 'F, Y' ) ); ?></h2>

<?php
/* If this is a yearly archive */
} elseif ( is_year() ) {
?>
<h2 class="pagetitle"><?php printf( __( 'Archive for %s', 'techozoic' ), get_the_time( 'Y' ) ); ?></h2>

<?php
/* If this is a search */
} elseif ( is_search() ) {
?>
<h2 class="pagetitle"><?php _e( 'Search Results', 'techozoic' ) ?></h2>

<?php
/* If this is an author archive */
} elseif ( is_author() ) {
?>
<h2 class="pagetitle"><?php _e( 'Author Archive', 'techozoic' ) ?></h2>

<?php
/* If this is a paged archive */
} elseif ( isset( $_GET['paged'] ) && !empty( $_GET['paged'] ) ) {
?>
<h2 class="pagetitle"><?php _e( 'Blog Archives', 'techozoic' ) ?></h2>

<?php
}
<?php if ( have_posts() ) {
tech_archive_title();
}
?>
<div class="navigation clear">
<div class="alignleft"><?php next_posts_link( __( '&laquo; Older Entries', 'techozoic' ) ) ?></div>
<div class="alignright"><?php previous_posts_link( __( 'Newer Entries &raquo;', 'techozoic' ) ) ?></div>
</div>
<?php tech_nav_links(); ?>
<?php get_template_part( 'loop', 'archive' ); ?>

<?php tech_nav_links(); ?>
</div>
<?php
if ( of_get_option( 'home_sidebar', '1' ) == "1" ) {
Expand Down

0 comments on commit bbc0937

Please sign in to comment.