Normalize indentation.
This commit is contained in:
parent
9d36e222cb
commit
77dd601c2d
@ -5,22 +5,24 @@
|
||||
<h1><?= html::purify($item->title) ?></h1>
|
||||
<div class="g-description"><?= nl2br(html::purify($item->description)) ?></div>
|
||||
</div>
|
||||
<? $children_all = $item->viewable()->children();
|
||||
$theme->pagination = new Pagination();
|
||||
$theme->pagination->initialize(array("query_string" => "page","total_items" => $children_count,"items_per_page" => $page_size,"style" => "classic"));
|
||||
$children_offset = ($theme->pagination->current_page -1) * $page_size ; ?>
|
||||
|
||||
|
||||
<?
|
||||
$children_all = $item->viewable()->children();
|
||||
$theme->pagination = new Pagination();
|
||||
$theme->pagination->initialize(
|
||||
array("query_string" => "page","total_items" => $children_count,"items_per_page" => $page_size,"style" => "classic"));
|
||||
$children_offset = ($theme->pagination->current_page -1) * $page_size ;
|
||||
?>
|
||||
<ul id="g-album-grid" class="ui-helper-clearfix">
|
||||
<? if (count($children)): ?>
|
||||
<? for($i=0;$i<$children_offset;$i++): ?>
|
||||
<? if (count($children)): ?>
|
||||
<? for ($i = 0; $i < $children_offset; $i++): ?>
|
||||
<? $child = $children_all[$i] ?>
|
||||
<?= theme_3nids::fancylink($child,"header") ?>
|
||||
<? endfor ?>
|
||||
<? endfor ?>
|
||||
|
||||
<? foreach ($children as $i => $child): ?>
|
||||
<? $item_class = "g-photo"; ?>
|
||||
<? $item_class = "g-photo" ?>
|
||||
<? if ($child->is_album()): ?>
|
||||
<? $item_class = "g-album"; ?>
|
||||
<? $item_class = "g-album" ?>
|
||||
<? endif ?>
|
||||
<li id="g-item-id-<?= $child->id ?>" class="g-item <?= $item_class ?>">
|
||||
<?= $theme->thumb_top($child) ?>
|
||||
@ -29,20 +31,21 @@
|
||||
<?= $theme->context_menu($child, "#g-item-id-{$child->id} .g-thumbnail") ?>
|
||||
</li>
|
||||
<? endforeach ?>
|
||||
<? for($i=$children_offset+$page_size;$i<$children_count;$i++): ?>
|
||||
|
||||
<? for($i=$children_offset+$page_size;$i<$children_count;$i++): ?>
|
||||
<? $child = $children_all[$i] ?>
|
||||
<?= theme_3nids::fancylink($child,"header") ?>
|
||||
<? endfor ?>
|
||||
<? else: ?>
|
||||
<? endfor ?>
|
||||
<? else: ?>
|
||||
<? if ($user->admin || access::can("add", $item)): ?>
|
||||
<? $addurl = url::file("index.php/simple_uploader/app/$item->id") ?>
|
||||
<li><?= t("There aren't any photos here yet! <a %attrs>Add some</a>.",
|
||||
array("attrs" => html::mark_clean("href=\"$addurl\" class=\"g-dialog-link\""))) ?></li>
|
||||
<? else: ?>
|
||||
<li><?= t("There aren't any photos here yet!") ?></li>
|
||||
<? endif; ?>
|
||||
<? endif; ?>
|
||||
<? endif ?>
|
||||
<? endif ?>
|
||||
</ul>
|
||||
<?= $theme->album_bottom() ?>
|
||||
|
||||
<?= $theme->pager() ?>
|
||||
<?= $theme->paginator() ?>
|
||||
|
Reference in New Issue
Block a user