root / drupal7 / sites / all / modules / panelizer / templates / panelizer-view-mode.tpl.php @ a2bb1a14
1 | 85ad3d82 | Assos Assos | <?php
|
---|---|---|---|
2 | e5e66f93 | Assos Assos | /**
|
3 | * Default template for rendering a Panelizer-managed view mode.
|
||
4 | *
|
||
5 | * Available variables:
|
||
6 | * - $classes_array - An array of classes determined in
|
||
7 | * template_preprocess_views_view().
|
||
8 | * - $title - The label/title for this entity.
|
||
9 | * - $title_element - HTML tag used by the title, defaults to 'h2'.
|
||
10 | * - $content - Rendered entity output for this view mode.
|
||
11 | * - $entity_url - The full URL for this entity.
|
||
12 | *
|
||
13 | * @see preprocess_panelizer_view_mode()
|
||
14 | */
|
||
15 | 85ad3d82 | Assos Assos | ?>
|
16 | |||
17 | <div class="<?php print $classes; ?>"<?php print $attributes; ?>> |
||
18 | <?php print render($title_prefix); ?> |
||
19 | <?php if (!empty($title)): ?> |
||
20 | <<?php print $title_element;?> <?php print $title_attributes; ?>> |
||
21 | <?php if (!empty($entity_url)): ?> |
||
22 | <a href="<?php print $entity_url; ?>"><?php print $title; ?></a> |
||
23 | <?php else: ?> |
||
24 | <?php print $title; ?> |
||
25 | <?php endif; ?> |
||
26 | </<?php print $title_element;?>> |
||
27 | <?php endif; ?> |
||
28 | <?php print render($title_suffix); ?> |
||
29 | <?php print $content; ?> |
||
30 | e5e66f93 | Assos Assos | </div> |