'Header Menu', )); } add_action('init', 'convention_nav'); // Excerpt Link function convention_excerpt_more($more) { global $post; return ' '.__( 'Continue reading →', 'convention' ).''; } add_filter('excerpt_more', 'convention_excerpt_more'); // Custom Password Form add_filter( 'the_password_form', 'convention_password_form' ); locate_template( array( '/inc/password-form.php' ), true ); // Stylesheets function convention_style() { wp_register_style('convention_css', get_stylesheet_uri(), array(), null, 'all'); wp_enqueue_style('convention_css'); } add_action('wp_enqueue_scripts', 'convention_style'); // Sidebar locate_template( array( '/inc/register-sidebar.php' ), true ); // Header Image locate_template( array( '/inc/custom-header.php' ), true ); // Filter for Untitled Articles add_filter('the_title', 'convention_title'); function convention_title($title) { if ( $title == '' ) { return __( 'Untitled', 'convention'); } else { return $title; } } // Fields function convention_fields($convention_fields) { $convention_fields['author'] = '

' . '

'; $convention_fields['email'] = '


'; $convention_fields['url'] = '


'; return $convention_fields; } add_filter('comment_form_default_fields','convention_fields'); // Comment Form function convention_comment($comment, $args, $depth) { $GLOBALS['comment'] = $comment; extract($args, EXTR_SKIP); if ( 'div' == $args['style'] ) { $tag = 'div'; $add_below = 'comment'; } else { $tag = 'div'; $add_below = 'div-comment'; } ?> < id="comment-">
comment_approved == '0') : ?>
$add_below, 'depth' => $depth, 'max_depth' => $args['max_depth']))) ?>