Wrap all admin views in g-block and g-block content. This provides the means to visually separate the view's title and description from everything else. Primary admin view title should always be h1, and only one h1 per view. Removed some unused admin CSS id's.

This commit is contained in:
Chad Kieffer
2009-10-18 20:22:10 -06:00
parent 91ab6f161f
commit 5f56cbf997
20 changed files with 889 additions and 886 deletions
+16 -14
View File
@@ -12,26 +12,28 @@
});
</script>
<div id="g-admin-graphics">
<div id="g-admin-graphics" class="g-block ui-helper-clearfix">
<h1> <?= t("Graphics Settings") ?> </h1>
<p>
<?= t("Gallery needs a graphics toolkit in order to manipulate your photos. Please choose one from the list below.") ?>
</p>
<h2> <?= t("Active Toolkit") ?> </h2>
<? if ($active == "none"): ?>
<?= new View("admin_graphics_none.html") ?>
<? else: ?>
<?= new View("admin_graphics_$active.html", array("tk" => $tk->$active, "is_active" => true)) ?>
<? endif ?>
<div class="g-available">
<h2> <?= t("Available Toolkits") ?> </h2>
<? foreach (array_keys((array)$tk) as $id): ?>
<? if ($id != $active): ?>
<?= new View("admin_graphics_$id.html", array("tk" => $tk->$id, "is_active" => false)) ?>
<div class="g-block-content">
<h2> <?= t("Active Toolkit") ?> </h2>
<? if ($active == "none"): ?>
<?= new View("admin_graphics_none.html") ?>
<? else: ?>
<?= new View("admin_graphics_$active.html", array("tk" => $tk->$active, "is_active" => true)) ?>
<? endif ?>
<? endforeach ?>
<div class="g-available">
<h2> <?= t("Available Toolkits") ?> </h2>
<? foreach (array_keys((array)$tk) as $id): ?>
<? if ($id != $active): ?>
<?= new View("admin_graphics_$id.html", array("tk" => $tk->$id, "is_active" => false)) ?>
<? endif ?>
<? endforeach ?>
</div>
</div>
</div>