mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-05-20 11:29:24 -04:00
commit 41d379c2b777ae7b3a11f528971228e234f8976f Author: Chad Parry <github@chad.parry.org> Date: Thu Jul 21 00:10:10 2011 -0600 Replace an overly-complicated regular expression with a simple in_array, at Bharat's suggestion. commit 1b3f7111d4c2607baaa2da0aab3b501f2d9a1426 Merge: 8f7904a403f64bAuthor: Chad Parry <github@chad.parry.org> Date: Wed Jul 20 21:02:56 2011 -0600 Merge branch 'master' into rawphoto commit403f64bf2aAuthor: Automatic Build Number Updater <bharat+gallery3_build_number_updater@menalto.com> Date: Tue Jul 12 21:44:14 2011 -0700 Automated update of .build_number to 163 for branch master Last update:e8382b960a(1 commits ago) commit51726f9e4bAuthor: Tim Almdal <tnalmdal@shaw.ca> Date: Tue Jul 12 21:44:40 2011 -0700 Fix for ticket #1752. Add an RSS field link for the current album. Or, in the case of a photo or movie, add a link to the rss field of the parent album. commite8382b960aAuthor: Automatic Build Number Updater <bharat+gallery3_build_number_updater@menalto.com> Date: Mon Jun 27 22:27:04 2011 -0700 Automated update of .build_number to 162 for branch master Last update:40cda7fa3f(1 commits ago) commit1afbcafe0eMerge:40cda7ffc6c139Author: Bharat Mediratta <bharat@menalto.com> Date: Mon Jun 27 22:26:41 2011 -0700 Merge pull request #56 from alindeman/alindeman/1758 [Fixes #1758] Link to themes codex page instead of modules codex page commit40cda7fa3fAuthor: Automatic Build Number Updater <bharat+gallery3_build_number_updater@menalto.com> Date: Mon Jun 27 22:25:54 2011 -0700 Automated update of .build_number to 161 for branch master Last update:771de0a374(1 commits ago) commitaa08df7f0aMerge:771de0a784c429Author: Bharat Mediratta <bharat@menalto.com> Date: Mon Jun 27 22:25:46 2011 -0700 Merge pull request #55 from alindeman/alindeman/1757 [Fixes #1757] Redirect to root album if path comes in as main.php or index.php commitfc6c1390d3Author: Andy Lindeman <alindeman@gmail.com> Date: Mon Jun 27 08:25:50 2011 -0400 [Fixes #1758] Link to themes codex page instead of modules codex page commit784c429070Author: Andy Lindeman <alindeman@gmail.com> Date: Mon Jun 27 07:24:37 2011 -0400 [Fixes #1757] Redirect to root album if path comes in as main.php or index.php commit 8f7904ab62c71a7e4ee68762f936030b4dcb4ea1 Merge: e950573771de0aAuthor: Chad Parry <github@chad.parry.org> Date: Sat Jun 25 14:12:39 2011 -0600 Merge branches 'master' and 'rawphoto' into rawphoto commit e95057337996351e49915d9f85d007d50103a4be Author: Chad Parry <github@chad.parry.org> Date: Wed Jun 15 20:24:18 2011 -0600 Merge branches 'rawphoto-squash' and 'rawphoto' into rawphoto
99 lines
4.0 KiB
PHP
99 lines
4.0 KiB
PHP
<?php defined("SYSPATH") or die("No direct script access.") ?>
|
|
<script type="text/javascript">
|
|
var select_url = "<?= url::site("admin/themes/choose") ?>";
|
|
select = function(type, id) {
|
|
$.post(select_url, {"type": type, "id": id, "csrf": '<?= $csrf ?>'},
|
|
function() { load(type) });
|
|
}
|
|
</script>
|
|
|
|
<div class="g-block ui-helper-clearfix">
|
|
<h1> <?= t("Theme choice") ?> </h1>
|
|
<p>
|
|
<?= t("Make your Gallery beautiful <a href=\"%url\">with a new theme</a>! There are separate themes for the regular site and for the administration interface. Click a theme below to preview and activate it.", array("url" => "http://codex.gallery2.org/Category:Gallery_3:Themes")) ?>
|
|
</p>
|
|
|
|
<div class="g-block-content">
|
|
<div id="g-site-theme">
|
|
<h2> <?= t("Gallery theme") ?> </h2>
|
|
<div class="g-block g-selected ui-helper-clearfix">
|
|
<img src="<?= url::file("themes/{$site}/thumbnail.png") ?>"
|
|
alt="<?= html::clean_attribute($themes[$site]->name) ?>" />
|
|
<h3> <?= $themes[$site]->name ?> </h3>
|
|
<p>
|
|
<?= $themes[$site]->description ?>
|
|
</p>
|
|
<? $v = new View("admin_themes_buttonset.html"); $v->info = $themes[$site]; print $v; ?>
|
|
</div>
|
|
|
|
<h2> <?= t("Available Gallery themes") ?> </h2>
|
|
<div class="g-available">
|
|
<? $count = 0 ?>
|
|
<? foreach ($themes as $id => $info): ?>
|
|
<? if (!$info->site) continue ?>
|
|
<? if ($id == $site) continue ?>
|
|
<div class="g-block ui-helper-clearfix">
|
|
<a href="<?= url::site("admin/themes/preview/site/$id") ?>" class="g-dialog-link" title="<?= t("Theme Preview: %theme_name", array("theme_name" => $info->name))->for_html_attr() ?>">
|
|
<img src="<?= url::file("themes/{$id}/thumbnail.png") ?>"
|
|
alt="<?= html::clean_attribute($info->name) ?>" />
|
|
<h3> <?= $info->name ?> </h3>
|
|
<p>
|
|
<?= $info->description ?>
|
|
</p>
|
|
</a>
|
|
<? $v = new View("admin_themes_buttonset.html"); $v->info = $info; print $v; ?>
|
|
</div>
|
|
<? $count++ ?>
|
|
<? endforeach ?>
|
|
|
|
<? if (!$count): ?>
|
|
<p>
|
|
<?= t("There are no other site themes available. <a href=\"%url\">Download one now!</a>", array("url" => "http://codex.gallery2.org/Category:Gallery_3:Themes")) ?>
|
|
</p>
|
|
<? endif ?>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="g-admin-theme">
|
|
<h2> <?= t("Admin theme") ?> </h2>
|
|
<div class="g-block g-selected ui-helper-clearfix">
|
|
<img src="<?= url::file("themes/{$admin}/thumbnail.png") ?>"
|
|
alt="<?= html::clean_attribute($themes[$admin]->name) ?>" />
|
|
<h3> <?= $themes[$admin]->name ?> </h3>
|
|
<p>
|
|
<?= $themes[$admin]->description ?>
|
|
</p>
|
|
<? $v = new View("admin_themes_buttonset.html"); $v->info = $themes[$admin]; print $v; ?>
|
|
</div>
|
|
|
|
<h2> <?= t("Available admin themes") ?> </h2>
|
|
<div class="g-available">
|
|
<? $count = 0 ?>
|
|
<? foreach ($themes as $id => $info): ?>
|
|
<? if (!$info->admin) continue ?>
|
|
<? if ($id == $admin) continue ?>
|
|
<div class="g-block ui-helper-clearfix">
|
|
<a href="<?= url::site("admin/themes/preview/admin/$id") ?>" class="g-dialog-link" title="<?= t("Theme Preview: %theme_name", array("theme_name" => $info->name))->for_html_attr() ?>">
|
|
<img src="<?= url::file("themes/{$id}/thumbnail.png") ?>"
|
|
alt="<?= html::clean_attribute($info->name) ?>" />
|
|
<h3> <?= $info->name ?> </h3>
|
|
<p>
|
|
<?= $info->description ?>
|
|
</p>
|
|
</a>
|
|
<? $v = new View("admin_themes_buttonset.html"); $v->info = $info; print $v; ?>
|
|
</div>
|
|
<? $count++ ?>
|
|
<? endforeach ?>
|
|
|
|
<? if (!$count): ?>
|
|
<p>
|
|
<?= t("There are no other admin themes available. <a href=\"%url\">Download one now!</a>", array("url" => "http://codex.gallery2.org/Category:Gallery_3:Themes")) ?>
|
|
</p>
|
|
<? endif ?>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|