Permalink
Browse files

Added calendar icon back. Fixed page based menu styling. Removed twit…

…ter functions.
  • Loading branch information...
1 parent 8ffbb68 commit 5226ab4d8b02e71e333f087c65fbf6bc8cdae2e2 @jeremyclark13 committed Mar 11, 2013
Showing with 212 additions and 368 deletions.
  1. +39 −39 404.php
  2. +12 −1 content.php
  3. +3 −2 footer.php
  4. +2 −5 functions.php
  5. +27 −24 functions/tech-css.php
  6. +0 −173 functions/tech-twitter.php
  7. +1 −69 functions/tech-widget.php
  8. +2 −1 header.php
  9. +0 −3 inc/css/optionsframework.css
  10. +16 −8 options.php
  11. +110 −43 style.css
View
78 404.php
@@ -1,40 +1,40 @@
-<?php
-header( "HTTP/1.1 404 Not Found" );
-get_header();
-$tech_head_ad_code = of_get_option( 'header_ad_code', '' );
-if ( !empty( $tech_head_ad_code ) ) {
- ?>
- <div class="aligncenter">
- <?php
- $tech_header_ad_code = stripslashes( of_get_option( 'header_ad_code', '' ) );
- echo do_shortcode( $tech_header_ad_code );
- ?>
- </div>
- <?php
- $tech_ii++;
-}
-if ( of_get_option( 'home_sidebar', '1' ) == "1" )
- tech_show_sidebar( "l" );
-?>
-
-<div id="content" class="<?php
-if ( of_get_option( 'home_sidebar', '1' ) == "1" ) {
- echo "narrow";
-} else {
- echo "wide";
-}
-?>column">
-
- <h2 class="aligncenter"><?php _e( 'Error 404 - Not Found', 'techozoic' ) ?></h2>
-
- <h3><?php _e( 'Browse Archives', 'techozoic' ) ?></h3>
- <ul>
-<?php wp_get_archives( 'type=monthly' ); ?>
- </ul>
-</div>
-
-<?php
-if ( of_get_option( 'home_sidebar', '1' ) == "1" )
- tech_show_sidebar( "r" );
-get_footer();
+<?php
+header( "HTTP/1.1 404 Not Found" );
+get_header();
+$tech_head_ad_code = of_get_option( 'header_ad_code', '' );
+if ( !empty( $tech_head_ad_code ) ) {
+ ?>
+ <div class="aligncenter">
+ <?php
+ $tech_header_ad_code = stripslashes( of_get_option( 'header_ad_code', '' ) );
+ echo do_shortcode( $tech_header_ad_code );
+ ?>
+ </div>
+ <?php
+ $tech_ii++;
+}
+if ( of_get_option( 'home_sidebar', '1' ) == "1" )
+ tech_show_sidebar( "l" );
+?>
+
+<div id="content" class="<?php
+if ( of_get_option( 'home_sidebar', '1' ) == "1" ) {
+ echo "narrow";
+} else {
+ echo "wide";
+}
+?>column">
+
+ <h2 class="aligncenter"><?php _e( 'Error 404 - Not Found', 'techozoic' ) ?></h2>
+
+ <h3><?php _e( 'Browse Archives', 'techozoic' ) ?></h3>
+ <ul>
+<?php wp_get_archives( 'type=monthly' ); ?>
+ </ul>
+</div>
+
+<?php
+if ( of_get_option( 'home_sidebar', '1' ) == "1" )
+ tech_show_sidebar( "r" );
+get_footer();
?>
View
13 content.php
@@ -1,6 +1,17 @@
<?php $date_format = get_option( 'date_format' ); ?>
<div <?php post_class(); ?> id="post-<?php the_ID(); ?>">
- <div class="heading clear">
+ <div class="heading clear">
+ <?php if ( is_home() && of_get_option( 'post_title_styling', '0' ) ) { ?>
+ <div class="post_date">
+ <div class="month_post"><?php the_time( 'M' ) ?></div>
+ <div class="date_post"><?php the_time( 'j' ) ?></div>
+ </div>
+ <div class="commentdiv"><?php
+ if ( comments_open() && empty( $post->post_password ) ) {
+ comments_popup_link( '0', '1', '%', 'comment_num', '' );
+ }
+ ?></div>
+ <?php } ?>
<h2 class="post_title"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php printf( __( 'Permanent Link to %s', 'techozoic' ), get_the_title() ); ?>">
<?php
if ( get_the_title() ) {
View
5 footer.php
@@ -1,3 +1,4 @@
+</div><!-- #main -->
<div id="footer">
<div id="footerdivs">
<?php dynamic_sidebar( 'Footer' ); ?>
@@ -12,8 +13,8 @@
}
?>
-</div><!--footer-->
-</div><!--page-->
+</div><!-- footer -->
+</div><!-- page -->
<?php wp_footer(); ?>
</body>
</html>
View
7 functions.php
@@ -29,9 +29,6 @@
include(get_template_directory() . '/functions/tech-meta-box.php');
// Loads custom meta boxes on single post and page edit screen
-include(get_template_directory() . '/functions/tech-twitter.php');
-// Loads functions for pulling twitter feeds
-
include(get_template_directory() . '/functions/tech-template-tags.php');
// Loads template tags
@@ -714,11 +711,11 @@ function tech_google_font() {
*/
function tech_menu_fallback() {
- $output = ' <ul id="dropdown"> ';
+ $output = '<div class="navwrap"> <ul class="top-menu"> ';
$clean_page_list = wp_list_pages( 'sort_column=menu_order&title_li=&echo=0' );
$clean_page_list = preg_replace( '/title=\"(.*?)\"/', '', $clean_page_list );
$output .= $clean_page_list;
- $output .= '</ul>';
+ $output .= '</ul></div>';
echo $output;
}
View
51 functions/tech-css.php
@@ -222,38 +222,38 @@ function tech_head_css() {
font: {$tech_small_font['style']} {$tech_small_font['size']}/1.3em {$tech_small_font['face']}, Sans-Serif;
color: {$tech_small_font['color']};
}
-ul#nav a, ul#admin a, #dropdown li.current_page_item a:hover, .top-menu li.current-menu-item a:hover, #dropdown li.current_page_item ul a, .top-menu li.current-menu-item ul a, ul#nav li.current_page_item a:hover, {
+.top-menu li.current-menu-item a:hover, .top-menu li.current-menu-item ul a, ul#nav li.current_page_item a:hover, {
color: {$tech_nav_font['color']};
}
.commenlist .author,#searchform #s, #searchsubmit:hover,#catsubmit:hover,#wp-submit:hover,#TB_ajaxContent {
background-color: {$tech_acc_color} ;
}
-ul#admin li, ul#dropdown li, #navmenu .top-menu li{
+#navmenu .top-menu li{
/*background-color: {$tech_nav_bg_color};*/
}
-ul#admin li a, ul#dropdown li a, #navmenu .top-menu li a{
+#navmenu .top-menu li a{
font-style: {$tech_nav_font['style']};
font-size:{$tech_nav_font['size']};
font-family: {$tech_nav_font['face']}, Sans-Serif;
color:{$tech_nav_font['color']};
}
-ul#admin li a:hover, ul#dropdown li a:hover, #navmenu .top-menu li a:hover{
+#navmenu .top-menu li a:hover{
color: {$tech_nav_hov_text_color};
}
-#dropdown > li, ul.top-menu > li{
+ul.top-menu > li{
margin: 0 {$tech_nav_margin}px;
}
-.ribbon ul.top-menu > li, .square ul.top-menu > li, #dropdown > li{
+.ribbon ul.top-menu > li, .square ul.top-menu > li{
margin: 0;
padding: 0 {$tech_nav_margin}px;
}
-.ribbon ul.top-menu > li.has_children:hover:after, .square ul.top-menu > li.has_children:hover:after, #dropdown > li.has_children:hover:after {
+.ribbon ul.top-menu > li.has_children:hover:after, .square ul.top-menu > li.has_children:hover:after {
border-bottom: 5px solid {$tech_nav_ul_bg_color};
}
-#dropdown ul, .top-menu ul{
+.top-menu ul{
background-color: {$tech_nav_bg_gradient_top};
}
-.ribbon, .square, #dropdown{
+.ribbon, .square{
background-color: {$tech_nav_bg_gradient_top};
background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, from({$tech_nav_bg_gradient_top}), to({$tech_nav_bg_gradient_bot}));
background-image: -webkit-linear-gradient(top, {$tech_nav_bg_gradient_top}, {$tech_nav_bg_gradient_bot});
@@ -272,26 +272,26 @@ function tech_head_css() {
CSS;
if ( of_get_option( 'search_box', '1' ) == '1' ) {
$css_var .= <<<CSS
-.ribbon ul.top-menu > li:last-child, .square ul.top-menu > li:last-child, #dropdown > li:last-child{
+.ribbon ul.top-menu > li:last-child, .square ul.top-menu > li:last-child{
margin-right: 100px;
}
CSS;
}
if ( $tech_nav_bg_trans != '1' ) {
$css_var .= <<<CSS
-#navmenu .top-menu li, #navmenu .top-menu ul.sub-menu, ul#admin li, #navmenu #dropdown li{
+#navmenu .top-menu li, #navmenu .top-menu ul.sub-menu, ul#admin li{
background-color: {$tech_nav_ul_bg_color};
}
-#navmenu #dropdown li.current_page_item, #navmenu .top-menu li.current-menu-item, #navmenu .top-menu ul.sub-menu li.current-menu-item {
+#navmenu .top-menu li.current-menu-item, #navmenu .top-menu ul.sub-menu li.current-menu-item {
background-color: {$tech_nav_active_bg_color} ;
}
-#navmenu #dropdown li:hover, #navmenu .top-menu li:hover, #navmenu .top-menu ul.sub-menu > li:hover {
+#navmenu .top-menu li:hover, #navmenu .top-menu ul.sub-menu > li:hover {
background-color:{$tech_nav_hov_bg_color};
}
-#navmenu #dropdown li.current_page_item > a:hover, #navmenu .top-menu li.current-menu-item > a:hover, #navmenu .top-menu li.current-menu-item:hover > a, #navmenu .top-menu li:hover > a, #navmenu #dropdown li:hover > a {
+#navmenu .top-menu li.current-menu-item > a:hover, #navmenu .top-menu li.current-menu-item:hover > a, #navmenu .top-menu li:hover > a {
color:{$tech_nav_hov_text_color};
}
-#navmenu #dropdown li.current_page_item > a, #navmenu .top-menu li.current-menu-item > a{
+#navmenu .top-menu li.current-menu-item > a{
color:{$tech_nav_active_text_color};
}
ul#admin li:hover{
@@ -309,19 +309,19 @@ function tech_head_css() {
#navmenu .top-menu ul.sub-menu{
background-color: {$tech_nav_ul_bg_color}
}
-#dropdown li.current_page_item, #navmenu .top-menu li.current-menu-item {
+#navmenu .top-menu li.current-menu-item {
background-color: transparent ;
}
-#dropdown li:hover, #navmenu .top-menu li:hover {
+#navmenu .top-menu li:hover {
background-color:transparent;
box-shadow:none;
-moz-box-shadow:none;
-webkit-box-shadow:none;
}
-#dropdown li.current_page_item > a, #navmenu .top-menu li.current-menu-item > a{
+#navmenu .top-menu li.current-menu-item > a{
color:{$tech_nav_active_text_color};
}
-#dropdown li.current_page_item > a:hover, #navmenu .top-menu li.current-menu-item > a:hover, #navmenu .top-menu li.current-menu-item:hover > a, #navmenu .top-menu li:hover > a{
+#navmenu .top-menu li.current-menu-item > a:hover, #navmenu .top-menu li.current-menu-item:hover > a, #navmenu .top-menu li:hover > a{
color:{$tech_nav_hov_text_color};
}
ul#admin li:hover, ul#admin li{
@@ -333,12 +333,15 @@ function tech_head_css() {
CSS;
}
$css_var .= <<<CSS
-#dropdown li ul li, .top-menu li ul li, #dropdown li ul , .top-menu li ul{
+.top-menu li ul li, .top-menu li ul{
width: {$tech_menu_width}px !important;
}
-#dropdown li ul ul, .top-menu li ul ul{
+.top-menu li ul ul{
left:{$tech_menu_width}px ;
}
+.post_date {
+background-color:{$tech_acc_color};
+}
.tags {
border-bottom:1px {$tech_acc_color} solid;
border-top:1px {$tech_acc_color} solid;
@@ -347,7 +350,7 @@ function tech_head_css() {
color:{$tech_link_color};
text-decoration:none;
}
-#searchform #s {
+.date_post,#searchform #s {
color:{$tech_post_bg_color};
text-decoration:none;
}
@@ -571,14 +574,14 @@ function tech_head_css() {
}
}
$css_var .= <<<CSS
-#dropdown, .top-menu{
+.top-menu{
text-align:{$tech_nav_align};
}
CSS;
if ( of_get_option( 'nav_button_width', '0' ) != '0' ) {
$tech_nav_button_width = of_get_option( 'nav_button_width', '0' );
$css_var .= <<<CSS
-#navmenu ul#admin li, #nav2 li,#dropdown li, #navmenu .top-menu li{
+#navmenu ul#admin li, #nav2 li, #navmenu .top-menu li{
width: {$tech_nav_button_width}px;
}
CSS;
View
173 functions/tech-twitter.php
@@ -1,173 +0,0 @@
-<?php
-
-/**
- * Twitter functions
- *
- * Holds functions releated to Twitter feeds
- *
- * @package Techozoic Fluid
- * @author Jeremy Clark <jeremy@clark-technet.com>
- * @copyright Copyright (c) 2011, Jeremy Clark
- * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
- * @since 1.0
- *
- */
-
-
-/**
- * Techozoic twitter feed
- *
- * @param string $user user of twitter feed to retrieve.
- * @param string $count number of tweets to retrive.
- * @param string $type type of info to retrive.
- * @param int $cache number of seconds transient is valid for.
- *
- * Inspiration for code:
- * Chip Bennet's oenology theme https://github.com/chipbennett/oenology and
- * catswhocode http://www.catswhocode.com/blog/snippets/grab-tweets-from-twitter-feed
- *
- * @return string of formatted API data
- *
- * @since 2.0.7
- */
-function tech_twitter_info( $user = 'clarktechnet', $count = '3', $type = 'feed', $cache = 2160 ) {
- if ( $type == 'feed' ) {
- // Build Twitter api url
- $apiurl = "http://api.twitter.com/1/statuses/user_timeline.json?screen_name=$user&count=$count&include_entities=true";
- //cache request
- $transient_key = "tech_" . $user . "_twitter";
- } elseif ( $type == 'followers' ) {
- // Build Twitter api url
- $apiurl = "http://api.twitter.com/1/users/show.json?screen_name={$user}";
- //cache request
- $transient_key = "tech_" . $user . "_twitter_follow";
- }
- $i = 1;
- // If cached (transient) data are used, output an HTML
- // comment indicating such
- $cached = get_transient( $transient_key );
-
- if ( false !== $cached ) {
- return $cached;
- }
-
- // Request the API data, using the constructed URL
- $remote = wp_remote_get( $apiurl );
-
- // If the API data request results in an error, return
- // an appropriate comment
- if ( is_wp_error( $remote ) ) {
- delete_transient( $transient_key );
- return '<p>' . __( 'Twitter unaviable', 'techozoic' ) . '</p>';
- }
-
- // If the API returns a server error in response, output
- // an error message indicating the server response.
- if ( '200' != $remote['response']['code'] ) {
- delete_transient( $transient_key );
- return '<p>' . __( 'Twitter responded with an HTTP status code of ', 'techozoic' ) . esc_html( $remote['response']['code'] ) . '.</p>';
- }
-
- // If the API returns a valid response, the data will be
- // json-encoded; so decode it.
- $data = json_decode( $remote['body'] );
-
- if ( $type == 'feed' ) {
- $output = "<ul>\r\n";
-
- while ( $i <= $count ) {
- //Assign feed to $feed
- if ( isset( $data[$i - 1] ) ) {
- if ( isset( $data[$i - 1]->in_reply_to_status_id_str ) ) {
- $replyid = $data[$i - 1]->in_reply_to_status_id_str;
- $reply = wp_remote_get( "http://api.twitter.com/1/statuses/show/$replyid.json?include_entities=true" );
- if ( !is_wp_error( $reply ) ) {
- $replydata = json_decode( $reply['body'] );
- $replytext = $replydata->text;
- $replytext = tech_twitter_format( $replytext, $replydata );
- $replyuser = $data[$i - 1]->in_reply_to_screen_name;
- $replyid = $replydata->id_str;
- $output .= "<li class='tweet reply'>" . $replytext . " - <em>\r\n<a href='http://twitter.com/$replyuser/status/$replyid'>" . human_time_diff( strtotime( $replydata->created_at ), current_time( 'timestamp' ) ) . " " . __( 'ago', 'techozoic' ) . "</a></em><ul>\r\n";
- }
- }
- $feed = tech_twitter_format($data[$i - 1]->text, $data[$i - 1]);
- $id_str = $data[$i - 1]->id_str;
- $output .= "<li class='tweet'>" . $feed . " - <em>\r\n<a href='http://twitter.com/$user/status/$id_str'>" . human_time_diff( strtotime( $data[$i - 1]->created_at ), current_time( 'timestamp' ) ) . " " . __( 'ago', 'techozoic' ) . "</a></em></li>\r\n";
- if ( isset( $data[$i - 1]->in_reply_to_status_id_str ) ) {
- $output .= "</ul></li>\r\n";
- }
- }
- $i++;
- }
-
- $output .="</ul>";
- } elseif ( $type == 'followers' ) {
- $output = $data->followers_count . " " . __( 'followers', 'techozoic' );
- }
- set_transient( $transient_key, $output, $cache );
-
- return $output;
-}
-
-/**
- * Formats the tweet using the given entities element.
- *
- * @param string $raw_text just the text of the tweet
- * @param object $tweet an array of the tweet including entites
- * @return string the tweet text with entities replaced with hyperlinks
- *
- * source: http://dmblog.ca/2011/08/how-to-use-tweet-entities/
- *
- * @since 2.0.9
- */
-function tech_twitter_format( $raw_text, $tweet = NULL ) {
- // first set output to the value we received when calling this function
- $output = $raw_text;
-
- // create xhtml safe text (mostly to be safe of ampersands)
- $output = htmlentities( html_entity_decode( $raw_text, ENT_NOQUOTES, 'UTF-8' ), ENT_NOQUOTES, 'UTF-8' );
-
- // parse urls
- if ( $tweet == NULL ) {
- // for regular strings, just create <a> tags for each url
- $pattern = '/([A-Za-z]+:\/\/[A-Za-z0-9-_]+\.[A-Za-z0-9-_:%&\?\/.=]+)/i';
- $replacement = '<a href="${1}" rel="external">${1}</a>';
- $output = preg_replace( $pattern, $replacement, $output );
- } else {
- // for tweets, let's extract the urls from the entities object
- foreach ( $tweet->entities->urls as $url ) {
- $old_url = $url->url;
- $expanded_url = ( empty( $url->expanded_url ) ) ? $url->url : $url->expanded_url;
- $display_url = ( empty($url->display_url ) ) ? $url->url : $url->display_url;
- $replacement = '<a href="' . $expanded_url . '" rel="external">' . $display_url . '</a>';
- $output = str_replace( $old_url, $replacement, $output );
- }
-
- // let's extract the hashtags from the entities object
- foreach ( $tweet->entities->hashtags as $hashtags ) {
- $hashtag = '#' . $hashtags->text;
- $replacement = '<a href="http://twitter.com/search?q=%23' . $hashtags->text . '" rel="external">' . $hashtag . '</a>';
- $output = str_ireplace( $hashtag, $replacement, $output );
- }
-
- // let's extract the usernames from the entities object
- foreach ( $tweet->entities->user_mentions as $user_mentions ) {
- $username = '@' . $user_mentions->screen_name;
- $replacement = '<a href="http://twitter.com/' . $user_mentions->screen_name . '" rel="external" title="' . $user_mentions->name . ' on Twitter">' . $username . '</a>';
- $output = str_ireplace( $username, $replacement, $output );
- }
-
- // if we have media attached, let's extract those from the entities as well
- if ( isset( $tweet->entities->media ) ) {
- foreach ( $tweet->entities->media as $media ) {
- $old_url = $media->url;
- $replacement = '<a href="' . $media->expanded_url . '" rel="external" class="twitter-media" data-media="' . $media->media_url . '">' . $media->display_url . '</a>';
- $output = str_replace( $old_url, $replacement, $output );
- }
- }
- }
-
- return $output;
-}
-
-?>
View
70 functions/tech-widget.php
@@ -110,7 +110,6 @@ function tech_widgets_init() {
register_widget( 'Techozoic_About_Widget' );
register_widget( 'Techozoic_Meta_Widget' );
register_widget( 'Techozoic_RSS_Widget' );
- register_widget( 'Techozoic_Twitter_Widget' );
}
add_action( 'widgets_init', 'tech_widgets_init' );
@@ -519,71 +518,4 @@ function form( $instance ) {
}
-//End Class Techozoic_Status_Widget
-
-class Techozoic_Twitter_Widget extends WP_Widget {
-
- function Techozoic_Twitter_Widget() {
- $widget_ops = array( 'classname' => 'techozoic_twitter', 'description' => __( 'Twitter timeline widget', 'techozoic' ) );
- $this->WP_Widget( 'techozoic_twitter', __( 'Techozoic Twitter', 'techozoic' ), $widget_ops );
- }
-
- function widget( $args, $instance ) {
- extract( $args );
- $title = apply_filters( 'widget_title', empty( $instance['title'] ) ? __( 'Twitter', 'techozoic' ) : $instance['title'] );
- $user = $instance['user'];
- if ( !$cache = (int) $instance['cache'] )
- $cache = 6 * 60 * 60;
- else if ( $cache < 0 )
- $cache = 1 * 60 * 60;
- else if ( $cache > 24 )
- $cache = 24 * 60 * 60;
- if ( !$number = (int) $instance['number'] )
- $number = 5;
- else if ( $number < 0 )
- $number = 1;
- else if ( $number > 20 )
- $number = 20;
-
- echo $before_widget;
- global $post;
- if ( $title )
- echo $before_title . $title . $after_title;
- echo tech_twitter_info( $user, $number, 'feed', $cache );
- echo $after_widget;
- }
-
- function update( $new_instance, $old_instance ) {
- $instance = $old_instance;
- $instance['title'] = strip_tags( $new_instance['title'] );
- $new_instance = wp_parse_args( (array) $new_instance, array( 'user' => 'clarktechnet', 'cache' => '6', 'title' => 'Twitter', 'number' => 5 ) );
- $instance['user'] = $new_instance['user'];
- $instance['number'] = (int) $new_instance['number'];
- $instance['cache'] = (int) $new_instance['cache'];
- return $instance;
- }
-
- function form( $instance ) {
- $instance = wp_parse_args( (array) $instance, array( 'user' => 'clarktechnet', 'cache' => '6', 'title' => 'Twitter', 'number' => 5 ) );
- $title = esc_attr( $instance['title'] );
- $user = esc_attr( $instance['user'] );
- $number = isset( $instance['number'] ) ? absint( $instance['number'] ) : 5;
- $cache = isset( $instance['cache'] ) ? absint( $instance['cache'] ) : 6;
- ?>
- <p><label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e( 'Title:', 'techozoic' ); ?></label> <input class="widefat" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" type="text" value="<?php echo $title; ?>" /></p>
- <p><label for="<?php echo $this->get_field_id( 'user' ); ?>"><?php _e( 'Twitter User:', 'techozoic' ); ?></label> @<input class="widefat" id="<?php echo $this->get_field_id( 'user' ); ?>" name="<?php echo $this->get_field_name( 'user' ); ?>" type="text" value="<?php echo $user; ?>" /></p>
- <p><label for="<?php echo $this->get_field_id( 'number' ); ?>"><?php _e( 'Number of Tweets', 'techozoic' ) ?></label>
- <input id="<?php echo $this->get_field_id( 'number' ); ?>" name="<?php echo $this->get_field_name( 'number' ); ?>" type="text" value="<?php echo $number; ?>" size="3" /><br />
- <small><?php _e( 'Limit 20', 'techozoic' ) ?></small></p>
- <p><label for="<?php echo $this->get_field_id( 'cache' ); ?>"><?php _e( 'Time to cache results in hours', 'techozoic' ) ?></label>
- <input id="<?php echo $this->get_field_id( 'cache' ); ?>" name="<?php echo $this->get_field_name( 'cache' ); ?>" type="text" value="<?php echo $cache; ?>" size="3" /><br />
- <small><?php _e( 'Between 1 and 24 hours', 'techozoic' ) ?></small></p>
-
- <?php
- }
-
-}
-
-//End Class Techozoic_About_Widget
-
-?>
+//End Class Techozoic_Status_Widget
View
3 header.php
@@ -130,4 +130,5 @@
if ( of_get_option( 'nav_location', 'below' ) == 'below' ) {
get_template_part( 'nav' );
}
- ?>
+ ?>
+ <div id="main">
View
3 inc/css/optionsframework.css
@@ -16,9 +16,6 @@
float:left;
width: 30%;
}
-#optionsframework-sidebar .tweet ul{
- margin-left: 10px;
-}
#optionsframework {
position:relative;
z-index: 0;
View
24 options.php
@@ -54,9 +54,6 @@ function optionsframework_options() {
if ( class_exists( 'bbPress' ) ) {
$options_pages['forum'] = 'All bbPress Forum Pages';
}
- $twitter_feed = tech_twitter_info( $user = 'clarktechnet', $count = '5', $type = 'feed' );
- $twitter_followers = tech_twitter_info( $user = 'clarktechnet', $count = '0', $type = 'followers' );
- $news_feed = techozoic_links_box();
// If using image radio buttons, define a directory path
$imagepath = get_template_directory_uri() . '/images/';
@@ -162,6 +159,12 @@ function optionsframework_options() {
"old_options" => array( "On" => "1", "Off" => "0" ),
"std" => "0" );
+ $options[] = array( "name" => __( 'Extra Post Title Styling', 'techozoic' ),
+ "desc" => __( 'Enable the calendar and comment icon on homepage.', 'techozoic' ),
+ "id" => "post_title_styling",
+ "type" => "checkbox",
+ "std" => "0" );
+
$options[] = array( "name" => __( 'Comment Preview', 'techozoic' ),
"desc" => __( 'Enable the comment preview for posts on the home page.', 'techozoic' ),
"id" => "comment_preview",
@@ -971,21 +974,26 @@ function of_update_color(id,hex) {
add_action( 'optionsframework_after', 'tech_options_display_sidebar', 100 );
-function tech_options_display_sidebar() {
- ?>
+function tech_options_display_sidebar() { ?>
<div class="metabox-holder" id="optionsframework-sidebar">
<div class="postbox">
<h3><?php _e('About Techozoic', 'techozoic'); ?></h3>
<div class="inside">
<h4><?php _e('Help Support Further Development', 'techozoic'); ?></h4>
<p><a href='https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=Q2UB936PZYYZ6' title='Help Support Development' target='_blank' ><img src='https://www.paypalobjects.com/en_US/i/btn/btn_paynow_SM.gif' /></a></p>
<hr />
- <h4><?php _e('Twitter', 'techozoic'); ?> - <?php echo tech_twitter_info( $user = 'clarktechnet', $count = '0', $type = 'followers' ); ?></h4>
- <p><a href='https://twitter.com/#!/search/realtime/techozoic%20from%3Aclarktechnet' title='Follow Development on Twitter' target='_blank'>Follow Development on Twitter</a> | <a href='https://twitter.com/intent/user?screen_name=clarktechnet' title='Follow Me on Twitter' target='_blank'>Follow Me on Twitter</a></p>
- <p><?php echo tech_twitter_info( $user = 'clarktechnet', $count = '5', $type = 'feed' ); ?></p>
+ <h4><?php _e('Twitter', 'techozoic'); ?></h4>
+ <p><a href="https://twitter.com/clarktechnet" class="twitter-follow-button" data-show-count="false" data-size="large" data-dnt="true">Follow @clarktechnet</a>
+<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
+ <br /><a href='https://twitter.com/#!/search/realtime/techozoic%20from%3Aclarktechnet' title='Follow Development on Twitter' target='_blank'>Follow Development on Twitter</a></p>
<hr />
<h4><?php _e('What\'s New', 'techozoic'); ?></h4>
<p>
+ <strong>Version 2.1.2</strong>
+ <ul>
+ <li>Fixed issue when using page based menus</li>
+ <li>Removed Twitter functions due to API 1.1 changes</li>
+ </ul>
<strong>Version 2.1.1</strong>
<ul>
<li>Missed changing archive page to use new template part.</li>
View
153 style.css
@@ -6,8 +6,8 @@ Version: 2.1.1
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
-License: GNU General Public License v2.0
-License URI: http://www.gnu.org/licenses/gpl-2.0.html
+License: GNU General Public License v3.0
+License URI: http://www.gnu.org/licenses/gpl-3.0.html
*/
/*************************************
@@ -245,6 +245,39 @@ h3{
/*************************************
Entry
*************************************/
+.commentdiv{
+ float:right;
+ height:40px;
+ margin-top:7px;
+ text-align:center;
+ width:40px;
+}
+
+.commentdiv a{
+ background:url(images/comment2.png) no-repeat top center;
+ color:#597EAA;
+ display:block;
+ height:35px;
+ font-size:18px;
+ font-weight:700;
+ text-decoration:none;
+ padding-top:8px;
+ text-decoration:none;
+ width:40px;
+}
+.commentdiv a:hover{
+ text-decoration: none;
+}
+.commentdiv span{
+ background:url(images/comment2.png) no-repeat top center;
+ color:#597EAA;
+ display:block;
+ font-size:9px;
+ height:35px;
+ padding-top:6px;
+ text-decoration:none;
+ width:40px;
+}
.post_comment_cont{
clear:both;
@@ -261,10 +294,18 @@ ul.comment-preview li:hover{
opacity:1;
}
-.entry h2{
- font-size: 2em;
- line-height:2.2em;
- margin: 5px 0 3px;
+.date_post{
+ clear: left;
+ color: #e3e3e3;
+ float: left;
+ font-size: 19px;
+ font-weight: 800;
+ height: 20px;
+ letter-spacing: -1px;
+ text-align: center;
+ text-decoration: none;
+ width: 40px;
+ line-height: 20px;
}
.entry h3{
@@ -338,6 +379,23 @@ ul.comment-preview li:hover{
-webkit-box-shadow:none !important;
}
+.month_post{
+ background: -moz-linear-gradient(center top , #E3E3E3, #C3C3C3);
+ background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#C3C3C3), to(#E3E3E3));
+ background: -webkit-linear-gradient(top, #E3E3E3, #C3C3C3);
+ background: -ms-linear-gradient(top, #E3E3E3, #C3C3C3);
+ background: -o-linear-gradient(top, #E3E3E3, #C3C3C3);
+ background-color: #e3e3e3;
+ border-bottom: 1px solid #777777;
+ clear: left;
+ color: #2C4353;
+ font-size: 12px;
+ font-weight: bold;
+ height: 16px;
+ padding: 0 4px 0 0;
+ text-align: right;
+}
+
.narrowcolumn .entry, .widecolumn .entry{
border-bottom-left-radius:5px;
-moz-border-radius-bottomleft:5px;
@@ -411,6 +469,22 @@ ul.comment-preview li:hover{
padding-top:4px;
}
+.post_date{
+ background-color: #A0B3C2;
+ border: 1px solid #CCCCCC;
+ -webkit-border-radius: 5px;
+ -moz-border-radius: 5px;
+ border-radius: 5px;
+ box-shadow: 0 0 3px rgba(0, 0, 0, 0.4);
+ -moz-box-shadow:0 0 3px rgba(0, 0, 0, 0.4);
+ -webkit-box-shadow:0 0 3px rgba(0,0,0,0.4);
+ clear: left;
+ float: left;
+ height: 40px;
+ margin: 10px 7px 0 0;
+ width: 40px
+}
+
.postmetadata{
clear:left;
color:#777;
@@ -485,9 +559,9 @@ ul.comment-preview li:hover{
font-size: .8em;
}
.tagcont{
- float:left;
- margin:2% 1%;
- width:48%;
+ float:left;
+ margin:2% 1%;
+ width:48%;
}
.post_info{
@@ -980,7 +1054,7 @@ Nav Menus
#menu-icon{
display:none;
}
-#dropdown, .top-menu{
+.top-menu{
line-height:16px;
list-style-image:none;
list-style-type:none;
@@ -992,11 +1066,11 @@ Nav Menus
font-size: 0;
min-height: 35px;
}
-.ribbon .top-menu, .square .top-menu, #dropdown{
+.ribbon .top-menu, .square .top-menu{
padding-top: 0;
line-height: 26px;
}
-#dropdown a, .top-menu a{
+.top-menu a{
color:#A0B3C2;
display:block;
font-size:1.3em;
@@ -1005,11 +1079,11 @@ Nav Menus
text-decoration:none;
}
-#dropdown a:hover, .top-menu a:hover{
+.top-menu a:hover{
text-decoration:none !important;
}
-#dropdown > li, ul.top-menu > li{
+ul.top-menu > li{
border-top-left-radius:5px;
border-top-right-radius:5px;
-moz-border-radius-topleft:5px;
@@ -1022,14 +1096,14 @@ Nav Menus
position:relative;
padding: 0 2px;
}
-#dropdown li, ul.top-menu li{
+ul.top-menu li{
text-align: left;
display: inline-block;
zoom: 1; /* zoom and *display = ie7 hack for display:inline-block */
*display: inline;
}
-.ribbon ul.top-menu > li, .square ul.top-menu > li, #dropdown > li{
+.ribbon ul.top-menu > li, .square ul.top-menu > li{
border-radius:0;
-moz-border-radius:0;
-webkit-border-radius:0;
@@ -1039,10 +1113,10 @@ Nav Menus
padding: 0 2px;
min-height: 35px;
}
-.ribbon ul.top-menu > li:first-child, .square ul.top-menu > li:first-child, #dropdown > li:first-child{
+.ribbon ul.top-menu > li:first-child, .square ul.top-menu > li:first-child{
border-left: 1px solid #aaa;
}
-#dropdown ul, .top-menu ul{
+.top-menu ul{
visibility: hidden;
opacity: 0;
-moz-transition:visibility 0s linear 0.5s,opacity 0.3s linear;
@@ -1060,27 +1134,27 @@ Nav Menus
z-index:300;
background-color:#E3E3E3;
}
-.ribbon .top-menu ul, .square .top-menu ul, #dropdown ul{
+.ribbon .top-menu ul, .square .top-menu ul{
top: 35px;
}
-.ribbon .top-menu ul ul, .square .top-menu ul ul, #dropdown ul ul{
+.ribbon .top-menu ul ul, .square .top-menu ul ul{
top: auto;
}
-#dropdown li ul , .top-menu li ul{
+.top-menu li ul{
width:250px;
padding:0 0 3px;
box-shadow:2px 1px 4px rgba(0, 0, 0, 0.3);
-moz-box-shadow:2px 1px 4px rgba(0, 0, 0, 0.3);
-webkit-box-shadow:2px 1px 4px rgba(0, 0, 0, 0.3);
clip:rect(0px, 1000px, 1000px, -10px);
}
-#dropdown li ul a , .top-menu li ul a{
+.top-menu li ul a{
width:100%;
float:left;
}
-#dropdown li ul li, .top-menu li ul li{
+.top-menu li ul li{
width:250px !important;
border-top: 1px solid #D3D3D3;
height: 24px;
@@ -1091,20 +1165,18 @@ Nav Menus
overflow:hidden;
line-height: 22px;
}
-#dropdown ul ul, .top-menu ul ul{
+.top-menu ul ul{
top:auto;
border: 1px solid #D3D3D3;
border-top:none;
}
-#dropdown ul ul li:first-child, .top-menu ul ul li:first-child{
+.top-menu ul ul li:first-child{
border-top: none;
}
-#dropdown li ul ul, .top-menu li ul ul{
+.top-menu li ul ul{
left:250px;
}
-#dropdown li:hover ul ul,
-#dropdown li:hover ul ul ul,
-#dropdown li:hover ul ul ul ul,
+
.top-menu li:hover ul ul,
.top-menu li:hover ul ul ul,
.top-menu li:hover ul ul ul ul {
@@ -1115,10 +1187,7 @@ Nav Menus
-o-transition:visibility 0s linear 0.5s,opacity 0.3s linear;
transition:visibility 0s linear 0.5s,opacity 0.3s linear;
}
-#dropdown li:hover ul,
-#dropdown li li:hover ul,
-#dropdown li li li:hover ul,
-#dropdown li li li li:hover ul,
+
.top-menu li:hover ul,
.top-menu li li:hover ul,
.top-menu li li li:hover ul,
@@ -1132,18 +1201,17 @@ Nav Menus
transition-delay: 0s;
}
-#dropdown li:hover,
.top-menu li:hover {
background:#efefef;
box-shadow:2px -1px 3px rgba(0, 0, 0, 0.3);
-moz-box-shadow:2px -1px 3px rgba(0, 0, 0, 0.3);
-webkit-box-shadow:2px -1px 3px rgba(0, 0, 0, 0.3);
}
-.ribbon ul.top-menu > li.has_children, .square ul.top-menu > li.has_children, #dropdown > li.has_children{
+.ribbon ul.top-menu > li.has_children, .square ul.top-menu > li.has_children{
background: url(images/top-submenu.gif) no-repeat center right;
padding-right: 10px;
}
-.ribbon ul.top-menu > li.has_children:hover:after, .square ul.top-menu > li.has_children:hover:after, #dropdown > li.has_children:hover:after {
+.ribbon ul.top-menu > li.has_children:hover:after, .square ul.top-menu > li.has_children:hover:after {
content: " ";
display: block;
width: 0;
@@ -1210,21 +1278,20 @@ Nav Menus
width: 0;
z-index: 2;
}
-.ribbon .top-menu li:hover, .square .top-menu li:hover, #dropdown li:hover{
+.ribbon .top-menu li:hover, .square .top-menu li:hover{
background-color: transparent;
box-shadow:none;
-moz-box-shadow:none;
-webkit-box-shadow:none;
}
-#dropdown li ul li:hover,
.top-menu li ul li:hover {
background: #efefef;
box-shadow:none;
-moz-box-shadow:none;
-webkit-box-shadow:none;
}
-.top-menu li ul li.has_children, #dropdown li ul li.has_children{
+.top-menu li ul li.has_children{
background: url(images/submenu.gif) no-repeat center right;
}
.standard{
@@ -1258,7 +1325,7 @@ Nav Menus
margin-right: -10px;
border-top: 1px solid #bbb;
}
-.square, ul#dropdown{
+.square{
margin-left: 0px;
margin-right: 0px;
}
@@ -1455,7 +1522,7 @@ input[type="submit"]:hover, .button:hover, div#infinite-handle span:hover {
background: -moz-linear-gradient(top, #fff, #dcdcdc);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#dcdcdc');
}
-input[type="submit"]:active, .button:active, div#infinite-handle span: active {
+input[type="submit"]:active, .button:active, div#infinite-handle span:active {
position: relative;
top: 1px;
color: #999;
@@ -1880,11 +1947,11 @@ Infnite Scroll
/* Hides navigation links and site footer when infinite scroll is active */
.infinite-scroll .navigation,
.infinite-scroll.neverending #footer {
- visibility: hidden;
+ visibility: hidden;
}
/* Shows the footer again in case all posts have been loaded */
.infinity-end.neverending #footer {
- visibility: visible;
+ visibility: visible;
}
#infinite-footer{
z-index: 10;

0 comments on commit 5226ab4

Please sign in to comment.