Advertisement
Guest User

Untitled

a guest
Jun 23rd, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.25 KB | None | 0 0
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation to display a paragraph.
  5. *
  6. * Available variables:
  7. * - paragraph: Full paragraph entity.
  8. * - id: The paragraph ID.
  9. * - bundle: The type of the paragraph, for example, "image" or "text".
  10. * - authorid: The user ID of the paragraph author.
  11. * - createdtime: Formatted creation date. Preprocess functions can
  12. * reformat it by calling format_date() with the desired parameters on
  13. * $variables['paragraph']->getCreatedTime().
  14. * - content: All paragraph items. Use {{ content }} to print them all,
  15. * or print a subset such as {{ content.field_example }}. Use
  16. * {{ content|without('field_example') }} to temporarily suppress the printing
  17. * of a given child element.
  18. * - attributes: HTML attributes for the containing element.
  19. * The attributes.class element may contain one or more of the following
  20. * classes:
  21. * - paragraphs: The current template type (also known as a "theming hook").
  22. * - paragraphs--type-[type]: The current paragraphs type. For example, if the paragraph is an
  23. * "Image" it would result in "paragraphs--type--image". Note that the machine
  24. * name will often be in a short form of the human readable label.
  25. * - paragraphs--view-mode--[view_mode]: The View Mode of the paragraph; for example, a
  26. * preview would result in: "paragraphs--view-mode--preview", and
  27. * default: "paragraphs--view-mode--default".
  28. * - view_mode: View mode; for example, "preview" or "full".
  29. * - logged_in: Flag for authenticated user status. Will be true when the
  30. * current user is a logged-in member.
  31. * - is_admin: Flag for admin user status. Will be true when the current user
  32. * is an administrator.
  33. *
  34. * @see template_preprocess_paragraph()
  35. *
  36. * @ingroup themeable
  37. */
  38. #}
  39. {% embed "@base/layouts/_outer-wrapper.twig"
  40. with {
  41. "outer_wrapper_modifiers": {
  42. 1: "side-padding",
  43. 2: "top-padding",
  44. },
  45. "outer_wrapper_wrap": true,
  46. }
  47. %}
  48. {% block outer_wrapper_content %}
  49. {% include "@organisms/card-grid/card-grid.twig"
  50. with {
  51. "card_grid_modifiers": {
  52. 1: "columns-3",
  53. 2: "divider"
  54. },
  55. "card_grid_title": content.field_paragraph_card_grid_label,
  56. "grid_content": content|without('field_paragraph_card_grid_label'),
  57. }
  58. %}
  59. {% endblock %}
  60. {% endembed %}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement