Mercurial > hg > drupalISMI
comparison openmindattribute/templates/openmindattribute_PERSON.tpl.php @ 7:f651752ee9ad
add relations to openmindattribute template variables. use relations for person template.
author | casties |
---|---|
date | Fri, 19 Jun 2015 18:13:21 +0200 |
parents | 124ef8f3b22d |
children | cf772424f725 |
comparison
equal
deleted
inserted
replaced
6:447623f107dc | 7:f651752ee9ad |
---|---|
1 <h3 class="openmindattribute-header">Details</h3> | 1 <h3 class="openmindattribute-header">Details</h3> |
2 | |
2 <table class="openmindattribute-table" > | 3 <table class="openmindattribute-table" > |
3 <tr class="openmindattribute-row"> | 4 <tr class="openmindattribute-row"> |
4 <td class="openmindattribute-cell openmindattribute-name">Name</td> | 5 <td class="openmindattribute-cell openmindattribute-name">Name</td> |
5 <td class="openmindattribute-cell"><?php print $attributes['name_translit']['ov']?><br/><?php print $attributes['name']['ov']?></td> | 6 <td class="openmindattribute-cell"><?php print $attributes['name']['ov'] ?><br/> |
7 <?php print $attributes['name_translit']['romanization']?></td> | |
6 </tr> | 8 </tr> |
7 | 9 |
8 <tr class="openmindattribute-row"> | 10 <?php if ($attributes['notes']['ov'] != ''): ?> |
9 <td class="openmindattribute-cell openmindattribute-name">Name (romanization)</td> | |
10 <td class="openmindattribute-cell"><?php print $attributes['name_translit']['romanization']?></td> | |
11 </tr> | |
12 | |
13 <tr class="openmindattribute-row"> | 11 <tr class="openmindattribute-row"> |
14 <td class="openmindattribute-cell openmindattribute-name">Notes</td> | 12 <td class="openmindattribute-cell openmindattribute-name">Notes</td> |
15 <td class="openmindattribute-cell"><?php print $attributes['notes']['ov']?></td> | 13 <td class="openmindattribute-cell"><?php print $attributes['notes']['ov'] ?></td> |
16 </tr> | 14 </tr> |
15 <?php endif; ?> | |
17 | 16 |
17 <?php if ($attributes['birth_date_text']['ov'] != ''): ?> | |
18 <tr class="openmindattribute-row"> | 18 <tr class="openmindattribute-row"> |
19 <td class="openmindattribute-cell openmindattribute-name">Date of birth</td> | 19 <td class="openmindattribute-cell openmindattribute-name">Birth Date</td> |
20 <td class="openmindattribute-cell"><?php print $attributes['birth_date_text']['ov']?></td> | 20 <td class="openmindattribute-cell"><?php print $attributes['birth_date_text']['ov'] ?></td> |
21 </tr> | 21 </tr> |
22 <?php endif; ?> | |
22 | 23 |
24 <?php if (isset($relations['was_born_in'])): ?> | |
23 <tr class="openmindattribute-row"> | 25 <tr class="openmindattribute-row"> |
24 <td class="openmindattribute-cell openmindattribute-name">Date of death</td> | 26 <td class="openmindattribute-cell openmindattribute-name">Place of Birth</td> |
25 <td class="openmindattribute-cell"><?php print $attributes['death_date_text']['ov']?></td> | 27 <td class="openmindattribute-cell"><?php print $relations['was_born_in'][0]->title ?></td> |
26 </tr> | 28 </tr> |
29 <?php endif; ?> | |
27 | 30 |
31 <?php if ($attributes['death_date_text']['ov'] != ''): ?> | |
32 <tr class="openmindattribute-row"> | |
33 <td class="openmindattribute-cell openmindattribute-name">Death Date</td> | |
34 <td class="openmindattribute-cell"><?php print $attributes['death_date_text']['ov'] ?></td> | |
35 </tr> | |
36 <?php endif; ?> | |
37 | |
38 <?php if (isset($relations['died_in'])): ?> | |
39 <tr class="openmindattribute-row"> | |
40 <td class="openmindattribute-cell openmindattribute-name">Place of Death</td> | |
41 <td class="openmindattribute-cell"><?php print $relations['died_in'][0]->title ?></td> | |
42 </tr> | |
43 <?php endif; ?> | |
28 | 44 |
29 </table> | 45 </table> |