vishwamano

source of vishwamano.com
git clone git://git.ricketyspace.net/vishwamano.git
Log | Files | Refs

commit 0770aa849463c660773561cdc15a8d7685553ec8
parent 27843fe43b22f900b4b11ebcc95f17e78b15ab3a
Author: rsiddharth <rsiddharth@ninthfloor.org>
Date:   Tue, 31 May 2016 05:39:55 +0000

testimonials: placeholder for non-existent photo.

Folks that don't have a photo get assigned a placeholder image; a
100x100px white image.

Deal with it.

Diffstat:
images/workshops/testimonials/placeholder.jpg | 0
themes/bs3/templates/testimonials.tpl | 12+++++++++---
2 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/images/workshops/testimonials/placeholder.jpg b/images/workshops/testimonials/placeholder.jpg Binary files differ. diff --git a/themes/bs3/templates/testimonials.tpl b/themes/bs3/templates/testimonials.tpl @@ -20,9 +20,15 @@ {/if} <section class="media testimonial"> <div class="media-left"> - <img class="media-object" - src="/images/workshops/testimonials/{$testimonial[0]}" - alt="[ {$by} Image ]" /> + {if $testimonial[0] != ''} + <img class="media-object" + src="/images/workshops/testimonials/{$testimonial[0]}" + alt="[ {$by} Image ]" /> + {else} + <img class="media-object" + src="/images/workshops/testimonials/placeholder.jpg" + alt="[ Placeholder Image for {$by} ]" /> + {/if} </div> <div class="media-body"> {if isset($testimonial[2])}