Skip to content

Commit

Permalink
Final Commit for 1.3.0
Browse files Browse the repository at this point in the history
Has several optimizations for uploading to WP Repository
  • Loading branch information
swashata committed Oct 14, 2013
1 parent 57cae3f commit a35927b
Show file tree
Hide file tree
Showing 10 changed files with 110 additions and 51 deletions.
33 changes: 31 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# WP Knowledge Base Theme
#### by iPanelThemes.com

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

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.

Released version 1.2.0. Download the release and upload it as a WordPress Theme.
Released version 1.3.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
Expand Down Expand Up @@ -74,3 +74,32 @@ This will always be the cutting edge development version of the theme. Pull requ
* [WordPress SEO](http://ipanelthemes.com/kb/search-engine-optimization/) : Complete compatibility with WordPress SEO by Yoast.
* [jQuery Colorbox](http://http://ipanelthemes.com/kb/wp-knowledge-base-theme/kb-plugins/jquery-colorbox-display-images-lighbox/) : Put your images inside lightbox.
* [Advanced TinyMCE](http://ipanelthemes.com/kb/wp-knowledge-base-theme/kb-plugins/customizing-tinymce-editor-buttons/) : Customize TinyMCE buttons.

## TODO

* Add Twitter typehead to the search fields for auto-completion

## Changelog

### Version 1.3.0

* Updated Theme name in style.css (respecting WordPress guideline).
* Added compatibility for upcoming EBS Plugin.
* Updated translations and a few translation bugs.

### Version 1.2.0

* Added article number information all throughout the pages.
* Optimized footer appearance for handheld devices.
* Added icons to empty results.
* Repositioned popover to bottom for better appearance on handheld devices.
* Removed small image on article list and added icon instead.
* Added compatibility with Post Order Plugin.
* Several other fine tuning (see commits)
* SHA: 0aac9c67304ed506f300fcfa6c6aeba5e2e51746

### Version 1.1.0
* First Stable release
* SHA: 8cf9a9ba94724e72d7ce599f24c71e58bb68c534
* SHA: 336fcfc5debf109473d3d8d2a38c5b4e7f4af4d4
* SHA: bd56c93b50cd93e6e55b8b9553d1e4b19e87bcc3
2 changes: 1 addition & 1 deletion footer.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<p class="copyright text-muted">
<a href="http://wordpress.org/" rel="generator"><?php printf( __( 'Proudly powered by %s', 'ipt_kb' ), 'WordPress' ); ?></a>
<span class="sep"> | </span>
<?php printf( __( 'Theme: %1$s by %2$s.', 'ipt_kb' ), 'WP Knowledge Base Theme', '<a href="http://ipanelthemes.com" rel="designer">iPanelThemes.com</a>' ); ?>
<?php printf( __( 'Theme: %1$s by %2$s.', 'ipt_kb' ), 'WP Knowledge Base', '<a href="http://ipanelthemes.com/" rel="designer">iPanelThemes.com</a>' ); ?>
</p>
<?php do_action( 'ipt_kb_credits' ); ?>
</div><!-- .site-info -->
Expand Down
32 changes: 25 additions & 7 deletions 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.2.0';
$ipt_kb_version = '1.3.0';

/**
* Set the content width based on the theme's design and stylesheet.
Expand Down Expand Up @@ -162,16 +162,34 @@ function ipt_kb_scripts() {
'ajaxurl' => admin_url( 'admin-ajax.php' ),
'ajax_error' => __( 'Oops, some problem to connect. Try again?', 'ipt_kb' ),
) );
}
add_action( 'wp_enqueue_scripts', 'ipt_kb_scripts' );

// Compatibility with Easy Bootstrap Shortcode
// @link http://wordpress.org/plugins/easy-bootstrap-shortcodes/
// Detach the icon css from bootstrap plugin
// Hats off to the developer to save me lot of trouble
wp_deregister_style( 'bootstrap-icon' );
/**
* Add compatibility with the EBS Plugin
* For the latest version only
*
* @link http://wordpress.org/plugins/easy-bootstrap-shortcodes/
*
* @param boolean $value The value of the filter
* @return boolean True to disable frontend enqueue and settings page
*/
function ipt_kb_ebs_compat( $value ) {
return true;
}
add_filter( 'ebs_custom_option', 'ipt_kb_ebs_compat' );

/**
* Add compatibility with older versions of EBS plugin
*
* Removes the stylesheets/javscripts
*/
function ipt_kb_ebs_remove_enqueue() {
wp_deregister_style( 'bootstrap' );
wp_deregister_style( 'bootstrap-icon' );
wp_deregister_script( 'bootstrap' );
}
add_action( 'wp_enqueue_scripts', 'ipt_kb_scripts' );
add_action( 'wp_enqueue_scripts', 'ipt_kb_ebs_remove_enqueue', 11 );

/**
* Add the excerpt hellip
Expand Down
4 changes: 2 additions & 2 deletions inc/ipt-kb-like-article.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ function ipt_kb_like_article_cb() {
$post_id = isset( $_REQUEST['post_id'] ) ? $_REQUEST['post_id'] : '';

if ( '' == $post_id ) {
die( __( 'Cheatin&#8217; uh?' ) );
die( __( 'Cheatin&#8217; uh?', 'ipt_kb' ) );
}

$post_id = (int) $post_id;
if ( ! wp_verify_nonce( $nonce, 'ipt_kb_like_article_' . $post_id ) ) {
die( __( 'Cheatin&#8217; uh?' ) );
die( __( 'Cheatin&#8217; uh?', 'ipt_kb' ) );
}

if ( isset( $_COOKIE['ipt_kb_like_article_' . $post_id] ) && $_COOKIE['ipt_kb_like_article_' . $post_id] == '1' ) {
Expand Down
24 changes: 12 additions & 12 deletions inc/template-tags.php
Original file line number Diff line number Diff line change
Expand Up @@ -482,28 +482,28 @@ function ipt_kb_comment_form( $args = array(), $post_id = null ) {
$aria_req = ( $req ? " aria-required='true'" : '' );
$html5 = 'html5' === $args['format'];
$fields = array(
'author' => '<div class="form-group comment-form-author">' . '<label class="col-md-2 control-label" for="author">' . __( 'Name' ) . ( $req ? ' <span class="required">*</span>' : '' ) . '</label> ' .
'author' => '<div class="form-group comment-form-author">' . '<label class="col-md-2 control-label" for="author">' . __( 'Name', 'ipt_kb' ) . ( $req ? ' <span class="required">*</span>' : '' ) . '</label> ' .
'<div class="col-md-10"><input class="form-control" id="author" name="author" type="text" value="' . esc_attr( $commenter['comment_author'] ) . '" size="30"' . $aria_req . ' /></div></div>',
'email' => '<div class="form-group comment-form-email"><label class="col-md-2 control-label" for="email">' . __( 'Email' ) . ( $req ? ' <span class="required">*</span>' : '' ) . '</label> ' .
'email' => '<div class="form-group comment-form-email"><label class="col-md-2 control-label" for="email">' . __( 'Email', 'ipt_kb' ) . ( $req ? ' <span class="required">*</span>' : '' ) . '</label> ' .
'<div class="col-md-10"><input class="form-control" id="email" name="email" ' . ( $html5 ? 'type="email"' : 'type="text"' ) . ' value="' . esc_attr( $commenter['comment_author_email'] ) . '" size="30"' . $aria_req . ' /></div></div>',
'url' => '<div class="form-group comment-form-url"><label class="col-md-2 control-label" for="url">' . __( 'Website' ) . '</label> ' .
'url' => '<div class="form-group comment-form-url"><label class="col-md-2 control-label" for="url">' . __( 'Website', 'ipt_kb' ) . '</label> ' .
'<div class="col-md-10"><input class="form-control" id="url" name="url" ' . ( $html5 ? 'type="url"' : 'type="text"' ) . ' value="' . esc_attr( $commenter['comment_author_url'] ) . '" size="30" /></div></div>',
);

$required_text = sprintf( ' ' . __('Required fields are marked %s'), '<span class="required">*</span>' );
$required_text = sprintf( ' ' . __( 'Required fields are marked %s', 'ipt_kb' ), '<span class="required">*</span>' );
$defaults = array(
'fields' => apply_filters( 'comment_form_default_fields', $fields ),
'comment_field' => '<div class="comment-form-comment form-group"><label class="col-md-2 control-label" for="comment">' . _x( 'Comment', 'noun' ) . '</label><div class="col-md-10"><textarea class="form-control" id="comment" name="comment" cols="45" rows="8" aria-required="true"></textarea></div></div>',
'must_log_in' => '<p class="must-log-in alert alert-danger">' . sprintf( __( 'You must be <a href="%s">logged in</a> to post a comment.' ), wp_login_url( apply_filters( 'the_permalink', get_permalink( $post_id ) ) ) ) . '</p>',
'logged_in_as' => '<p class="logged-in-as alert alert-success">' . sprintf( __( 'Logged in as <a href="%1$s">%2$s</a>. <a href="%3$s" title="Log out of this account">Log out?</a>' ), get_edit_user_link(), $user_identity, wp_logout_url( apply_filters( 'the_permalink', get_permalink( $post_id ) ) ) ) . '</p>',
'comment_notes_before' => '<p class="comment-notes alert alert-info">' . __( 'Your email address will not be published.' ) . ( $req ? $required_text : '' ) . '</p>',
'comment_field' => '<div class="comment-form-comment form-group"><label class="col-md-2 control-label" for="comment">' . _x( 'Comment', 'noun', 'ipt_kb' ) . '</label><div class="col-md-10"><textarea class="form-control" id="comment" name="comment" cols="45" rows="8" aria-required="true"></textarea></div></div>',
'must_log_in' => '<p class="must-log-in alert alert-danger">' . sprintf( __( 'You must be <a href="%s">logged in</a> to post a comment.', 'ipt_kb' ), wp_login_url( apply_filters( 'the_permalink', get_permalink( $post_id ) ) ) ) . '</p>',
'logged_in_as' => '<p class="logged-in-as alert alert-success">' . sprintf( __( 'Logged in as <a href="%1$s">%2$s</a>. <a href="%3$s" title="Log out of this account">Log out?</a>', 'ipt_kb' ), get_edit_user_link(), $user_identity, wp_logout_url( apply_filters( 'the_permalink', get_permalink( $post_id ) ) ) ) . '</p>',
'comment_notes_before' => '<p class="comment-notes alert alert-info">' . __( 'Your email address will not be published.', 'ipt_kb' ) . ( $req ? $required_text : '' ) . '</p>',
'comment_notes_after' => '<p class="form-allowed-tags well well-sm">' . sprintf( __( 'You may use these <abbr title="HyperText Markup Language">HTML</abbr> tags and attributes: %s' ), ' <code>' . allowed_tags() . '</code>' ) . '</p>',
'id_form' => 'commentform',
'id_submit' => 'submit',
'title_reply' => __( 'Leave a Reply' ),
'title_reply_to' => __( 'Leave a Reply to %s' ),
'cancel_reply_link' => __( 'Cancel reply' ),
'label_submit' => __( 'Post Comment' ),
'title_reply' => __( 'Leave a Reply', 'ipt_kb' ),
'title_reply_to' => __( 'Leave a Reply to %s', 'ipt_kb' ),
'cancel_reply_link' => __( 'Cancel reply', 'ipt_kb' ),
'label_submit' => __( 'Post Comment', 'ipt_kb' ),
'format' => 'xhtml',
);

Expand Down
50 changes: 30 additions & 20 deletions languages/en_US.po
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
msgid ""
msgstr ""
"Project-Id-Version: WP Knowledge Base Theme\n"
"POT-Creation-Date: 2013-10-09 18:57+0530\n"
"PO-Revision-Date: 2013-10-09 18:57+0530\n"
"POT-Creation-Date: 2013-10-14 13:57+0530\n"
"PO-Revision-Date: 2013-10-14 13:57+0530\n"
"Last-Translator: Swashata Ghosh <[email protected]>\n"
"Language-Team: ipanelthemes.com <[email protected]>\n"
"Language: en_US\n"
Expand Down Expand Up @@ -80,7 +80,7 @@ msgstr ""
msgid "Archives"
msgstr ""

#: ../archive.php:68 ../category-templates/category-child.php:50
#: ../archive.php:68 ../category-templates/category-child.php:48
#, php-format
msgid "Page %1$d / %2$d"
msgstr ""
Expand Down Expand Up @@ -196,41 +196,48 @@ msgstr ""
msgid "Primary Menu"
msgstr ""

#: ../functions.php:86
#: ../functions.php:85
msgid "Sidebar"
msgstr ""

#: ../functions.php:94
#: ../functions.php:93
msgid "Footer Large"
msgstr ""

#: ../functions.php:102
#: ../functions.php:101
msgid "Footer Small"
msgstr ""

#: ../functions.php:164
#: ../functions.php:163
msgid "Oops, some problem to connect. Try again?"
msgstr ""

#: ../header.php:30
msgid "Toggle navigation"
msgstr ""

#: ../home.php:41 ../home.php:53 ../home.php:72
#: ../category-templates/category-parent.php:87
#: ../home.php:42 ../home.php:54 ../home.php:73
#: ../category-templates/category-parent.php:82
#: ../inc/class-ipt-kb-affix-widget.php:126
msgid "Get support"
msgstr ""

#: ../home.php:57 ../home.php:115 ../category-templates/category-parent.php:91
#: ../home.php:58 ../category-templates/category-parent.php:86
msgid "Browse all"
msgstr ""

#: ../home.php:131
#: ../home.php:116 ../category-templates/category-parent.php:113
#, php-format
msgid "Browse %d article"
msgid_plural "Browse all %d articles"
msgstr[0] ""
msgstr[1] ""

#: ../home.php:132
msgid "Recent articles"
msgstr ""

#: ../home.php:159
#: ../home.php:169
msgid "Popular articles"
msgstr ""

Expand Down Expand Up @@ -295,22 +302,25 @@ msgstr ""
msgid "Search Knowledgebase for %s&hellip;"
msgstr ""

#: ../category-templates/category-child.php:39
#: ../category-templates/category-child.php:66
#: ../category-templates/category-child.php:38
#: ../category-templates/category-child.php:64
msgid "Support"
msgstr ""

#: ../category-templates/category-parent.php:17
#: ../category-templates/category-child.php:45
#: ../category-templates/category-parent.php:25
#, php-format
msgid "%d article"
msgid_plural "%d articles"
msgstr[0] ""
msgstr[1] ""

#: ../category-templates/category-parent.php:18
#: ../category-templates/category-parent.php:37
msgid "Get Support"
msgstr ""

#: ../category-templates/category-parent.php:76
#: ../category-templates/category-parent.php:109
msgid "Browse"
msgstr ""

#: ../category-templates/category-parent.php:81
#, php-format
msgid "%1$s / %2$s"
msgstr ""
Expand Down
2 changes: 2 additions & 0 deletions lib/icomoon/license.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Icon Set: IcoMoon - Free -- http://keyamoon.com/icomoon/
License: CC BY 3.0 -- http://creativecommons.org/licenses/by/3.0/
Binary file modified screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 7 additions & 7 deletions style.css
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
/*
Theme Name: WP Knowledge Base Theme
Theme URI: http://ipanelthemes.com/kb/products/wp-knowledge-base-theme/
Theme Name: WP Knowledge Base
Theme URI: http://ipanelthemes.com/kb/wp-knowledge-base-theme/
Author: swashata
Author URI: http://ipanelthemes.com
Description: A responsive bootstrap based theme for maintaining multi product knowledge base on your WordPress site.
Version: 1.2.0
Author URI: http://www.swashata.com/
Description: A responsive bootstrap based theme for maintaining multi product knowledge base on your WordPress site. Easily create knowledge bases with just posts and categories. You can also have images, support forum links and/or icons assigned to knowledge bases. The theme also has a comprehensive documentation which can be found at the theme URI.
Version: 1.3.0
License: GNU General Public License
License URI: license.txt
Text Domain: ipt_kb
Domain Path: /languages/
Tags: two-columns, flexible-width, custom-header, custom-menu, featured-images, gray, light
Tags: gray, light, white, two-columns, right-sidebar, flexible-width, custom-header, custom-menu, featured-images, threaded-comments, translation-ready
This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.
iPanelThemes Knowledgebase is based on Underscores http://underscores.me/, (C) 2012-2013 Automattic, Inc.
WP Knowledge Base is based on Underscores http://underscores.me/, (C) 2012-2013 Automattic, Inc.
Resetting and rebuilding styles have been helped along thanks to the fine work of
Eric Meyer http://meyerweb.com/eric/tools/css/reset/index.html
Expand Down
Binary file added theme-banner.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit a35927b

Please sign in to comment.