forked from DBCDK/ting_search_carousel
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathting_search_carousel.tpl.php
39 lines (37 loc) · 1.11 KB
/
ting_search_carousel.tpl.php
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
<?php
/**
* @file
* Search carousel wrapper markup.
*/
global $base_url;
$path = drupal_get_path('module', 'ting_search_carousel');
$ajax_loader = url($base_url . '/' . $path . '/images/ajax-loader.gif');
drupal_add_library('system', 'ui.widget');
drupal_add_js($path . '/js/jquery.rs.carousel-min.js');
drupal_add_js($path . '/js/ting_search_carousel.js');
drupal_add_css($path . '/css/jquery.rs.carousel.css');
drupal_add_css($path . '/css/ting_search_carousel.css');
?>
<div class="ting-search-carousel" style="display: none;">
<ul class="search-controller">
<?php foreach ($searches as $i => $search) : ?>
<li class="<?php echo ($i == 0) ? 'active' : ''; ?>">
<a href="#"><?php echo $search['title'] ?></a>
</li>
<?php endforeach; ?>
</ul>
<div class="ting-search-results">
<div class="subtitle">
</div>
<div class="ting-rs-carousel">
<div class="rs-carousel-mask">
<ul class="rs-carousel-runner">
<li>
<img src="<?php print $ajax_loader; ?>" />
</li>
</ul>
</div>
</div>
<div class="clearfix"></div>
</div>
</div>