• Resolved EloB

    (@elob)


    You open a anchor tag and close it then display name and open another anchor tag and closes it again… Is this wrong?

    In widgets/widgets/testimonial/tpl/simple.php

    <div class="testimonial-image-wrapper">
    	<img src="<?php echo esc_url($instance['image']) ?>" />
    </div>
    
    <div class="text">
    	<?php echo wpautop(wp_kses_post($instance['text'])) ?>
    	<h5 class="testimonial-name">
    		<?php if(!empty($instance['url'])) : ?><a href="<?php echo esc_url($instance['url']) ?>"></a><?php endif ?>
    			<?php echo esc_html($instance['name']) ?>
    		<?php if(!empty($instance['url'])) : ?><a href="<?php echo esc_url($instance['url']) ?>"></a><?php endif ?>
    	</h5>
    	<small class="testimonial-location"><?php echo esc_html($instance['location']) ?></small>
    </div>

    Fix:

    <div class="testimonial-image-wrapper">
    	<img src="<?php echo esc_url($instance['image']) ?>" />
    </div>
    
    <div class="text">
    	<?php echo wpautop(wp_kses_post($instance['text'])) ?>
    	<h5 class="testimonial-name">
    		<?php if(!empty($instance['url'])) : ?><a href="<?php echo esc_url($instance['url']) ?>"><?php endif ?>
    			<?php echo esc_html($instance['name']) ?>
    		<?php if(!empty($instance['url'])) : ?></a><?php endif ?>
    	</h5>
    	<small class="testimonial-location"><?php echo esc_html($instance['location']) ?></small>
    </div>

    http://wordpress.org/plugins/siteorigin-panels/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Greg – SiteOrigin

    (@gpriday)

    Oh wow, that’s a blinder of a mistake. Thanks for letting me know. I’ll get that fixed in the next update.

    Also promise I’ll get in your widget namespace fix for the next update too.

    Thanks for all the contributions. Really appreciate them.

    Plugin Author Greg – SiteOrigin

    (@gpriday)

    Fixed. 1.3.8 update will be coming soon 🙂

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Your testimonial widget is broken?’ is closed to new replies.