Viewing File: /home/cienp/public_html/inct-inovamed/wp-content/themes/inovamed/single.php
<?php get_header(); ?>
<?php include 'menu.php'; ?>
<section class=" wrapper">
<div class="grid">
<h1><?php echo the_title(); ?></h1>
<div class="data">
<span class="date animate"><?php the_time('F, Y') ?></span>
<span class="categoria
<?php
$categories = get_the_category();
$nome = esc_html( $categories[0]->name );
$artigo = 'Artigo';
$noticia = 'NotÃcia';
if (strcmp($nome, $artigo) == 0) {
echo 'artigo';
}
if (strcmp($nome, $noticia) == 0) {
echo 'noticia';
}
?>
">
<?php
if ( ! empty( $categories ) ) {
echo esc_html( $categories[0]->name );
}
?>
</span>
</div>
<div class="conteudo">
<?php echo the_content(); ?>
</div>
</div>
</section>
<?php get_footer();
Back to Directory
File Manager