' . 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 Blog Post Date & Icon
*
* @since 1.0.1
*/
if( ! function_exists( 'agama_render_blog_post_date' ) ) {
function agama_render_blog_post_date() {
global $post;
// Display blog post date only on posts loop page.
if( ! is_single() && get_theme_mod( 'agama_blog_post_date', true ) ) {
echo '
';
echo '
';
printf( '%s', get_the_time('d') ); // Get day
printf( '%s', get_the_time('m, Y') ); // Get month, year
echo '
';
echo '
';
printf( '%s', Agama::post_format() );
echo '
';
echo '
';
}
}
}
add_action( 'agama_blog_post_date_and_format', 'agama_render_blog_post_date', 10 );
/**
* Render Blog Post Meta
*
* @since 1.0.1
*/
if( ! function_exists( 'agama_render_blog_post_meta' ) ) {
function agama_render_blog_post_meta() {
// Display blog post author.
if( get_theme_mod( 'agama_blog_post_author', true ) ) {
printf(
'%s %s',
'',
get_the_author_link()
);
}
// Display blog post publish date.
if( get_theme_mod( 'agama_blog_post_date', true ) ) {
printf(
'%s %s %s',
'/',
'',
get_the_time('F j, Y')
);
}
// Display next details only on list blog layout or on single post page.
if( get_theme_mod('agama_blog_layout', 'list') == 'list' || is_single() ) {
// Display post category.
if( get_theme_mod( 'agama_blog_post_category', true ) ) {
printf(
'%s %s %s',
'/',
'',
get_the_category_list(', ')
);
}
// Display post comment counter.
if( comments_open() && get_theme_mod( 'agama_blog_post_comments', true ) ) {
printf(
'%s %s %s',
'/',
'',
get_comments_link(),
get_comments_number().__( ' comments', 'agama' )
);
}
}
}
}
add_action( 'agama_blog_post_meta', 'agama_render_blog_post_meta', 10 );
/**
* Infinite Scroll Init
*
* @since 1.0.3
*/
function agama_infinite_scroll_init() { ?>
Theme-Vision' ) ) );
}
}
add_action( 'agama_credits', 'agama_render_credits' );
', '
' ); ?> '', 'depth' => $depth, 'max_depth' => $args['max_depth'] ) ) ); ?>