Skip to content
Browse files

Techozoic 2.0.2 Release w/ bugfixes.

  • Loading branch information...
1 parent bbb0bf9 commit 6638ef472f00ccfaaafc79179b230c886bcb61cb @jeremyclark13 committed Jan 19, 2012
Showing with 121 additions and 222 deletions.
  1. +5 −0 changelog.php
  2. +16 −42 functions.php
  3. +6 −1 functions/tech-css.php
  4. +67 −65 functions/tech-widget.php
  5. +0 −1 header.php
  6. +6 −12 loop.php
  7. +0 −30 nav-dropdown.php
  8. +0 −26 nav-standard.php
  9. +0 −35 nav-twotier.php
  10. +4 −0 options.php
  11. +9 −3 readme.txt
  12. +3 −3 single.php
  13. +5 −4 style.css
View
5 changelog.php 100755 → 100644
@@ -4,6 +4,11 @@
<p>
<br />
<h2>Change Log</h2>
+<h3>Version 2.0.2</h3><br />
+- Title was overlapping social media icons on single post page.<br />
+- Navigation button color wasn't respected. <br />
+- Post title color wasn't respected on single post page. <br />
+- Post format status post weren't showing up on home page. <br />
<h3>Version 2.0</h3><br />
- Moved to Options Framework Option Panel.<br />
- Using Custom Header functions.<br />
View
58 functions.php
@@ -173,6 +173,22 @@ function techozoic_admin_header_image() { ?>
</div>
<?php }
+/**
+ * Techozoic comment reply enqueue
+ *
+ * function enqueuing comment reply script, to be added to header if needed.
+ *
+ *
+ * @access private
+ * @since 2.0.1
+ */
+
+function techozoic_enqueue_comment_reply() {
+ if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {
+ wp_enqueue_script( 'comment-reply' );
+ }
+}
+add_action( 'wp_enqueue_scripts', 'techozoic_enqueue_comment_reply' );
/**
* Techozoic Theme Logo
@@ -350,49 +366,7 @@ function tech_exclude_post_formats_from_feeds( &$wp_query ) {
}
}
-/**
- * Techozoic Exclude aside/status post format from home page
- *
- * Remove certain post formats from home query only applied if the status
- * widget is enabled.
- *
- * @param string wp_query from hook
- * @return string wp_query with post formats removed.
- *
- * @access public
- * @since 2.0
- */
-
-if ( is_active_widget(false, false, 'techozoic_status', true) ) {
- add_action( 'pre_get_posts', 'tech_exclude_post_formats_from_home' );
-}
-function tech_exclude_post_formats_from_home( &$wp_query ) {
-
- // Only do this for feed queries:
- if ( $wp_query->is_home() || $wp_query->is_category() ) {
- // Array of post formats to exclude, by slug,
- $post_formats_to_exclude = array(
- 'post-format-status'
- );
-
- // Extra query to hack onto the $wp_query object:
- $extra_tax_query = array(
- 'taxonomy' => 'post_format',
- 'field' => 'slug',
- 'terms' => $post_formats_to_exclude,
- 'operator' => 'NOT IN'
- );
-
- $tax_query = $wp_query->get( 'tax_query' );
- if ( is_array( $tax_query ) ) {
- $tax_query = $tax_query + $extra_tax_query;
- } else {
- $tax_query = array( $extra_tax_query );
- }
- $wp_query->set( 'tax_query', $tax_query );
- }
-}
/**
* Techozoic Google Plus one JS
*
View
7 functions/tech-css.php
@@ -197,6 +197,11 @@ function tech_head_css(){
font:{$tech_main_heading_font['style']} {$tech_main_heading_font['size']} {$tech_blog_title_font}, Sans-Serif;
color: {$tech_main_heading_font['color']};
}
+h1.post_title{
+font-family:{$tech_post_title_font}, Sans-Serif;
+color:{$tech_header_font['color']} !important;
+font-size: {$tech_header_font['size']};
+}
.post_title a{
font-family:{$tech_post_title_font}, Sans-Serif;
color:{$tech_header_font['color']} !important;
@@ -230,7 +235,7 @@ function tech_head_css(){
font-size:{$tech_nav_font['size']};
color:{$tech_nav_font['color']};
}
-#navmenu .top-menu ul.sub-menu{
+#navmenu .top-menu li, #navmenu .top-menu ul.sub-menu{
background-color: {$tech_nav_ul_bg_color};
}
CSS;
View
132 functions/tech-widget.php
@@ -6,71 +6,74 @@
$theme_data = get_theme_data(TEMPLATEPATH . '/style.css');
$version = $theme_data['Version'];
-if(function_exists('register_sidebar')){
-register_sidebar(array(
- 'name'=>__('Right Sidebar','techozoic'),
- 'id'=> 'right_sidebar'
- ));
-register_sidebar(array(
- 'name'=>__('Left Sidebar','techozoic'),
- 'id'=> 'left_sidebar'
- ));
-register_sidebar(array(
- 'name'=>__('Footer','techozoic'),
- 'description' => __('Limit 3 widgets can be assigned to footer area','techozoic'),
- 'id'=> 'tech_footer',
- 'before_widget' => '<div class="footercont"><ul><li class="widget %2$s">',
- 'after_widget' => '</li></ul></div>',
- 'before_title' => '<h2 class="widgettitle">',
- 'after_title' => '</h2>'
-));
-register_sidebar(array(
- 'name'=>__('Right Header','techozoic'),
- 'description' => __('Area to the right side of the header','techozoic'),
- 'id'=> 'right_header',
- 'before_widget' => '<div class="hwidget %2$s">',
- 'after_widget' => '</div>',
- 'before_title' => '<h2 class="widgettitle">',
- 'after_title' => '</h2>'
-));
-register_sidebar(array(
- 'name'=>__('Left Header','techozoic'),
- 'description' => __('Area to the left side of the header','techozoic'),
- 'id'=> 'left_header',
- 'before_widget' => '<div class="hwidget %2$s">',
- 'after_widget' => '</div>',
- 'before_title' => '<h2 class="widgettitle">',
- 'after_title' => '</h2>'
-));
-
-$pages = get_pages();
-$page_option = of_get_option('page_sidebar','');
-foreach ($pages as $page){
- if (empty($page_option)){
- break;
- }elseif($page_option[$page->ID] == '1'){
- register_sidebar(array(
- 'name'=>"$page->post_title Left Sidebar",
- 'description' => __("Sidebar displayed only on $page->post_title. Page ID($page->ID)",'techozoic'),
- 'id'=> "page_sidebar_l_$page->ID",
- 'before_widget' => '<div class="hwidget %2$s">',
- 'after_widget' => '</div>',
- 'before_title' => '<h2 class="widgettitle">',
- 'after_title' => '</h2>'
- ));
- register_sidebar(array(
- 'name'=>"$page->post_title Right Sidebar",
- 'description' => __("Sidebar displayed only on $page->post_title. Page ID($page->ID)",'techozoic'),
- 'id'=> "page_sidebar_r_$page->ID",
- 'before_widget' => '<div class="hwidget %2$s">',
- 'after_widget' => '</div>',
- 'before_title' => '<h2 class="widgettitle">',
- 'after_title' => '</h2>'
- ));
+function tech_widgets_init(){
+ register_sidebar(array(
+ 'name'=>__('Right Sidebar','techozoic'),
+ 'id'=> 'right_sidebar'
+ ));
+ register_sidebar(array(
+ 'name'=>__('Left Sidebar','techozoic'),
+ 'id'=> 'left_sidebar'
+ ));
+ register_sidebar(array(
+ 'name'=>__('Footer','techozoic'),
+ 'description' => __('Limit 3 widgets can be assigned to footer area','techozoic'),
+ 'id'=> 'tech_footer',
+ 'before_widget' => '<div class="footercont"><ul><li class="widget %2$s">',
+ 'after_widget' => '</li></ul></div>',
+ 'before_title' => '<h2 class="widgettitle">',
+ 'after_title' => '</h2>'
+ ));
+ register_sidebar(array(
+ 'name'=>__('Right Header','techozoic'),
+ 'description' => __('Area to the right side of the header','techozoic'),
+ 'id'=> 'right_header',
+ 'before_widget' => '<div class="hwidget %2$s">',
+ 'after_widget' => '</div>',
+ 'before_title' => '<h2 class="widgettitle">',
+ 'after_title' => '</h2>'
+ ));
+ register_sidebar(array(
+ 'name'=>__('Left Header','techozoic'),
+ 'description' => __('Area to the left side of the header','techozoic'),
+ 'id'=> 'left_header',
+ 'before_widget' => '<div class="hwidget %2$s">',
+ 'after_widget' => '</div>',
+ 'before_title' => '<h2 class="widgettitle">',
+ 'after_title' => '</h2>'
+ ));
+
+ $pages = get_pages();
+ $page_option = of_get_option('page_sidebar','');
+ foreach ($pages as $page){
+ if (empty($page_option)){
+ break;
+ }elseif($page_option[$page->ID] == '1'){
+ register_sidebar(array(
+ 'name'=>"$page->post_title Left Sidebar",
+ 'description' => __("Sidebar displayed only on $page->post_title. Page ID($page->ID)",'techozoic'),
+ 'id'=> "page_sidebar_l_$page->ID",
+ 'before_widget' => '<div class="hwidget %2$s">',
+ 'after_widget' => '</div>',
+ 'before_title' => '<h2 class="widgettitle">',
+ 'after_title' => '</h2>'
+ ));
+ register_sidebar(array(
+ 'name'=>"$page->post_title Right Sidebar",
+ 'description' => __("Sidebar displayed only on $page->post_title. Page ID($page->ID)",'techozoic'),
+ 'id'=> "page_sidebar_r_$page->ID",
+ 'before_widget' => '<div class="hwidget %2$s">',
+ 'after_widget' => '</div>',
+ 'before_title' => '<h2 class="widgettitle">',
+ 'after_title' => '</h2>'
+ ));
+ }
}
-}
+}
+
+add_action( 'widgets_init', 'tech_widgets_init' );
- class Techozoic_Font_Size_Widget extends WP_Widget {
+ class Techozoic_Font_Size_Widget extends WP_Widget {
function Techozoic_Font_Size_Widget() {
$widget_ops = array('classname' => 'techozoic_font_size', 'description' => __( 'Techozoic Font Size Control Widget' , 'techozoic') );
@@ -384,7 +387,7 @@ class Techozoic_Status_Widget extends WP_Widget {
function Techozoic_Status_Widget() {
$widget_ops = array('classname' => 'techozoic_status', 'description' => __( 'Techozoic Status Widget - Dispaly Post Format Status updates in sidebar' , 'techozoic') );
$this->WP_Widget('techozoic_status', __('Techozoic Status' , 'techozoic'), $widget_ops);
- }
+ }
function widget( $args, $instance ) {
extract($args);
@@ -455,5 +458,4 @@ function form( $instance ) {
register_widget('Techozoic_About_Widget');
register_widget('Techozoic_Meta_Widget');
register_widget('Techozoic_RSS_Widget');
- } //End if(function_exists('register_sidebar'))
?>
View
1 header.php
@@ -82,7 +82,6 @@
<link rel="icon" href="<?php echo of_get_option( 'favicon_image' );?>" type="image/x-icon" />
<link rel="shortcut icon" href="<?php echo of_get_option( 'favicon_image' );?>" type="image/x-icon" />
<?php }
-if ( is_singular() && get_option( 'thread_comments' ) ) wp_enqueue_script( 'comment-reply' );
wp_head(); ?>
</head>
<body <?php body_class(); ?>>
View
18 loop.php
@@ -3,24 +3,17 @@
the_post();
?>
<div <?php post_class(); ?> id="post-<?php the_ID(); ?>">
-<?php if ( has_post_format( 'quote' ) || has_post_format( 'aside' ) ) {
- if ($post->post_content!=""){ ?>
+<?php if ( has_post_format( 'quote' ) || has_post_format( 'aside' ) ) { ?>
<div class="entry">
<?php the_content();?>
- <a href="<?php the_permalink() ?>" rel="bookmark" title="<?php printf(__('Permanent Link to %s','techozoic'), get_the_title()); ?>"" class="permalink"><?php if( get_the_title() ) { the_title(); } else{ _e('Read More &hellip;','techozoic'); } ?></a>
- </div>
-
+ </div>
<?php
- }
- } elseif(has_post_format( 'status' )) {
- if ($post->post_content!=""){ ?>
+ } elseif ( has_post_format( 'status' ) ) { ?>
<div class="avatar"><a href="<?php echo add_query_arg('post_format','status',get_author_posts_url( get_the_author_meta( 'ID' ) ) );?>" title="<?php _e('View all status updates by this author','techozoic'); ?>"><?php echo get_avatar( get_the_author_meta( 'ID' ), 64 ); ?></a></div>
<div class="entry">
<?php the_content();?>
- <a href="<?php the_permalink() ?>" rel="bookmark" title="<?php _e('Read More','techozoic'); ?>" class="permalink"><?php if( get_the_title() ) { the_title(); } else{ _e('Read More &hellip;','techozoic'); } ?></a>
</div>
<?php
- }
} else {
?>
<div class="heading">
@@ -41,8 +34,9 @@
the_excerpt();
} else {
the_content(__('Read the remainder of this entry &raquo;' , 'techozoic'));
- }?>
-<?php if ( comments_open() && empty($post->post_password) && (of_get_option('comment_preview','1') == "1")) { ?>
+ }
+ wp_link_pages();
+ if ( comments_open() && empty($post->post_password) && (of_get_option('comment_preview','1') == "1")) { ?>
<div class="post_comment_cont">
<?php comments_popup_link(__('Be the first to comment' ,'techozoic'), __('1 Comment. Join the Conversation' ,'techozoic'), _n('% Comment so far. Join the Conversation' , '% Comments so far. Join the Conversation',get_comments_number(),'techozoic'), 'comments-link', __('Comments Closed' ,'techozoic')); ?>
</div>
View
30 nav-dropdown.php
@@ -1,30 +0,0 @@
-<div id="navwrap">
-<ul id="dropdown">
-<?php
-get_tech_options();
-global $tech;
-if ($tech['nav_home_text']) {
- $home_text = $tech['nav_home_text'] ;
- } else {
- $home_text = __('Home','techozoic');
- }
-$home_link = get_option('show_on_front');
-if ($home_link == "posts" && $tech['nav_home_link'] == "Yes") {?>
- <li class="<?php if (is_home()) echo'current_page_item' ?>"><a href="<?php echo home_url(); ?>" title="<?php echo $home_text;?>"><?php echo $home_text;?></a></li>
-<?php
-echo tech_nav_link("Before");
-}
-if (!$tech['nav_exclude_list']){
- $clean_page_list = wp_list_pages('sort_column=menu_order&title_li=&echo=0');
- $clean_page_list = preg_replace('/title=\"(.*?)\"/','',$clean_page_list);
- echo $clean_page_list;
-} else {
- $nav_exclude = $tech['nav_exclude_list'];
- $clean_page_list = wp_list_pages("sort_column=menu_order&exclude=".$nav_exclude."&title_li=&echo=0");
- $clean_page_list = preg_replace('/title=\"(.*?)\"/','',$clean_page_list);
- echo $clean_page_list;
-}
-echo tech_nav_link("After");
-?>
-</ul>
-</div>
View
26 nav-standard.php
@@ -1,26 +0,0 @@
-<div id="navwrap">
-<ul id="nav">
-<?php
-get_tech_options();
-global $tech;
-if ($tech['nav_home_text']) {
- $home_text = $tech['nav_home_text'] ;
- } else {
- $home_text = __('Home','techozoic');
- }
-$home_link = get_option('show_on_front');
-if ($home_link == "posts" && $tech['nav_home_link'] == "Yes") {?>
- <li class="<?php if (is_home()) echo'current_page_item' ?>"><a href="<?php echo home_url(); ?>" title="<?php echo $home_text;?>"><?php echo $home_text;?></a></li>
-<?php
-echo tech_nav_link("Before");
-}
-if (!$tech['nav_exclude_list']){
- wp_list_pages('title_li=&depth=1');
-} else {
- $nav_exclude = $tech['nav_exclude_list'];
- wp_list_pages("title_li=&exclude=".$nav_exclude."&depth=1");
-}
-echo tech_nav_link("After");
-?>
-</ul>
-</div>
View
35 nav-twotier.php
@@ -1,35 +0,0 @@
-<div id="navwrap">
-<ul id="nav2">
-<?php
-get_tech_options();
-global $tech;
-if ($tech['nav_home_text']) {
- $home_text = $tech['nav_home_text'] ;
-} else {
- $home_text = __('Home','techozoic');
-}
-$home_link = get_option('show_on_front');
-if ($home_link == "posts" && $tech['nav_home_link'] == "Yes") {?>
- <li class="<?php if (is_home()) echo'current_page_item' ?>"><a href="<?php echo home_url(); ?>" title="<?php echo $home_text;?>"><?php echo $home_text;?></a></li>
-<?php
-echo tech_nav_link("Before");
-}
-if (!$tech['nav_exclude_list']){
- wp_list_pages('title_li=&depth=1');
-} else {
- $nav_exclude = $tech['nav_exclude_list'];
- wp_list_pages("exclude=".$nav_exclude."&title_li=&depth=1");
-}
-echo tech_nav_link("After");
-?>
-</ul>
-<?php if($post->post_parent)
- $children = wp_list_pages("title_li=&depth=1&child_of=".$post->post_parent."&echo=0"); else
- $children = wp_list_pages("title_li=&depth=1&child_of=".$post->ID."&echo=0");
- if ($children) { ?>
- <ul id="subnav">
-<?php echo $children; ?>
- </ul>
-<?php }
-?>
-</div>
View
4 options.php
@@ -614,6 +614,10 @@ function optionsframework_options() {
"type" => "info",
"desc" => "<a href='https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=10998817' title='Donate Securely'><img src='https://www.paypal.com/en_US/i/btn/btn_donate_LG.gif' /></a>");
+ $options[] = array("name" => __("Changelog - Version 2.0.2", "techozoic"),
+ "type" => "info",
+ "desc" =>'Title was overlapping social media icons on single post page.<br />Navigation button color wasn\'t respected.<br /> Post title color wasn\'t respected on single post page.<br /> Post format status post weren\'t showing up on home page.<br />');
+
$options[] = array( "name" => __("Changelog - Version 2.0","techozoic"),
"type" => "info",
"desc" => 'Moved to Options Framework Option Panel.<br />
View
12 readme.txt
@@ -6,16 +6,16 @@ Requires at least: 3.0
Tested up to: 3.1
Stable tag: trunk
-Simple, fluid width, widget-ready sidebars and footer, 2 or 3 column theme.
+Advanced, fluid width, widget-ready sidebars and footer, 1, 2, or 3 column theme.
== Description ==
-Over 70 theme options to adjust column settings, color scheme, font, ad placement, and custom headers. SEO optimized titles and meta information.
+Advanced, fluid width 2 or 3 column theme with widgetized sidebar, footer, and header areas. Theme option pages to adjust everything from layout settings, color scheme, typography, ad placement, and custom headers. SEO optimized titles and meta description and keyword fields. Builtin social bookmarking, choose from 10 different popular social network and bookmarking sites to include. Visit the <a href="themes.php?page=options-framework">theme options</a> page to setup Techozoic.
== Installation ==
Installation can be done automatically through the Install Themes feature or manually by following instructions below.
-1. Upload `techozoic-fluid.zip` to the `/wp-content/themes/` directory
+1. Upload contents of `techozoic-fluid.zip` to the `/wp-content/themes/` directory
1. Choose the theme from the 'Appearance menu in WordPress
1. Visit the Techozoic Settings pages to configure all the theme options.
@@ -30,6 +30,12 @@ Installation can be done automatically through the Install Themes feature or man
[Techozoic Fluid](http://techozoic.clark-technet.com/ "Techozoic Fluid theme site")
== Changelog ==
+= Version 2.0.2 =
+* Title was overlapping social media icons on single post page.
+* Navigation button color wasn't respected.
+* Post title color wasn't respected on single post page.
+* Post format status post weren't showing up on home page.
+
= Version 2.0 =
* Moved to Options Framework Option Panel.
* Using Custom Header functions.
View
6 single.php
@@ -23,6 +23,9 @@
</div>
<div style="clear:both"></div>
<div class="post" id="post-<?php the_ID(); ?>">
+ <div class="toppost">
+ <a href="<?php echo home_url(); ?>"><img src="<?php echo get_template_directory_uri(); ?>/images/icons/home.png" border="0" alt="Home" title="<?php printf(__('Go back to %s','techozoic'), get_bloginfo('name')); ?>" /></a>&nbsp;<?php if (tech_icons('single')){ tech_social_icons($home=false); } ?>
+ </div>
<h1 class="post_title">
<?php if (get_the_title() != ""){ ?>
<?php the_title(); ?>
@@ -32,9 +35,6 @@
the_time();
}?>
</h1>
- <div class="toppost">
- <a href="<?php echo home_url(); ?>"><img src="<?php echo get_template_directory_uri(); ?>/images/icons/home.png" border="0" alt="Home" title="<?php printf(__('Go back to %s','techozoic'), get_bloginfo('name')); ?>" /></a>&nbsp;<?php if (tech_icons('single')){ tech_social_icons($home=false); } ?>
- </div>
<?php do_action('tech_before_sing_content');?>
<div class="singlepost entry">
<?php if(function_exists('the_post_thumbnail')) { the_post_thumbnail('single-post-thunbnail'); }?>
View
9 style.css
@@ -2,7 +2,7 @@
Theme Name: Techozoic Fluid
Theme URI: http://clark-technet.com/theme-support
Description: Advanced, fluid width 2 or 3 column theme with widgetized sidebar, footer, and header areas. Theme option pages to adjust everything from layout settings, color scheme, typography, ad placement, and custom headers. SEO optimized titles and meta description and keyword fields. Builtin social bookmarking, choose from 10 different popular social network and bookmarking sites to include. Visit the <a href="themes.php?page=options-framework">theme options</a> page to setup Techozoic.
-Version: 2.0
+Version: 2.0.2
Author: Jeremy Clark
Author URI: http://clark-technet.com
Tags: blue, light, one-column, two-columns, three-columns, flexible-width, custom-colors, custom-header, theme-options ,left-sidebar, right-sidebar, threaded-comments, translation-ready, sticky-post, post-formats, left-sidebar, right-sidebar
@@ -224,7 +224,7 @@ h2,.post_title{
font-size:2em;
font-weight:700;
letter-spacing:-0.9px;
- margin:0;
+ margin:30px 0 0;
}
h2 a,h2 a:visited,h3 a,h3 a:visited{
@@ -454,6 +454,7 @@ ul.comment-preview li:hover{
box-shadow: none;
-moz-box-shadow:none;
-webkit-box-shadow:none;
+ width: 64px;
}
.format-status .avatar img{
@@ -608,7 +609,7 @@ ul.comment-preview li:hover{
}
.toppost{
float:right;
- margin-top:-15px;
+ margin-top:5px;
}
.widecolumn .attachment{
@@ -1189,7 +1190,7 @@ Forms
clear:right;
font-size:1.3em;
font-weight:bolder;
- margin:-80px 10px 0 0;
+ margin:-100px 10px 0 0;
position: relative;
z-index: 10;
}

0 comments on commit 6638ef4

Please sign in to comment.
Something went wrong with that request. Please try again.