Files
gallery3/modules/organize/views/organize_dialog.html.php
Bharat Mediratta a245c57400 Further streamline the code.
Organize_Controller:
* Remove unnecessary constants
* Rename index() to dialog()
* Simplify _get_micro_thumb_grid

organize.js:
* Move sizing code in here from organize_dialog.html.php

organize_dialog.html.php:
* Move CSS and JS links in here so that we only load them when we need them.
* Move sizing code into organize.js

organize_thumb_grid.html.php:
* Move pagination logic in here, since it's view centric
* Collapse the css class determination code and inline it
2009-08-06 21:52:23 -07:00

48 lines
1.7 KiB
PHP

<?php defined("SYSPATH") or die("No direct script access.") ?>
<link rel="stylesheet" type="text/css" href="<?= url::file("modules/organize/css/organize.css") ?>" />
<div id="gOrganize">
<h1 style="display:none"><?= t("Organize %name", array("name" => p::purify($title))) ?></h1>
<div id="bd">
<div class="yui-gf">
<div class="yui-u first">
<h3><?= t("Albums") ?></h3>
</div>
<div id="gMessage" class="yui-u">
<div class="gInfo"><?= t("Select one or more items to edit; drag and drop items to re-order or move between albums") ?></div>
</div>
</div>
<div class="yui-gf">
<div id="gOrganizeTreeContainer" class="yui-u first">
<ul id="gOrganizeAlbumTree">
<?= $album_tree ?>
</ul>
</div>
<div id="gOrganizeDetail" class="yui-u">
<div id="gMicroThumbPanel"
ref="<?= url::site("organize/content/__ITEM_ID__/__OFFSET__") ?>">
<ul id="gMicroThumbGrid">
<?= $micro_thumb_grid ?>
</ul>
</div>
<div id="gOrganizeEditDrawer" class="yui-u">
<div id="gOrganizeEditDrawerPanel" class="yui-gf">
</div>
<div id="gOrganizeEditDrawerHandle">
<div id="gOrganizeEditHandleButtonsRight">
<a id="gMicroThumbDone" href="#" ref="done"
class="gButtonLink ui-corner-all ui-state-default"><?= t("Close") ?></a>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script type="text/javascript" src="<?= url::file("modules/organize/js/organize.js") ?>"></script>
<script type="text/javascript">
setTimeout(function() {
$.organize.init();
}, 0);
</script>