Files
Testing/templates/imobile_browse_blogs.tpl
sean 0e8a8b3028
Some checks failed
deploy-testing / deploy (push) Has been cancelled
Initial testing snapshot
2026-11-17 16:15:01 -05:00

91 lines
3.8 KiB
Smarty

{include file='imobile_header.tpl'}
<div id="content" style="display: none">
<span class="graytitle">{lang_print id=11340059}</span>
<form action="browse_blogs.php" action="POST">
<ul class="pageitem">
<li class="bigfield">
<input placeholder="{lang_print id=11340067}" type="text" name="blog_search" value="{$blog_search}" />
</li>
<li class="select">
<select name='v'>
<option value='0'{if $v == "0"} SELECTED{/if}>{lang_print id=1500116}</option>
{if $user->user_exists}<option value='1'{if $v == "1"} SELECTED{/if}>{lang_print id=1500117}</option>{/if}
</select>
</li>
<li class="select">
<select name='s'>
<option value='blogentry_date DESC'{if $s == "blogentry_date DESC"} SELECTED{/if}>{lang_print id=1500036}</option>
<option value='blogentry_views DESC'{if $s == "blogentry_views DESC"} SELECTED{/if}>{lang_print id=1500037}</option>
<option value='blogentry_totalcomments DESC'{if $s == "blogentry_totalcomments DESC"} SELECTED{/if}>{lang_print id=1500038}</option>
</select>
</li>
<li class="select">
<select name='c'>
<option value='-1'>{lang_print id=11340068}</option>
{section name=blogentrycat_loop loop=$blogentrycats}
<option value='{$blogentrycats[blogentrycat_loop].blogentrycat_id}'{if $c==$blogentrycats[blogentrycat_loop].blogentrycat_id} SELECTED{/if}>
{$blogentrycats[blogentrycat_loop].blogentrycat_title|truncate:24}
</option>
{/section}
<option value='0'{if isset($c) && $c==0} SELECTED{/if}>{lang_print id=1500035}</option>
</select>
</li>
</ul>
<div class="iButtons">
<input name="submit" type="submit" value="{lang_print id=11340060}" class="iPush" /></li>
</div>
</form>
</div>
<div id="contentlist">
{if $blogentries|@count == 0}
<div class="boxinfo">
{lang_print id=11340069}
</div>
{else}
<div id="tributton">
<div class="links">
{if $p != 1}<a href='browse_blogs.php?blog_search={$blog_search}&s={$s}&v={$v}&c={$c}&p={math equation="p-1" p=$p}'>{lang_print id=182}</a>{else}<a href='browse_blogs.php?blog_search={$blog_search}&s={$s}&v={$v}&c={$c}&p=1'>{lang_print id=182}</a>{/if}{if $p != $maxpage}<a href='browse_blogs.php?blog_search={$blog_search}&s={$s}&v={$v}&c={$c}&p={math equation="p+1" p=$p}'>{lang_print id=183}</a>{else}<a href='browse_blogs.php?blog_search={$blog_search}&s={$s}&v={$v}&c={$c}&p={$maxpage}'>{lang_print id=183}</a>{/if}
</div>
</div>
<div class="page_stats">
{if $p_start == $p_end}
{lang_sprintf id=184 1=$p_start 2=$total_blogentries}
{else}
{lang_sprintf id=185 1=$p_start 2=$p_end 3=$total_blogentries}
{/if}
</div>
<ul class="entries">
{section name=blogentry_loop loop=$blogentries}
<li class="entry">
<a class="entry_title" href='{$url->url_create("blog_entry", $blogentries[blogentry_loop].blogentry_author->user_info.user_username, $blogentries[blogentry_loop].blogentry_id)}'>
{$blogentries[blogentry_loop].blogentry_title|truncate:70:"...":true}
</a>
<span class='entry_meta'>
{assign var='blogentry_date' value=$datetime->time_since($blogentries[blogentry_loop].blogentry_date)}{capture assign="created"}{lang_sprintf id=$blogentry_date[0] 1=$blogentry_date[1]}{/capture}
{lang_sprintf id=1500039 1=$created 2=$url->url_create("profile", $blogentries[blogentry_loop].blogentry_author->user_info.user_username) 3=$blogentries[blogentry_loop].blogentry_author->user_displayname}
</span>
</li>
{/section}
</ul>
{/if}
</div>
{include file='imobile_footer.tpl'}