diff --git a/src/Kunstmaan/GeneratorBundle/Resources/SensioGeneratorBundle/skeleton/defaultsite/Resources/views/Layout/submenu.html.twig b/src/Kunstmaan/GeneratorBundle/Resources/SensioGeneratorBundle/skeleton/defaultsite/Resources/views/Layout/submenu.html.twig index 40fbc63528..2b9b9a3acb 100644 --- a/src/Kunstmaan/GeneratorBundle/Resources/SensioGeneratorBundle/skeleton/defaultsite/Resources/views/Layout/submenu.html.twig +++ b/src/Kunstmaan/GeneratorBundle/Resources/SensioGeneratorBundle/skeleton/defaultsite/Resources/views/Layout/submenu.html.twig @@ -9,7 +9,7 @@
diff --git a/src/Kunstmaan/GeneratorBundle/Resources/SensioGeneratorBundle/skeleton/layout/Resources/views/Layout/_footer.html.twig b/src/Kunstmaan/GeneratorBundle/Resources/SensioGeneratorBundle/skeleton/layout/Resources/views/Layout/_footer.html.twig index 3cd4293665..1f18e817e9 100644 --- a/src/Kunstmaan/GeneratorBundle/Resources/SensioGeneratorBundle/skeleton/layout/Resources/views/Layout/_footer.html.twig +++ b/src/Kunstmaan/GeneratorBundle/Resources/SensioGeneratorBundle/skeleton/layout/Resources/views/Layout/_footer.html.twig @@ -117,7 +117,7 @@ {% endif %} diff --git a/src/Kunstmaan/GeneratorBundle/Resources/SensioGeneratorBundle/skeleton/layout/Resources/views/Layout/_header.html.twig b/src/Kunstmaan/GeneratorBundle/Resources/SensioGeneratorBundle/skeleton/layout/Resources/views/Layout/_header.html.twig index 48b242cc21..1d1cad0be0 100644 --- a/src/Kunstmaan/GeneratorBundle/Resources/SensioGeneratorBundle/skeleton/layout/Resources/views/Layout/_header.html.twig +++ b/src/Kunstmaan/GeneratorBundle/Resources/SensioGeneratorBundle/skeleton/layout/Resources/views/Layout/_header.html.twig @@ -14,7 +14,7 @@ {# Logo #} {% set homepagePageNode = nodemenu.getRootNodeMenuItem() %} - + @@ -52,7 +52,7 @@ {# Logo #} {% set homepagePageNode = nodemenu.getNodeByInternalName('homepage') %} - + @@ -121,7 +121,7 @@ {# Logo #} {% set homepagePageNode = nodemenu.getNodeByInternalName('homepage') %} - + diff --git a/src/Kunstmaan/GeneratorBundle/Resources/SensioGeneratorBundle/skeleton/pagepart/Resources/views/PageParts/DownloadPagePart/view.html.twig b/src/Kunstmaan/GeneratorBundle/Resources/SensioGeneratorBundle/skeleton/pagepart/Resources/views/PageParts/DownloadPagePart/view.html.twig index d5884762a6..9a7d5d3f0c 100644 --- a/src/Kunstmaan/GeneratorBundle/Resources/SensioGeneratorBundle/skeleton/pagepart/Resources/views/PageParts/DownloadPagePart/view.html.twig +++ b/src/Kunstmaan/GeneratorBundle/Resources/SensioGeneratorBundle/skeleton/pagepart/Resources/views/PageParts/DownloadPagePart/view.html.twig @@ -5,7 +5,7 @@ {% endif %}- {{ name }} + {{ name }} | {{ resource.media.contentTypeShort }} {{ resource.media.getFileSize() }}
{% endif %} diff --git a/src/Kunstmaan/GeneratorBundle/Resources/SensioGeneratorBundle/skeleton/pagepart/Resources/views/PageParts/ImagePagePart/view.html.twig b/src/Kunstmaan/GeneratorBundle/Resources/SensioGeneratorBundle/skeleton/pagepart/Resources/views/PageParts/ImagePagePart/view.html.twig index 6e991785c7..9e0fdf70fc 100644 --- a/src/Kunstmaan/GeneratorBundle/Resources/SensioGeneratorBundle/skeleton/pagepart/Resources/views/PageParts/ImagePagePart/view.html.twig +++ b/src/Kunstmaan/GeneratorBundle/Resources/SensioGeneratorBundle/skeleton/pagepart/Resources/views/PageParts/ImagePagePart/view.html.twig @@ -5,13 +5,13 @@ {% set imgUrl = '' %} {% if type in ['svg', 'gif'] %} - {% set imgUrl = absolute_url(asset(image)) %} + {% set imgUrl = absolute_url(asset(image, 'media')) %} {% else %} - {% set imgUrl_huge = asset(image | imagine_filter('image_huge_' ~ type)) %} - {% set imgUrl_big = asset(image | imagine_filter('image_big_' ~ type)) %} - {% set imgUrl_medium = asset(image | imagine_filter('image_medium_' ~ type)) %} - {% set imgUrl_small = asset(image | imagine_filter('image_small_' ~ type)) %} + {% set imgUrl_huge = asset(image | imagine_filter('image_huge_' ~ type), 'media') %} + {% set imgUrl_big = asset(image | imagine_filter('image_big_' ~ type), 'media') %} + {% set imgUrl_medium = asset(image | imagine_filter('image_medium_' ~ type), 'media') %} + {% set imgUrl_small = asset(image | imagine_filter('image_small_' ~ type), 'media') %} {% set srcSet = imgUrl_small ~ ' 400w, ' ~ imgUrl_medium ~ ' 600w, ' ~ imgUrl_big ~ ' 1200w, ' ~ imgUrl_huge ~ ' 2400w' %} {# diff --git a/src/Kunstmaan/GeneratorBundle/Resources/SensioGeneratorBundle/skeleton/pagepart/Resources/views/PageParts/VideoPagePart/view.html.twig b/src/Kunstmaan/GeneratorBundle/Resources/SensioGeneratorBundle/skeleton/pagepart/Resources/views/PageParts/VideoPagePart/view.html.twig index f1bed30fca..7744bf5434 100644 --- a/src/Kunstmaan/GeneratorBundle/Resources/SensioGeneratorBundle/skeleton/pagepart/Resources/views/PageParts/VideoPagePart/view.html.twig +++ b/src/Kunstmaan/GeneratorBundle/Resources/SensioGeneratorBundle/skeleton/pagepart/Resources/views/PageParts/VideoPagePart/view.html.twig @@ -5,13 +5,13 @@ {% set imgUrl = '' %} {% if type in ['svg', 'gif'] %} - {% set imgUrl = absolute_url(asset(image)) %} + {% set imgUrl = absolute_url(asset(image, 'media')) %} {% else %} - {% set imgUrl_huge = asset(image | imagine_filter('image_huge_' ~ type)) %} - {% set imgUrl_big = asset(image | imagine_filter('image_big_' ~ type)) %} - {% set imgUrl_medium = asset(image | imagine_filter('image_medium_' ~ type)) %} - {% set imgUrl_small = asset(image | imagine_filter('image_small_' ~ type)) %} + {% set imgUrl_huge = asset(image | imagine_filter('image_huge_' ~ type), 'media') %} + {% set imgUrl_big = asset(image | imagine_filter('image_big_' ~ type), 'media') %} + {% set imgUrl_medium = asset(image | imagine_filter('image_medium_' ~ type), 'media') %} + {% set imgUrl_small = asset(image | imagine_filter('image_small_' ~ type), 'media') %} {% set srcSet = imgUrl_small ~ ' 400w,' ~ imgUrl_medium ~ ' 600w,' ~ imgUrl_big ~ ' 1200w,' ~ imgUrl_huge ~ ' 2400w'%} @@ -27,7 +27,7 @@ {% set videoImage = asset('frontend/img/general/video-pp--default.svg') %} {% set imageType = 'jpg' %} {% if resource.thumbnail is not empty %} - {% set videoImage = asset(resource.thumbnail.url|imagine_filter('optim')) %} + {% set videoImage = asset(resource.thumbnail.url|imagine_filter('optim'), 'media') %} {% set imageType = resource.thumbnail.originalFilename|lower|split('.')|last %} {% endif %} diff --git a/src/Kunstmaan/GeneratorBundle/Resources/SensioGeneratorBundle/skeleton/pagepart/Resources/views/PageParts/view.html.twig b/src/Kunstmaan/GeneratorBundle/Resources/SensioGeneratorBundle/skeleton/pagepart/Resources/views/PageParts/view.html.twig index 517400af20..8c7c32b6ac 100644 --- a/src/Kunstmaan/GeneratorBundle/Resources/SensioGeneratorBundle/skeleton/pagepart/Resources/views/PageParts/view.html.twig +++ b/src/Kunstmaan/GeneratorBundle/Resources/SensioGeneratorBundle/skeleton/pagepart/Resources/views/PageParts/view.html.twig @@ -9,9 +9,9 @@ {% elseif key == 'link' %} {{ "{{ resource." ~ fieldArray['text']['fieldName'] ~ " }}" }} {% elseif key == 'image' %} - {{ "{% if resource." ~ fieldArray['image']['fieldName'] ~ " is not empty %}" }}{{ "{% endif %}" }} + {{ "{% if resource." ~ fieldArray['image']['fieldName'] ~ " is not empty %}" }}{{ "{% endif %}" }} {% elseif key == 'media' %} - {{ "{% if resource." ~ fieldArray[0]['fieldName'] ~ " is not empty %}" }}{{ "{{ resource." ~ fieldArray[0]['fieldName'] ~ ".name }}" }}{{ "{% endif %}" }} + {{ "{% if resource." ~ fieldArray[0]['fieldName'] ~ " is not empty %}" }}{{ "{{ resource." ~ fieldArray[0]['fieldName'] ~ ".name }}" }}{{ "{% endif %}" }} {% elseif key == 'single_ref' %} {{ "{% if resource." ~ fieldArray[0]['fieldName'] ~ " is not empty %}" }}