/var/www/hkosl.com/aga/wp-content/plugins/so-widgets-bundle/widgets/testimonial/tpl/default.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<?php
/**
 * @var $design
 * @var $settings
 * @var $testimonials
 */
?>
<?php 
if( !empty( $instance['title'] ) ) echo $args['before_title'] . esc_html($instance['title']) . $args['after_title'?>
<?php $this
->caret_svg() ?>
<div class="sow-testimonials">
    <?php foreach( $testimonials as $testimonial ) : ?>
        <?php
        $url 
$testimonial['url'];
        
$new_window $testimonial['new_window'];
        
$location $testimonial['location'];
        
$image_id $testimonial['image'];
        
$link_location = ! empty( $url );
        
$link_name = ! empty( $testimonial['link_name'] ) && ! empty( $url );
        
$link_image = ! empty( $testimonial['link_image'] ) && ! empty( $url );
        
?>
        <div class="sow-testimonial-wrapper <?php echo $this->testimonial_wrapper_class($design?>">
            <div class="sow-testimonial">
                <?php if( strpos($design['layout'], '_above') !== false ) : ?>
                    <div class="sow-testimonial-text">
                        <?php echo wp_kses_post$testimonial['text'] ) ?>
                    </div>
                <?php endif; ?>

                <div class="sow-testimonial-user">
                    <?php if( ! empty( $image_id ) ) : ?>
                    <div class="sow-image-wrapper">
                        <?php if( $link_image ) : ?>
                        <a href="<?php echo sow_esc_url$url ?><?php if( ! empty( $new_window ) ) { echo 'target="_blank" rel="noopener noreferrer"'; } ?>>
                        <?php endif; ?>
                        <?php echo $this->testimonial_user_image$image_id$design ); ?>
                        <?php if( $link_image ) : ?>
                        </a>
                        <?php endif; ?>
                    </div>
                    <?php endif; ?>

                    <div class="sow-text">
                        <?php if( $link_name ) : ?>
                        <a href="<?php echo sow_esc_url$url ?><?php if( ! empty( $new_window ) ) { echo 'target="_blank" rel="noopener noreferrer"'; } ?>>
                        <?php endif; ?>
                            <span class="sow-testimonial-name"><strong><?php echo esc_html$testimonial['name'] ) ?></strong></span>
                        <?php if( $link_name ) : ?>
                        </a>
                        <?php endif; ?>
                        <?php if( $link_location ) : ?>
                            <a href="<?php echo sow_esc_url$url ?><?php if( ! empty( $new_window ) ) { echo 'target="_blank" rel="noopener noreferrer"'; } ?>>
                        <?php endif; ?>
                        <?php if( ! empty( $location ) ) : ?>
                            <span class="sow-testimonial-location"><?php echo esc_html$location ?></span>
                        <?php endif; ?>
                        <?php if( $link_location ) : ?>
                            </a>
                        <?php endif; ?>
                    </div>

                    <?php // $this->testimonial_pointer($design) ?>
                </div>

                <?php if( strpos($design['layout'], '_above') === false ) : ?>
                    <div class="sow-testimonial-text">
                        <?php echo wp_kses_post$testimonial['text'] ) ?>
                    </div>
                <?php endif; ?>
            </div>
        </div>
    <?php endforeach; ?>
</div>