-
Notifications
You must be signed in to change notification settings - Fork 0
/
functions.php
56 lines (46 loc) · 1.78 KB
/
functions.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
<?php
function clonkspot_body_class($c) {
$c[] = 'clonkspot';
return $c;
}
add_filter('body_class', 'clonkspot_body_class');
// Include our site header.
function clonkspot_header() {
include '../layout/header-de.html';
}
add_action('thematic_before', 'clonkspot_header');
function clonkspot_remove_actions() {
remove_all_actions('thematic_header');
remove_all_actions('thematic_footer');
}
add_action('init', 'clonkspot_remove_actions');
function clonkspot_remove() {
return '';
}
// Remove unused header and footer elements.
add_filter('thematic_open_header', 'clonkspot_remove');
add_filter('thematic_close_header', 'clonkspot_remove');
add_filter('thematic_open_footer', 'clonkspot_remove');
add_filter('thematic_close_footer', 'clonkspot_remove');
// No categories.
add_filter('thematic_postfooter_postcategory','clonkspot_remove');
function clonkspot_postfooter_posttags() {
$tagtext = 'Getagged ';
if (is_single()) {
$posttags = get_the_tag_list("<span class=\"tag-links\"> $tagtext ",', ','</span>. ');
} elseif ( is_tag() && $tag_ur_it = thematic_tag_ur_it(', ') ) { /* Returns tags other than the one queried */
$posttags = '<span class="tag-links">' . $tagtext . $tag_ur_it . '</span> <span class="meta-sep meta-sep-comments-link">| </span>';
} else {
$posttags = get_the_tag_list("<span class=\"tag-links\"> $tagtext ",', ','</span> <span class="meta-sep meta-sep-comments-link">| </span>');
}
return $posttags;
}
add_filter('thematic_postfooter_posttags','clonkspot_postfooter_posttags');
function clonkspot_comment_tree() { ?>
<b>Bitte die Baumstruktur beachten!</b>
<?php }
add_filter('thematic_belowcommentsform', 'clonkspot_comment_tree');
function clonkspot_footer() {
include '../layout/footer-de.html';
}
add_action('thematic_after', 'clonkspot_footer');