paragraphs-items.tpl.php 976 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. /**
  3. * @file
  4. * Default theme implementation for a group of paragraph items.
  5. *
  6. * Available variables:
  7. * - $content: Rendered HTML of content items.
  8. * - $classes: String of classes that can be used to style contextually through
  9. * CSS. It can be manipulated through the variable $classes_array from
  10. * preprocess functions. By default the following classes are available, where
  11. * the parts enclosed by {} are replaced by the appropriate values:
  12. * - paragraphs-items
  13. * - paragraphs-items-{field_name}
  14. * - paragraphs-items-{field_name}-{view_mode}
  15. * - paragraphs-items-{view_mode}
  16. *
  17. * Other variables:
  18. * - $classes_array: Array of html class attribute values. It is flattened
  19. * into a string within the variable $classes.
  20. *
  21. * @see template_preprocess()
  22. * @see template_preprocess_paragraphs_items()
  23. * @see template_process()
  24. */
  25. ?>
  26. <div class="<?php print $classes; ?>"<?php print $attributes; ?>>
  27. <?php
  28. print $content;
  29. ?>
  30. </div>