diff --git a/templates/mobile/common/index.html.twig b/templates/mobile/common/index.html.twig index e1dd51535b..cadf1051c3 100644 --- a/templates/mobile/common/index.html.twig +++ b/templates/mobile/common/index.html.twig @@ -8,6 +8,31 @@ + {% block stylesheet %}{% endblock %} {% block icon %}{% endblock %} {% block javascript %}{% endblock %} diff --git a/templates/mobile/common/thumbnail.html.twig b/templates/mobile/common/thumbnail.html.twig index 34ba286549..b8d676b229 100644 --- a/templates/mobile/common/thumbnail.html.twig +++ b/templates/mobile/common/thumbnail.html.twig @@ -71,12 +71,12 @@ {% endmacro %} {% macro format100percent(thumbnail, extraclass)%} - {% set record_type = thumbnail.get_type() %} -
+ {% set record_type = thumbnail.get_type() %} +
{% if record_type == 'VIDEO_MP4' or record_type == 'VIDEO_FLV' %} {% set random = thumbnail.get_random() %} -
-
- - +
{% endmacro %} diff --git a/templates/mobile/lightbox/basket_element.html.twig b/templates/mobile/lightbox/basket_element.html.twig index 2431c258c4..ddfb3aac0d 100644 --- a/templates/mobile/lightbox/basket_element.html.twig +++ b/templates/mobile/lightbox/basket_element.html.twig @@ -7,7 +7,7 @@ {% endblock %} {% block stylesheet %} - + {% endblock %} {% block content %} @@ -19,13 +19,12 @@ Home
- {{ thumbnail.format100percent(record.get_preview(),'', record.get_thumbnail()) }} + {{ thumbnail.format100percent(record.get_preview()) }} {% if basket_element.getBasket().getValidation() %} {% if basket_element.getBasket().getValidation().getParticipant(app['authentication'].getUser(), app).getCanAgree() %}
-
@@ -45,5 +44,11 @@
+
{% endblock %} diff --git a/templates/mobile/lightbox/feed_element.html.twig b/templates/mobile/lightbox/feed_element.html.twig index 66006c3a6f..3ae130a7c4 100644 --- a/templates/mobile/lightbox/feed_element.html.twig +++ b/templates/mobile/lightbox/feed_element.html.twig @@ -7,7 +7,7 @@ {% endblock %} {% block stylesheet %} - + {% endblock %} {% block content %} @@ -19,10 +19,16 @@ Home
- {{ thumbnail.format100percent(record.get_preview(),'', record.get_thumbnail()) }} + {{ thumbnail.format100percent(record.get_preview()) }}
+ {% endblock %} diff --git a/templates/mobile/lightbox/index.html.twig b/templates/mobile/lightbox/index.html.twig index 0960f6b65b..435b4d8464 100644 --- a/templates/mobile/lightbox/index.html.twig +++ b/templates/mobile/lightbox/index.html.twig @@ -39,7 +39,7 @@ {% trans 'a propos'%}
-