-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpage-faq.php
More file actions
54 lines (43 loc) · 1.5 KB
/
page-faq.php
File metadata and controls
54 lines (43 loc) · 1.5 KB
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
<?php
/**
* The template for displaying all pages.
*
* This is the template that displays all pages by default.
* Please note that this is the WordPress construct of pages and that other
* 'pages' on your WordPress site will use a different template.
*
* @package WordPress
* @subpackage Twenty_Thirteen
* @since Twenty Thirteen 1.0
*/
get_header(); ?>
<script>
$(document).ready(function(){
$('.faq-title').on('click', function(){
var el = $(this).parent().find('.faq-answer');
if(el.is(':visible')) {
el.hide('slow');
} else {
el.show('slow');
}
});
var url = document.location.href;
var hash = url.substring(url.indexOf("#")+1);
if(hash && hash == 'feedback') {
$('.feedback-form-wrap').css('display', 'block');
$('.faq-questions-wrap').css('display', 'none');
$('.faq-page-title a:first-child').removeClass('current');
$('.faq-page-title a:last-child').addClass('current');
}
})
</script>
<div class="page-wrap">
<div class="faq-wrap">
<?php /* The loop */ ?>
<?php while ( have_posts() ) : the_post(); ?>
<?php the_content(); ?>
<?php endwhile; ?>
</div><!-- #content -->
</div><!-- #primary -->
<?php get_sidebar(); ?>
<?php get_footer(); ?>