-
Notifications
You must be signed in to change notification settings - Fork 1
/
content-single.php
40 lines (33 loc) · 1.23 KB
/
content-single.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header class="entry-header">
<h1 class="entry-title"><?php the_title(); ?></h1>
<div class="entry-meta">
<?php eticagnu_main_posted_on(); ?>
</div>
</header>
<div class="entry-content">
<?php the_content(); ?>
<?php wp_link_pages(array('before' => '<div class="page-links">' . 'Páginas:', 'after' => '</div>')); ?>
</div>
<footer class="entry-meta">
<?php
$categoryList = get_the_category_list(', ');
$tagList = get_the_tag_list('', ', ');
if (!eticagnu_main_categorized_blog()) :
if ('' != $tagList)
$metaText = 'Temas: %2$s. <a href="%3$s" title="Enlace a %4$s" rel="bookmark">Enlace</a>. ';
else
$metaText = '<a href="%3$s" title="Enlace a %4$s" rel="bookmark">Enlace</a>.';
else :
if ('' != $tagList)
$metaText = '%1$s | Temas: %2$s. <a href="%3$s" title="Enlace a %4$s" rel="bookmark">Enlace</a>. ';
else
$metaText = '%1$s. <a href="%3$s" title="Enlace a %4$s" rel="bookmark">Enlace</a>. ';
endif;
printf(
$metaText, $categoryList, $tagList, get_permalink(), the_title_attribute('echo=0')
);
edit_post_link('Editar', '<span class="edit-link">', '</span>');
?>
</footer>
</article>