196 satır
8.6 KiB
HTML
Executable File
196 satır
8.6 KiB
HTML
Executable File
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
<title>{Page_Title}</title>
|
|
{Sorbet_includes}
|
|
<link rel="stylesheet" type="text/css" href="{URL_Tumble}/themes/{Template_name}/css/bootstrap.min.css" />
|
|
<link rel="stylesheet" type="text/css" href="{URL_Tumble}/admin/css/lightbox.css" />
|
|
<link rel="alternate" type="application/rss+xml" title="RSS" href="{rssFeed}" />
|
|
</head>
|
|
<body>
|
|
<div class="container">
|
|
{if $isAuthenticated}
|
|
<nav class="navbar navbar-default">
|
|
<div class="container-fluid">
|
|
<div class="navbar-header">
|
|
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
|
|
<span class="sr-only">Toggle navigation</span>
|
|
<span class="icon-bar"></span>
|
|
<span class="icon-bar"></span>
|
|
<span class="icon-bar"></span>
|
|
</button>
|
|
<a class="navbar-brand" href="{URL_Tumble}">{User}</a>
|
|
</div>
|
|
|
|
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
|
|
<ul class="nav navbar-nav navbar-right">
|
|
<li><a target="_top" href="{URL_Tumble}/admin/index.php">{__("Dashboard")}</a></li>
|
|
<li><a target="_top" href="{URL_Tumble}/admin/close.php">{__("Sign out")}</a></li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</nav>
|
|
{/if}
|
|
<header>
|
|
<h1><a href="{URL_Tumble}">{Title}</a></h1>
|
|
<p class="lead">{Description}</p>
|
|
</header>
|
|
{if $error}
|
|
<div>{$error}</div>
|
|
{else}
|
|
<section>
|
|
{block $rows as $row}
|
|
<article class="panel panel-default">
|
|
{if $row.postType=='post'}
|
|
<div class="panel-heading">
|
|
<h3><a href="{$row.Permalink}">{$row.Title}</a></h3>
|
|
</div>
|
|
<div class="panel-body">
|
|
<p>{$row.Body}</p>
|
|
{if !$id_post}
|
|
<small>{__("Posted by")} {$row.User} {if $allowComments}- <a href="{$row.Permalink}#comments"> {$row.Comments_Number} {__("comments")}{/if}</a></small>
|
|
{/if}
|
|
</div>
|
|
{elseif $row.postType=='photo'}
|
|
<div class="panel-body">
|
|
<a {$row.Effect}><img src="{$row.PhotoURL}" alt="{$row.PhotoAlt}" /></a>
|
|
<h3>{$row.Caption}</h3>
|
|
{if !$id_post}
|
|
<small>{__("Posted by")} {$row.User} {if $allowComments}- <a href="{$row.Permalink}#comments"> {$row.Comments_Number} {__("comments")}{/if}</a></small>
|
|
{/if}
|
|
</div>
|
|
{elseif $row.postType=='quote'}
|
|
<div class="panel-body">
|
|
<a href="{$row.Permalink}">
|
|
<blockquote>
|
|
{$row.Quote}
|
|
<cite>- {$row.Source}</cite>
|
|
</blockquote>
|
|
</a>
|
|
{if !$id_post}
|
|
<small>{__("Posted by")} {$row.User} {if $allowComments}- <a href="{$row.Permalink}#comments"> {$row.Comments_Number} {__("comments")}{/if}</a></small>
|
|
{/if}
|
|
</div>
|
|
{elseif $row.postType=='url'}
|
|
<div class="panel-heading"><a href="{$row.URL}">{$row.Name}</a></div>
|
|
<div class="panel-body">
|
|
<p>{$row.Description}</p>
|
|
{if !$id_post}
|
|
<small>{__("Posted by")} {$row.User} {if $allowComments}- <a href="{$row.Permalink}#comments"> {$row.Comments_Number} {__("comments")}{/if}</a></small>
|
|
{/if}
|
|
</div>
|
|
{elseif $row.postType=='conversation'}
|
|
<div class="panel-heading">
|
|
<a href="{$row.Permalink}">{$row.Title}</a>
|
|
</div>
|
|
<div class="panel-body">
|
|
<pre>
|
|
{$row.Conversation}
|
|
</pre>
|
|
{if !$id_post}
|
|
<small>{__("Posted by")} {$row.User} {if $allowComments}- <a href="{$row.Permalink}#comments"> {$row.Comments_Number} {__("comments")}{/if}</a></small>
|
|
{/if}
|
|
</div>
|
|
{elseif $row.postType=='video'}
|
|
<div class="panel-body">
|
|
{$row.Video}
|
|
<p>{$row.Caption}</p>
|
|
{if !$id_post}
|
|
<small>{__("Posted by")} {$row.User} {if $allowComments}- <a href="{$row.Permalink}#comments"> {$row.Comments_Number} {__("comments")}{/if}</a></small>
|
|
{/if}
|
|
</div>
|
|
{elseif $row.postType=='mp3'}
|
|
<div class="panel-body">
|
|
{$row.Mp3}
|
|
<p>{$row.Caption}</p>
|
|
{if !$id_post}
|
|
<small>{__("Posted by")} {$row.User} {if $allowComments}- <a href="{$row.Permalink}#comments"> {$row.Comments_Number} {__("comments")}{/if}</a></small>
|
|
{/if}
|
|
</div>
|
|
{/if}
|
|
</article>
|
|
{/block}
|
|
</section>
|
|
{if $id_post}
|
|
{if $row.Comments_Number>0}
|
|
<div>
|
|
<h3>{$row.Comments_Number} {__("comments on")} “{$row.Post_Title}”</h3>
|
|
<ol>
|
|
{block $comments as $comment}
|
|
<li>
|
|
<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}
|
|
<form action="{Form_Action}" method="post" class="form-horizontal" name="commentForm">
|
|
<fieldset>
|
|
<legend>{__("Add your comment")}</legend>
|
|
<div class="form-group">
|
|
<label for="username" class="col-lg-2 control-label">{__("Name:")}</label>
|
|
<div class="col-lg-10">
|
|
<input type="text" class="form-control" id="username" name="username" value="{whois.User_Cookie}" />
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="email" class="col-lg-2 control-label">{__("E-mail:")}</label>
|
|
<div class="col-lg-10">
|
|
<input type="email" class="form-control" name="email" id="email" value="{whois.Email_Cookie}" />
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="web" class="col-lg-2 control-label">{__("Website:")}</label>
|
|
<div class="col-lg-10">
|
|
<input type="url" class="form-control" name="web" id="web" value="{whois.Web_Cookie}" />
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="content" class="col-lg-2 control-label">{__("Comment:")}</label>
|
|
<div class="col-lg-10">
|
|
<textarea class="form-control" name="content" id="content" rows="10"></textarea>
|
|
<span class="help-block">{__("Some HTML allowed:")}
|
|
<code>
|
|
<blockquote> <code> <em> <strong> <a>
|
|
</code>
|
|
</span>
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<div class="col-lg-10 col-lg-offset-2">
|
|
<button type="submit" name="btnAdd" class="btn btn-success">Add comment</button>
|
|
<input name="id_post" id="id_post" value="{id_post}" type="hidden" />
|
|
<input name="comment_date" id="comment_date" value="{Date_Added}" type="hidden" />
|
|
</div>
|
|
</div>
|
|
</fieldset>
|
|
</form>
|
|
{/if}
|
|
{else}
|
|
{pagination}
|
|
{/if}
|
|
{/if}
|
|
<footer style="text-align:center;margin:20px">
|
|
<a href="{URL_Tumble}/archive.php">{__("Archive")}</a> /
|
|
{__("Subscribe via")} <a href="{URL_Tumble}/rss.php">RSS</a> /
|
|
{__("Powered by")} <a href="https://framagit.org/sorbetcms/sorbetcms">Sorbet CMS</a>
|
|
</footer>
|
|
</div>
|
|
<script type="text/javascript" src="{URL_Tumble}/admin/scripts/jquery.js"></script>
|
|
<script type="text/javascript" src="{URL_Tumble}/themes/{Template_name}/js/bootstrap.min.js"></script>
|
|
<script type="text/javascript" src="{URL_Tumble}/admin/scripts/lightbox.js"></script>
|
|
</body>
|
|
</html>
|