-
Notifications
You must be signed in to change notification settings - Fork 0
/
template-slider-full.php
57 lines (41 loc) · 1.16 KB
/
template-slider-full.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
<?php
/*---------------------------------
Template Name: Page with a Slider (Full Width)
------------------------------------*/
get_header();
?>
</div>
<?php if ( have_posts() ) while ( have_posts() ) : the_post();
echo '<div class="rev blank fullwidth">';
putRevSlider(get_post_meta($post->ID, 'rb_slider_alias', true));
echo '</div>'; ?>
<div class="wrapper clearfix">
<article id="content" class="clearfix">
<?php if (is_page('Home')) {
?>
<div class="wpb_content_element span4 column_container">
<div class="row-fluid">
<div class="wpb_content_element span12 wpb_raw_html">
<div class="wpb_wrapper">
<section id="categories-4" class="widget sidebox widget_categories clearfix">
<ul>
<?php
$args = array(
'taxonomy' => 'portfolio_category',
'parent' => 6,
'orderby' => 'name',
'order' => 'ASC'
);
$categories = get_categories( $args );
foreach ($categories as $category) {
echo "<li><a href='/projects/?f=$category->slug'>$category->name</a></li>";
}
?>
</ul>
</section>
</div></div></div></div>
<?php
} ?>
<?php the_content(); ?>
<?php endwhile; ?>
<?php get_footer(); ?>