Exemplo n.º 1
0
			<?php 
}
?>

			<?php 
if ($cook_time = simmer_get_the_cook_time()) {
    ?>

				<li>
					<strong><?php 
    _e('Cook Time', 'simmer');
    ?>
:</strong>
					<meta itemprop="cookTime" content="<?php 
    echo esc_attr(simmer_get_the_cook_time(get_the_ID(), 'machine'));
    ?>
"><?php 
    echo esc_html($cook_time);
    ?>
				</li>

			<?php 
}
?>

			<?php 
if ($total_time = simmer_get_the_total_time()) {
    ?>

				<li>
Exemplo n.º 2
0
/**
 * Print the total cook of the current recipe in human-readable format.
 *
 * @since 1.0.0
 *
 * @return void
 */
function simmer_the_cook_time()
{
    echo esc_html(simmer_get_the_cook_time());
}