/
single-cwp_theme.php
130 lines (101 loc) · 4.02 KB
/
single-cwp_theme.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
124
125
126
127
128
129
<?php
/**
* @package WordPress
* @subpackage Basejump
*/
?>
<?php if (have_posts()): ?>
<?php while (have_posts()): the_post();
global $post; ?>
<?php core_functions::setPostViews(); ?>
<section id="theme-cover">
<div class="row">
<div class="twelve columns">
<h1 class="entry-title"><?php the_title(); ?></h1>
<!-- ###end-row### -->
</div>
</div>
<div class="row">
<div class="four columns">
<?php the_excerpt(); ?>
<p>
<a href="" class="buy-button button large black radius" id="">
<?php _e('Buy This Theme', 'toolbox') ?>
</a>
</p>
<p>
<a href="" class="preview button small white radius"><?php _e('Preview Theme ', 'toolbox') ?></a>
</p>
<!-- ####column-end#### -->
</div>
<div class="eight columns">
<?php the_post_thumbnail('large'); ?>
<!-- ###end-row### -->
</div>
</div>
</section>
<section id="theme-details">
<div class="row">
<div class="twelve columns">
<h1><?php _e('Theme Description', 'toolbox'); ?></h1>
<?php the_content() ?>
<!-- ###end-row### -->
</div>
</div>
<div class="row">
<div class="twelve columns">
<h1><?php _e('Theme Features', 'toolbox'); ?></h1>
<!-- ###end-row### -->
</div>
</div>
<div class="row">
<ul class="block-grid mobile three-up">
<li>
<h3><?php _e('Crafted UI', 'toolbox') ?></h3>
<ul>
<?php
$terms = get_the_terms($post->ID, 'design');
if ($terms && !is_wp_error($terms)) :
$draught_links = array();
foreach ($terms as $term) {
echo "<li><strong>{$term->name}</strong> {$term->description}</li>";
}
endif;
?>
</ul>
</li>
<li>
<h3><?php _e('Pressed In', 'toolbox') ?>
</h3>
<ul>
<?php
$terms = get_the_terms($post->ID, 'module');
if ($terms && !is_wp_error($terms)) :
$draught_links = array();
foreach ($terms as $term) {
echo "<li><strong>{$term->name}</strong> {$term->description}</li>";
}
endif;
?>
</ul>
</li>
<li>
<h3><?php _e('Integrated Plugins', 'toolbox') ?></h3>
<ul>
<?php
$terms = get_the_terms($post->ID, 'plugin');
if ($terms && !is_wp_error($terms)) :
$draught_links = array();
foreach ($terms as $term) {
echo "<li><strong>{$term->name}</strong> {$term->description}</li>";
}
endif;
?>
</ul>
</li>
</ul>
</div>
<!-- ###### -->
</section>
<?php endwhile ?>
<?php endif; ?>