Permalink
Browse files

add mor infos to readme

  • Loading branch information...
1 parent 227f82b commit 41409d0aa85cd0801fb388cf038c5d0eaeb848dc @bueltge committed Oct 2, 2012
Showing with 123 additions and 79 deletions.
  1. +5 −1 archive.php
  2. +11 −6 comments.php
  3. +15 −3 footer.php
  4. +34 −25 functions.php
  5. +10 −2 header.php
  6. +2 −1 inc/head-style.php
  7. +5 −2 inc/theme-customize.php
  8. +2 −1 inc/theme-options.php
  9. +6 −2 index.php
  10. +1 −26 js/theme-customizer.js
  11. +6 −1 page.php
  12. +6 −1 readme.md
  13. +11 −4 sidebar.php
  14. +9 −4 single.php
View
@@ -8,6 +8,8 @@
if ( have_posts() ) :
+ tha_content_top();
+
/* If this is a category archive */ if ( is_category() ) { ?>
<h2><?php _e('Archive for categorie', 'documentation'); ?> &bdquo;<?php echo single_cat_title(); ?>&ldquo;</h2>
<?php /* If this is a daily archive */ } elseif ( is_day() ) { ?>
@@ -81,7 +83,9 @@
* called no-results-single.php and that will be used instead.
*/
get_template_part( 'parts/no-results', 'home' );
-
+
+ tha_content_bottom();
+
endif;
get_footer();
View
@@ -11,10 +11,13 @@
* @subpackage Documentation
* @since 2.0.0
*/
-?>
- <div id="comments">
+
+tha_comments_before(); ?>
+
+<div id="comments">
<?php if ( post_password_required() ) : ?>
<p class="nopassword"><?php _e( 'This post is password protected. Enter the password to view any comments.', 'documentation' ); ?></p>
+ <?php tha_comments_after(); ?>
</div><!-- #comments -->
<?php
/* Stop the rest of comments.php from being processed,
@@ -54,13 +57,15 @@
<div class="nav-next"><?php next_comments_link( __( 'Newer Comments &rarr;', 'documentation' ) ); ?></div>
</nav>
<?php endif; // check for comment navigation ?>
-
+
<?php // If there are no comments and comments are closed, let's leave a note.
elseif ( ! comments_open() && '0' != get_comments_number() && post_type_supports( get_post_type(), 'comments' ) ) :
?>
<p class="nocomments"><?php _e( 'Comments are closed.', 'documentation' ); ?></p>
<?php endif; ?>
-
- <?php comment_form(); ?>
-
+
+ <?php
+ comment_form();
+
+ tha_comments_after(); ?>
</div><!-- #comments -->
View
@@ -3,15 +3,22 @@
* @package WordPress
* @subpackage Documentation
*/
-
+
+tha_content_after();
+
if ( ! is_singular() )
documentation_get_paginate_bar();
?>
</div>
- <?php get_sidebar(); ?>
+ <?php
+ get_sidebar();
+
+ tha_footer_before();
+ ?>
<div id="footer">
+ <?php tha_footer_top(); ?>
<p>&copy; 2007 - <?php echo date( 'Y' ); ?> | <a href="<?php home_url( '/' ); ?>" class="site-name"><?php bloginfo( 'name' ); ?></a>
<?php
if ( defined( 'WP_DEBUG' ) && WP_DEBUG )
@@ -26,9 +33,14 @@
echo apply_filters( 'loginout', $link );
?>
</p>
+ <?php tha_footer_bottom(); ?>
</div>
- <?php wp_footer(); ?>
+ <?php
+ wp_footer();
+
+ tha_footer_after();
+ ?>
</div>
</body>
</html>
View
@@ -5,16 +5,6 @@
* @version 08/09/2012
*/
-/**
- * Post content often has specified width.
- * Thus, images which has bigger size than content width can break up the layout of theme.
- * To prevent this situation, WordPress provides one way to specify the maximum image size for themes.
- * Define the maximum image size
- */
-if ( ! isset( $content_width ) )
- $content_width = 900;
-
-
if ( ! function_exists( 'documentation_setup' ) ) {
add_action( 'after_setup_theme', 'documentation_setup' );
@@ -29,6 +19,16 @@
* @return void
*/
function documentation_setup() {
+
+ /**
+ * Post content often has specified width.
+ * Thus, images which has bigger size than content width can break up the layout of theme.
+ * To prevent this situation, WordPress provides one way to specify the maximum image size for themes.
+ * Define the maximum image size
+ */
+ if ( ! isset( $GLOBALS['content_width'] ) )
+ $GLOBALS['content_width'] = 900;
+
/**
* Make Documentation available for translation.
* Translations can be added to the /languages/ directory.
@@ -45,24 +45,33 @@ function documentation_setup() {
require_once( get_template_directory() . '/inc/class-branding.php' );
new Documentation_Admin_Branding( array() );
- // params for options class
- $args = array(
- 'theme_key' => strtolower( get_stylesheet() )
- );
-
/**
- * CURRENT DON'T LOAD WITHOUT CUSTOMIZER; BUT WITH MORE WORK FOR CODERS
- // Load up our theme options page and related code.
- require_once( get_template_directory() . '/inc/theme-options.php' );
- $documentation_options = new Documentation_Options( $args );
- */
+ * Add support for Theme Customizer
+ *
+ * @since 09/06/2012
+ */
+ add_theme_support( 'documentation_customizer', array( 'all' ) );
+ // Include the theme customizer for options of theme options, if theme supported
+ require_if_theme_supports( 'documentation_customizer', get_template_directory() . '/inc/theme-customize.php' );
- // Include the theme customizer for options of theme options
- require_once( get_template_directory() . '/inc/theme-customize.php' );
- $documentation_customize = new Documentation_Customize( $args );
+ /**
+ * Add support for custom style to write in head
+ *
+ * @since 09/06/2012
+ */
+ add_theme_support( 'documentation_head_style', array( 'all' ) );
// include to write the custom theme options in theme head
- require_once( get_template_directory() . '/inc/head-style.php' );
- $documentation_head_style = new Documentation_Head_Style( $args );
+ require_if_theme_supports( 'documentation_head_style', get_template_directory() . '/inc/head-style.php' );
+
+ /**
+ * Add support for the hook alliance
+ *
+ * @see https://github.com/zamoose/themehookalliance
+ * @since 10/02/2012
+ */
+ add_theme_support( 'tha_hooks', array( 'all' ) );
+ // include the file from this project, if theme supported
+ require_if_theme_supports( 'tha_hooks', get_template_directory() . '/inc/tha/tha-theme-hooks.php' );
// Add default posts and comments RSS feed links to <head>.
add_theme_support( 'automatic-feed-links' );
View
@@ -10,6 +10,7 @@
<html <?php language_attributes(); ?>>
<head>
+ <?php tha_head_top(); ?>
<meta charset="<?php bloginfo( 'charset' ); ?>" />
<meta name="viewport" content="width=device-width" />
@@ -18,6 +19,7 @@
<link rel="profile" href="http://gmpg.org/xfn/11" />
<link rel="Shortcut Icon" type="image/x-icon" href="favicon.ico" />
<?php
+ tha_head_bottom();
wp_head();
if ( is_singular() )
@@ -27,7 +29,9 @@
<body <?php body_class(); ?>>
<div id="wrap" class="hfeed">
+ <?php tha_header_before(); ?>
<div id="header">
+ <?php tha_header_top(); ?>
<p id="login"><?php
$redirect = documentation_get_options( 'rewrite_url' );
if ( ! is_user_logged_in() ) {
@@ -52,7 +56,11 @@
$header_image = get_header_image();
if ( ! empty( $header_image ) ) : ?>
<img src="<?php echo esc_url( $header_image ); ?>" class="header-image" width="<?php echo get_custom_header()->width; ?>" height="<?php echo get_custom_header()->height; ?>" alt="" />
- <?php endif; ?>
+ <?php endif;
+ tha_header_bottom();
+ ?>
</div>
-
+ <?php tha_header_after(); ?>
<div id="content">
+
+<?php tha_content_before(); ?>
View
@@ -126,4 +126,5 @@ public function enqueue_color_scheme() {
do_action( $this->theme_key . '_enqueue_color_scheme', $option );
}
-} // end class
+} // end class
+$documentation_head_style = new Documentation_Head_Style();
View
@@ -227,9 +227,11 @@ public function customize_register( $wp_customize ) {
*/
public function customize_preview_js() {
+ $suffix = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '.dev' : '';
+
wp_register_script(
$this->theme_key . '-customizer',
- get_template_directory_uri() . '/js/theme-customizer.js',
+ get_template_directory_uri() . '/js/theme-customizer' . $suffix . '.js',
array( 'customize-preview' ),
FALSE,
TRUE
@@ -238,4 +240,5 @@ public function customize_preview_js() {
wp_enqueue_script( $this->theme_key . '-customizer' );
}
-} // end class
+} // end class
+$documentation_customize = new Documentation_Customize();
View
@@ -334,4 +334,5 @@ public function validate( $input ) {
return apply_filters( $this->theme_key . '_options_validate', $output, $input, $defaults );
}
-} // end class
+} // end class
+$documentation_options = new Documentation_Options();
View
@@ -7,7 +7,9 @@
get_header();
if ( have_posts() ) :
-
+
+ tha_content_top();
+
/* If this is a category archive */ if ( is_category() ) { ?>
<h2><?php _e('Archive for categorie', 'documentation'); ?> &bdquo;<?php echo single_cat_title(); ?>&ldquo;</h2>
<?php /* If this is a daily archive */ } elseif ( is_day() ) { ?>
@@ -73,6 +75,7 @@
<?php
endwhile;
+
else:
/**
@@ -81,7 +84,8 @@
* called no-results-single.php and that will be used instead.
*/
get_template_part( 'parts/no-results', 'home' );
-
+
+ tha_content_bottom();
endif;
get_footer();
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View
@@ -7,6 +7,9 @@
get_header();
if ( have_posts() ) :
+
+ tha_content_top();
+
while ( have_posts() ) :
the_post(); ?>
@@ -43,7 +46,9 @@
* called no-results-single.php and that will be used instead.
*/
get_template_part( 'parts/no-results', 'home' );
-
+
+ tha_content_bottom();
+
endif;
get_footer();
@@ -1,8 +1,10 @@
# Documentation
A small theme for WordPress as a documentation-tool.
+*old theme, but on maintenance*
+
## Descripton
-A theme with simple structure, different settings and possibilities with the forus to documentize a topic with WordPress.
+A theme with simple structure, different settings and possibilities with the focus to documentize a topic with WordPress.
The supports custom settings for background, header, text- and link color and different more. It is possible to set the settings on frontend with the possibilities of the theme Customizer in WordPress.
## Installation
@@ -11,6 +13,9 @@ The supports custom settings for background, header, text- and link color and di
* PHP 5.2*
## Other Notes
+### Supported Theme Hook Alliance
+**What? Why?**
+Please see the description to this project on [github.com/zamoose/themehookalliance](https://github.com/zamoose/themehookalliance)
### Licence
Good news, this theme is free for everyone! Since it's released under the GPL, you can use it free of charge on your personal or commercial blog.
View
@@ -3,9 +3,13 @@
* @package WordPress
* @subpackage Documentation
*/
+
+tha_sidebars_before();
?>
<div id="sidebar">
-
+
+ <?php tha_sidebar_top(); ?>
+
<ul class="primary-widget-area">
<?php if ( class_exists('SitePress') ) { ?>
@@ -51,7 +55,10 @@
<ul class="secondary-widget-area">
<?php dynamic_sidebar( 'secondary-widget-area' ); ?>
</ul>
- <?php endif; ?>
-
+ <?php endif;
+
+ tha_sidebar_bottom();
+ ?>
</div>
-
+
+<?php tha_sidebars_after(); ?>
Oops, something went wrong.

0 comments on commit 41409d0

Please sign in to comment.