paragraphs-item.tpl.php 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. /**
  3. * @file
  4. * Default theme implementation for a single paragraph item.
  5. *
  6. * Available variables:
  7. * - $content: An array of content items. Use render($content) to print them
  8. * all, or print a subset such as render($content['field_example']). Use
  9. * hide($content['field_example']) to temporarily suppress the printing of a
  10. * given element.
  11. * - $classes: String of classes that can be used to style contextually through
  12. * CSS. It can be manipulated through the variable $classes_array from
  13. * preprocess functions. By default the following classes are available, where
  14. * the parts enclosed by {} are replaced by the appropriate values:
  15. * - entity
  16. * - entity-paragraphs-item
  17. * - paragraphs-item-{bundle}
  18. *
  19. * Other variables:
  20. * - $classes_array: Array of html class attribute values. It is flattened into
  21. * a string within the variable $classes.
  22. *
  23. * @see template_preprocess()
  24. * @see template_preprocess_entity()
  25. * @see template_process()
  26. */
  27. ?>
  28. <div class="<?php print $classes; ?>"<?php print $attributes; ?>>
  29. <div class="content"<?php print $content_attributes; ?>>
  30. <?php print render($content); ?>
  31. </div>
  32. </div>