modified: sites/all/themes/ofcmboilerplate/css/compiled/style.css
[ofcm:ofcmweb-v0_3.git] / sites / all / themes / ofcmboilerplate / templates / node--concierto.tpl.php
1 <article id="node-<?php print $node->nid; ?>" class="<?php print $classes; ?>">
2   <div class="node-inner">
3                 <?php if (!$page): ?>
4                         <header>
5                                 <h2<?php print $title_attributes; ?>><a href="<?php print $node_url; ?>"><?php print $title; ?></a></h2>
6                         </header>
7                 <?php endif; ?>
8                 <?php if ($page) { ?>
9                         <div class="content">
10                                         <?php 
11                                                 // Get field arrays
12                                                 $fechas = field_get_items('node', $node, 'field_fechas');
13                                                 $sedes = field_get_items('node', $node, 'field_sedeentidad');
14                                                 $boletos = field_get_items('node', $node, 'field_boletos');
15                                         ?>
16                                 <ul class="concertdates clearfix">
17                                         <?php 
18                                                 // Get data row
19                                                 foreach ($fechas as $key=>$value) {
20                                                         $col1 = field_view_value('node', $node, 'field_fechas', $fechas[$key], array('settings' => array ('format_type' => 'short')));
21                                                         $col3 = field_view_value('node', $node, 'field_boletos', $boletos[$key]);
22                                                 // Print table row
23                                                 ?>
24                                         <li class="dateitem clearfix">
25                                                 <strong><?php print drupal_render($col1);       ?></strong><br/>
26                                                 <?php if ($page) print '<span>Sala Silvestre Revueltas</span><br/>';    ?>
27                                                 <a href="<?php print drupal_render($col3);?>">Compra tus boletos</a> 
28                                         </li>
29                                                 <?php
30                                                 }
31                                          ?>
32                                 </ul>
33                         </div>
34                         <?php 
35                                 // We hide the comments and links now so that we can render them later.
36                                 hide($content['comments']);
37                                 hide($content['links']);
38                                 print render($content);
39                         } else { ?>
40                         <div class="content clearfix">
41                                 <?php 
42                                         // Get field arrays
43                                         $fechas = field_get_items('node', $node, 'field_fechas');
44                                         $boletos = field_get_items('node', $node, 'field_boletos');
45                                         print render($content['field_ilustracion']);
46                                  ?>
47                                 <ul class="concertdates clearfix">
48                                         <?php 
49                                                 // We hide the comments and links now so that we can render them later.
50                                                 // Get data row
51                                                 foreach ($fechas as $key=>$value) {
52                                                         $col1 = field_view_value('node', $node, 'field_fechas', $fechas[$key], array('settings' => array ('format_type' => 'fullflat')));
53                                                         $col3 = field_view_value('node', $node, 'field_boletos', $boletos[$key]);
54                                                 ?>
55                                                 <li class="dateitem">
56                                                         <div class="date">
57                                                                 <strong><?php print drupal_render($col1);       ?></strong>
58                                                         </div>
59                                                         <div class="boletos">
60                                                                 <a href="<?php print drupal_render($col3);?>">Boletos</a> 
61                                                         </div>
62                                                 </li>
63                                         <?php } ?>
64                                 </ul>
65                         </div>
66                 <?php 
67                 } ?>
68
69     <?php if (!empty($content['links']['terms']) || !empty($content['links'])): ?>
70       <footer>
71       <?php if (!empty($content['links']['terms'])): ?>
72         <div class="terms"><?php print render($content['links']['terms']); ?></div>
73       <?php endif;?>
74       
75       <?php if (!empty($content['links'])): ?>
76         <div class="links"><?php print render($content['links']); ?></div>
77       <?php endif; ?>
78       </footer>
79     <?php endif; ?>
80   </div> <!-- /node-inner -->
81 </article> <!-- /node-->
82 <?php print render($content['comments']); ?>