gettext implementation
parent
d4813db262
commit
316d2c2b6d
|
|
@ -25,8 +25,8 @@
|
||||||
{if {$isAuthenticated}}
|
{if {$isAuthenticated}}
|
||||||
<div style="padding:4px; border:solid 2px #bbb; display:inline; background-color:#ddd; position:absolute; top:3px; right:3px;">
|
<div style="padding:4px; border:solid 2px #bbb; display:inline; background-color:#ddd; position:absolute; top:3px; right:3px;">
|
||||||
<b>Hi, {User}.</b>
|
<b>Hi, {User}.</b>
|
||||||
<a target="_top" href="{URL_Tumble}/admin/index.php">Add/Edit my posts</a>
|
<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>
|
<a target="_top" href="{URL_Tumble}/admin/close.php">{__("Sign out")}</a>
|
||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
|
|
@ -37,85 +37,66 @@
|
||||||
<div class="date">
|
<div class="date">
|
||||||
{$row.Date_Added}
|
{$row.Date_Added}
|
||||||
</div>
|
</div>
|
||||||
{if {$row.postType}=='post'}
|
|
||||||
<div class="post">
|
<div class="post">
|
||||||
<a href="{$row.Permalink}"><img src="{URL_Tumble}/themes/tumblr/img/link.gif" class="permalink" alt="Permalink"/></a>
|
<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">
|
<div class="regular">
|
||||||
<h2><a href="{$row.Permalink}">{$row.Title}</a></h2>
|
<h2><a href="{$row.Permalink}">{$row.Title}</a></h2>
|
||||||
{$row.Body}
|
{$row.Body}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
{elseif {$row.postType}=='photo'}
|
{elseif {$row.postType}=='photo'}
|
||||||
<div class="post">
|
|
||||||
<a href="{$row.Permalink}"><img src="{URL_Tumble}/themes/tumblr/img/link.gif" class="permalink" alt="Permalink"/></a>
|
|
||||||
<div class="photo">
|
<div class="photo">
|
||||||
<a {$row.Effect}><img src="{$row.PhotoURL}" alt="{$row.PhotoAlt}" /></a><br/>
|
<a {$row.Effect}><img src="{$row.PhotoURL}" alt="{$row.PhotoAlt}" /></a><br/>
|
||||||
<div class="caption">{$row.Caption}</div>
|
<div class="caption">{$row.Caption}</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
{elseif {$row.postType}=='quote'}
|
{elseif {$row.postType}=='quote'}
|
||||||
<div class="post">
|
|
||||||
<a href="{$row.Permalink}"><img src="{URL_Tumble}/themes/tumblr/img/link.gif" class="permalink" alt="Permalink"/></a>
|
|
||||||
<div class="quote">
|
<div class="quote">
|
||||||
<span class="quote"><big class="quote"><a href="{$row.Permalink}">“</a></big> {$row.Quote}</span>
|
<span class="quote"><big class="quote"><a href="{$row.Permalink}">“</a></big> {$row.Quote}</span>
|
||||||
<div class="source">— {$row.Source}</div>
|
<div class="source">— {$row.Source}</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
{elseif {$row.postType}=='url'}
|
{elseif {$row.postType}=='url'}
|
||||||
<div class="post">
|
|
||||||
<a href="{$row.Permalink}"><img src="{URL_Tumble}/themes/tumblr/img/link.gif" class="permalink" alt="Permalink"/></a>
|
|
||||||
<div class="link">
|
<div class="link">
|
||||||
» <a href="{$row.URL}">{$row.Name}</a>
|
» <a href="{$row.URL}">{$row.Name}</a>
|
||||||
<div class="description">{$row.Description}</div>
|
<div class="description">{$row.Description}</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
{elseif {$row.postType}=='conversation'}
|
{elseif {$row.postType}=='conversation'}
|
||||||
<div class="post">
|
|
||||||
<a href="{$row.Permalink}"><img src="{URL_Tumble}/themes/tumblr/img/link.gif" class="permalink" alt="Permalink"/></a>
|
|
||||||
<div class="conversation">
|
<div class="conversation">
|
||||||
...<h2><a href="{$row.Permalink}">{$row.Title}</a></h2>
|
...<h2><a href="{$row.Permalink}">{$row.Title}</a></h2>
|
||||||
{$row.Conversation}
|
{$row.Conversation}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
{elseif {$row.postType}=='video'}
|
{elseif {$row.postType}=='video'}
|
||||||
<div class="post">
|
|
||||||
<a href="{$row.Permalink}"><img src="{URL_Tumble}/themes/tumblr/img/link.gif" class="permalink" alt="Permalink"/></a>
|
|
||||||
<div class="video">
|
<div class="video">
|
||||||
{$row.Video}
|
{$row.Video}
|
||||||
<div class="caption">{$row.Caption}</div>
|
<div class="caption">{$row.Caption}</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
{elseif {$row.postType}=='mp3'}
|
{elseif {$row.postType}=='mp3'}
|
||||||
<div class="post">
|
|
||||||
<a href="{$row.Permalink}"><img src="{URL_Tumble}/themes/tumblr/img/link.gif" class="permalink" alt="Permalink"/></a>
|
|
||||||
<div class="video">
|
<div class="video">
|
||||||
{$row.Mp3}
|
{$row.Mp3}
|
||||||
<div class="caption">{$row.Caption}</div>
|
<div class="caption">{$row.Caption}</div>
|
||||||
</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>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
{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}
|
{/block}
|
||||||
|
|
||||||
{if {$id_post}}
|
{if {$id_post}}
|
||||||
{if {$row.Comments_Number}>0}
|
{if {$row.Comments_Number}>0}
|
||||||
<div class="containerComments">
|
<div class="containerComments">
|
||||||
<h3 id="comments">{$row.Comments_Number} answers to “{$row.Post_Title}”</h3>
|
<h3 id="comments">{$row.Comments_Number} {__("answers to")} “{$row.Post_Title}”</h3>
|
||||||
<ol class="commentlist">
|
<ol class="commentlist">
|
||||||
{block {$comments} as {$comment}}
|
{block {$comments} as {$comment}}
|
||||||
<li class="alt" id="comment-{$comment.Id_Comment}">
|
<li class="alt" id="comment-{$comment.Id_Comment}">
|
||||||
<cite>
|
<cite>
|
||||||
<a href="#comment-{$comment.Id_Comment}" title="Comment permalink">#</a>
|
<a href="#comment-{$comment.Id_Comment}" title="Comment permalink">#</a>
|
||||||
{$comment.Comment_Author} said:
|
{$comment.Comment_Author} {__("said")}:
|
||||||
</cite>
|
</cite>
|
||||||
<br />
|
<br />
|
||||||
<span class="timestampComment"> at {$comment.Date}</span><br /><br />
|
<span class="timestampComment"> {__("at")} {$comment.Date}</span><br /><br />
|
||||||
{$comment.Comment}
|
{$comment.Comment}
|
||||||
<br /><br />
|
<br /><br />
|
||||||
</li>
|
</li>
|
||||||
|
|
@ -126,24 +107,24 @@
|
||||||
|
|
||||||
{if {$allowComments}}
|
{if {$allowComments}}
|
||||||
<div class="containerFormComments">
|
<div class="containerFormComments">
|
||||||
<h3 id="respond">Add your comment</h3>
|
<h3 id="respond">{__("Add your comment")}</h3>
|
||||||
|
|
||||||
<form action="{Form_Action}" method="post" name="commentForm" id="commentForm">
|
<form action="{Form_Action}" method="post" name="commentForm" id="commentForm">
|
||||||
<p>
|
<p>
|
||||||
<label for="username">
|
<label for="username">
|
||||||
<small>Name:</small>
|
<small>{__("Name:")}</small>
|
||||||
</label>
|
</label>
|
||||||
<input name="username" id="username" value="{whois.User_Cookie}" size="22" tabindex="1" type="text" />
|
<input name="username" id="username" value="{whois.User_Cookie}" size="22" tabindex="1" type="text" />
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
<label for="email">
|
<label for="email">
|
||||||
<small>E-mail:</small>
|
<small>{__("E-mail:")}</small>
|
||||||
</label>
|
</label>
|
||||||
<input name="email" id="email" value="{whois.Email_Cookie}" size="22" tabindex="2" type="text" />
|
<input name="email" id="email" value="{whois.Email_Cookie}" size="22" tabindex="2" type="text" />
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
<label for="web">
|
<label for="web">
|
||||||
<small>Website:</small>
|
<small>{__("Website:")}</small>
|
||||||
</label>
|
</label>
|
||||||
<input name="web" id="web" value="{whois.Web_Cookie}" size="22" tabindex="3" type="text" />
|
<input name="web" id="web" value="{whois.Web_Cookie}" size="22" tabindex="3" type="text" />
|
||||||
</p>
|
</p>
|
||||||
|
|
@ -152,7 +133,7 @@
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
<span style="color: rgb(136, 136, 136); margin-bottom: 10px; font-size: 10px;">
|
<span style="color: rgb(136, 136, 136); margin-bottom: 10px; font-size: 10px;">
|
||||||
Some HTML allowed:<br />
|
{__("Some HTML allowed:")}<br />
|
||||||
|
|
||||||
<code>
|
<code>
|
||||||
<blockquote> <code> <em> <strong> <a>
|
<blockquote> <code> <em> <strong> <a>
|
||||||
|
|
@ -175,8 +156,8 @@
|
||||||
{/if}
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
<div id="footer">
|
<div id="footer">
|
||||||
subscribe via <a href="{URL_Tumble}/rss.php">rss</a> /
|
{__("subscribe via")} <a href="{URL_Tumble}/rss.php">rss</a> /
|
||||||
powered by <a href="http://www.gelatocms.com/">gelato cms</a>
|
{__("powered by")} <a href="http://www.gelatocms.com/">gelato cms</a>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
Loading…
Reference in New Issue