diff --git a/index.php b/index.php
index fac91a7..857c939 100644
--- a/index.php
+++ b/index.php
@@ -200,7 +200,7 @@ $theme = new themes;
$theme->set('pagination',$p->getPagination());
} else {
- $template->renderizaEtiqueta("No posts in this tumblelog.", "div","error");
+ $theme->set('error','No posts in this tumblelog.');
}
} else {
$register = $tumble->getPost($id_post);
diff --git a/themes/tumblr/index.htm b/themes/tumblr/index.htm
index 41941a0..146eb11 100644
--- a/themes/tumblr/index.htm
+++ b/themes/tumblr/index.htm
@@ -30,133 +30,136 @@
{/if}
- {block {$rows} as {$row}}
-
- {$row.Date_Added}
+ {if {$error}}
+
{$error}
+ {else}
+ {block {$rows} as {$row}}
+
+ {$row.Date_Added}
+
+ {if {$postType}==1}
+
+

+
+
+
+ {elseif {$postType}==2}
+
+

+
+

+
{$row.Caption}
+
+
+ {elseif {$postType}==3}
+
+

+
+
{$row.Quote}
+
— {$row.Source}
+
+
+ {elseif {$postType}==4}
+
+

+
+
+ {elseif {$postType}==5}
+
+

+
+ ...
+ {$row.Conversation}
+
+
+ {elseif {$postType}==6}
+
+

+
+ {$row.Video}
+
{$row.Caption}
+
+
+ {elseif {$postType}==7}
+
+

+
+ {$row.Mp3}
+
{$row.Caption}
+
+
+ {/if}
+
+
- {if {$postType}==1}
-
-

+ {/block}
-
-
- {elseif {$postType}==2}
-
-

-
-

-
{$row.Caption}
-
-
- {elseif {$postType}==3}
-
-

-
-
{$row.Quote}
-
— {$row.Source}
-
-
- {elseif {$postType}==4}
-
-

-
-
- {elseif {$postType}==5}
-
-

-
- ...
- {$row.Conversation}
-
-
- {elseif {$postType}==6}
-
-

-
- {$row.Video}
-
{$row.Caption}
-
-
- {elseif {$postType}==7}
-
-

-
- {$row.Mp3}
-
{$row.Caption}
-
-
- {/if}
+ {if {$id_post}}
+
-
+ at {$comment.Date}
+ {$comment.Comment} +
+