1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
<?php
$awards = Award::whereRaw("deleted=? and status=?", array(0, 1))->get();
?> <div class="awardsTimeline"> <section id="section-content" class="section section-content"> <div class="view-content"> <div id="tl1_page" class="timeline flatLine flatNav flatWideButton">
<?php $counter = 1; foreach ($awards as $award) { $awardimg = Image::whereRaw("imageable_type=? and imageable_id=? and deleted=?", array('Award', $award['id'], 0))->first(); $docdate = date("d/m/Y", strtotime(_h($award['docdate']))); ?>
<div class="item" data-description="<?= _h($award['name_tc']) ?>" data-id="<?= $docdate ?>"> <div class="sb-image sb-individual"><img class="image-flat_default" typeof="foaf:Image" src="<?= $awardimg['path'].$awardimg['src'] ?>" width="410" height="230" id="award<?= $counter ?>" /></div> <h2><?= $docdate ?></h2> <span class="timelineHead"><?= _h($award['name_tc']) ?></span> <p> <?= nl2br(_h($award['desc_tc'])) ?> </p> </div> <?php $counter++; } ?> </div> </div> </section> </div>
<script type="text/javascript"> <!--//--><![CDATA[//><!-- (function($) { Drupal.behaviors.contentTimelineModuleTimeline_tl1_page = { attach: function(context, settings) { $("#tl1_page").timeline({ itemMargin: 10, scrollSpeed: 500, easing: "easeOutSine", openTriggerClass: '.item', swipeOn: false, startItem: "last", yearsOn: true, hideTimeline: false, hideControles: false, closeText: "Close", closeItemOnTransition: false, }); } }; })(jQuery); //--><!]]> </script>
|