Skip to content
This repository was archived by the owner on Jan 28, 2019. It is now read-only.

Commit 1f5702c

Browse files
Merge pull request #413 from HardeepAsrani/development
!!! Increase about us section grid if no image added
2 parents ed11bb2 + 9827d75 commit 1f5702c

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

js/customizer.js

+4
Original file line numberDiff line numberDiff line change
@@ -181,8 +181,12 @@
181181
$( '.brief' ).removeClass( 'paralax_one_only_customizer' );
182182
$('.brief .brief-content-two').removeClass( 'paralax_one_only_customizer' );
183183
$( '.brief .brief-content-two .brief-image-right img' ).attr('src', to);
184+
$( '.brief .brief-content-one').removeClass( 'col-md-12');
185+
$( '.brief .brief-content-one').addClass( 'col-md-6 ');
184186
} else {
185187
$('.brief .brief-content-two').addClass( 'paralax_one_only_customizer' );
188+
$( '.brief .brief-content-one').addClass( 'col-md-12');
189+
$( '.brief .brief-content-one').removeClass( 'col-md-6 ');
186190
if( $( '.brief .content-section h2' ).hasClass('paralax_one_only_customizer') && $('.brief .content-section .brief-content-text').hasClass('paralax_one_only_customizer') ){
187191
$( '.brief' ).addClass( 'paralax_one_only_customizer' );
188192
}

sections/parallax_one_our_story_section.php

+6-2
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,16 @@
2222
echo '<div class="col-md-6 brief-content-two"><div class="brief-image-right"><img src="'.parallax_one_make_protocol_relative_url(esc_url($paralax_one_our_story_image)).'" alt="'.esc_html__('About','parallax-one').'"></div></div>';
2323
}
2424
} elseif ( is_customize_preview() ) {
25-
echo '<div class="col-md-6 brief-content-two paralax_one_only_customizer"><img src="" alt=""><div class="brief-image-right"></div></div>';
25+
echo '<div class="col-md-6 brief-content-two paralax_one_only_customizer"><div class="brief-image-right"><img src="" ></div></div>';
2626
}
2727
?>
2828

2929
<!-- BRIEF HEADING -->
30-
<div class="col-md-6 content-section brief-content-one">
30+
<?php if( !empty($paralax_one_our_story_image) ){
31+
echo '<div class="col-md-6 content-section brief-content-one">';
32+
} else {
33+
echo '<div class="col-md-12 content-section brief-content-one">';
34+
} ?>
3135
<?php
3236
if( !empty($parallax_one_our_story_title) ){
3337
echo '<h2 class="text-left dark-text">'.esc_attr($parallax_one_our_story_title).'</h2><div class="colored-line-left"></div>';

0 commit comments

Comments
 (0)