Skip to content

Commit

Permalink
Final Commit v1.1.0
Browse files Browse the repository at this point in the history
Improved responsiveness, the navigation pager below articles will show
only articles under the same category, fixed affix widget issue when
there is a collapsible under the entry-content and several other tweaks.
  • Loading branch information
swashata committed Oct 9, 2013
1 parent 336fcfc commit 8cf9a9b
Show file tree
Hide file tree
Showing 10 changed files with 161 additions and 90 deletions.
30 changes: 17 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,21 @@

![Theme Logo](screenshot.png?raw=true)

Finally a free and open source knowledgebase theme made specifically for WordPress.
Finally a free and open source knowledge base theme made specifically for WordPress.
Uses twitter bootstrap for rendering UI components and some other open source elements
for rendering niceness.

We are going to release first stable version 1.1.0. Check the release channel.
Released version 1.1.0. Download the release and upload it as a WordPress Theme.

## Acknowledgement
Before we dive into the cool features of this theme, let's take a minute here to acknowledge
all the tools that were used during the development of this theme.
* [*Underscore Starter Theme*](http://underscores.me/): The basic theme framework.
* [*Twitter Bootstrap 3.0*](http://getbootstrap.com/): Nothing would've been possible without this.
* [*Icomoon Icons*](http://icomoon.io/): Along with Glyphicons, we've included icomoon for more icons.
* [*Sticky-kit*](https://github.com/leafo/sticky-kit): A little forked version of it to provide the affix widget.
* [*wp-bootstrap-navwalker*](https://github.com/twittem/wp-bootstrap-navwalker): A little forked version to generate the top nav.
* [Underscore Starter Theme](http://underscores.me/): The basic theme framework.
* [Twitter Bootstrap 3.0](http://getbootstrap.com/): Nothing would've been possible without this.
* [Icomoon Icons](http://icomoon.io/): Along with Glyphicons, we've included icomoon for more icons.
* [Sticky-kit](https://github.com/leafo/sticky-kit): A little forked version of it to provide the affix widget.
* [wp-bootstrap-navwalker](https://github.com/twittem/wp-bootstrap-navwalker): A little forked version to generate the top nav.
* [Google Webfonts](http://www.google.com/fonts/): Particularly, Oswald & Roboto Fonts are used.

## Features
* Awesome bootstrap 3.0 UI all over the theme.
Expand All @@ -32,8 +33,16 @@ all the tools that were used during the development of this theme.
* In built compatibility with a number of other plugins. (See recommended plugins).
* A nice and small footer to show off.
* Bootstrap navigation menu with custom-header image as logo.
* Custom 404 page! [Check it](http://ipanelthemes.com/kb/i-am-a-smart-404-page/).
* Integrated SEO support with BreadCrumbs (Rich Snippets) and third-party plugin integrations.
* and so on...

## Documentation
Comprehensive documentation on how to use this theme is available [at this link](http://ipanelthemes.com/kb/products/wp-knowledge-base-theme/).

## Live Preview
Check our own [Knowledge Base](http://ipanelthemes.com/kb/).

## Core Components converted to bootstrap UI
* Home Page
* Category Pages
Expand Down Expand Up @@ -61,9 +70,4 @@ This will always be the cutting edge development version of the theme. Pull requ
* [Category and Post Ordering](http://ipanelthemes.com/kb/category-post-ordering/) : Reorder Knowledge Bases and articles.
* [Syntax Highlighter Evolved](http://ipanelthemes.com/kb/syntax-highlighting/) : Put source codes on your post.
* [WP-PageNavi](http://ipanelthemes.com/kb/pagination-using-wp-pagenavi/) : Convert Next/Previous links on archive pages to paginations.

## Documentation
Comprehensive documentation on how to use this theme is available [at this link](http://ipanelthemes.com/kb/products/wp-knowledge-base-theme/).

## Live Preview
Check our own [Knowledge Base](http://ipanelthemes.com/kb/).
* [WordPress SEO](http://ipanelthemes.com/kb/search-engine-optimization/) : Complete compatibility with WordPress SEO by Yoast.
22 changes: 20 additions & 2 deletions category-templates/category-child.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<?php if ( have_posts() ) : ?>

<header class="kb-parent-category-header">
<div class="col-xs-4 col-sm-3 col-lg-2 kb-subcat-icon">
<div class="col-sm-3 col-lg-2 kb-subcat-icon hidden-xs">
<p class="text-center">
<a href="<?php echo esc_url( get_category_link( $cat ) ); ?>" class="thumbnail">
<?php if ( isset( $term_meta['icon_class'] ) && '' != $term_meta['icon_class'] ) : ?>
Expand All @@ -41,7 +41,7 @@
<?php endif; ?>
</div>
</div>
<div class="col-xs-8 col-sm-9 col-lg-10">
<div class="col-sm-9 col-lg-10">
<h1 class="page-title kb-scat-title">
<?php
single_cat_title();
Expand All @@ -50,6 +50,24 @@
<small class="text-muted"><?php printf( __( 'Page %1$d / %2$d', 'ipt_kb' ), $wp_query->query_vars['paged'], $wp_query->max_num_pages ); ?></small>
<?php endif; ?>
</h1>
<div class="col-sm-3 col-lg-2 kb-subcat-icon visible-xs">
<p class="text-center">
<a href="<?php echo esc_url( get_category_link( $cat ) ); ?>" class="thumbnail">
<?php if ( isset( $term_meta['icon_class'] ) && '' != $term_meta['icon_class'] ) : ?>
<i class="glyphicon <?php echo esc_attr( $term_meta['icon_class'] ); ?>"></i>
<?php else : ?>
<i class="glyphicon ipt-books"></i>
<?php endif; ?>
</a>
</p>
<div class="caption">
<?php if ( isset( $pterm_meta['support_forum'] ) && $pterm_meta['support_forum'] != '' ) : ?>
<p class="text-center"><a class="btn btn-default btn-block" href="<?php echo esc_url( $pterm_meta['support_forum'] ); ?>">
<i class="glyphicon ipt-support"></i> <?php _e( 'Support', 'ipt_kb' ); ?>
</a></p>
<?php endif; ?>
</div>
</div>
<?php
// Show an optional term description.
$term_description = term_description();
Expand Down
18 changes: 16 additions & 2 deletions category-templates/category-parent.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
global $term_meta, $cat, $cat_id, $sub_categories;
?>
<header class="kb-parent-category-header row">
<div class="col-md-4 col-lg-2 kb-pcat-icon">
<div class="col-sm-4 col-md-3 col-lg-2 kb-pcat-icon hidden-xs">
<?php if ( isset( $term_meta['image_url'] ) && '' != $term_meta['image_url'] ) : ?>
<p class="text-center">
<img class="img-circle" src="<?php echo esc_attr( $term_meta['image_url'] ); ?>" alt="<?php echo esc_attr( $cat->name ); ?>" />
Expand All @@ -19,12 +19,26 @@
<?php endif; ?>
</div>
</div>
<div class="col-md-8 col-lg-10">
<div class="col-sm-8 col-md-9 col-lg-10">
<h1 class="page-title">
<?php
single_cat_title();
?>
</h1>
<div class="kb-pcat-icon visible-xs">
<?php if ( isset( $term_meta['image_url'] ) && '' != $term_meta['image_url'] ) : ?>
<p class="text-center">
<img class="img-circle" src="<?php echo esc_attr( $term_meta['image_url'] ); ?>" alt="<?php echo esc_attr( $cat->name ); ?>" />
</p>
<?php endif; ?>
<div class="caption">
<?php if ( isset( $term_meta['support_forum'] ) && '' != $term_meta['support_forum'] ) : ?>
<p class="text-center"><a class="btn btn-default btn-block" href="<?php echo esc_url( $term_meta['support_forum'] ); ?>">
<i class="glyphicon ipt-support"></i> <?php _e( 'Get Support', 'ipt_kb' ); ?>
</a></p>
<?php endif; ?>
</div>
</div>
<?php
// Show an optional term description.
$term_description = term_description();
Expand Down
2 changes: 1 addition & 1 deletion functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* Set the version
*/
global $ipt_kb_version;
$ipt_kb_version = '1.0.0';
$ipt_kb_version = '1.1.0';

/**
* Set the content width based on the theme's design and stylesheet.
Expand Down
14 changes: 7 additions & 7 deletions inc/class-ipt-kb-social-widget.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,13 @@ function IPT_KB_Social_Widget() {
);
$settings_helper = array(
'social_titles' => array(
'facebook' => __( 'Facebook', 'ipt_kb' ),
'twitter' => __( 'Twitter', 'ipt_kb' ),
'gplus' => __( 'Google Plus', 'ipt_kb' ),
'youtube' => __( 'Youtube', 'ipt_kb' ),
'vimeo' => __( 'Vimeo', 'ipt_kb' ),
'pinterest' => __( 'Pinterest', 'ipt_kb' ),
'envato' => __( 'Follow on envato marketplaces', 'ipt_kb' ),
'facebook' => __( 'Like us on Facebook', 'ipt_kb' ),
'twitter' => __( 'Follow us on Twitter', 'ipt_kb' ),
'gplus' => __( 'Circle us on Google Plus', 'ipt_kb' ),
'youtube' => __( 'Subscribe to our Youtube Channel', 'ipt_kb' ),
'vimeo' => __( 'Subscribe to our Vimeo Channel', 'ipt_kb' ),
'pinterest' => __( 'Follow us on Pinterest', 'ipt_kb' ),
'envato' => __( 'Follow us on envato marketplaces', 'ipt_kb' ),
),
'social_classes' => array(
'facebook' => 'ipt-facebook',
Expand Down
8 changes: 4 additions & 4 deletions inc/template-tags.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ function ipt_kb_content_nav( $nav_id ) {

// Don't print empty markup on single pages if there's nowhere to navigate.
if ( is_single() ) {
$previous = ( is_attachment() ) ? get_post( $post->post_parent ) : get_adjacent_post( false, '', true );
$next = get_adjacent_post( false, '', false );
$previous = ( is_attachment() ) ? get_post( $post->post_parent ) : get_adjacent_post( true, '', true );
$next = get_adjacent_post( true, '', false );

if ( ! $next && ! $previous )
return;
Expand All @@ -77,8 +77,8 @@ function ipt_kb_content_nav( $nav_id ) {
<li class="screen-reader-text"><?php _e( 'Post navigation', 'ipt_kb' ); ?></li>
<?php if ( is_single() ) : // navigation links for single posts ?>

<?php previous_post_link( '<li class="nav-previous previous">%link</li>', '<span class="meta-nav">' . _x( '<span class="glyphicon glyphicon-arrow-left"></span>', 'Previous post link', 'ipt_kb' ) . '</span> %title' ); ?>
<?php next_post_link( '<li class="nav-next next">%link</li>', '%title <span class="meta-nav">' . _x( '<span class="glyphicon glyphicon-arrow-right"></span>', 'Next post link', 'ipt_kb' ) . '</span>' ); ?>
<?php previous_post_link( '<li class="nav-previous previous">%link</li>', '<span class="meta-nav">' . _x( '<span class="glyphicon glyphicon-arrow-left"></span>', 'Previous post link', 'ipt_kb' ) . '</span> %title', true ); ?>
<?php next_post_link( '<li class="nav-next next">%link</li>', '%title <span class="meta-nav">' . _x( '<span class="glyphicon glyphicon-arrow-right"></span>', 'Next post link', 'ipt_kb' ) . '</span>', true ); ?>

<?php elseif ( $wp_query->max_num_pages > 1 && ( is_home() || is_archive() || is_search() ) ) : // navigation links for home, archive, and search pages ?>

Expand Down
8 changes: 5 additions & 3 deletions js/ipt-kb.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,11 @@ jQuery(document).ready(function($) {
if ( cookie_str !== '' ) {
cookie_str += ' expires=' + exp_date.toUTCString() + '; path=/';
document.cookie = cookie_str;

// Also set the recalc and adjust_height
adjust_height();
}

// Also set the recalc and adjust_height
// This might even be necessary for other components
// Say a collapsible inside the entry-content
adjust_height();
});
});
Loading

0 comments on commit 8cf9a9b

Please sign in to comment.