Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Update docs

  • Loading branch information...
commit e87fc163dc3c98f8e3c044d70ac3e241df2614d3 1 parent e249503
@bueltge authored
View
8 comments.php
@@ -4,12 +4,12 @@
*
* The area of the page that contains both current comments
* and the comment form. The actual display of comments is
- * handled by a callback to twentytwelve_comment() which is
+ * handled by a callback to documentation_comment() which is
* located in the functions.php file.
*
- * @package WordPress
- * @subpackage Twenty_Twelve
- * @since Twenty Twelve 1.0
+ * @package WordPress
+ * @subpackage Documentation
+ * @since 2.0.0
*/
?>
<div id="comments">
View
13 functions.php
@@ -49,9 +49,14 @@ function documentation_setup() {
$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 );
+ require_once( get_template_directory() . '/inc/theme-options.php' );
+ $documentation_options = new Documentation_Options( $args );
+ */
+
// Include the theme customizer for options of theme options
require_once( get_template_directory() . '/inc/theme-customize.php' );
$documentation_customize = new Documentation_Customize( $args );
@@ -95,6 +100,10 @@ function documentation_setup() {
*/
function documentation_get_options( $value = '' ) {
+ // failed to load file for options, then return NULL
+ if ( ! class_exists( 'Documentation_Customize' ) )
+ return NULL;
+
$documentation_options = new Documentation_Customize();
$options = $documentation_options->get_theme_options();
View
4 header.php
@@ -1,7 +1,9 @@
<?php
/**
- * @package WordPress
+ * @package WordPress
* @subpackage Documentation
+ * @since 2.0.0
+ * @version 09/18/2012
*/
?>
<!DOCTYPE html>
View
2  inc/theme-options.php
@@ -172,7 +172,7 @@ public function theme_options_help() {
'<li>' . __( '<strong>Text Color</strong>: ', 'documentation' ) . '</li>' .
'<li>' . __( '<strong>Link Color</strong>: You can choose the color used for text links on your site. You can enter the HTML color or hex code, or you can choose visually by clicking the "Select a Color" button to pick from a color wheel.', 'documentation' ) . '</li>' .
'</ol>' .
- '<p>' . __( 'Remember to click "Save Changes" to save any changes you have made to the theme options.', 'twentyeleven' ) . '</p>';
+ '<p>' . __( 'Remember to click "Save Changes" to save any changes you have made to the theme options.', 'documentation' ) . '</p>';
$sidebar = '<p><strong>' . __( 'For more information:', 'documentation' ) . '</strong></p>';
Please sign in to comment.
Something went wrong with that request. Please try again.