Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
changes to ready for WP 4.1, fixed #8
  • Loading branch information
bueltge committed Nov 3, 2014
1 parent 614d718 commit e8aa06f
Show file tree
Hide file tree
Showing 11 changed files with 83 additions and 66 deletions.
18 changes: 11 additions & 7 deletions functions.php
Expand Up @@ -22,11 +22,15 @@
*
* For more information on hooks, actions, and filters, see
* @link http://codex.wordpress.org/Plugin_API.
*
* @package WP Basis
* @since 05/08/2012 0.0.1
* @version 01/21/2013
* @author fb
*
* Php Version 5.3
*
* @package WordPress
* @subpackage WordPress_Basis_Theme
* @since 2012-05-08 0.0.1
* @version 2014-11-03
* @author Frank Bültge <frank@bueltge.de>
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*/

// check for right php version
Expand All @@ -43,10 +47,10 @@
add_action( 'after_setup_theme', 'wp_basis_load_files' );

/**
* Autoload all files from folder inc
* Automatic load all files from folder inc
* Current no subdirectories
*
* @since 04/15/2013
* @since 2013-04-15
* @return void
*/
function wp_basis_load_files() {
Expand Down
21 changes: 10 additions & 11 deletions header.php
@@ -1,12 +1,12 @@
<?php
/**
* The Header for our WP Basis theme
*
* @package WP Basis
* @subpackage
* @since 05/08/2012 0.0.1
* @version 01/21/2013
* @author fb
*
* @package WordPress
* @subpackage WordPress_Basis_Theme
* @since 2012-05-08 0.0.1
* @version 2014-11-03
* @author Frank Bültge <frank@bueltge.de>
*/
?>
<!DOCTYPE html>
Expand All @@ -16,13 +16,12 @@
<!--[if IE 9 ]> <html <?php language_attributes(); ?> class="no-js ie9"> <![endif]-->
<!--[if (gt IE 9)|!(IE)]><!--><html <?php language_attributes(); ?> class="no-js" manifest="cache-manifest.manifest"><!--<![endif]-->

<head profile="http://gmpg.org/xfn/11">
<head>

<meta charset="<?php bloginfo( 'charset' ); ?>" />

<title><?php wp_title( '-' ); ?></title>

<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />

<link rel="profile" href="http://gmpg.org/xfn/11">
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />

<?php wp_head(); ?>
</head>
Expand Down
11 changes: 6 additions & 5 deletions inc/admin/class-branding.php
@@ -1,11 +1,12 @@
<?php
/**
* Custom admin and login branding for WordPress
*
* @package WP Basis
* @since 05/31/2012 0.0.1
* @version 01/07/2013
* @author fb
*
* @package WordPress
* @subpackage WordPress_Basis_Theme
* @since 05/31/2012 0.0.1
* @version 01/07/2013
* @author Frank Bültge <frank@bueltge.de>
*/

// @see Using namespaces: Aliasing/Importing http://php.net/manual/en/language.namespaces.importing.php
Expand Down
19 changes: 10 additions & 9 deletions inc/class-core.php
@@ -1,20 +1,21 @@
<?php
/**
* Core functions for WP Basis
*
* @package WP Basis
* @since 05/08/2012 0.0.1
* @version 05/08/2012
* @author fb
*
* @package WordPress
* @subpackage WordPress_Basis_Theme
* @since 2012-05-08 0.0.1
* @version 2012-05-08
* @author Frank Bültge <frank@bueltge.de>
*/

/**
* Set namespace to encapsulating items
* @link http://www.php.net/manual/en/language.namespaces.rationale.php
* @link http://www.php.net/manual/en/language.namespaces.rationale.php
*
* @since 05/08/2012 0.0.1
* @version 05/08/2012
* @author fb
* @since 2012-05-08 0.0.1
* @version 2012-05-08
* @author Frank Bültge <frank@bueltge.de>
*/
namespace Wp_Basis\Core;

Expand Down
8 changes: 4 additions & 4 deletions inc/class-i18n.php
Expand Up @@ -3,18 +3,18 @@
* Custom functions for translation
*
* @package WP Basis
* @since 05/08/2012 0.0.1
* @since 2012-05-08 0.0.1
* @version 01/21/2013
* @author fb
* @author Frank Bültge <frank@bueltge.de>
*/

/**
* Set namespace to encapsulating items
* @link http://www.php.net/manual/en/language.namespaces.rationale.php
*
* @since 05/08/2012 0.0.1
* @since 2012-05-08 0.0.1
* @version 05/08/2012
* @author fb
* @author Frank Bültge <frank@bueltge.de>
*/
namespace Wp_Basis\I18n;

Expand Down
10 changes: 5 additions & 5 deletions inc/comments/comment.php
Expand Up @@ -3,18 +3,18 @@
* Custom functions for comments
*
* @package WP Basis
* @since 05/08/2012 0.0.1
* @since 2012-05-08 0.0.1
* @version 05/08/2012
* @author fb
* @author Frank Bültge <frank@bueltge.de>
*/

/**
* Set namespace to encapsulating items
* @link http://www.php.net/manual/en/language.namespaces.rationale.php
*
* @since 05/08/2012 0.0.1
* @since 2012-05-08 0.0.1
* @version 05/08/2012
* @author fb
* @author Frank Bültge <frank@bueltge.de>
*/
namespace Wp_Basis\Comment;

Expand All @@ -26,7 +26,7 @@
*
* Used as a callback by wp_list_comments() for displaying the comments.
*
* @since 05/08/2012 0.0.1
* @since 2012-05-08 0.0.1
* @version 06/05/2012
* @author Automattic, fb
*/
Expand Down
41 changes: 27 additions & 14 deletions inc/setup.php
@@ -1,28 +1,29 @@
<?php
/**
* Setup and initialization of theme functions and definitions
*
* @package WP Basis
* @since 05/08/2012 0.0.1
* @version 04/29/2014
* @author fb
*
* @package WordPress
* @subpackage WordPress_Basis_Theme
* @since 2012-05-08 0.0.1
* @version 2014-11-03
* @author Frank Bültge <frank@bueltge.de>
*/

/**
* Set namespace to encapsulating items
* @link http://www.php.net/manual/en/language.namespaces.rationale.php
* @link http://www.php.net/manual/en/language.namespaces.rationale.php
*
* @since 05/08/2012 0.0.1
* @version 05/08/2012
* @author fb
* @since 2012-05-08 0.0.1
* @version 2012-05-08
* @author Frank Bültge <frank@bueltge.de>
*/
namespace Wp_Basis\Setup;

/**
* Set the content width in pixels based on the theme's design and stylesheet.
* Also the width of oEmbed objects to scale specific size
*
* @since 05/08/2012 0.0.1
* @since 2012-05-08 0.0.1
*/
if ( ! isset( $content_width ) )
$content_width = 640; /* pixels */
Expand All @@ -34,9 +35,9 @@
* before the init hook. The init hook is too late for some features, such as indicating
* support post thumbnails.
*
* @since 05/08/2012 0.0.1
* @version 04/29/2014
* @author fb
* @since 2012-05-08 0.0.1
* @version 2014-04-29
* @author Frank Bültge <frank@bueltge.de>
*/
\add_action( 'after_setup_theme', '\Wp_Basis\Setup\setup' );
function setup() {
Expand All @@ -60,7 +61,19 @@ function setup() {
* See the documentation inside the file for more inforamtion and possibilities
*/
require_once( 'comments/comment.php' );


/**
* Let WordPress manage the document title.
* By adding theme support, we declare that this theme does not use a
* hard-coded <title> tag in the document head, and expect WordPress to
* provide it for us.
* Usable since WordPress Version 4.1
*
* @see https://github.com/bueltge/wordpress-basis-theme/issues/8
* @since 2014-11-03
*/
\add_theme_support( 'title-tag' );

/**
* Add default posts and comments RSS feed links to head
*/
Expand Down
2 changes: 1 addition & 1 deletion readme.md
@@ -1,5 +1,5 @@
# WordPress Basis Theme
Basis provides a highly customizable starting point for your theme development
Basis provides a highly customizable starting point for your theme development.

## Description
Basis has been built to make theme development for WordPress easier. If you are an experienced theme developer or a total beginner, Basis provides a highly customizable starting point for your theme development and give your the typically development with WordPress by use Hooks. Basis comes with a pre-defined set of templates, no styles or style-framework for pure development. The theme is widget-ready and introduces a number of custom functions.
Expand Down
4 changes: 2 additions & 2 deletions searchform.php
Expand Up @@ -3,9 +3,9 @@
* The template for displaying search forms
*
* @package WP Basis
* @since 05/08/2012 0.0.1
* @since 2012-05-08 0.0.1
* @version 06/05/2012
* @author fb
* @author Frank Bültge <frank@bueltge.de>
*/
?>

Expand Down
9 changes: 4 additions & 5 deletions style.css
Expand Up @@ -8,14 +8,13 @@
*
* Theme Name: WP-Basis Codename: namespace
* Theme URI: http://wpbasis.de/
* Description: An powerful theme framework for WordPress.
* Description: Basis provides a highly customizable starting point for your theme development.
* Author: Frank Bültge
* Author URI: http://bueltge.de/
* Version: 0.0.1 Beta
* Version: 2014-11-03
* Template:
* Status: Development
* Tags: translation-ready, theme-options
* License: GNU General Public License (GPL) version 3
* Tags: translation-ready
* License: GPL 2+
* License URI: license.txt
*/

6 changes: 3 additions & 3 deletions widgets/init.php
Expand Up @@ -5,7 +5,7 @@
* @package WP Basis
* @since 06/05/2012 0.0.1
* @version 06/05/2012
* @author fb
* @author Frank Bültge <frank@bueltge.de>
*/

/**
Expand All @@ -14,7 +14,7 @@
*
* @since 06/05/2012 0.0.1
* @version 06/05/2012
* @author fb
* @author Frank Bültge <frank@bueltge.de>
*/
namespace Wp_Basis\Widgets;

Expand All @@ -23,7 +23,7 @@
*
* @since 06/05/2012 0.0.1
* @version 06/05/2012
* @author fb
* @author Frank Bültge <frank@bueltge.de>
*/
add_action( 'widgets_init', '\Wp_Basis\Widgets\widgets_init' );
function widgets_init() {
Expand Down

0 comments on commit e8aa06f

Please sign in to comment.