diff --git a/modules/openy_features/openy_prgf/modules/openy_prgf_blog_branch/config/install/views.view.latest_blog_posts_branch.yml b/modules/openy_features/openy_prgf/modules/openy_prgf_blog_branch/config/install/views.view.latest_blog_posts_branch.yml index 3ddafbe035..2cb85d75c8 100644 --- a/modules/openy_features/openy_prgf/modules/openy_prgf_blog_branch/config/install/views.view.latest_blog_posts_branch.yml +++ b/modules/openy_features/openy_prgf/modules/openy_prgf_blog_branch/config/install/views.view.latest_blog_posts_branch.yml @@ -226,6 +226,7 @@ display: plugin_id: numeric display_extenders: { } use_ajax: true + css_class: blog-more-teaser cache_metadata: max-age: -1 contexts: diff --git a/modules/openy_features/openy_prgf/modules/openy_prgf_blog_camp/config/install/views.view.latest_blog_posts_camp.yml b/modules/openy_features/openy_prgf/modules/openy_prgf_blog_camp/config/install/views.view.latest_blog_posts_camp.yml index e7de91b293..925f836901 100644 --- a/modules/openy_features/openy_prgf/modules/openy_prgf_blog_camp/config/install/views.view.latest_blog_posts_camp.yml +++ b/modules/openy_features/openy_prgf/modules/openy_prgf_blog_camp/config/install/views.view.latest_blog_posts_camp.yml @@ -226,6 +226,7 @@ display: plugin_id: numeric display_extenders: { } use_ajax: true + css_class: blog-more-teaser cache_metadata: max-age: -1 contexts: diff --git a/modules/openy_features/openy_prgf/modules/openy_prgf_blog_latest/config/install/views.view.latest_blog_posts.yml b/modules/openy_features/openy_prgf/modules/openy_prgf_blog_latest/config/install/views.view.latest_blog_posts.yml index a82fd8dae5..ed78d2cc4b 100644 --- a/modules/openy_features/openy_prgf/modules/openy_prgf_blog_latest/config/install/views.view.latest_blog_posts.yml +++ b/modules/openy_features/openy_prgf/modules/openy_prgf_blog_latest/config/install/views.view.latest_blog_posts.yml @@ -70,7 +70,11 @@ display: button_text: 'Load More' automatically_load_content: false style: - type: grid + type: default + options: + row_class: '' + default_row_class: true + uses_fields: false row: type: 'entity:node' options: @@ -220,6 +224,7 @@ display: arguments: { } display_extenders: { } use_ajax: true + css_class: blog-more-teaser cache_metadata: max-age: -1 contexts: diff --git a/themes/openy_themes/openy_rose/css/styles.css b/themes/openy_themes/openy_rose/css/styles.css index 410d3e3763..5f53b3df93 100644 --- a/themes/openy_themes/openy_rose/css/styles.css +++ b/themes/openy_themes/openy_rose/css/styles.css @@ -1926,11 +1926,17 @@ body { } } -.paragraph--type--blog-posts-listing .views-exposed-form { +.paragraph--type--blog-posts-listing .views-exposed-form, +.paragraph--type--latest-blog-posts .views-exposed-form, +.paragraph--type--latest-blog-posts-camp .views-exposed-form, +.paragraph--type--latest-blog-posts-branch .views-exposed-form { margin-bottom: 30px; } @media (min-width: 48em) { - .paragraph--type--blog-posts-listing .blog-more-teaser-results-wrapper { + .paragraph--type--blog-posts-listing .blog-more-teaser-results-wrapper, + .paragraph--type--latest-blog-posts .blog-more-teaser-results-wrapper, + .paragraph--type--latest-blog-posts-camp .blog-more-teaser-results-wrapper, + .paragraph--type--latest-blog-posts-branch .blog-more-teaser-results-wrapper { margin-left: -15px; margin-right: -15px; } diff --git a/themes/openy_themes/openy_rose/scss/modules/_paragraphs.scss b/themes/openy_themes/openy_rose/scss/modules/_paragraphs.scss index 8d3de2d734..9c1d6a798d 100644 --- a/themes/openy_themes/openy_rose/scss/modules/_paragraphs.scss +++ b/themes/openy_themes/openy_rose/scss/modules/_paragraphs.scss @@ -771,7 +771,10 @@ } } -.paragraph--type--blog-posts-listing { +.paragraph--type--blog-posts-listing, +.paragraph--type--latest-blog-posts, +.paragraph--type--latest-blog-posts-camp, +.paragraph--type--latest-blog-posts-branch { .views-exposed-form { margin-bottom: 30px; } diff --git a/themes/openy_themes/openy_rose/templates/views/views-infinite-scroll-pager--listing-blog-posts.html.twig b/themes/openy_themes/openy_rose/templates/views/views-infinite-scroll-pager.html.twig similarity index 100% rename from themes/openy_themes/openy_rose/templates/views/views-infinite-scroll-pager--listing-blog-posts.html.twig rename to themes/openy_themes/openy_rose/templates/views/views-infinite-scroll-pager.html.twig diff --git a/themes/openy_themes/openy_rose/templates/views/views-view-grid--listing-blog-posts--block.html.twig b/themes/openy_themes/openy_rose/templates/views/views-view-grid--listing-blog-posts--block.html.twig deleted file mode 100755 index aed722d4d8..0000000000 --- a/themes/openy_themes/openy_rose/templates/views/views-view-grid--listing-blog-posts--block.html.twig +++ /dev/null @@ -1,80 +0,0 @@ -{# -/** - * @file - * Default theme implementation for views to display rows in a grid. - * - * Available variables: - * - attributes: HTML attributes for the wrapping element. - * - title: The title of this group of rows. - * - view: The view object. - * - rows: The rendered view results. - * - options: The view plugin style options. - * - row_class_default: A flag indicating whether default classes should be - * used on rows. - * - col_class_default: A flag indicating whether default classes should be - * used on columns. - * - items: A list of grid items. Each item contains a list of rows or columns. - * The order in what comes first (row or column) depends on which alignment - * type is chosen (horizontal or vertical). - * - attributes: HTML attributes for each row or column. - * - content: A list of columns or rows. Each row or column contains: - * - attributes: HTML attributes for each row or column. - * - content: The row or column contents. - * - * @see template_preprocess_views_view_grid() - * - * @ingroup themeable - */ -#} -{% - set classes = [ - 'views-view-grid', - options.alignment, - 'cols-' ~ options.columns, - 'clearfix', - ] -%} -{% if options.row_class_default %} - {% - set row_classes = [ - options.alignment == 'horizontal' ? 'clearfix', - ] - %} -{% endif %} -{% if options.col_class_default %} - {% - set col_classes = [ - 'views-col', - options.alignment == 'vertical' ? 'clearfix', - 'col-xs-12', - 'col-sm-3', - 'row-eq-height', - ] - %} -{% endif %} -{% if title %} -

{{ title }}

-{% endif %} - - {% if options.alignment == 'horizontal' %} - {% for row in items %} - - {% for column in row.content %} - - {{ column.content }} - - {% endfor %} - - {% endfor %} - {% else %} - {% for column in items %} - - {% for row in column.content %} - - {{ row.content }} - - {% endfor %} - - {% endfor %} - {% endif %} - diff --git a/themes/openy_themes/openy_rose/templates/views/views-view-unformatted--latest-blog-posts--block.html.twig b/themes/openy_themes/openy_rose/templates/views/views-view-unformatted--latest-blog-posts--block.html.twig new file mode 100755 index 0000000000..9fba0f087e --- /dev/null +++ b/themes/openy_themes/openy_rose/templates/views/views-view-unformatted--latest-blog-posts--block.html.twig @@ -0,0 +1 @@ +{% extends "views-view-unformatted--listing-blog-posts--block.html.twig" %} \ No newline at end of file diff --git a/themes/openy_themes/openy_rose/templates/views/views-view-unformatted--latest-blog-posts-branch--block.html.twig b/themes/openy_themes/openy_rose/templates/views/views-view-unformatted--latest-blog-posts-branch--block.html.twig new file mode 100755 index 0000000000..9fba0f087e --- /dev/null +++ b/themes/openy_themes/openy_rose/templates/views/views-view-unformatted--latest-blog-posts-branch--block.html.twig @@ -0,0 +1 @@ +{% extends "views-view-unformatted--listing-blog-posts--block.html.twig" %} \ No newline at end of file diff --git a/themes/openy_themes/openy_rose/templates/views/views-view-unformatted--latest-blog-posts-camp--block.html.twig b/themes/openy_themes/openy_rose/templates/views/views-view-unformatted--latest-blog-posts-camp--block.html.twig new file mode 100755 index 0000000000..9fba0f087e --- /dev/null +++ b/themes/openy_themes/openy_rose/templates/views/views-view-unformatted--latest-blog-posts-camp--block.html.twig @@ -0,0 +1 @@ +{% extends "views-view-unformatted--listing-blog-posts--block.html.twig" %} \ No newline at end of file