Grey Dragon Theme - version 1.5.8
This commit is contained in:
parent
53acbe5e5e
commit
4f1538d87b
146
themes/greydragon/admin/controllers/admin_theme_options.php
Normal file
146
themes/greydragon/admin/controllers/admin_theme_options.php
Normal file
@ -0,0 +1,146 @@
|
|||||||
|
<?php defined("SYSPATH") or die("No direct script access.");
|
||||||
|
/**
|
||||||
|
* Gallery - a web based photo album viewer and editor
|
||||||
|
* Copyright (C) 2000-2009 Bharat Mediratta
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
* the Free Software Foundation; either version 2 of the License, or (at
|
||||||
|
* your option) any later version.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful, but
|
||||||
|
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
* General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with this program; if not, write to the Free Software
|
||||||
|
* Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
|
*/
|
||||||
|
class Admin_Theme_Options_Controller extends Admin_Controller {
|
||||||
|
|
||||||
|
static function get_edit_form_admin() {
|
||||||
|
$form = new Forge("admin/theme_options/save/", "", null, array("id" =>"g-theme-options-form"));
|
||||||
|
|
||||||
|
$group = $form->group("requirements")->label("Prerequisites checklist");
|
||||||
|
$group->checkbox("shadowbox")->label(t("Shadowbox module"))
|
||||||
|
->checked((module::is_active("shadowbox")))->disabled(true);
|
||||||
|
|
||||||
|
$file = THEMEPATH . "greydragon/theme.info";
|
||||||
|
$theme_info = new ArrayObject(parse_ini_file($file), ArrayObject::ARRAY_AS_PROPS);
|
||||||
|
|
||||||
|
$group = $form->group("edit_theme")->label(t("Grey Dragon Theme") . " - " . t("v.") . $theme_info->version);
|
||||||
|
$group->input("row_count")->label(t("Rows per album page"))->id("g-page-size")
|
||||||
|
->rules("required|valid_digit")
|
||||||
|
->value(module::get_var("gallery", "page_size") / 3);
|
||||||
|
|
||||||
|
$group->input("resize_size")->label(t("Resized image size (in pixels)"))->id("g-resize-size")
|
||||||
|
->rules("required|valid_digit")
|
||||||
|
->value(module::get_var("gallery", "resize_size"));
|
||||||
|
$group->checkbox("build_resize")->label(t("Mark to build all resizes (from Maintenace page)"))->id("g-build-resize")->value(false);
|
||||||
|
$group->checkbox("build_thumbs")->label(t("Mark to build all thumbnails (200x200) (from Maintenace page)"))->id("g-build-thumb")->value(false);
|
||||||
|
|
||||||
|
$group->checkbox("photonav_top")->label(t("Show top photo navigator"))
|
||||||
|
->checked(module::get_var("th_greydragon", "photonav_top"));
|
||||||
|
$group->checkbox("photonav_bottom")->label(t("Show bottom photo navigator"))
|
||||||
|
->checked(module::get_var("th_greydragon", "photonav_bottom"));
|
||||||
|
|
||||||
|
$group->dropdown("sidebar_allowed")->label(t("Allowed SideBar Positions"))
|
||||||
|
->options(array("any" => t("Any"), "left" => t("Left"), "right" => t("Right"), "none" => t("None")))
|
||||||
|
->selected(module::get_var("th_greydragon", "sidebar_allowed"));
|
||||||
|
$group->dropdown("sidebar_visible")->label(t("Default SideBar Position"))
|
||||||
|
->options(array("right" => t("Right"), "left" => t("Left"), "none" => t("None")))
|
||||||
|
->selected(module::get_var("th_greydragon", "sidebar_visible"));
|
||||||
|
|
||||||
|
$group->input("header_text")->label(t("Header text"))->id("g-header-text")
|
||||||
|
->value(module::get_var("gallery", "header_text"));
|
||||||
|
$group->input("footer_text")->label(t("Footer text"))->id("g-footer-text")
|
||||||
|
->value(module::get_var("gallery", "footer_text"));
|
||||||
|
$group->checkbox("show_credits")->label(t("Show site credits"))->id("g-footer-text")
|
||||||
|
->checked(module::get_var("gallery", "show_credits"));
|
||||||
|
|
||||||
|
$group->input("copyright")->label(t("Copyright message to display on footer"))->id("g-theme-copyright")
|
||||||
|
->value(module::get_var("th_greydragon", "copyright"));
|
||||||
|
$group->input("logo_path")->label(t("URL or path to alternate logo image"))->id("g-site-logo")
|
||||||
|
->value(module::get_var("th_greydragon", "logo_path"));
|
||||||
|
|
||||||
|
module::event("theme_edit_form", $form);
|
||||||
|
|
||||||
|
$group = $form->group("buttons");
|
||||||
|
$group->submit("")->value(t("Save"));
|
||||||
|
return $form;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function index() {
|
||||||
|
$view = new Admin_View("admin.html");
|
||||||
|
$view->content = new View("admin_theme_options.html");
|
||||||
|
$view->content->form = self::get_edit_form_admin();
|
||||||
|
print $view;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function save() {
|
||||||
|
access::verify_csrf();
|
||||||
|
|
||||||
|
$form = self::get_edit_form_admin();
|
||||||
|
if ($form->validate()) {
|
||||||
|
$edit_theme = $form->edit_theme;
|
||||||
|
|
||||||
|
module::set_var("gallery", "page_size", $edit_theme->row_count->value * 3);
|
||||||
|
|
||||||
|
$resize_size = $edit_theme->resize_size->value;
|
||||||
|
$thumb_size = 200;
|
||||||
|
$build_resize = $edit_theme->build_resize->value;
|
||||||
|
$build_thumbs = $edit_theme->build_thumbs->value;
|
||||||
|
|
||||||
|
if (module::get_var("gallery", "resize_size") != $resize_size) {
|
||||||
|
module::set_var("gallery", "resize_size", $resize_size);
|
||||||
|
$build_resize = true;
|
||||||
|
}
|
||||||
|
if (module::get_var("gallery", "thumb_size") != $thumb_size) {
|
||||||
|
module::set_var("gallery", "thumb_size", $thumb_size);
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($build_resize) {
|
||||||
|
graphics::remove_rule("gallery", "resize", "gallery_graphics::resize");
|
||||||
|
graphics::add_rule("gallery", "resize", "gallery_graphics::resize",
|
||||||
|
array("width" => $resize_size, "height" => $resize_size, "master" => Image::AUTO), 100);
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($build_thumbs) {
|
||||||
|
graphics::remove_rule("gallery", "thumb", "gallery_graphics::resize");
|
||||||
|
graphics::add_rule("gallery", "thumb", "gallery_graphics::resize",
|
||||||
|
array("width" => 200, "height" => 200, "master" => Image::AUTO), 100);
|
||||||
|
}
|
||||||
|
|
||||||
|
module::set_var("th_greydragon", "photonav_top", $edit_theme->photonav_top->value);
|
||||||
|
module::set_var("th_greydragon", "photonav_bottom", $edit_theme->photonav_bottom->value);
|
||||||
|
|
||||||
|
$sidebar_allowed = $edit_theme->sidebar_allowed->value;
|
||||||
|
$sidebar_visible = $edit_theme->sidebar_visible->value;
|
||||||
|
|
||||||
|
if ($sidebar_allowed == "none") { $sidebar_visible = "none"; }
|
||||||
|
if ($sidebar_allowed == "right") { $sidebar_visible = "right"; }
|
||||||
|
if ($sidebar_allowed == "left") { $sidebar_visible = "left"; }
|
||||||
|
|
||||||
|
module::set_var("th_greydragon", "sidebar_allowed", $sidebar_allowed);
|
||||||
|
module::set_var("th_greydragon", "sidebar_visible", $sidebar_visible);
|
||||||
|
|
||||||
|
module::set_var("gallery", "header_text", $edit_theme->header_text->value);
|
||||||
|
module::set_var("gallery", "footer_text", $edit_theme->footer_text->value);
|
||||||
|
module::set_var("gallery", "show_credits", $edit_theme->show_credits->value);
|
||||||
|
|
||||||
|
module::set_var("th_greydragon", "copyright", $edit_theme->copyright->value);
|
||||||
|
module::set_var("th_greydragon", "logo_path", $edit_theme->logo_path->value);
|
||||||
|
|
||||||
|
module::event("theme_edit_form_completed", $form);
|
||||||
|
|
||||||
|
message::success(t("Updated theme details"));
|
||||||
|
url::redirect("admin/theme_options");
|
||||||
|
} else {
|
||||||
|
$view = new Admin_View("admin.html");
|
||||||
|
$view->content = $form;
|
||||||
|
print $view;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -1,5 +1,18 @@
|
|||||||
Grey Dragon Theme Changelog
|
Grey Dragon Theme Changelog
|
||||||
|
|
||||||
|
version 1.5.8
|
||||||
|
- Finally admin module for theme is there. After theme installation, visit Appearance/Theme Options to configure the theme.
|
||||||
|
If you had older version of the theme, initial setup is also required.
|
||||||
|
The following settings are available:
|
||||||
|
- Rows per album page - theme uses 3 columns layout for pictures, therefore default page_size is computed in x3 increments
|
||||||
|
- Thumb size is restricted to 200 and therefore not available for administration
|
||||||
|
- Mark to build resizes/thumbs - allows force rebuilding of images
|
||||||
|
- Show/Hide top/bottom photo navigators
|
||||||
|
- Specify allowed and default sidebar position
|
||||||
|
- Administrator can now specify Copyright message to display in the footer
|
||||||
|
- Site logo is now default to Gallery 3 logo, but admin can provide a path to custom logo.
|
||||||
|
- Sidebar session cookie is set to expire in 365 days
|
||||||
|
|
||||||
version 1.5.7
|
version 1.5.7
|
||||||
- Status message has been moved into header as popup to prevent obstruction of the main view.
|
- Status message has been moved into header as popup to prevent obstruction of the main view.
|
||||||
jQuery is used to fade it out in 10 sec.
|
jQuery is used to fade it out in 10 sec.
|
||||||
|
@ -81,7 +81,7 @@ h5 { font-weight: bold; }
|
|||||||
|
|
||||||
/* Pagination ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
|
/* Pagination ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
|
||||||
|
|
||||||
.g-paginator { display: inline-block; width: 100%; padding: 4px 0 6px 0; font-size: 80%; zoom: 1; }
|
.g-paginator { display: inline-block; width: 100%; padding: 4px 0 0 0; font-size: 80%; zoom: 1; }
|
||||||
.g-paginator li { display: inline; float: left; margin-left: 0; zoom: 1; }
|
.g-paginator li { display: inline; float: left; margin-left: 0; zoom: 1; }
|
||||||
.g-paginator a { padding: 0 0 0 2px; }
|
.g-paginator a { padding: 0 0 0 2px; }
|
||||||
|
|
||||||
@ -91,7 +91,7 @@ h5 { font-weight: bold; }
|
|||||||
/* Album grid ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
|
/* Album grid ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
|
||||||
|
|
||||||
.g-thumbcrop { overflow: hidden; position: relative; width: 200px; height: 150px; }
|
.g-thumbcrop { overflow: hidden; position: relative; width: 200px; height: 150px; }
|
||||||
#g-album-grid { padding: 0px; width: 100%; }
|
#g-album-grid { padding: 6px 0 0 0; width: 100%; }
|
||||||
#g-album-grid .g-item { position: relative; float: left; padding: 10px 9px 0px 9px; width: 30.5%; height: 190px; background: url('../images/image_thumb.gif') no-repeat; }
|
#g-album-grid .g-item { position: relative; float: left; padding: 10px 9px 0px 9px; width: 30.5%; height: 190px; background: url('../images/image_thumb.gif') no-repeat; }
|
||||||
#g-album-grid .g-item p { text-align: center; }
|
#g-album-grid .g-item p { text-align: center; }
|
||||||
#g-album-grid h2 { position: absolute; top: 164px; left: 12px; width: 150px; font: 100%/100% Arial, Helvetica, sans-serif; }
|
#g-album-grid h2 { position: absolute; top: 164px; left: 12px; width: 150px; font: 100%/100% Arial, Helvetica, sans-serif; }
|
||||||
@ -119,7 +119,7 @@ h5 { font-weight: bold; }
|
|||||||
#g-info h1 { padding-bottom: 1px; border-bottom: 1px solid #888; }
|
#g-info h1 { padding-bottom: 1px; border-bottom: 1px solid #888; }
|
||||||
#g-info .g-description { display: none; }
|
#g-info .g-description { display: none; }
|
||||||
/* #g-info h1:hover .g-description { position: relative; z-index: 10; top: 10px; left: 0px; width: 90%; display: block; afloat: left; border: 1px solid #888; padding: 6px; }*/
|
/* #g-info h1:hover .g-description { position: relative; z-index: 10; top: 10px; left: 0px; width: 90%; display: block; afloat: left; border: 1px solid #888; padding: 6px; }*/
|
||||||
#g-photo { padding: 6px 0 0 6px; text-align: center; }
|
#g-photo { padding: 6px 0 6px 6px; text-align: center; }
|
||||||
#g-albumheader h1 { padding-bottom: 1px; margin-bottom: 6px; border-bottom: 1px solid #888; }
|
#g-albumheader h1 { padding-bottom: 1px; margin-bottom: 6px; border-bottom: 1px solid #888; }
|
||||||
|
|
||||||
/* Footer section ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
|
/* Footer section ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
|
||||||
|
Binary file not shown.
Before Width: | Height: | Size: 5.9 KiB |
@ -1,6 +1,6 @@
|
|||||||
name = "Grey Dragon Theme"
|
name = "Grey Dragon Theme"
|
||||||
description = "A Crisp theme uses on clear grey colors and minimized on JS overhead"
|
description = "A Crisp theme uses on clear grey colors and minimized on JS overhead"
|
||||||
version = 1.5.6
|
version = 1.5.8
|
||||||
author = "2009 Serguei Dosyukov"
|
author = "2009 Serguei Dosyukov"
|
||||||
site = 1
|
site = 1
|
||||||
admin = 0
|
admin = 0
|
||||||
|
@ -5,7 +5,11 @@
|
|||||||
<h1><?= html::purify($item->title) ?></h1>
|
<h1><?= html::purify($item->title) ?></h1>
|
||||||
<div class="g-description"><?= ($item->description)? bb2html(html::purify($item->description), 1) : null; ?></div>
|
<div class="g-description"><?= ($item->description)? bb2html(html::purify($item->description), 1) : null; ?></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<? if (module::get_var("th_greydragon", "photonav_top")): ?>
|
||||||
<?= $theme->paginator() ?>
|
<?= $theme->paginator() ?>
|
||||||
|
<? endif ?>
|
||||||
|
|
||||||
<ul id="g-album-grid">
|
<ul id="g-album-grid">
|
||||||
<? if (count($children)): ?>
|
<? if (count($children)): ?>
|
||||||
<? foreach ($children as $i => $child): ?>
|
<? foreach ($children as $i => $child): ?>
|
||||||
@ -41,4 +45,7 @@
|
|||||||
<? endif; ?>
|
<? endif; ?>
|
||||||
</ul>
|
</ul>
|
||||||
<?= $theme->album_bottom() ?>
|
<?= $theme->album_bottom() ?>
|
||||||
|
|
||||||
|
<? if (module::get_var("th_greydragon", "photonav_bottom")): ?>
|
||||||
<?= $theme->paginator() ?>
|
<?= $theme->paginator() ?>
|
||||||
|
<? endif ?>
|
||||||
|
@ -6,6 +6,10 @@
|
|||||||
<h1><?= html::clean($title) ?></h1>
|
<h1><?= html::clean($title) ?></h1>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<? if (module::get_var("th_greydragon", "photonav_top")): ?>
|
||||||
|
<?= $theme->paginator() ?>
|
||||||
|
<? endif ?>
|
||||||
|
|
||||||
<ul id="g-album-grid">
|
<ul id="g-album-grid">
|
||||||
<? foreach ($children as $i => $child): ?>
|
<? foreach ($children as $i => $child): ?>
|
||||||
<li class="g-item <?= $child->is_album() ? "g-album" : "" ?>">
|
<li class="g-item <?= $child->is_album() ? "g-album" : "" ?>">
|
||||||
@ -26,4 +30,6 @@
|
|||||||
</ul>
|
</ul>
|
||||||
<?= $theme->dynamic_bottom() ?>
|
<?= $theme->dynamic_bottom() ?>
|
||||||
|
|
||||||
|
<? if (module::get_var("th_greydragon", "photonav_bottom")): ?>
|
||||||
<?= $theme->paginator() ?>
|
<?= $theme->paginator() ?>
|
||||||
|
<? endif ?>
|
@ -5,16 +5,25 @@
|
|||||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||||
<!-- Copyright (c) 2009 DragonSoft. All Rights Reserved -->
|
<!-- Copyright (c) 2009 DragonSoft. All Rights Reserved -->
|
||||||
|
|
||||||
<? $sidebaralign = $_REQUEST['align'];
|
<? $sidebarvisible = $_REQUEST['sb'];
|
||||||
if (empty($sidebaralign)) {
|
if (empty($sidebarvisible)) {
|
||||||
if (isset($_COOKIE['sidebaralign'])) {
|
if (isset($_COOKIE['gd_sidebar'])) {
|
||||||
$sidebaralign = $_COOKIE['sidebaralign'];
|
$sidebarvisible = $_COOKIE['gd_sidebar'];
|
||||||
} else {
|
} else {
|
||||||
$sidebaralign = "right";
|
$sidebarvisible = module::get_var("th_greydragon", "sidebar_visible", "");
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
setcookie("sidebaralign", $sidebaralign, 0);
|
// Sidebar position is kept for 360 days
|
||||||
|
setcookie("gd_sidebar", $sidebarvisible, time() + 31536000);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$sidebarallowed = module::get_var("th_greydragon", "sidebar_allowed", "");
|
||||||
|
|
||||||
|
if ($sidebarallowed == "") { $sidebarallowed = "any"; };
|
||||||
|
if ($sidebarvisible == "") { $sidebarvisible = "right"; };
|
||||||
|
if ($sidebarallowed == "none") { $sidebarvisible = "none"; }
|
||||||
|
if ($sidebarallowed == "right") { $sidebarvisible = "right"; }
|
||||||
|
if ($sidebarallowed == "left") { $sidebarvisible = "left"; }
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
@ -70,7 +79,9 @@
|
|||||||
<?= $header_text ?>
|
<?= $header_text ?>
|
||||||
<? else: ?>
|
<? else: ?>
|
||||||
<a id="g-logo" href="<?= item::root()->url() ?>" title="<?= t("go back to the Gallery home")->for_html_attr() ?>">
|
<a id="g-logo" href="<?= item::root()->url() ?>" title="<?= t("go back to the Gallery home")->for_html_attr() ?>">
|
||||||
<img alt="<?= t("Gallery logo: Your photos on your web site")->for_html_attr() ?>" src="<?= $theme->url("images/logo.png") ?>" />
|
<? $logo_path = module::get_var("th_greydragon", "logo_path", url::file("lib/images/logo.png")); ?>
|
||||||
|
<? // $theme->url("images/logo.png") ?>
|
||||||
|
<img alt="<?= t("Gallery logo: Your photos on your web site")->for_html_attr() ?>" src="<?= $logo_path ?>" />
|
||||||
</a>
|
</a>
|
||||||
<? endif ?>
|
<? endif ?>
|
||||||
|
|
||||||
@ -99,14 +110,22 @@
|
|||||||
</div>
|
</div>
|
||||||
<div id="g-main">
|
<div id="g-main">
|
||||||
<div id="g-main-in">
|
<div id="g-main-in">
|
||||||
|
<? if ($sidebarallowed == "any"): ?>
|
||||||
<ul id="g-viewformat">
|
<ul id="g-viewformat">
|
||||||
<? $iscurrent = ($sidebaralign == "left"); ?>
|
<? if (($sidebarallowed == "left") or ($sidebarallowed == "any")): ?>
|
||||||
<li><?= ($iscurrent) ? null : '<a title="Sidebar Left" href="' . $url . '?align=left">'; ?><span class="g-viewthumb-left <?= ($iscurrent)? "g-viewthumb-current" : null; ?>">Sidebar Left</span><?= ($iscurrent)? null : "</a>"; ?></li>
|
<? $iscurrent = ($sidebarvisible == "left"); ?>
|
||||||
<? $iscurrent = ($sidebaralign == "full"); ?>
|
<li><?= ($iscurrent) ? null : '<a title="Sidebar Left" href="' . $url . '?sb=left">'; ?><span class="g-viewthumb-left <?= ($iscurrent)? "g-viewthumb-current" : null; ?>">Sidebar Left</span><?= ($iscurrent)? null : "</a>"; ?></li>
|
||||||
<li><?= ($iscurrent) ? null : '<a title="No Sidebar" href="' . $url . '?align=full">'; ?><span class="g-viewthumb-full <?= ($iscurrent)? "g-viewthumb-current" : null; ?>">No Sidebar</span><?= ($iscurrent)? null : "</a>"; ?></li>
|
<? endif ?>
|
||||||
<? $iscurrent = ($sidebaralign == "right"); ?>
|
<? if ($sidebarallowed == "any"): ?>
|
||||||
<li><?= ($iscurrent) ? null : '<a title="Sidebar Right" href="' . $url . '?align=right">'; ?><span class="g-viewthumb-right <?= ($iscurrent)? "g-viewthumb-current" : null; ?>">Sidebar Right</span><?= ($iscurrent)? null : "</a>"; ?></li>
|
<? $iscurrent = ($sidebarvisible == "none"); ?>
|
||||||
|
<li><?= ($iscurrent) ? null : '<a title="No Sidebar" href="' . $url . '?sb=none">'; ?><span class="g-viewthumb-full <?= ($iscurrent)? "g-viewthumb-current" : null; ?>">No Sidebar</span><?= ($iscurrent)? null : "</a>"; ?></li>
|
||||||
|
<? endif ?>
|
||||||
|
<? if (($sidebarallowed == "right") or ($sidebarallowed == "any")): ?>
|
||||||
|
<? $iscurrent = ($sidebarvisible == "right"); ?>
|
||||||
|
<li><?= ($iscurrent) ? null : '<a title="Sidebar Right" href="' . $url . '?sb=right">'; ?><span class="g-viewthumb-right <?= ($iscurrent)? "g-viewthumb-current" : null; ?>">Sidebar Right</span><?= ($iscurrent)? null : "</a>"; ?></li>
|
||||||
|
<? endif ?>
|
||||||
</ul>
|
</ul>
|
||||||
|
<? endif ?>
|
||||||
|
|
||||||
<div id="g-view-menu" class="g-buttonset">
|
<div id="g-view-menu" class="g-buttonset">
|
||||||
<? if ($page_subtype == "album"):?>
|
<? if ($page_subtype == "album"):?>
|
||||||
@ -120,21 +139,21 @@
|
|||||||
<? endif ?>
|
<? endif ?>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<? if ($sidebaralign=="left"): ?>
|
<? if ($sidebarvisible=="left"): ?>
|
||||||
<?= '<div id="g-column-left">' ?>
|
<?= '<div id="g-column-left">' ?>
|
||||||
<? elseif ($sidebaralign=="full"): ?>
|
<? elseif ($sidebarvisible=="none"): ?>
|
||||||
<? else: ?>
|
<? else: ?>
|
||||||
<?= '<div id="g-column-right">' ?>
|
<?= '<div id="g-column-right">' ?>
|
||||||
<? endif ?>
|
<? endif ?>
|
||||||
|
|
||||||
<? if (($theme->page_subtype != "login") && ($sidebaralign != "full")): ?>
|
<? if (($theme->page_subtype != "login") && ($sidebarvisible != "none")): ?>
|
||||||
<?= new View("sidebar.html") ?>
|
<?= new View("sidebar.html") ?>
|
||||||
<? endif ?>
|
<? endif ?>
|
||||||
<?= ($sidebaralign != "full")? "</div>" : null ?>
|
<?= ($sidebarvisible != "none")? "</div>" : null ?>
|
||||||
|
|
||||||
<? if ($sidebaralign=="left"): ?>
|
<? if ($sidebarvisible == "left"): ?>
|
||||||
<?= '<div id="g-column-centerright">' ?>
|
<?= '<div id="g-column-centerright">' ?>
|
||||||
<? elseif ($sidebaralign=="full"): ?>
|
<? elseif ($sidebarvisible == "none"): ?>
|
||||||
<?= '<div id="g-column-centerfull">' ?>
|
<?= '<div id="g-column-centerfull">' ?>
|
||||||
<? else: ?>
|
<? else: ?>
|
||||||
<?= '<div id="g-column-centerleft">' ?>
|
<?= '<div id="g-column-centerleft">' ?>
|
||||||
@ -163,18 +182,17 @@
|
|||||||
</ul>
|
</ul>
|
||||||
<? endif ?>
|
<? endif ?>
|
||||||
<? $copyright = module::get_var("th_greydragon", "copyright"); ?>
|
<? $copyright = module::get_var("th_greydragon", "copyright"); ?>
|
||||||
<div id="g-footer-rightside"><?= ($copyright) ? $copyright : 'Copyright © 2009 All Rights Reserved'; ?><br /><br />
|
<div id="g-footer-rightside"><?= ($copyright) ? $copyright : null; ?><br /><br />
|
||||||
<? // <a href="http://validator.w3.org/check?uri=referer"><img src="http://www.w3.org/Icons/valid-xhtml10-blue" alt="Valid XHTML 1.0 Transitional" height="15" width="44" /></a> ?>
|
<? // <a href="http://validator.w3.org/check?uri=referer"><img src="http://www.w3.org/Icons/valid-xhtml10-blue" alt="Valid XHTML 1.0 Transitional" height="15" width="44" /></a> ?>
|
||||||
</div>
|
</div>
|
||||||
<?= $theme->user_menu() ?>
|
<?= $theme->user_menu() ?>
|
||||||
</div>
|
</div>
|
||||||
<?= $theme->page_bottom() ?>
|
<?= $theme->page_bottom() ?>
|
||||||
<!--start player-->
|
|
||||||
<? // <embed src="/music/collection.m3u" hidden="true" autostart="true" loop="true"></embed>
|
<? // <!--start player-->
|
||||||
|
// <embed src="/music/collection.m3u" hidden="true" autostart="true" loop="true"></embed>
|
||||||
// <noembed><bgsound src="/music/collection.m3u"></noembed>
|
// <noembed><bgsound src="/music/collection.m3u"></noembed>
|
||||||
?>
|
// <!--end player-->
|
||||||
<!--end player-->
|
|
||||||
<?
|
|
||||||
//<object type="application/x-shockwave-flash" data="http://photo.dragonsoft.us/music/xspf_player/xspf_player.swf?playlist_url=http://photo.dragonsoft.us/music/collection.xspf&autoplay=true&repeat_playlist=true&player_title=KICK&playlist_size=3" width="400" height="151">
|
//<object type="application/x-shockwave-flash" data="http://photo.dragonsoft.us/music/xspf_player/xspf_player.swf?playlist_url=http://photo.dragonsoft.us/music/collection.xspf&autoplay=true&repeat_playlist=true&player_title=KICK&playlist_size=3" width="400" height="151">
|
||||||
//<param name="movie" value="http://photo.dragonsoft.us/music/xspf_player/xspf_player.swf?playlist_url=http://photo.dragonsoft.us/music/collection.xspf&autoplay=true&repeat_playlist=true&player_title=KICK&playlist_size=3" />
|
//<param name="movie" value="http://photo.dragonsoft.us/music/xspf_player/xspf_player.swf?playlist_url=http://photo.dragonsoft.us/music/collection.xspf&autoplay=true&repeat_playlist=true&player_title=KICK&playlist_size=3" />
|
||||||
//</object>
|
//</object>
|
||||||
|
@ -7,8 +7,9 @@
|
|||||||
<h1><?= html::purify($item->title) ?></h1>
|
<h1><?= html::purify($item->title) ?></h1>
|
||||||
<div class="g-hideitem"><?= bb2html(html::purify($item->description), 1) ?></div>
|
<div class="g-hideitem"><?= bb2html(html::purify($item->description), 1) ?></div>
|
||||||
</div>
|
</div>
|
||||||
<?= $theme->paginator() ?>
|
<? if (module::get_var("th_greydragon", "photonav_top")): ?>
|
||||||
<? // = new View("pager_photo.html") ?>
|
<?= $theme->paginator() ?>
|
||||||
|
<? endif ?>
|
||||||
|
|
||||||
<div id="g-photo">
|
<div id="g-photo">
|
||||||
<?= $theme->resize_top($item) ?>
|
<?= $theme->resize_top($item) ?>
|
||||||
@ -22,7 +23,8 @@
|
|||||||
<?= $theme->resize_bottom($item) ?>
|
<?= $theme->resize_bottom($item) ?>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<?= $theme->paginator() ?>
|
<? if (module::get_var("th_greydragon", "photonav_bottom")): ?>
|
||||||
<?// = new View("pager_photo.html") ?>
|
<?= $theme->paginator() ?>
|
||||||
|
<? endif ?>
|
||||||
<?= $theme->photo_bottom() ?>
|
<?= $theme->photo_bottom() ?>
|
||||||
</div>
|
</div>
|
||||||
|
@ -4,7 +4,11 @@
|
|||||||
<h1><?= t("Search Results for \"%term\"", array("term" => $q)) ?> </h1>
|
<h1><?= t("Search Results for \"%term\"", array("term" => $q)) ?> </h1>
|
||||||
|
|
||||||
<? if (count($items)): ?>
|
<? if (count($items)): ?>
|
||||||
<?= $theme->pager() ?>
|
|
||||||
|
<? if (module::get_var("th_greydragon", "photonav_top")): ?>
|
||||||
|
<?= $theme->paginator() ?>
|
||||||
|
<? endif ?>
|
||||||
|
|
||||||
<ul id="g-album-grid">
|
<ul id="g-album-grid">
|
||||||
<? foreach ($items as $item): ?>
|
<? foreach ($items as $item): ?>
|
||||||
<? $item_class = "g-photo"; ?>
|
<? $item_class = "g-photo"; ?>
|
||||||
@ -19,7 +23,10 @@
|
|||||||
</li>
|
</li>
|
||||||
<? endforeach ?>
|
<? endforeach ?>
|
||||||
</ul>
|
</ul>
|
||||||
<?= $theme->pager() ?>
|
|
||||||
|
<? if (module::get_var("th_greydragon", "photonav_bottom")): ?>
|
||||||
|
<?= $theme->paginator() ?>
|
||||||
|
<? endif ?>
|
||||||
|
|
||||||
<? else: ?>
|
<? else: ?>
|
||||||
<p> </p>
|
<p> </p>
|
||||||
|
Reference in New Issue
Block a user