Skip to content

Commit

Permalink
INTERIM-170 Add support for Display Suite custom wrappers in the Medi…
Browse files Browse the repository at this point in the history
…a Card layout.
  • Loading branch information
sacarney committed Jun 27, 2018
1 parent ca3e3fa commit 475f303
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions panels/layouts/media_card/media-card.tpl.php
Original file line number Diff line number Diff line change
@@ -1,22 +1,27 @@
<div class="media media_card" <?php if (!empty($css_id)) { print "id=\"$css_id\""; } ?>>
<<?php print $layout_wrapper; print $layout_attributes; ?> class="media media_card <?php print $classes;?>">

<?php if (isset($title_suffix['contextual_links'])): ?>
<?php print render($title_suffix['contextual_links']); ?>
<?php endif; ?>

<?php if (!empty($content['media_left'])): ?>
<div class="media-left">
<<?php print $media_left_wrapper ?> class="media-left <?php print $media_left_classes; ?>">
<?php print $content['media_left']; ?>
</div>
</<?php print $media_left_wrapper ?>>
<?php endif; ?>

<div class="media-body">
<?php if (!empty($content['media_heading'])): ?>
<div class="media-heading">
<<?php print $media_heading_wrapper ?> class="media-heading <?php print $media_heading_classes; ?>">
<?php print $content['media_heading']; ?>
</div>
</<?php print $media_heading_wrapper ?>>
<?php endif; ?>

<?php if (!empty($content['media_body'])): ?>
<div class="media-content">
<<?php print $media_body_wrapper ?> class="media-content <?php print $media_body_classes; ?>">
<?php print $content['media_body']; ?>
</div>
</<?php print $media_body_wrapper ?>>
<?php endif; ?>
</div>
</div>

</<?php print $layout_wrapper ?>>

0 comments on commit 475f303

Please sign in to comment.