1
0

Fix indentation.

This commit is contained in:
Bharat Mediratta 2009-11-27 15:32:01 -08:00
parent a13bf06f36
commit 7f3c8db181

View File

@ -1,59 +1,37 @@
<?php defined("SYSPATH") or die("No direct script access.") ?> <?php defined("SYSPATH") or die("No direct script access.") ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
<? if (access::can("view_full", $theme->item())): ?> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!-- Use javascript to show the full size as an overlay on the current page --> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<script type="text/javascript"> <head>
$(document).ready(function() { <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
$(".g-fullsize-link").click(function() { <?= $theme->css("yui/reset-fonts-grids.css") ?>
$.gallery_show_full_size(<?= html::js_string($theme->item()->file_url()) ?>, "<?= $theme->item()->width ?>", "<?= $theme->item()->height ?>"); <?= $theme->css("superfish/css/superfish.css") ?>
return false; <?= $theme->css("themeroller/ui.base.css") ?>
}); <?= $theme->css("gallery.common.css") ?>
}); <?= $theme->css("jquery.fancybox.css") ?>
</script> <?= $theme->css("screen.css") ?>
<? endif ?> <?= $theme->css("3nids.css") ?>
<?= $theme->script("jquery.js") ?>
<div id="g-item"> <?= $theme->script("jquery.form.js") ?>
<?= $theme->photo_top() ?> <?= $theme->script("jquery-ui.js") ?>
<?= $theme->script("gallery.common.js") ?>
<ul class="g-pager ui-helper-clearfix"> <? /* MSG_CANCEL is required by gallery.dialog.js */ ?>
<li> <script type="text/javascript">
<? if ($previous_item): ?> var MSG_CANCEL = <?= t('Cancel')->for_js() ?>;
<a href="<?= $previous_item->url() ?>" class="g-button ui-icon-left ui-state-default ui-corner-all"> </script>
<span class="ui-icon ui-icon-triangle-1-w"></span><?= t("previous") ?></a> <?= $theme->script("gallery.ajax.js") ?>
<? else: ?> <?= $theme->script("gallery.dialog.js") ?>
<a class="g-button ui-icon-left ui-state-disabled ui-corner-all"> <?= $theme->script("superfish/js/superfish.js") ?>
<span class="ui-icon ui-icon-triangle-1-w"></span><?= t("previous") ?></a> <?= $theme->script("jquery.localscroll.js") ?>
<? endif; ?> <?= $theme->script("jquery.easing.js") ?>
</li> <?= $theme->script("jquery.fancybox.js") ?>
<li class="g-info"><?= t("%position of %total", array("position" => $position, "total" => $sibling_count)) ?></li> <?= $theme->script("ui.init.js") ?>
<li class="g-text-right"> <?= $theme->head() ?>
<? if ($next_item): ?> </head>
<a href="<?= $next_item->url() ?>" class="g-button ui-icon-right ui-state-default ui-corner-all"> <body class="g-fancy-iframe-body">
<span class="ui-icon ui-icon-triangle-1-e"></span><?= t("next") ?></a> <div id="g-item-box">
<? else: ?> <img src="<?=$item_url?>" id="g-item-img"/>
<a class="g-button ui-icon-right ui-state-disabled ui-corner-all"> <?= $theme->context_menu($item, "#g-item-id-{$item->id}") ?>
<span class="ui-icon ui-icon-triangle-1-e"></span><?= t("next") ?></a> </div>
<? endif ?> </body>
</li> </html>
</ul>
<div id="g-photo">
<?= $theme->resize_top($item) ?>
<? if (access::can("view_full", $item)): ?>
<a href="<?= $item->file_url() ?>" class="g-fullsize-link" title="<?= t("View full size")->for_html_attr() ?>">
<? endif ?>
<?= $item->resize_img(array("id" => "g-photo-id-{$item->id}", "class" => "g-resize")) ?>
<? if (access::can("view_full", $item)): ?>
</a>
<? endif ?>
<?= $theme->resize_bottom($item) ?>
<?= $theme->context_menu($item, "#g-photo-id-{$item->id}") ?>
</div>
<div id="g-info">
<h1><?= html::purify($item->title) ?></h1>
<div><?= nl2br(html::purify($item->description)) ?></div>
</div>
<?= $theme->photo_bottom() ?>
</div>