-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtools.php
118 lines (90 loc) · 4.3 KB
/
tools.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
<?php
require "../phplib/genlibraries.php";
redirectOutside();
$toolList = getTools_List();
sort($toolList);
?>
<?php require "../htmlib/header.inc.php"; ?>
<body class="page-header-fixed page-sidebar-closed-hide-logo page-content-white page-container-bg-solid page-sidebar-fixed">
<div class="page-wrapper">
<?php require "../htmlib/top.inc.php"; ?>
<?php require "../htmlib/menu.inc.php"; ?>
<!-- BEGIN CONTENT -->
<div class="page-content-wrapper">
<!-- BEGIN CONTENT BODY -->
<div class="page-content" id="body-help">
<!-- BEGIN PAGE HEADER-->
<!-- BEGIN PAGE BAR -->
<div class="page-bar">
<ul class="page-breadcrumb">
<li>
<a href="/home/">Home</a>
<i class="fa fa-circle"></i>
</li>
<li>
<span>Help</span>
<i class="fa fa-circle"></i>
</li>
<li>
<span>Tools</span>
</li>
</ul>
</div>
<!-- END PAGE BAR -->
<!-- BEGIN PAGE TITLE-->
<h1 class="page-title"> Select a tool
</h1>
<!-- END PAGE TITLE-->
<!-- END PAGE HEADER-->
<p>
</p>
<div class="portfolio-content portfolio-3">
<?php
$kw = array();
foreach($toolList as $t) {
foreach($t['keywords'] as $tk) $kw[] = $tk;
}
$kw = array_unique($kw);
sort($kw);
?>
<div class="clearfix">
<div id="js-filters-lightbox-gallery2" class="cbp-l-filters-button cbp-l-filters-left">
<div data-filter="*" class="cbp-filter-item-active cbp-filter-item btn blue btn-outline uppercase">All</div>
<?php foreach($kw as $k) { ?>
<div data-filter=".<?php echo $k; ?>" class="cbp-filter-item btn blue btn-outline uppercase"><?php echo /*str_replace("-", " ", $k);*/ $k; ?></div>
<?php } ?>
</div>
</div>
<div id="js-grid-lightbox-gallery" class="cbp">
<?php
foreach($toolList as $t) {
$kw = implode(" ", $t['keywords']);
if (strpos($kw, 'visualizer') === false) $type = 'tools';
else $type = 'visualizers';
?>
<div class="cbp-item <?php echo $kw; ?>">
<!-- REMOVE cbp-singlePageInline to go to new page -->
<a href="tools/<?php echo $t["_id"]; ?>/help/help.php" class="cbp-caption cbp-singlePageInline" data-title="<?php echo $t['title']; ?>" rel="nofollow">
<div class="cbp-caption-defaultWrap">
<img src="<?php echo $type; ?>/<?php echo $t['_id']; ?>/assets/home/logo.png" alt="">
</div>
<div class="cbp-caption-activeWrap">
<div class="cbp-l-caption-alignLeft">
<div class="cbp-l-caption-body">
<div class="cbp-l-caption-title"><?php echo $t['title']; ?></div>
<div class="cbp-l-caption-desc"><?php echo $t['short_description']; ?></div>
</div>
</div>
</div>
</a>
</div>
<?php } ?>
</div>
</div>
<!-- END CONTENT BODY -->
</div>
<!-- END CONTENT -->
<?php
require "../htmlib/footer.inc.php";
require "../htmlib/js.inc.php";
?>