Skip to content

Commit

Permalink
Merge pull request #288 from FameThemes/development
Browse files Browse the repository at this point in the history
Fix js error
  • Loading branch information
shrimp2t authored Apr 9, 2018
2 parents e57c270 + f006bc6 commit 02489cc
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion assets/js/theme.js
Original file line number Diff line number Diff line change
Expand Up @@ -709,7 +709,7 @@ jQuery( document ).ready( function( $ ) {
if ( hero.find('img').length > 0) {
bg = false;
}
$('.parallax-bg', s).imagesLoaded({background: bg}, function () {
$('.parallax-bg', hero ).imagesLoaded({background: bg}, function () {

}).fail(function (instance) {

Expand Down
2 changes: 1 addition & 1 deletion assets/sass/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Theme URI: https://www.famethemes.com/themes/onepress/
Author: FameThemes
Author URI: http://www.famethemes.com
Description: OnePress is an outstanding creative and flexible WordPress one page theme well suited for business website, portfolio, digital agency, product showcase, freelancers and everyone else who appreciate good design. The theme overall is an elegant and classic one, a fine example of Bootstrap 4 WordPress theme which compatibility with latest version of WooCommerce. (Live preview : http://www.famethemes.com/preview/?theme=OnePress)
Version: 2.0.5
Version: 2.0.6
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: onepress
Expand Down
3 changes: 3 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
====================================================================
CHANGELOG
====================================================================
## 2.0.6
* FIXED: JS error issue.

## 2.0.5
* NEW: Support PirateForms.
* IMPROVED: Header cover on single product.
Expand Down
3 changes: 2 additions & 1 deletion inc/extras.php
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,7 @@ function onepress_before_section( $section_id, $args = array() ){
'image' => ''
) );
extract( $args );
var_dump( $args );

if ( $video_url || $video_webm_url || $video_ogv_url ) {
?>
Expand All @@ -258,7 +259,7 @@ function onepress_before_section( $section_id, $args = array() ){
if ( $enable_parallax == 1 ) {
$class = 'section-parallax';
if( $section_id == 'hero' ){
$class .=' parallax-hero';
$class =' parallax-hero';
}
echo '<div id="parallax-'.esc_attr( $section_id ).'" class="'.esc_attr( $class ).'">';
echo ' <div class="parallax-bg""><img src="'.esc_url( $image ).'" alt=""></div>';
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "customify-pro",
"version": "2.0.5",
"version": "2.0.6",
"main": "Gruntfile.js",
"engines": {
"node": ">= 0.10.0"
Expand Down
2 changes: 1 addition & 1 deletion style.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Theme URI: https://www.famethemes.com/themes/onepress/
Author: FameThemes
Author URI: http://www.famethemes.com
Description: OnePress is an outstanding creative and flexible WordPress one page theme well suited for business website, portfolio, digital agency, product showcase, freelancers and everyone else who appreciate good design. The theme overall is an elegant and classic one, a fine example of Bootstrap 4 WordPress theme which compatibility with latest version of WooCommerce. (Live preview : http://www.famethemes.com/preview/?theme=OnePress)
Version: 2.0.5
Version: 2.0.6
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: onepress
Expand Down

0 comments on commit 02489cc

Please sign in to comment.