document.querySelectorAll('.content-area.only-portfolio .genpost-entry-content', '.grid-content.mos-towns .genpost-entry-content').forEach(n => {
n.innerHTML = n.innerHTML.replace(/([\.\?\!])/g, "$1<br>");
});
if ( ! function_exists( 'awaken_posted_on' ) ) :
//function awaken_posted_on() {
// //$abc = the_modified_date();
// $abc = get_the_modified_date();
// //$time_string = awaken_posted_datetime();
//
// $posted_on = $time_string ;
//
//
// $byline = '<span class="author vcard">' . esc_html( get_the_author() ) .'</span>';
//
// echo '<span class="posted-on">' . $abc . '</span><span class="byline">' . $byline . '</span>';
//
//}
function awaken_posted_on() {
$html = <<<HTML
<span class="posted-on">
<span class="posted">Опубликовано %s</span>
<span class="modified">Изменено %s</span>
</span>
<span class="byline">
<span class="author vcard">%s</span>
</span>
HTML;
printf($html, get_the_date(), get_the_modified_date(), get_the_author() );
}
Программа потребляет столько сколько ей нужно для исполнения своих алгоритмов, не более.
По той же логике программа для выведения на экран “hello world” тоже должна съесть все ресурсы