' . sprintf( '%s HTML %s: %s', __( 'You may use these', 'agama' ), __( 'tags and attributes', 'agama' ), '' . allowed_tags() . '') . '
';
$defaults['title_reply'] = sprintf( '%s %s', __( 'Leave a', 'agama' ), __( 'Comment', 'agama' ) );
$defaults['class_submit'] = 'button button-3d button-large button-rounded';
return $defaults;
}
if ( ! function_exists( 'agama_entry_meta' ) ) :
/**
* Set up post entry meta.
*
* Prints HTML with meta information for current post: categories, tags, permalink, author, and date.
*
* Create your own agama_entry_meta() to override in a child theme.
*
* @since Agama 1.0
*/
function agama_entry_meta() {
// Translators: used between list items, there is a space after the comma.
$categories_list = get_the_category_list( __( ', ', 'agama' ) );
// Translators: used between list items, there is a space after the comma.
$tag_list = get_the_tag_list( '', __( ', ', 'agama' ) );
$date = sprintf( '',
esc_url( get_permalink() ),
esc_attr( get_the_time() ),
esc_attr( get_the_date('c') ),
esc_html( get_the_date() )
);
$author = sprintf( '%3$s',
esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
esc_attr( sprintf( __( 'View all posts by %s', 'agama' ), get_the_author() ) ),
get_the_author()
);
// Translators: 1 is category, 2 is tag, 3 is the date and 4 is the author's name.
if ( $tag_list ) {
$utility_text = __( 'This entry was posted in %1$s and tagged %2$s on %3$s by %4$s.', 'agama' );
} elseif ( $categories_list ) {
$utility_text = __( 'This entry was posted in %1$s on %3$s by %4$s.', 'agama' );
} else {
$utility_text = __( 'This entry was posted on %3$s by %4$s.', 'agama' );
}
printf(
$utility_text,
$categories_list,
$tag_list,
$date,
$author
);
}
endif;
/**
* .article-wrapper Grid, List - Style
*
* @since Agama v1.0.1
*/
function agama_article_wrapper_class() {
$blog_layout = get_theme_mod('agama_blog_layout', 'list');
switch( $blog_layout ):
case 'list':
echo 'list-style';
break;
case 'grid':
echo 'grid-style';
break;
case 'small_thumbs':
echo 'small_thumbs';
break;
endswitch;
}
/**
* Render HTML for blog post date / post format
*
* @since Agama v1.0.1
*/
if( ! function_exists( 'agama_render_blog_post_date' ) ) {
function agama_render_blog_post_date() {
global $post;
// If not single post
if( !is_single() ) {
echo '
';
echo '
';
echo sprintf( '%s', get_the_time('d') ); // Get day
echo sprintf( '%s', get_the_time('m, Y') ); // Get month, year
echo '
', '
' ); ?> '', 'depth' => $depth, 'max_depth' => $args['max_depth'] ) ) ); ?>