forked from tareq1988/wedocs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
executable file
·31 lines (24 loc) · 719 Bytes
/
index.php
File metadata and controls
executable file
·31 lines (24 loc) · 719 Bytes
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
<?php
global $allowedtags;
if ( $headline = get_theme_mod( 'wedocs_home_text' ) ) { ?>
<div class="jumbotron">
<h1><?php echo wp_kses( $headline, $allowedtags ); ?></h1>
<?php if ( $tagline = get_theme_mod( 'wedocs_home_text_tag' ) ) { ?>
<p><?php echo wp_kses( $tagline, $allowedtags ); ?></p>
<?php } ?>
</div>
<?php } ?>
<?php
$categories = get_terms( 'category', array(
'hide_empty' => false,
'orderby' => 'name',
'parent' => 0,
'hierarchical' => false
) );
if ( $categories ) {
echo '<ul class="doc-category clearfix">';
foreach ( $categories as $category ) {
include 'templates/loop-category.php';
}
echo '</ul>';
}