Skip to content

Commit

Permalink
Issue backdrop-contrib#108: Use $classes_array instead of $classes to…
Browse files Browse the repository at this point in the history
… apply css classes

Fixes backdrop-contrib#108
  • Loading branch information
argiepiano authored Dec 5, 2021
1 parent 067067d commit 6428ffa
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions theme/paragraphs-item.tpl.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,24 +10,19 @@
* all, or print a subset such as render($content['field_example']). Use
* hide($content['field_example']) to temporarily suppress the printing of a
* given element.
* - $classes: String of classes that can be used to style contextually through
* CSS. It can be manipulated through the variable $classes_array from
* preprocess functions. By default the following classes are available, where
* - $classes_array: An array of classes that can be used to style contextually through
* CSS. By default the following classes are available, where
* the parts enclosed by {} are replaced by the appropriate values:
* - entity
* - entity-paragraphs-item
* - paragraphs-item-{bundle}
*
* Other variables:
* - $classes_array: Array of html class attribute values. It is flattened into
* a string within the variable $classes.
*
* @see template_preprocess()
* @see template_preprocess_entity()
* @see template_process()
*/
?>
<div class="<?php print implode(' ', $classes); ?>"<?php print backdrop_attributes($attributes); ?>>
<div class="<?php print implode(' ', $classes_array); ?>"<?php print backdrop_attributes($attributes); ?>>
<?php print render($admin_links); ?>
<?php print render($title_prefix); ?>
<?php print render($title_suffix); ?>
Expand Down

0 comments on commit 6428ffa

Please sign in to comment.