Recuperado el campo de proyecto destacado
This commit is contained in:
@@ -77,21 +77,22 @@
|
||||
|
||||
<div class="row proyecto-unico h-100">
|
||||
|
||||
{% set destacado = get_posts(post.meta('proyecto_destacado')) %}
|
||||
|
||||
<div class="col-md-4">
|
||||
<img src="{{post.meta('proyecto_destacado').thumbnail|resize(500,500)}}" class="img-fluid" alt="{{post.meta('proyecto_destacado').title}}">
|
||||
<img src="{{destacado.thumbnail|resize(500,500)}}" class="img-fluid" alt="{{destacado.post_title}}">
|
||||
</div>
|
||||
|
||||
<div class="col-md-8">
|
||||
<div class="col-md-8">
|
||||
|
||||
<div class="linea {% for term in post.meta('proyecto_destacado').terms %}{% if term.slug == 'investigacion-social-aplicada' %}linea-investigacion {% elseif term.slug == 'evaluacion-externa-y-participativa' %}linea-evaluacion {% elseif term.slug == 'formacion' %}linea-formacion {% elseif term.slug == 'intervencion-social-y-educativa' %}linea-intervencion {% elseif term.slug == 'consultoria' %}linea-consultoria {% endif %}{% endfor %} mb-3 w-50"></div>
|
||||
<div class="linea {% for term in destacado.terms %}{% if term.slug == 'investigacion-social-aplicada' %}linea-investigacion {% elseif term.slug == 'evaluacion-externa-y-participativa' %}linea-evaluacion {% elseif term.slug == 'formacion' %}linea-formacion {% elseif term.slug == 'intervencion-social-y-educativa' %}linea-intervencion {% elseif term.slug == 'consultoria' %}linea-consultoria {% endif %}{% endfor %} mb-3 w-50"></div>
|
||||
|
||||
<h3><a href="{{destacado.guid}}">{{ destacado.post_title }}</a></h3>
|
||||
|
||||
<h3><a href="{{post.meta('proyecto_destacado').link}}">{{ post.meta('proyecto_destacado').title }}</a></h3>
|
||||
|
||||
<a href="{{post.meta('proyecto_destacado').link}}"><img src="/wp-content/themes/andaira/public/img/right-arrow.png" alt="{{ post.meta('proyecto_destacado').title }}" /></a>
|
||||
<a href="{{destacado.guid}}"><img src="/wp-content/themes/andaira/public/img/right-arrow.png" alt="{{ destacado.post_title }}" /></a>
|
||||
|
||||
<div class="text-right text-uppercase font-weight-bold proyecto-unico-term">
|
||||
{% for term in post.meta('proyecto_destacado').terms %}
|
||||
{% for term in destacado.terms %}
|
||||
{% if term.slug == 'investigacion-social-aplicada' %}<!--investigacion-->
|
||||
{{ term }}
|
||||
{% elseif term.slug == 'evaluacion-externa-y-participativa' %}<!--evaluacion-->
|
||||
|
||||
Reference in New Issue
Block a user