Browse code

Add device showcase module

Benjamin Roth authored on05/01/2016 15:52:24
Showing1 changed files
... ...
@@ -61,7 +61,7 @@
61 61
 			</ul>
62 62
 		<?php endif; ?>
63 63
 
64
-		<?php if (count($this->features)): ?>
64
+		<?php if (count($this->features) && $this->features[0]): ?>
65 65
 			<h3><?php echo $GLOBALS['TL_LANG']['ESM_CLIENTS']['project_features']; ?></h3>
66 66
 			<ul class="list_features ikon-ul">
67 67
 				<?php foreach ($this->features as $feature): ?>
Browse code

Initial commit

Benjamin Roth authored on26/03/2015 15:24:56
Showing1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,86 @@
1
+<?php $this->extend('block_searchable'); ?>
2
+
3
+<?php $this->block('content'); ?>
4
+
5
+<section class="project cf">
6
+	<header>
7
+		<nav class="siblings_nav">
8
+		<?php if ($this->prevProject): ?>
9
+			<a class="prev" href="<?php echo $this->prevProject['link']; ?>"><span class="ikon ikon-arrow_left ikon-3x"></span></a>
10
+		<?php endif; ?>
11
+
12
+		<?php if ($this->nextProject): ?>
13
+			<a class="next" href="<?php echo $this->nextProject['link']; ?>"><span class="ikon ikon-arrow_right ikon-3x"></span></a>
14
+		<?php endif; ?>
15
+		</nav>
16
+		<h1 class="scene_element scene_element--scaleDown">
17
+			<?php echo $this->client_title; ?>
18
+			<span class="subheading"><?php echo $this->title; ?></span>
19
+		</h1>
20
+	</header>
21
+
22
+	<div class="project_images scene_element scene_element--fadeinleft">
23
+		<ul class="list_screenshots">
24
+			<?php foreach ($this->screenshots as $screenshot): ?>
25
+			<li>
26
+				<figure class="image_container">
27
+				<?php if ($screenshot->href): ?>
28
+					<a href="<?php echo $screenshot->href; ?>"<?php echo $screenshot->attributes; ?> title="<?php echo $screenshot->alt; ?>"><?php $this->insert('picture_default', $screenshot->picture); ?></a>
29
+				<?php else: ?>
30
+					<?php $this->insert('picture_default', $screenshot->picture); ?>
31
+				<?php endif; ?>
32
+				<?php if ($screenshot->caption): ?>
33
+					<figcaption class="caption" style="width:<?php echo $screenshot->arrSize[0]; ?>px"><?php echo $screenshot->caption; ?></figcaption>
34
+				<?php endif; ?>
35
+				</figure>
36
+			</li>
37
+			<?php endforeach; ?>
38
+		</ul>
39
+	</div>
40
+	<div class="project_summary scene_element scene_element--fadeinright">
41
+		<div class="client_roundup">
42
+			<?php echo $this->client_summary; ?>
43
+		</div>
44
+		<div class="project_details">
45
+		<?php if ($this->text): ?>
46
+			<h3><?php echo $GLOBALS['TL_LANG']['ESM_CLIENTS']['project_text']; ?></h3>
47
+			<?php echo $this->text; ?>
48
+		<?php endif; ?>
49
+
50
+		<?php if ($this->link): ?>
51
+			<h3><?php echo $GLOBALS['TL_LANG']['ESM_CLIENTS']['project_link']; ?></h3>
52
+			<p><a href="<?php echo $this->link; ?>" target="_blank"><span class="ikon ikon-share"></span> <?php echo $this->link; ?></a></p>
53
+		<?php endif; ?>
54
+
55
+		<?php if (count($this->services)): ?>
56
+			<h3><?php echo $GLOBALS['TL_LANG']['ESM_CLIENTS']['project_services']; ?></h3>
57
+			<ul class="list_services ikon-ul">
58
+				<?php foreach ($this->services as $service): ?>
59
+				<li><span class="ikon ikon-li ikon-tick"></span><?php if (\Validator::isUrl($service['url'])): ?><a href="<?php echo $service['url']; ?>"><?php endif; ?><?php echo $service['title']; ?><?php if (\Validator::isUrl($service['url'])): ?></a><?php endif; ?></li>
60
+				<?php endforeach; ?>
61
+			</ul>
62
+		<?php endif; ?>
63
+
64
+		<?php if (count($this->features)): ?>
65
+			<h3><?php echo $GLOBALS['TL_LANG']['ESM_CLIENTS']['project_features']; ?></h3>
66
+			<ul class="list_features ikon-ul">
67
+				<?php foreach ($this->features as $feature): ?>
68
+					<li><span class="ikon ikon-li ikon-tick"></span><?php echo $feature; ?></li>
69
+				<?php endforeach; ?>
70
+			</ul>
71
+		<?php endif; ?>
72
+
73
+		<?php if (count($this->techs)): ?>
74
+			<h3><?php echo $GLOBALS['TL_LANG']['ESM_CLIENTS']['project_tech']; ?></h3>
75
+			<ul class="list_tech ikon-ul">
76
+				<?php foreach ($this->techs as $tech): ?>
77
+					<li><span class="ikon ikon-li ikon-tick"></span><?php if (\Validator::isUrl($tech['url'])): ?><a href="<?php echo $tech['url']; ?>"><?php endif; ?><?php echo $tech['title']; ?><?php if (\Validator::isUrl($tech['url'])): ?></a><?php endif; ?></li>
78
+				<?php endforeach; ?>
79
+			</ul>
80
+		<?php endif; ?>
81
+
82
+	</div>
83
+	</div>
84
+</section>
85
+
86
+<?php $this->endblock(); ?>
0 87
\ No newline at end of file