fixed a bug in use of themes

master
Victor De la Rocha 2008-10-26 05:01:35 +00:00
parent f976025030
commit d19c735430
2 changed files with 333 additions and 332 deletions

View File

@ -36,6 +36,7 @@ $theme = new themes;
}
$theme->set('id_post',$id_post);
$theme->set('error','');
if (isset($_GET["page"])) {
$page_num = $_GET["page"];
@ -121,7 +122,7 @@ $theme = new themes;
$row['Date_Added'] = $formatedDate;
$row['Permalink'] = $permalink;
$theme->set('postType',$postType);
$row['postType'] = $postType;
switch ($postType){
case "1":

View File

@ -37,7 +37,7 @@
<div class="date">
{$row.Date_Added}
</div>
{if {$postType}==1}
{if {$row.postType}==1}
<div class="post">
<a href="{$row.Permalink}"><img src="{URL_Tumble}/themes/tumblr/img/link.gif" class="permalink" alt="Permalink"/></a>
@ -46,7 +46,7 @@
{$row.Body}
</div>
</div>
{elseif {$postType}==2}
{elseif {$row.postType}==2}
<div class="post">
<a href="{$row.Permalink}"><img src="{URL_Tumble}/themes/tumblr/img/link.gif" class="permalink" alt="Permalink"/></a>
<div class="photo">
@ -54,7 +54,7 @@
<div class="caption">{$row.Caption}</div>
</div>
</div>
{elseif {$postType}==3}
{elseif {$row.postType}==3}
<div class="post">
<a href="{$row.Permalink}"><img src="{URL_Tumble}/themes/tumblr/img/link.gif" class="permalink" alt="Permalink"/></a>
<div class="quote">
@ -62,7 +62,7 @@
<div class="source">&mdash; {$row.Source}</div>
</div>
</div>
{elseif {$postType}==4}
{elseif {$row.postType}==4}
<div class="post">
<a href="{$row.Permalink}"><img src="{URL_Tumble}/themes/tumblr/img/link.gif" class="permalink" alt="Permalink"/></a>
<div class="link">
@ -70,7 +70,7 @@
<div class="description">{$row.Description}</div>
</div>
</div>
{elseif {$postType}==5}
{elseif {$row.postType}==5}
<div class="post">
<a href="{$row.Permalink}"><img src="{URL_Tumble}/themes/tumblr/img/link.gif" class="permalink" alt="Permalink"/></a>
<div class="conversation">
@ -78,7 +78,7 @@
{$row.Conversation}
</div>
</div>
{elseif {$postType}==6}
{elseif {$row.postType}==6}
<div class="post">
<a href="{$row.Permalink}"><img src="{URL_Tumble}/themes/tumblr/img/link.gif" class="permalink" alt="Permalink"/></a>
<div class="video">
@ -86,7 +86,7 @@
<div class="caption">{$row.Caption}</div>
</div>
</div>
{elseif {$postType}==7}
{elseif {$row.postType}==7}
<div class="post">
<a href="{$row.Permalink}"><img src="{URL_Tumble}/themes/tumblr/img/link.gif" class="permalink" alt="Permalink"/></a>
<div class="video">