-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
INTERIM-170 Add support for Display Suite custom wrappers in the Medi…
…a Card layout.
- Loading branch information
Showing
1 changed file
with
13 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 ?>> |