Browse files

updated HTML comments around hooks

  • Loading branch information...
1 parent 9b5badf commit 06af0feb957a16483f203d9748bcdf7f7dd3c049 @tylerbcunning tylerbcunning committed Mar 12, 2012
Showing with 94 additions and 104 deletions.
  1. +15 −18 404.php
  2. +19 −21 archive.php
  3. +4 −3 changelog.txt
  4. +7 −7 comments.php
  5. +6 −8 footer.php
  6. +14 −6 functions.php
  7. +8 −10 header.php
  8. +2 −3 index.php
  9. +5 −12 page.php
  10. +11 −11 search.php
  11. +3 −5 single.php
View
33 404.php
@@ -12,43 +12,40 @@
* If not, see: {@link http://www.gnu.org/licenses/}.
*
* @package Response
-* @since 1.0
+* @since 1.0.5
*/
-
global $options, $themeslug, $post, $sidebar, $content_grid; // call globals
response_sidebar_init(); // sidebar init
get_header(); // call header
-
?>
<div class="container">
<div class="row">
- <!--Begin @response before content sidebar hook-->
+ <!--Begin response_before_content_sidebar hook-->
<?php response_before_content_sidebar(); ?>
- <!--End @response before content sidebar hook-->
- <div id="content" class="<?php echo $content_grid; ?>">
- <div class="content_padding">
+ <!--End response_before_content_sidebar hook-->
+ <div id="content" class="<?php echo $content_grid; ?>">
+ <div class="content_padding">
- <!-- Begin @response before_404 hook content-->
+ <!--Begin response_before_404 hook-->
<?php response_before_404(); ?>
- <!-- Begin @response before_404 hook content-->
+ <!--End response_before_404 hook-->
- <!-- Begin @response 404 hook content-->
+ <!--Begin response_404 hook-->
<?php response_404(); ?>
- <!-- Begin @response 404 hook content-->
+ <!--Begin response_404 hook-->
- <!-- Begin @response after_404 hook content-->
+ <!--Begin response_after_404 hook-->
<?php response_after_404(); ?>
- <!-- Begin @response after_404 hook content-->
+ <!--End response_after_404 hook-->
- </div><!--end content_padding-->
- </div><!--end content_left-->
+ </div><!--end content_padding-->
+ </div><!--end content_wrap-->
- <!--Begin @response after content sidebar hook-->
+ <!--Begin response_after_content_sidebar hook-->
<?php response_after_content_sidebar(); ?>
- <!--End @response after content sidebar hook-->
+ <!--End response_after_content_sidebar hook-->
-</div><!--end content_wrap-->
</div><!--end row-->
</div><!--end container-->
View
40 archive.php
@@ -12,45 +12,43 @@
* If not, see: {@link http://www.gnu.org/licenses/}.
*
* @package Response
-* @since 1.0
+* @since 1.0.5
*/
-
global $options, $themeslug, $post, $sidebar, $content_grid; // call globals
response_sidebar_init(); // sidebar init
get_header(); // call header
-
?>
<div class="container">
<div class="row">
- <!--Begin @response before content sidebar hook-->
- <?php response_before_content_sidebar(); ?>
- <!--End @response before content sidebar hook-->
- <?php if (have_posts()) : ?>
+ <!--Begin response_before_content_sidebar hook-->
+ <?php response_before_content_sidebar(); ?>
+ <!--End response_before_content_sidebar hook-->
+
+ <?php if (have_posts()) : ?>
<div id="content" class="<?php echo $content_grid; ?>">
- <!--Begin @response before_archive hook-->
+ <!--Begin response_before_archive hook-->
<?php response_before_archive(); ?>
- <!--End @response before_archive hook-->
+ <!--End response_before_archive hook-->
<?php while (have_posts()) : the_post(); ?>
<div class="post_container">
<div <?php post_class() ?> id="post-<?php the_ID(); ?>">
- <!--Begin @response archive hook-->
+ <!--Begin response_loop hook-->
<?php response_loop(); ?>
- <!--End @response archive hook-->
+ <!--End response_loop hook-->
</div><!--end post_class-->
- <!--Begin @response post bar hook-->
+ <!--Begin response_post_bar hook-->
<?php response_post_bar(); ?>
- <!--End @response post bar hook-->
+ <!--End response_post_bar hook-->
</div><!--end post container-->
-
<?php endwhile; ?>
@@ -60,19 +58,19 @@
<?php endif; ?>
- <!--Begin @response pagination hook-->
+ <!--Begin response_pagination hook-->
<?php response_pagination(); ?>
- <!--End @response pagination hook-->
+ <!--End response_pagination hook-->
- <!--Begin @response after_archive hook-->
+ <!--Begin response_after_archive hook-->
<?php response_after_archive(); ?>
- <!--End @response after_archive hook-->
+ <!--End response_after_archive hook-->
</div><!--end content_padding-->
- <!--Begin @response after content sidebar hook-->
- <?php response_after_content_sidebar(); ?>
- <!--End @response after content sidebar hook-->
+ <!--Begin response_after_content_sidebar hook-->
+ <?php response_after_content_sidebar(); ?>
+ <!--End response_after_content_sidebar hook-->
</div><!--end content-->
</div><!--end row-->
View
7 changelog.txt
@@ -2,18 +2,19 @@ Response Changelog
****************************
-Version 1.0.5 (03-08-12)
+Version 1.0.5 (03-13-12)
-Removed PressTrends function.
-Conditional to stop breadcrumb links from appearing on attachment pages.
--Removed some uncessary images.
+-Removed some unnecessary images.
-Additional code and script cleanup.
+-Updated HTML comment wrappers around hooks.
Version 1.0.4 (03-07-12)
-Responsive design tweak.
-Fixed Google Font library call for SSL support.
-Added browser specific HTML classes for IE.
-Added Banner Element URL option.
--Removed some unecessary code.
+-Removed some unnecessary code.
-HTML table fix for calendar widget.
Version 1.0.3 (03-04-12)
View
14 comments.php
@@ -12,19 +12,19 @@
* If not, see: {@link http://www.gnu.org/licenses/}.
*
* @package Response
-* @since 1.0
+* @since 1.0.5
*/
?>
-<!-- Begin @response response_before_comments hook content-->
+<!--Begin response_before_comments hook-->
<?php response_before_comments(); ?>
-<!-- Begin @response response_before_comments hook content-->
+<!--End response_before_comments hook-->
-<!-- Begin @response response_comments hook content-->
+<!--Begin response_comments hook-->
<?php response_comments(); ?>
-<!-- Begin @response response_comments hook content-->
+<!--End response_comments hook-->
-<!-- Begin @response response_after_comments hook content-->
+<!--Begin response_after_comments hook-->
<?php response_after_comments(); ?>
-<!-- Begin @response response_after_comments hook content-->
+<!--End response_after_comments hook-->
View
14 footer.php
@@ -12,11 +12,9 @@
* If not, see: {@link http://www.gnu.org/licenses/}.
*
* @package Response
-* @since 1.0
+* @since 1.0.5
*/
-
global $options, $themeslug // call globals
-
?>
<?php if ($options->get($themeslug.'_disable_footer') != "0"):?>
@@ -26,9 +24,9 @@
<div id="footer" class="container">
<div class="row" id="footer_container">
<div id="footer_wrap">
- <!-- Begin @response footer hook content-->
+ <!--Begin response_footer hook-->
<?php response_footer(); ?>
- <!-- End @response footer hook content-->
+ <!--End response_footer hook-->
</div>
<?php endif;?>
@@ -40,9 +38,9 @@
<div id="afterfooter" class="container">
<div class="row" id="afterfooterwrap">
- <!-- Begin @response afterfooter hook content-->
+ <!--Begin response_secondary_footer hook-->
<?php response_secondary_footer(); ?>
- <!-- End @response afterfooter hook content-->
+ <!--End response_secondary_footer hook-->
</div> <!--end afterfooter-->
</div>
@@ -51,4 +49,4 @@
<?php wp_footer(); ?>
</body>
-</html>
+</html>
View
20 functions.php
@@ -1,10 +1,18 @@
<?php
-/*
- Functions
- Author: Tyler Cunningham
- Establishes the core theme functions.
- Copyright (C) 2011 CyberChimps
- Version 3.0
+/**
+* Theme functions used by the CyberChimps Response Core Framework
+*
+* Authors: Tyler Cunningham
+* Copyright: © 2012
+* {@link http://cyberchimps.com/ CyberChimps LLC}
+*
+* Released under the terms of the GNU General Public License.
+* You should have received a copy of the GNU General Public License,
+* along with this software. In the main directory, see: /licensing/
+* If not, see: {@link http://www.gnu.org/licenses/}.
+*
+* @package Response
+* @since 1.0.5
*/
/**
View
18 header.php
@@ -12,11 +12,9 @@
* If not, see: {@link http://www.gnu.org/licenses/}.
*
* @package Response
-* @since 1.0
+* @since 1.0.5
*/
-
- global $options, $themeslug, $themename; // call globals
-
+ global $options, $themeslug; // call globals
?>
<?php response_head_tag(); ?>
@@ -25,13 +23,13 @@
</head><!-- closing head tag-->
-<!-- Begin @response after_head_tag hook content-->
+<!--Begin response_after_head_tag hook-->
<?php response_after_head_tag(); ?>
-<!-- End @response after_head_tag hook content-->
+<!--End response_after_head_tag hook-->
-<!-- Begin @response before_header hook content-->
+<!--Begin response_before_header hook-->
<?php response_before_header(); ?>
-<!-- End @response before_header hook content -->
+<!--End response_before_header hook-->
<header>
<?php
@@ -43,6 +41,6 @@
?>
</header>
-<!-- Begin @response after_header hook -->
+<!--Begin response_after_header-->
<?php response_after_header(); ?>
-<!-- End @response after_header hook -->
+<!--End response after_header hook-->
View
5 index.php
@@ -12,10 +12,9 @@
* If not, see: {@link http://www.gnu.org/licenses/}.
*
* @package Response
-* @since 1.0
+* @since 1.0.5
*/
- global $options, $themeslug, $post; // call globals
- $reorder = $options->get($themeslug.'_blog_section_order');
+ global $options, $themeslug; // call globals
?>
<?php get_header(); ?>
View
17 page.php
@@ -12,23 +12,16 @@
* If not, see: {@link http://www.gnu.org/licenses/}.
*
* @package Response
-* @since 1.0
+* @since 1.0.5
*/
-
-/* Header call. */
-
- get_header();
-
-/* End header. */
-
-/* Define global variables. */
global $options, $post, $themeslug;
$page_section_order = get_post_meta($post->ID, 'page_section_order' , true);
+
if(!$page_section_order) {
- $page_section_order = 'breadcrumbs,page_section';
+ $page_section_order = 'page_section,breadcrumbs';
}
-/* End define global variables. */
-
+
+ get_header();
?>
<div class="container">
View
22 search.php
@@ -12,7 +12,7 @@
* If not, see: {@link http://www.gnu.org/licenses/}.
*
* @package Response
-* @since 1.0
+* @since 1.0.5
*/
global $options, $themeslug, $post, $sidebar, $content_grid; // call globals
@@ -23,25 +23,25 @@
<div class="container">
<div class="row">
- <!--Begin @response before content sidebar hook-->
+ <!--Begin response_before_content_sidebar hook-->
<?php response_before_content_sidebar(); ?>
- <!--End @response before content sidebar hook-->
+ <!--End response_before_content_sidebar hook-->
<div id="content" class="<?php echo $content_grid; ?>">
- <!-- Begin @response before_search hook -->
+ <!--Begin response_before_search hook-->
<?php response_before_search(); ?>
- <!-- End @response before_search hook -->
+ <!--End response_before_search hook-->
- <!-- Begin @response search hook -->
+ <!--Begin response_search hook-->
<?php response_search(); ?>
- <!-- End @response search hook -->
+ <!--End response_search hook-->
- <!-- Begin @response after_search hook -->
+ <!--Begin response_after_search hook-->
<?php response_after_search(); ?>
- <!-- End @response after_search hook -->
+ <!--End response_after_search hook-->
</div>
- <!--Begin @response after content sidebar hook-->
+ <!--Begin response_after_content_sidebar hook-->
<?php response_after_content_sidebar(); ?>
- <!--End @response after content sidebar hook-->
+ <!--End response_after_content_sidebar hook-->
</div><!--end row-->
</div><!--end container-->
View
8 single.php
@@ -12,20 +12,18 @@
* If not, see: {@link http://www.gnu.org/licenses/}.
*
* @package Response
-* @since 1.0
+* @since 1.0.5
*/
-
global $options, $themeslug, $post, $sidebar, $content_grid; // call globals
response_sidebar_init(); // sidebar init
get_header(); // call header
-
?>
<div class="container">
<div class="row">
- <!--Begin @Core post area-->
+ <!--Begin response_index hook (to be renamed response_post in 2.0)-->
<?php response_index(); ?>
- <!--End @Core post area-->
+ <!--End response_index hook (to be renamed response_post in 2.0)-->
</div>
<?php if ($options->get($themeslug.'_single_breadcrumbs') == "1") { response_breadcrumbs();}?>

0 comments on commit 06af0fe

Please sign in to comment.