solution for no image or url present
parent
18482de154
commit
e2cc91cb53
|
@ -134,9 +134,12 @@
|
|||
$event[ 'name' ] = $googleEvent[ 'summary' ];
|
||||
|
||||
if ( array_key_exists( 'location' , $googleEvent ) ){
|
||||
$event[ 'location' ] = $googleEvent[ 'location' ];
|
||||
$event[ 'location' ] = $googleEvent[ 'location' ];
|
||||
}
|
||||
|
||||
$event[ 'image' ] = false;
|
||||
$event[ 'url' ] = false;
|
||||
|
||||
if ( array_key_exists( 'description' , $googleEvent ) ){
|
||||
|
||||
$event[ 'description' ] = $googleEvent[ 'description' ];
|
||||
|
|
|
@ -17,9 +17,15 @@
|
|||
<div class="row event well">
|
||||
|
||||
<div class="col-sm-4 meta hidden-xs">
|
||||
{% if event.image is defined %}
|
||||
{% if event.image %}
|
||||
<div class="img">
|
||||
<img src="{{ event.image }}" />
|
||||
{% if event.url %}
|
||||
<a href="{{ event.url }}">
|
||||
<img src="{{ event.image }}" />
|
||||
</a>
|
||||
{% else %}
|
||||
<img src="{{ event.image }}" />
|
||||
{% endif %}
|
||||
</div>
|
||||
{% else %}
|
||||
<img src="{{ level2.logo }}" />
|
||||
|
@ -31,7 +37,7 @@
|
|||
</div>
|
||||
<div class="col-sm-8 description">
|
||||
<h2>
|
||||
{% if event.url is defined %}
|
||||
{% if event.url %}
|
||||
<a href="{{ event.url }}">
|
||||
{{ event.name }}
|
||||
</a>
|
||||
|
|
Loading…
Reference in New Issue