Skip to content

Commit

Permalink
fixed issue with the amazon s3 plugin AND portfolio slideshow pro act…
Browse files Browse the repository at this point in the history
…ivated where the body classes disappear
  • Loading branch information
jaredharbour committed Dec 7, 2012
1 parent a791c74 commit 4759d5d
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 5 deletions.
4 changes: 4 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
Espresso Change Log

This will hopefully allow for some basic transparency regarding what gets changed in espresso. Anything we add to the framework will be listed here.
1.0.6
-------------------------------------
- fixed an issue with the amazon plugin AND portfolio slideshow pro that caused the body classes to disappear

1.0.5
-------------------------------------
- fixed issue with page and post titles not being set to the correct colors
Expand Down
4 changes: 4 additions & 0 deletions espresso-template-after.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,9 @@
</footer>
<?php get_template_part('template','after-footer'); ?><!-- template-after-footer loads here -->
<?php wp_footer(); ?>
<?php
global $espresso_body_classes;
?>
<script>jQuery('body').addClass('<?php echo $espresso_body_classes; ?>');</script>
</body>
</html>
13 changes: 9 additions & 4 deletions functions.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?php
global $espresso_framework;
global $espresso_framework, $espresso_body_classes;
/**
* Define Theme Name/Version Constants
*
**/
define('PARENT_THEME_NAME', 'Espresso');
define('PARENT_THEME_VERSION', '1.0.5');
define('PARENT_THEME_VERSION', '1.0.6');
define('PARENT_THEME_RELEASE_DATE', date_i18n('F j, Y', '1297144800'));
define('ESPRESSO_NO_CLASS', 'enoclass' );
/**
Expand Down Expand Up @@ -176,8 +176,6 @@ function espresso_load_scripts(){
if( current_theme_supports('responsive-design') ){
wp_enqueue_script( 'adapt', PARENT_URL.'/hopper/js/adapt.min.js', array('jquery'), '1.4.8', true );
}


}

/**
Expand Down Expand Up @@ -418,6 +416,13 @@ function espresso_widget_areas_init(){
//=== END espresso_widget_areas_init();
add_action('widgets_init','espresso_widget_areas_init');

function espresso_get_and_add_body_classes($classes){
global $espresso_body_classes;
$espresso_body_classes = implode(' ',$classes);
return $classes;
}
add_filter('body_class','espresso_get_and_add_body_classes', 9999);


if ( ! function_exists( 'espresso_comment' ) ) :

Expand Down
2 changes: 1 addition & 1 deletion style.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Theme URI: http://themebrewers.com/
Description: Espresso is a light weight, high powered Framework for WordPress. It is recommended that you not modify the stylesheets for this theme.
Author: ThemeBrewers.com
Author URI: http://themebrewers.com
Version: 1.0.5
Version: 1.0.6
Tags: one-column, two-columns, three-columns, left-sidebar, right-sidebar,custom-background,custom-colors,custom-header,custom-menu
Expand Down

0 comments on commit 4759d5d

Please sign in to comment.