Permalink
Browse files

changes to ready for WP 4.1, fixed #8

  • Loading branch information...
bueltge committed Nov 3, 2014
1 parent 614d718 commit e8aa06fd7522f001debe530a3749222b3fb9a4f8
Showing with 83 additions and 66 deletions.
  1. +11 −7 functions.php
  2. +10 −11 header.php
  3. +6 −5 inc/admin/class-branding.php
  4. +10 −9 inc/class-core.php
  5. +4 −4 inc/class-i18n.php
  6. +5 −5 inc/comments/comment.php
  7. +27 −14 inc/setup.php
  8. +1 −1 readme.md
  9. +2 −2 searchform.php
  10. +4 −5 style.css
  11. +3 −3 widgets/init.php
View
@@ -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
@@ -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() {
View
@@ -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>
@@ -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>
@@ -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
View
@@ -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;
View
@@ -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;
View
@@ -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;
@@ -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
*/
View
@@ -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 */
@@ -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() {
@@ -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
*/
View
@@ -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.
View
@@ -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>
*/
?>
View
@@ -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
*/
View
@@ -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>
*/
/**
@@ -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;
@@ -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() {

0 comments on commit e8aa06f

Please sign in to comment.