-
Notifications
You must be signed in to change notification settings - Fork 1
/
single-query.php
176 lines (151 loc) · 5.18 KB
/
single-query.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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
<?php get_header(); ?>
<main role="main">
<!-- section -->
<section>
<?php if (have_posts()): while (have_posts()) : the_post(); ?>
<?php $back_id = (int) get_field( 'query_logic_group_id', get_the_ID() )->ID; ?>
<div class="back-button-container">
<a id="BackButton"
href="<?php the_permalink( $back_id ); ?>"
title="<?php echo get_field( 'logic_group_name', $back_id ); ?>">
<span class="material-icons">
chevron_left
</span>
<span>
<?php echo get_field( 'logic_group_name', $back_id ); ?>
Logic
</span>
</a>
</div>
<h1><?php echo get_field( 'query_name', get_the_ID() ); ?></h1>
<div id="QueryNavigation"
class="navigation-tabs-wrapper">
<ul class="navigation-tabs">
<li class="navigation-tab tab-design">
<a href="#">
<span class="spacer"></span>
<span class="material-icons">
category
</span>
<span>
<!-- Details -->
Design
</span>
<span class="spacer"></span>
</a>
</li>
<li class="navigation-tab tab-discuss">
<a href="#">
<span class="spacer"></span>
<span class="material-icons">
comment
</span>
<span>
Discuss
</span>
<span class="spacer"></span>
</a>
</li>
<li class="navigation-tab tab-configure">
<a href="#">
<span class="spacer"></span>
<span class="material-icons">
settings
</span>
<span>
Configure
</span>
<span class="spacer"></span>
</a>
</li>
<li class="navigation-tab tab-build">
<a href="#">
<span class="spacer"></span>
<span class="material-icons">
build
</span>
<span>
Build
</span>
<span class="spacer"></span>
</a>
</li>
</ul>
</div>
<div id="QueryTabbedContent"
class="tab-contents-wrapper">
<div class="tab-design">
<?php get_template_part( 'parts/tabs/query/design-query' ); ?>
</div>
<div class="tab-discuss">
<?php get_template_part( 'parts/tabs/query/discuss-query' ); ?>
</div>
<div class="tab-configure">
<?php get_template_part( 'parts/tabs/query/configure-query' ); ?>
</div>
<div class="tab-build">
<?php get_template_part( 'parts/tabs/query/build-query' ); ?>
</div>
</div>
<script>
(function ($) {"use strict";
$.dsTabGroup({
tabs: [
{
$toggleEl: $( '#QueryNavigation li.tab-design' ),
$contentEl: $( '#QueryTabbedContent div.tab-design' ),
},
{
$toggleEl: $( '#QueryNavigation li.tab-discuss' ),
$contentEl: $( '#QueryTabbedContent div.tab-discuss' ),
},
{
$toggleEl: $( '#QueryNavigation li.tab-configure' ),
$contentEl: $( '#QueryTabbedContent div.tab-configure' ),
},
{
$toggleEl: $( '#QueryNavigation li.tab-build' ),
$contentEl: $( '#QueryTabbedContent div.tab-build' ),
},
],
})
})(jQuery);
</script>
<!-- article -->
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<!-- post thumbnail -->
<?php if ( has_post_thumbnail()) : // Check if Thumbnail exists ?>
<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>">
<?php the_post_thumbnail(); // Fullsize image for the single post ?>
</a>
<?php endif; ?>
<!-- /post thumbnail -->
<!-- post title -->
<!-- <h1>
<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>">Workout > <?php the_title(); ?></a>
</h1> -->
<!-- /post title -->
<!-- post details -->
<!-- <span class="date"><?php the_time('F j, Y'); ?> <?php the_time('g:i a'); ?></span>
<span class="author"><?php _e( 'Published by', 'data-studio' ); ?> <?php the_author_posts_link(); ?></span>
<span class="comments"><?php if (comments_open( get_the_ID() ) ) comments_popup_link( __( 'Leave your thoughts', 'data-studio' ), __( '1 Comment', 'data-studio' ), __( '% Comments', 'data-studio' )); ?></span> -->
<!-- /post details -->
<?php //the_content(); // Dynamic Content ?>
<?php //the_tags( __( 'Tags: ', 'data-studio' ), ', ', '<br>'); // Separated by commas with a line break at the end ?>
<!-- <p><?php //_e( 'Categorised in: ', 'data-studio' ); the_category(', '); // Separated by commas ?></p> -->
<!-- <p><?php //_e( 'This post was written by ', 'data-studio' ); the_author(); ?></p> -->
</article>
<!-- /article -->
<?php endwhile; ?>
<?php else: ?>
<!-- article -->
<article>
<h1><?php _e( 'Sorry, nothing to display.', 'data-studio' ); ?></h1>
</article>
<!-- /article -->
<?php endif; ?>
</section>
<!-- /section -->
</main>
<?php get_sidebar(); ?>
<?php get_footer(); ?>