';
}
endif;
// Posted date
if (!function_exists('pragyan_posted_date')) :
/**
* Prints HTML with meta information for the current date
*/
function pragyan_posted_date()
{
// Finally, let's write all of this to the page.
echo '
' . pragyan_time_link() . '
';
}
endif;
if (!function_exists('pragyan_time_link')) :
/**
* Gets a nicely formatted string for the published date.
*/
function pragyan_time_link()
{
$time_string = '';
$archive_year = get_the_time('Y');
$archive_month = get_the_time('m');
$archive_day = get_the_time('d');
$time_string = sprintf($time_string,
get_the_date(DATE_W3C),
get_the_date(),
get_the_modified_date(DATE_W3C),
get_the_modified_date()
);
// Wrap the time string in a link, and preface it with 'Posted on'.
return sprintf(
/* translators: %s: post date */
__('Posted on %s', 'pragyan'),
'' . $time_string . ''
);
}
endif;
if (!function_exists('pragyan_entry_footer')) :
/**
* Prints HTML with meta information for the categories, tags and comments.
*/
function pragyan_entry_footer()
{
/* translators: used between list items, there is a space after the comma */
$separate_meta = __(', ', 'pragyan');
// Get Tags for posts.
$tags_list = get_the_tag_list('');
// We don't want to output .pragyan-entry-footer if it will be empty, so make sure its not.
if ('post' === get_post_type()) {
echo ' ';
}
}
endif;
if (!function_exists('pragyan_edit_link')) :
/**
* Returns an accessibility-friendly link to edit a post or page.
*
* This also gives us a little context about what exactly we're editing
* (post or page?) so that users understand a bit more where they are in terms
* of the template hierarchy and their content. Helpful when/if the single-page
* layout with multiple posts/pages shown gets confusing.
*/
function pragyan_edit_link()
{
edit_post_link(
sprintf(
/* translators: %s: Name of current post */
__('Edit "%s"', 'pragyan'),
get_the_title()
),
'',
''
);
}
endif;