Repository navigation
Expand file tree
/
Copy pathfunctions.php
More file actions
51 lines (37 loc) · 1.57 KB
/
Copy pathfunctions.php
File metadata and controls
51 lines (37 loc) · 1.57 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
<?php
// Path constants
define('THEME', get_bloginfo('template_url'), true);
define('THEME_JS', THEME . '/js/', true);
if (function_exists('register_sidebar'))
register_sidebar();
function theme_load_js() {
if (is_admin()) return;
wp_enqueue_script('jquery');
wp_enqueue_script('nav', THEME_JS .'jquery.dropdown.js', array('jquery'));
}
add_action('init', theme_load_js);
function cleanr_theme_comment($comment, $args, $depth) {
$GLOBALS['comment'] = $comment; ?>
<li <?php comment_class(); ?> id="li-comment-<?php comment_ID() ?>">
<div id="comment-<?php comment_ID(); ?>">
<div class="commenthead">
<div class="comment-author vcard">
<?php echo get_avatar($comment,$size='36',$default='<path_to_url>' ); ?>
<?php printf(__('<cite class="fn">%s</cite>'), get_comment_author_link()) ?>
</div>
<div class="comment-meta commentmetadata"><a href="<?php echo htmlspecialchars( get_comment_link( $comment->comment_ID ) ) ?>"><?php printf(__('%1$s at %2$s'), get_comment_date(), get_comment_time()) ?></a><?php edit_comment_link(__('(Edit)'),' ','') ?>
<?php if ($comment->comment_approved == '0') : ?>
<em><?php _e('...awaiting moderation') ?></em>
<br />
<?php endif; ?>
</div>
<div class="clear"></div>
</div>
<div class="commentbody">
<?php comment_text() ?>
<div class="reply">
<?php comment_reply_link(array_merge( $args, array('depth' => $depth, 'max_depth' => $args['max_depth']))) ?>
</div>
</div>
</div>
<?php } ?>