-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtemplate-press.php
123 lines (113 loc) · 8.99 KB
/
template-press.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
<?php
/**
* Template Name: Template About (press)
*/
get_header(); ?>
<!-- Content -->
<div class="about-center-align">
<div class="content-left">
<?php if ( has_nav_menu( 'aboutpage_menu' ) ) {
wp_nav_menu(array(
'theme_location'=> 'aboutpage_menu',
'menu' => 'About Page Menu',
'menu_class' => 'nav cf',
'walker' => new Aletheme_Nav_Walker(),
'container' => '',
));
} ?>
</div>
<div class="content-bottom">
<!-- Root element for Scrollable -->
<div class="scrollable" id="scrollable">
<!-- All Items -->
<div class="items">
<?php if(ale_get_meta('presstit1')){ ?>
<div class="item">
<a class="<?php if(ale_get_meta('pressimage1')){ echo "img"; } elseif(ale_get_meta('pressvideo1')){ echo "video iframe"; } ?> fancybox" data-rel="group" href="<?php if(ale_get_meta('pressimage1')){ echo ale_get_meta('pressimage1'); } elseif(ale_get_meta('pressvideo1')){ echo ale_get_meta('pressvideo1'); } ?>" data-title="<?php echo ale_get_meta('presstit1'); ?>">
<span class="hover <?php if(ale_get_meta('pressvideo1')) { echo "play"; } ?>"></span>
<img src="<?php echo ale_get_meta('pressthumb1'); ?>" alt="image" />
</a>
</div>
<?php } ?>
<?php if(ale_get_meta('presstit2')){ ?>
<div class="item">
<a class="<?php if(ale_get_meta('pressimage2')){ echo "img"; } elseif(ale_get_meta('pressvideo2')){ echo "video iframe"; } ?> fancybox" data-rel="group" href="<?php if(ale_get_meta('pressimage2')){ echo ale_get_meta('pressimage2'); } elseif(ale_get_meta('pressvideo2')){ echo ale_get_meta('pressvideo2'); } ?>" data-title="<?php echo ale_get_meta('presstit2'); ?>">
<span class="hover <?php if(ale_get_meta('pressvideo2')) { echo "play"; } ?>"></span>
<img src="<?php echo ale_get_meta('pressthumb2'); ?>" alt="image" />
</a>
</div>
<?php } ?>
<?php if(ale_get_meta('presstit3')){ ?>
<div class="item">
<a class="<?php if(ale_get_meta('pressimage3')){ echo "img"; } elseif(ale_get_meta('pressvideo3')){ echo "video iframe"; } ?> fancybox" data-rel="group" href="<?php if(ale_get_meta('pressimage3')){ echo ale_get_meta('pressimage3'); } elseif(ale_get_meta('pressvideo3')){ echo ale_get_meta('pressvideo3'); } ?>" data-title="<?php echo ale_get_meta('presstit3'); ?>">
<span class="hover <?php if(ale_get_meta('pressvideo3')) { echo "play"; } ?>"></span>
<img src="<?php echo ale_get_meta('pressthumb3'); ?>" alt="image" />
</a>
</div>
<?php } ?>
<?php if(ale_get_meta('presstit4')){ ?>
<div class="item">
<a class="<?php if(ale_get_meta('pressimage4')){ echo "img"; } elseif(ale_get_meta('pressvideo4')){ echo "video iframe"; } ?> fancybox" data-rel="group" href="<?php if(ale_get_meta('pressimage4')){ echo ale_get_meta('pressimage4'); } elseif(ale_get_meta('pressvideo4')){ echo ale_get_meta('pressvideo4'); } ?>" data-title="<?php echo ale_get_meta('presstit4'); ?>">
<span class="hover <?php if(ale_get_meta('pressvideo4')) { echo "play"; } ?>"></span>
<img src="<?php echo ale_get_meta('pressthumb4'); ?>" alt="image" />
</a>
</div>
<?php } ?>
<?php if(ale_get_meta('presstit5')){ ?>
<div class="item">
<a class="<?php if(ale_get_meta('pressimage5')){ echo "img"; } elseif(ale_get_meta('pressvideo5')){ echo "video iframe"; } ?> fancybox" data-rel="group" href="<?php if(ale_get_meta('pressimage5')){ echo ale_get_meta('pressimage5'); } elseif(ale_get_meta('pressvideo5')){ echo ale_get_meta('pressvideo5'); } ?>" data-title="<?php echo ale_get_meta('presstit5'); ?>">
<span class="hover <?php if(ale_get_meta('pressvideo5')) { echo "play"; } ?>"></span>
<img src="<?php echo ale_get_meta('pressthumb5'); ?>" alt="image" />
</a>
</div>
<?php } ?>
<?php if(ale_get_meta('presstit6')){ ?>
<div class="item">
<a class="<?php if(ale_get_meta('pressimage6')){ echo "img"; } elseif(ale_get_meta('pressvideo6')){ echo "video iframe"; } ?> fancybox" data-rel="group" href="<?php if(ale_get_meta('pressimage6')){ echo ale_get_meta('pressimage6'); } elseif(ale_get_meta('pressvideo6')){ echo ale_get_meta('pressvideo6'); } ?>" data-title="<?php echo ale_get_meta('presstit6'); ?>">
<span class="hover <?php if(ale_get_meta('pressvideo6')) { echo "play"; } ?>"></span>
<img src="<?php echo ale_get_meta('pressthumb6'); ?>" alt="image" />
</a>
</div>
<?php } ?>
<?php if(ale_get_meta('presstit7')){ ?>
<div class="item">
<a class="<?php if(ale_get_meta('pressimage7')){ echo "img"; } elseif(ale_get_meta('pressvideo7')){ echo "video iframe"; } ?> fancybox" data-rel="group" href="<?php if(ale_get_meta('pressimage7')){ echo ale_get_meta('pressimage7'); } elseif(ale_get_meta('pressvideo7')){ echo ale_get_meta('pressvideo7'); } ?>" data-title="<?php echo ale_get_meta('presstit7'); ?>">
<span class="hover <?php if(ale_get_meta('pressvideo7')) { echo "play"; } ?>"></span>
<img src="<?php echo ale_get_meta('pressthumb7'); ?>" alt="image" />
</a>
</div>
<?php } ?>
<?php if(ale_get_meta('presstit8')){ ?>
<div class="item">
<a class="<?php if(ale_get_meta('pressimage8')){ echo "img"; } elseif(ale_get_meta('pressvideo8')){ echo "video iframe"; } ?> fancybox" data-rel="group" href="<?php if(ale_get_meta('pressimage8')){ echo ale_get_meta('pressimage8'); } elseif(ale_get_meta('pressvideo8')){ echo ale_get_meta('pressvideo8'); } ?>" data-title="<?php echo ale_get_meta('presstit8'); ?>">
<span class="hover <?php if(ale_get_meta('pressvideo8')) { echo "play"; } ?>"></span>
<img src="<?php echo ale_get_meta('pressthumb8'); ?>" alt="image" />
</a>
</div>
<?php } ?>
<?php if(ale_get_meta('presstit9')){ ?>
<div class="item">
<a class="<?php if(ale_get_meta('pressimage9')){ echo "img"; } elseif(ale_get_meta('pressvideo9')){ echo "video iframe"; } ?> fancybox" data-rel="group" href="<?php if(ale_get_meta('pressimage9')){ echo ale_get_meta('pressimage9'); } elseif(ale_get_meta('pressvideo9')){ echo ale_get_meta('pressvideo9'); } ?>" data-title="<?php echo ale_get_meta('presstit9'); ?>">
<span class="hover <?php if(ale_get_meta('pressvideo9')) { echo "play"; } ?>"></span>
<img src="<?php echo ale_get_meta('pressthumb9'); ?>" alt="image" />
</a>
</div>
<?php } ?>
<?php if(ale_get_meta('presstit10')){ ?>
<div class="item">
<a class="<?php if(ale_get_meta('pressimage10')){ echo "img"; } elseif(ale_get_meta('pressvideo10')){ echo "video iframe"; } ?> fancybox" data-rel="group" href="<?php if(ale_get_meta('pressimage10')){ echo ale_get_meta('pressimage10'); } elseif(ale_get_meta('pressvideo10')){ echo ale_get_meta('pressvideo10'); } ?>" data-title="<?php echo ale_get_meta('presstit10'); ?>">
<span class="hover <?php if(ale_get_meta('pressvideo10')) { echo "play"; } ?>"></span>
<img src="<?php echo ale_get_meta('pressthumb10'); ?>" alt="image" />
</a>
</div>
<?php } ?>
</div>
</div>
<!-- Nav -->
<div class="nav-line-left"></div>
<a class="prev browse left"></a>
<a class="next browse right"></a>
<div class="nav-line-right"><p id="item-title"></p></div>
</div>
</div>
<?php get_footer(); ?>