| 1 |
<?php |
| 2 |
/** |
| 3 |
* Portfolio section for the homepage. |
| 4 |
*/ |
| 5 |
if ( ! function_exists( 'spiceb_spicepress_testimonial' ) ) : |
| 6 |
|
| 7 |
function spiceb_spicepress_testimonial() { |
| 8 |
|
| 9 |
$testimonial_section_enable = get_theme_mod('testimonial_section_enable','on'); |
| 10 |
if($testimonial_section_enable !='off') |
| 11 |
{ |
| 12 |
$testimonial_callout_background = get_theme_mod('testimonial_callout_background',SPICEB_PLUGIN_URL .'/inc/spicepress/images/testimonial/testimonial-bg.jpg'); |
| 13 |
if($testimonial_callout_background != '') { ?> |
| 14 |
<section class="testimonial-section" style="background-image:url('<?php echo esc_url($testimonial_callout_background);?>'); background-repeat: no-repeat; background-position: top left;"> |
| 15 |
<?php } else { ?> |
| 16 |
<section class="testimonial-section"> |
| 17 |
<?php } ?> |
| 18 |
|
| 19 |
<div class="overlay"> |
| 20 |
<div class="container"> |
| 21 |
<?php |
| 22 |
$home_testimonial_section_title = get_theme_mod('home_testimonial_section_title',__('What People Say','spicepress')); |
| 23 |
$home_testimonial_section_discription = get_theme_mod('home_testimonial_section_discription','Sea summo mazim ex, ea errem eleifend definitionem vim. Ut nec hinc dolor possim mei ludus efficiendi ei sea summo mazim ex.'); |
| 24 |
$home_testimonial_title = get_theme_mod('home_testimonial_title',__('Alice Culan','spicepress')); |
| 25 |
$home_testimonial_designation= get_theme_mod('home_testimonial_designation',__('UI Developer','spicepress')); |
| 26 |
$home_testimonial_thumb = get_theme_mod('home_testimonial_thumb',SPICEB_PLUGIN_URL .'/inc/spicepress/images/testimonial/testi1.jpg'); |
| 27 |
$home_testimonial_desc = get_theme_mod('home_testimonial_desc','Sed ut Perspiciatis Unde Omnis Iste Sed ut perspiciatis unde omnis iste natu error sit voluptatem accu tium neque fermentum veposu miten a tempor nise. Duis autem vel eum iriure dolor in hendrerit in vulputate velit consequat reprehender in voluptate velit esse cillum duis dolor fugiat nulla pariatur.'); |
| 28 |
?> |
| 29 |
|
| 30 |
|
| 31 |
<?php if( $home_testimonial_section_title != '' || $home_testimonial_section_discription != '') { ?> |
| 32 |
<!-- Section Title --> |
| 33 |
<div class="row"> |
| 34 |
<div class="col-md-12"> |
| 35 |
<div class="section-header"> |
| 36 |
<h1 class="white wow fadeInUp animated" data-wow-delay="0ms" data-wow-duration="500ms"> |
| 37 |
<?php echo esc_attr($home_testimonial_section_title); ?> |
| 38 |
</h1> |
| 39 |
<div class="widget-separator"><span></span></div> |
| 40 |
<p class="white wow fadeInDown animated"> |
| 41 |
<?php echo esc_attr($home_testimonial_section_discription); ?> |
| 42 |
</p> |
| 43 |
</div> |
| 44 |
</div> |
| 45 |
</div> |
| 46 |
<?php } ?> |
| 47 |
<!-- /Section Title --> |
| 48 |
<!-- Testimonial --> |
| 49 |
<div class="row"> |
| 50 |
<div class="item"> |
| 51 |
<div class="media testmonial-area"> |
| 52 |
<div class="author-box"> |
| 53 |
<img src="<?php echo $home_testimonial_thumb; ?>" class="img-circle" alt="img"> |
| 54 |
</div> |
| 55 |
<div class="media-body"> |
| 56 |
<div class="description-box"> |
| 57 |
<div class="author-description"> |
| 58 |
<p><?php echo $home_testimonial_desc; ?> |
| 59 |
</p> |
| 60 |
</div> |
| 61 |
</div> |
| 62 |
<h4><?php echo $home_testimonial_title; ?> - <span class="designation"><?php echo $home_testimonial_designation; ?></span> |
| 63 |
</div></h4> |
| 64 |
|
| 65 |
</div> |
| 66 |
</div> |
| 67 |
</div> |
| 68 |
<!-- /Testimonial --> |
| 69 |
|
| 70 |
</div> |
| 71 |
</div> |
| 72 |
</section> |
| 73 |
<!-- /Testimonial Section --> |
| 74 |
<div class="clearfix"></div> |
| 75 |
<?php } ?> |
| 76 |
<?php |
| 77 |
} |
| 78 |
|
| 79 |
endif; |
| 80 |
|
| 81 |
if ( function_exists( 'spiceb_spicepress_testimonial' ) ) { |
| 82 |
$section_priority = apply_filters( 'spicepress_section_priority', 13, 'spiceb_spicepress_testimonial' ); |
| 83 |
add_action( 'spiceb_spicepress_sections', 'spiceb_spicepress_testimonial', absint( $section_priority ) ); |
| 84 |
} |