twentyten_continue_reading_link

Definition:
function twentyten_continue_reading_link() {}

Returns a "Continue Reading" link for excerpts

Return values

returns:"Continue Reading" link

Source code

function twentyten_continue_reading_link() {

	return ' <a href="'. get_permalink() . '">' . __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentyten' ) . '</a>';

}

3099

twentyten_comment

Definition:
function twentyten_comment( $comment, $args, $depth ) {}

Template for comments and pingbacks.
To override this walker in a child theme without modifying the comments template simply create your own twentyten_comment(), and that function will be used instead.

Parameters

  • $comment
  • $args
  • $depth

Source code

function twentyten_comment( $comment, $args, $depth ) {

	$GLOBALS['comment'] = $comment;

	switch ( $comment->comment_type ) :

		case '' :

	?>

	<li <?php comment_class(); ?> id="li-comment-<?php comment_ID(); ?>">

		<div id="comment-<?php comment_ID(); ?>">

		<div class="comment-author vcard">

			<?php echo get_avatar( $comment, 40 ); ?>

			<?php printf( __( '%s <span class="says">says:</span>', 'twentyten' ), sprintf( '<cite class="fn">%s</cite>', get_comment_author_link() ) ); ?>

		</div><!-- .comment-author .vcard -->

		<?php if ( $comment->comment_approved == '0' ) : ?>

			<em class="comment-awaiting-moderation"><?php _e( 'Your comment is awaiting moderation.', 'twentyten' ); ?></em>

			<br />

		<?php endif; ?>



		<div class="comment-meta commentmetadata"><a href="<?php echo esc_url( get_comment_link( $comment->comment_ID ) ); ?>">

			<?php

				/* translators: 1: date, 2: time */

				printf( __( '%1$s at %2$s', 'twentyten' ), get_comment_date(),  get_comment_time() ); ?></a><?php edit_comment_link( __( '(Edit)', 'twentyten' ), ' ' );

			?>

		</div><!-- .comment-meta .commentmetadata -->



		<div class="comment-body"><?php comment_text(); ?></div>



		<div class="reply">

			<?php comment_reply_link( array_merge( $args, array( 'depth' => $depth, 'max_depth' => $args['max_depth'] ) ) ); ?>

		</div><!-- .reply -->

	</div><!-- #comment-##  -->



	<?php

			break;

		case 'pingback'  :

		case 'trackback' :

	?>

	<li class="post pingback">

		<p><?php _e( 'Pingback:', 'twentyten' ); ?> <?php comment_author_link(); ?><?php edit_comment_link( __( '(Edit)', 'twentyten' ), ' ' ); ?></p>

	<?php

			break;

	endswitch;

}

3097

twentyten_auto_excerpt_more

Definition:
function twentyten_auto_excerpt_more( $more ) {}

Replaces "[…]" (appended to automatically generated excerpts) with an ellipsis and twentyten_continue_reading_link().
To override this in a child theme, remove the filter and add your own function tied to the excerpt_more filter hook.

Parameters

  • $more

Return values

returns:An ellipsis

Source code

function twentyten_auto_excerpt_more( $more ) {

	return ' &hellip;' . twentyten_continue_reading_link();

}

3095

twentyten_admin_header_style

Definition:
function twentyten_admin_header_style() {}

Styles the header image displayed on the Appearance > Header admin panel.
Referenced via add_custom_image_header() in twentyten_setup().

Source code

function twentyten_admin_header_style() {

?>

<style type="text/css">

/* Shows the same border as on front end */

#headimg {

	border-bottom: 1px solid #000;

	border-top: 4px solid #000;

}

/* If NO_HEADER_TEXT is false, you would style the text with these selectors:

	#headimg #name { }

	#headimg #desc { }

*/

</style>

<?php

}

3093

translate_with_gettext_context

Definition:
function translate_with_gettext_context( $text, $context, $domain = 'default' ) {}

Parameters

  • $text
  • $context
  • $domain

Defined filters

  • gettext_with_context
    apply_filters( 'gettext_with_context', $translations->translate( $text, $context )

Source code

function translate_with_gettext_context( $text, $context, $domain = 'default' ) {

	$translations = &get_translations_for_domain( $domain );

	return apply_filters( 'gettext_with_context', $translations->translate( $text, $context ), $text, $context, $domain );

}

3091