?> " <?php post_class(); ?> > <header class="entry-header"> <?php the_title(sprintf('<h2 class="entry-title"><a href="%s" rel="bookmark">', esc_url(get_permalink())), '</a></h2>'); ?> <?php if ('post' === get_post_type()) { ?> <div class="entry-meta"> <?php eduardodomingos_posted_on(); ?> </div><!-- .entry-meta --> <?php } ?> </header><!-- .entry-header --> <div class="entry-content"> <?php the_content(sprintf(wp_kses(__('Continue reading %s <span class="meta-nav">→</span>', 'eduardodomingos'), array('span' => array('class' => array()))), the_title('<span class="screen-reader-text">"', '"</span>', false))); ?> <?php wp_link_pages(array('before' => '<div class="page-links">' . esc_html__('Pages:', 'eduardodomingos'), 'after' => '</div>')); ?>
$markup .= '<p class="cover__text">' . get_field('cover_text') . '</p>'; } echo $markup; } elseif (is_single()) { $markup = '<h1 class="cover__title">' . get_the_title() . '</h1>'; $markup .= '<ul class="entry-meta list-inline list-inline--delimited">'; if ('project' === get_post_type()) { $markup .= '<li>' . eduardodomingos_get_project_date($post->ID) . '</li>'; $markup .= '<li>' . eduardodomingos_get_project_type($post->ID) . '</li>'; $markup .= '</ul>'; if (get_field('url')) { $markup .= '<a href="' . get_field('url') . '" class="btn" target="_blank">' . esc_html('Visit project', 'eduardodomingos') . '</a>'; } } else { $markup .= '<li>' . eduardodomingos_posted_by() . '</li>'; $markup .= '<li>' . eduardodomingos_posted_on() . '</li>'; $markup .= '<li>' . eduardodomingos_get_post_category() . '</li>'; $markup .= '</ul>'; $posttags = get_the_tags(); if ($posttags) { $markup .= '<ul class="entry-tags">'; foreach ($posttags as $tag) { $markup .= '<li><a href="' . get_tag_link($tag->term_id) . '">#' . $tag->name . '</a></li>'; } $markup .= '</ul>'; } } echo $markup; } else { if (is_archive()) { $markup = '<h1 class="cover__title">' . get_the_archive_title() . '</h1>';