Compare commits
No commits in common. "47a93b6ea7b27a61333c7c7ca2dd0217d7ae5557" and "31ec02e1699fb5be25173fb0a2c403da8dce0e68" have entirely different histories.
47a93b6ea7
...
31ec02e169
|
|
@ -208,7 +208,7 @@ $util_class = new util();
|
||||||
} else {
|
} else {
|
||||||
$register = $tumble->getPost($id_post);
|
$register = $tumble->getPost($id_post);
|
||||||
|
|
||||||
$formatedDate = gmdate("M d Y", strtotime($register["date"]) + $util_class->transform_offset($conf->offsetTime));
|
$formatedDate = gmdate("M d", strtotime($register["date"]) + $util_class->transform_offset($conf->offsetTime));
|
||||||
$permalink = $tumble->getPermalink($register["id_post"]);
|
$permalink = $tumble->getPermalink($register["id_post"]);
|
||||||
|
|
||||||
$conversation = $register["description"];
|
$conversation = $register["description"];
|
||||||
|
|
|
||||||
|
|
@ -1,173 +0,0 @@
|
||||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
|
||||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
|
||||||
<head>
|
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
|
||||||
{Sorbet_includes}
|
|
||||||
<link rel="stylesheet" type="text/css" href="{URL_Tumble}/themes/{Template_name}/style.css"/>
|
|
||||||
<script language="javascript" type="text/javascript" src="{URL_Tumble}/admin/scripts/jquery.js"></script>
|
|
||||||
<script language="javascript" type="text/javascript" src="{URL_Tumble}/admin/scripts/lightbox.js"></script>
|
|
||||||
<link rel="stylesheet" type="text/css" href="{URL_Tumble}/admin/css/lightbox.css" />
|
|
||||||
<link rel="alternate" type="application/rss+xml" title="RSS" href="{rssFeed}" />
|
|
||||||
<title>{Page_Title}</title>
|
|
||||||
<!--[if IE]>
|
|
||||||
<style type="text/css">
|
|
||||||
div.post div.quote span.quote big.quote {
|
|
||||||
line-height: 40px;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
<![endif]-->
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<div id="container">
|
|
||||||
<a href="{rssFeed}"><img src="{URL_Tumble}/themes/{Template_name}/img/rss.gif" id="rss" alt="RSS" title="RSS" /></a>
|
|
||||||
|
|
||||||
<h1><a href="{URL_Tumble}/">{Title}</a></h1>
|
|
||||||
|
|
||||||
<div id="description">
|
|
||||||
{Description}
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{if $isAuthenticated}
|
|
||||||
<div style="padding:4px; border:solid 2px #bbb; display:inline; background-color:#ddd; position:absolute; top:3px; right:3px;">
|
|
||||||
<b>Hi, {User}.</b>
|
|
||||||
<a target="_top" href="{URL_Tumble}/admin/index.php">{__("Add or Edit my posts")}</a>
|
|
||||||
<a target="_top" href="{URL_Tumble}/admin/close.php">{__("Sign out")}</a>
|
|
||||||
</div>
|
|
||||||
{else}
|
|
||||||
<div style="padding:4px; border:solid 2px #bbb; display:inline; background-color:#ddd; position:absolute; top:3px; right:3px;">
|
|
||||||
<b><a target="_top" href="{URL_Tumble}/login.php">{__("Log in")}</a></b>
|
|
||||||
</div>
|
|
||||||
{/if}
|
|
||||||
|
|
||||||
{if $error}
|
|
||||||
<div class="error">{$error}</div>
|
|
||||||
{else}
|
|
||||||
{block $rows as $row}
|
|
||||||
<div class="date">
|
|
||||||
{$row.Date_Added}
|
|
||||||
</div>
|
|
||||||
<div class="post">
|
|
||||||
<a href="{$row.Permalink}"><img src="{URL_Tumble}/themes/tumblr/img/link.gif" class="permalink" alt="Permalink"/></a>
|
|
||||||
{if $row.postType=='post'}
|
|
||||||
<div class="regular">
|
|
||||||
<h2><a href="{$row.Permalink}">{$row.Title}</a></h2>
|
|
||||||
{$row.Body}
|
|
||||||
</div>
|
|
||||||
{elseif $row.postType=='photo'}
|
|
||||||
<div class="photo">
|
|
||||||
<a {$row.Effect}><img src="{$row.PhotoURL}" alt="{$row.PhotoAlt}" width="100%" /></a><br/>
|
|
||||||
<div class="caption">{$row.Caption}</div>
|
|
||||||
</div>
|
|
||||||
{elseif $row.postType=='quote'}
|
|
||||||
<div class="quote">
|
|
||||||
<span class="quote"><big class="quote"><a href="{$row.Permalink}">“</a></big> {$row.Quote}</span>
|
|
||||||
<div class="source">— {$row.Source}</div>
|
|
||||||
</div>
|
|
||||||
{elseif $row.postType=='url'}
|
|
||||||
<div class="link">
|
|
||||||
» <a href="{$row.URL}">{$row.Name}</a>
|
|
||||||
<div class="description">{$row.Description}</div>
|
|
||||||
</div>
|
|
||||||
{elseif $row.postType=='conversation'}
|
|
||||||
<div class="conversation">
|
|
||||||
...<h2><a href="{$row.Permalink}">{$row.Title}</a></h2>
|
|
||||||
{$row.Conversation}
|
|
||||||
</div>
|
|
||||||
{elseif $row.postType=='video'}
|
|
||||||
<div class="video">
|
|
||||||
{$row.Video}
|
|
||||||
<div class="caption">{$row.Caption}</div>
|
|
||||||
</div>
|
|
||||||
{elseif $row.postType=='mp3'}
|
|
||||||
<div class="video">
|
|
||||||
{$row.Mp3}
|
|
||||||
<div class="caption">{$row.Caption}</div>
|
|
||||||
</div>
|
|
||||||
{/if}
|
|
||||||
</div>
|
|
||||||
{if !$id_post}
|
|
||||||
<div class="totalComments">
|
|
||||||
<h3>{__("Posted by")} {$row.User} {if $allowComments}- <a href="{$row.Permalink}#comments">( {$row.Comments_Number} ) {__("comments")}{/if}</a></h3>
|
|
||||||
</div>
|
|
||||||
{/if}
|
|
||||||
{/block}
|
|
||||||
|
|
||||||
{if $id_post}
|
|
||||||
{if $row.Comments_Number>0}
|
|
||||||
<div class="containerComments">
|
|
||||||
<h3 id="comments">{$row.Comments_Number} {__("answers to")} “{$row.Post_Title}”</h3>
|
|
||||||
<ol class="commentlist">
|
|
||||||
{block $comments as $comment}
|
|
||||||
<li class="alt" id="comment-{$comment.Id_Comment}">
|
|
||||||
<cite>
|
|
||||||
<a href="#comment-{$comment.Id_Comment}" title="Comment permalink">#</a>
|
|
||||||
{$comment.Comment_Author} {__("said")}:
|
|
||||||
</cite>
|
|
||||||
<br />
|
|
||||||
<span class="timestampComment"> {__("at")} {$comment.Date}</span><br /><br />
|
|
||||||
{$comment.Comment}
|
|
||||||
<br /><br />
|
|
||||||
</li>
|
|
||||||
{/block}
|
|
||||||
</ol>
|
|
||||||
</div>
|
|
||||||
{/if}
|
|
||||||
|
|
||||||
{if $allowComments}
|
|
||||||
<div class="containerFormComments">
|
|
||||||
<h3 id="respond">{__("Add your comment")}</h3>
|
|
||||||
|
|
||||||
<form action="{Form_Action}" method="post" name="commentForm" id="commentForm">
|
|
||||||
<p>
|
|
||||||
<label for="username">
|
|
||||||
<small>{__("Name:")}</small>
|
|
||||||
</label>
|
|
||||||
<input name="username" id="username" value="{whois.User_Cookie}" size="22" tabindex="1" type="text" />
|
|
||||||
</p>
|
|
||||||
<p>
|
|
||||||
<label for="email">
|
|
||||||
<small>{__("E-mail:")}</small>
|
|
||||||
</label>
|
|
||||||
<input name="email" id="email" value="{whois.Email_Cookie}" size="22" tabindex="2" type="text" />
|
|
||||||
</p>
|
|
||||||
<p>
|
|
||||||
<label for="web">
|
|
||||||
<small>{__("Website:")}</small>
|
|
||||||
</label>
|
|
||||||
<input name="web" id="web" value="{whois.Web_Cookie}" size="22" tabindex="3" type="text" />
|
|
||||||
</p>
|
|
||||||
<p>
|
|
||||||
<textarea name="content" id="content" cols="100" rows="10" tabindex="4"></textarea>
|
|
||||||
</p>
|
|
||||||
<p>
|
|
||||||
<span style="color: rgb(136, 136, 136); margin-bottom: 10px; font-size: 10px;">
|
|
||||||
{__("Some HTML allowed:")}<br />
|
|
||||||
|
|
||||||
<code>
|
|
||||||
<blockquote> <code> <em> <strong> <a>
|
|
||||||
</code>
|
|
||||||
</span>
|
|
||||||
</p>
|
|
||||||
<p>
|
|
||||||
<input type="submit" value="Add comment" name="btnAdd" id="btnAdd" tabindex="5" />
|
|
||||||
</p>
|
|
||||||
<p>
|
|
||||||
<input name="id_post" id="id_post" value="{id_post}" type="hidden" />
|
|
||||||
<input name="comment_date" id="comment_date" value="{Date_Added}" type="hidden" />
|
|
||||||
</p>
|
|
||||||
</form>
|
|
||||||
</div>
|
|
||||||
{/if}
|
|
||||||
{else}
|
|
||||||
{pagination}
|
|
||||||
{/if}
|
|
||||||
{/if}
|
|
||||||
</div>
|
|
||||||
<div id="footer">
|
|
||||||
<a href="{URL_Tumble}/archive.php">{__("archive")}</a> /
|
|
||||||
{__("subscribe via")} <a href="{URL_Tumble}/rss.php">rss</a> /
|
|
||||||
{__("powered by")} <a href="https://git.pagelibre.org/richard/sorbetcms">Sorbet CMS</a>
|
|
||||||
</div>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
Loading…
Reference in New Issue