__( 'Primary Navigation', 'Green-Yellow' ),
) );
}
/* Show Home button in the custom menu */
function dthemes_page_menu_args( $args ) {
$args['show_home'] = true;
return $args;
}
add_filter( 'wp_page_menu_args', 'dthemes_page_menu_args' );
function admin_header_style() {
?>
'right_sidebar', 'before_title' => '
', 'after_title' => '
'));
register_sidebar(array('name'=>'left_sidebar', 'before_title' => '', 'after_title' => '
'));
register_sidebar(array('name'=>'left_footer', 'before_title' => '', 'after_title' => '
'));
register_sidebar(array('name'=>'right_footer', 'before_title' => '', 'after_title' => '
'));
/* Comments */
function dthemes_comment($comment, $args, $depth) {
$GLOBALS['comment'] = $comment; ?>
id="li-comment-">
(.*?)#s", "", $css);'
)
);
/* Custom Recent Comments widget with gravatars */
function dthemes_recent_comments() {
$comments = get_comments('number=5');
foreach($comments as $comm) :
?>
comment_author_email, 30);
/* Get the comment author link */
echo get_comment_author_link($comm->comment_ID);
echo __(' on ','dthemes');
/* Get the link to the comment */
echo '';
/* Get the post title */
echo get_the_title($comm->comment_post_ID) . "";
?>
';
echo '';
echo __('Recent Comments','dthemes'); /* Widget Title */
echo '
';
echo '';
echo '';
}
wp_register_sidebar_widget('id_dthemes_comments','Recent Comments with Gravatars' , 'dthemes_widget_recent_comments');
}
dthemes_widget_recent_comments_init();
?>