diff options
Diffstat (limited to 'themes/greydragon/views')
| -rw-r--r-- | themes/greydragon/views/album.html.php | 68 | ||||
| -rw-r--r-- | themes/greydragon/views/block.html.php | 29 | ||||
| -rw-r--r-- | themes/greydragon/views/calpage.html.php | 257 | ||||
| -rw-r--r-- | themes/greydragon/views/dynamic.html.php | 38 | ||||
| -rw-r--r-- | themes/greydragon/views/exif_sidebar.html.php | 18 | ||||
| -rw-r--r-- | themes/greydragon/views/info_block.html.php | 29 | ||||
| -rw-r--r-- | themes/greydragon/views/login_ajax.html.php | 10 | ||||
| -rw-r--r-- | themes/greydragon/views/movie.html.php | 38 | ||||
| -rw-r--r-- | themes/greydragon/views/no_sidebar.html.php | 19 | ||||
| -rw-r--r-- | themes/greydragon/views/page.html.php | 267 | ||||
| -rw-r--r-- | themes/greydragon/views/paginator.html.php | 216 | ||||
| -rw-r--r-- | themes/greydragon/views/photo.html.php | 129 | ||||
| -rw-r--r-- | themes/greydragon/views/rootpage.html.php | 59 | ||||
| -rw-r--r-- | themes/greydragon/views/rootpage.html.php_fix | 46 | ||||
| -rw-r--r-- | themes/greydragon/views/rss_block.html.php | 30 | ||||
| -rw-r--r-- | themes/greydragon/views/search.html.php | 35 | ||||
| -rw-r--r-- | themes/greydragon/views/sidebar.html.php | 27 | ||||
| -rw-r--r-- | themes/greydragon/views/user_profile.html.php | 44 |
18 files changed, 1359 insertions, 0 deletions
diff --git a/themes/greydragon/views/album.html.php b/themes/greydragon/views/album.html.php new file mode 100644 index 0000000..ee3da0e --- /dev/null +++ b/themes/greydragon/views/album.html.php @@ -0,0 +1,68 @@ +<?php defined("SYSPATH") or die("No direct script access.");
+/**
+ * Grey Dragon Theme - a custom theme for Gallery 3
+ * This theme was designed and built by Serguei Dosyukov, whose blog you will find at http://blog.dragonsoft.us
+ * Copyright (C) 2009-2014 Serguei Dosyukov
+ *
+ * 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.
+ */
+?>
+<div id="g-album-header">
+ <?= $theme->album_top() ?>
+ <h1><?= $theme->get_item_title($item, TRUE) ?></h1>
+</div>
+
+<?= $theme->add_paginator("top"); ?>
+
+<? if (($theme->album_descmode == "top") and ($item->description)): ?>
+ <div id="g-info"><div class="g-description"><?= $theme->bb2html(html::purify($item->description), 1); ?></div></div>
+<? endif; ?>
+
+<div class="g-album-grid-container">
+<ul id="g-album-grid">
+<?
+ if (count($children)):
+ $siblings = $item->children();
+ if (($theme->disablephotopage) && (count($siblings) > count($children))):
+ $j = 0;
+ foreach ($siblings as $i => $sibling):
+ if ($sibling->rand_key == $children[$j]->rand_key):
+ echo $theme->get_thumb_element($sibling, !$theme->hidecontextmenu);
+ if ($j + 1 < count($children)):
+ $j++;
+ endif;
+ else:
+ echo $theme->get_thumb_link($sibling);
+ endif;
+ endforeach;
+ else:
+ foreach ($children as $i => $child):
+ echo $theme->get_thumb_element($child, !$theme->hidecontextmenu);
+ endforeach;
+ endif;
+ else:
+ if ($user->admin || access::can("add", $item)):
+ $addurl = url::site("uploader/index/$item->id"); ?>
+ <li><?= t("There aren't any photos here yet! <a %attrs>Add some</a>.", array("attrs" => html::mark_clean("href=\"$addurl\" class=\"g-dialog-link\""))) ?></li>
+ <? else: ?>
+ <li><?= t("There aren't any photos here yet!") ?></li>
+ <? endif; ?>
+<? endif; ?>
+</ul>
+</div>
+
+<? if (($theme->album_descmode == "bottom") and ($item->description)): ?>
+ <div id="g-info"><div class="g-description"><?= $theme->bb2html(html::purify($item->description), 1) ?></div></div>
+<? endif; ?>
+<?= $theme->album_bottom() ?>
+
+<?= $theme->add_paginator("bottom"); ?>
diff --git a/themes/greydragon/views/block.html.php b/themes/greydragon/views/block.html.php new file mode 100644 index 0000000..9dc2d60 --- /dev/null +++ b/themes/greydragon/views/block.html.php @@ -0,0 +1,29 @@ +<?php defined("SYSPATH") or die("No direct script access.");
+/**
+ * Grey Dragon Theme - a custom theme for Gallery 3
+ * This theme was designed and built by Serguei Dosyukov, whose blog you will find at http://blog.dragonsoft.us
+ * Copyright (C) 2009-2014 Serguei Dosyukov
+ *
+ * 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.
+ */
+?>
+<? if ($anchor): ?>
+<a name="<?= $anchor ?>"></a>
+<? endif ?>
+<div id="<?= $css_id ?>" class="g-block">
+ <? if (isset($theme) and ($theme->is_blockheader_visible)): ?>
+ <h2><?= $title ?></h2>
+ <? endif ?>
+ <div class="g-block-content">
+ <?= $content ?>
+ </div>
+</div>
diff --git a/themes/greydragon/views/calpage.html.php b/themes/greydragon/views/calpage.html.php new file mode 100644 index 0000000..3bcd0df --- /dev/null +++ b/themes/greydragon/views/calpage.html.php @@ -0,0 +1,257 @@ +<?php defined("SYSPATH") or die("No direct script access."); +/** + * Grey Dragon Theme - a custom theme for Gallery 3 + * This theme was designed and built by Serguei Dosyukov, whose blog you will find at http://blog.dragonsoft.us + * Copyright (C) 2009-2014 Serguei Dosyukov + * + * 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. + */ +?> +<!DOCTYPE html > +<? $theme->load_sessioninfo(); ?> +<html <?= $theme->html_attributes() ?> xml:lang="en" lang="en" <?= ($theme->is_rtl)? "dir=rtl" : null; ?> > +<? + $item = $theme->item(); + if (($theme->enable_pagecache) and (isset($item))): + // Page will expire in 60 seconds + header('Expires: ' . gmdate('D, d M Y H:i:s', time() + 60).'GMT'); + header("Cache-Control: public"); + header("Cache-Control: post-check=3600, pre-check=43200", false); + header("Content-Type: text/html; charset=UTF-8"); + header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); + endif; +?> +<!-- <?= $theme->themename ?> v.<?= $theme->themeversion ?> (<?= $theme->colorpack ?> : <?= $theme->framepack ?>) - Copyright (c) 2009-2012 Serguei Dosyukov - All Rights Reserved --> +<head> +<meta http-equiv="X-UA-Compatible" content="IE=9"/> +<meta http-equiv="content-type" content="text/html; charset=UTF-8" /> +<? $theme->start_combining("script,css") ?> +<? if ($page_title): ?> +<? $_title = $page_title ?> +<? else: ?> +<? if ($theme->item()): ?> +<? $_title = $theme->get_item_title($theme->item()); ?> +<? elseif ($theme->tag()): ?> +<? $_title = t("Photos tagged with %tag_title", array("tag_title" => $theme->bb2html($theme->tag()->name, 2))) ?> +<? else: /* Not an item, not a tag, no page_title specified. Help! */ ?> +<? $_title = $theme->bb2html(item::root()->title, 2); ?> +<? endif ?> +<? endif ?> +<title><?= $_title ?></title> +<? if ($theme->disable_seosupport): ?> +<meta name="robots" content="noindex, nofollow, noarchive" /> +<meta name="googlebot" content="noindex, nofollow, noarchive, nosnippet, noodp, noimageindex, notranslate" /> +<meta name="slurp" content="noindex, nofollow, noarchive, nosnippet, noodp, noydir" /> +<meta name="msnbot" content="noindex, nofollow, noarchive, nosnippet, noodp" /> +<meta name="teoma" content="noindex, nofollow, noarchive" /> +<? endif; ?> +<!-- Internet Explorer 9 Meta tags : Start --> +<meta name="application-name" content="<?= $_title; ?>" /> +<meta name="msapplication-tooltip" content="<?= t("Start"); ?> <?= $_title; ?>" /> +<meta name="msapplication-starturl" content="<?= item::root()->url() ?>" /> +<? if ($theme->allow_root_page): ?> +<meta name="msapplication-task" content="name=<?= t("Gallery") ?>: <?= t("Root Page") ?>; action-uri=<?= item::root()->url(); ?><?= $theme->permalinks["root"]; ?>; icon-uri=favicon.ico" /> +<meta name="msapplication-task" content="name=<?= t("Gallery") ?>: <?= t("Root Album") ?>; action-uri=<?= item::root()->url(); ?><?= $theme->permalinks["enter"]; ?>; icon-uri=favicon.ico" /> +<? else: ?> +<meta name="msapplication-task" content="name=<?= t("Gallery") ?>: <?= t("Root Album") ?>; action-uri=<?= item::root()->url(); ?>; icon-uri=favicon.ico" /> +<? endif; ?> +<? if (identity::active_user()->admin): ?> +<meta name="msapplication-task-separator" content="gallery3-greydragon" /> +<meta name="msapplication-task" content="name=<?= t("Admin") ?>: <?= t("Dashboard") ?>; action-uri=<?= url::site("admin"); ?>; icon-uri=favicon.ico" /> +<? endif; ?> +<!-- Internet Explorer 9 Meta tags : End --> + +<link rel="shortcut icon" href="<?= $theme->favicon ?>" type="image/x-icon" /> +<? if ($theme->appletouchicon): ?> +<link rel="apple-touch-icon" href="<?= $theme->appletouchicon; ?>"/> +<? endif; ?> +<?= $theme->script("json2-min.js") ?> +<?= $theme->script("jquery.js") ?> +<?= $theme->script("jquery.form.js") ?> +<?= $theme->script("jquery-ui.js") ?> +<?= $theme->script("gallery.common.js") ?> +<? /* MSG_CANCEL is required by gallery.dialog.js */ ?> +<script type="text/javascript"> + var MSG_CANCEL = <?= t('Cancel')->for_js() ?>; +</script> +<?= $theme->script("gallery.ajax.js"); ?> +<?= $theme->script("gallery.dialog.js"); ?> + +<? /* These are page specific but they get combined */ ?> +<? if ($theme->page_subtype == "photo"): ?> +<?= $theme->script("jquery.scrollTo.js"); ?> +<? elseif ($theme->page_subtype == "movie"): ?> +<?= $theme->script("flowplayer.js") ?> +<? endif ?> + +<?= $theme->head() ?> + +<? // Theme specific CSS/JS goes last so that it can override module CSS/JS ?> +<?= $theme->theme_js_inject(); ?> +<?= $theme->theme_css_inject(); ?> +<?= $theme->get_combined("css"); // LOOKING FOR YOUR CSS? It's all been combined into the link ?> +<?= $theme->custom_css_inject(TRUE); ?> +<?= $theme->get_combined("script") // LOOKING FOR YOUR JAVASCRIPT? It's all been combined into the link ?> + +<? if ($theme->thumb_inpage): ?> +<style type="text/css"> + #g-column-bottom #g-thumbnav-block, #g-column-top #g-thumbnav-block { display: none; } +<? if (((!$user->guest) or ($theme->show_guest_menu)) and ($theme->mainmenu_position == "bar")): ?> + html { margin-top: 30px !important; } +<? endif; ?> +</style> +<? endif; ?> +</head> +<? if ($theme->item()): + $item = $theme->item(); + else: + $item = item::root(); + endif; ?> +<body <?= $theme->body_attributes() ?><?= ($theme->show_root_page)? ' id="g-rootpage"' : null; ?> <?= $theme->get_bodyclass(); ?>> +<?= $theme->page_top() ?> +<?= $theme->site_status() ?> +<? if (((!$user->guest) or ($theme->show_guest_menu)) and ($theme->mainmenu_position == "bar")): ?> + <div id="g-site-menu" class="g-<?= $theme->mainmenu_position; ?>"> + <?= $theme->site_menu($theme->item() ? "#g-item-id-{$theme->item()->id}" : "") ?> + </div> +<? endif; ?> +<div id="g-header"> + <?= $theme->header_top() ?> +<? if ($theme->viewmode != "mini"): ?> +<? if ($header_text = module::get_var("gallery", "header_text")): ?> +<span id="g-header-text"><?= $theme->bb2html($header_text, 1) ?></span> +<? else: ?> + <a id="g-logo" href="<?= item::root()->url() ?><?= ($theme->allow_root_page)? $theme->permalinks["root"] : null; ?>" 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->logopath ?>" /> + </a> +<? endif; ?> +<? endif; ?> +<? if (((!$user->guest) or ($theme->show_guest_menu)) and ($theme->mainmenu_position != "bar")): ?> + <div id="g-site-menu" class="g-<?= $theme->mainmenu_position; ?>"> + <?= $theme->site_menu($theme->item() ? "#g-item-id-{$theme->item()->id}" : "") ?> + </div> +<? endif ?> + + <?= $theme->messages() ?> +<?= $theme->header_bottom() ?> + +<? if ($theme->loginmenu_position == "header"): ?> + <?= $theme->user_menu() ?> +<? endif ?> +<? if (empty($parents)): ?> +<?= $theme->breadcrumb_menu($theme, null); ?> +<? else: ?> + <?= $theme->breadcrumb_menu($theme, $parents); ?> + <? endif; ?> +<?= $theme->custom_header(); ?> +</div> +<? if (($theme->page_subtype != "login") and ($theme->page_subtype != "reauthenticate") and ($theme->sidebarvisible == "top")): ?> +<div id="g-column-top"> + <?= new View("sidebar.html") ?> +</div> +<? endif; ?> +<div id="g-main"> + <div id="g-main-in"> + <? if (!$theme->show_root_page): ?> + <?= $theme->sidebar_menu($item->url()) ?> + <div id="g-view-menu" class="g-buttonset<?= ($theme->sidebarallowed!="any")? " g-buttonset-shift" : null; ?>"> + <? if ($page_subtype == "album"):?> + <?= $theme->album_menu() ?> + <? elseif ($page_subtype == "photo") : ?> + <?= $theme->photo_menu() ?> + <? elseif ($page_subtype == "movie") : ?> + <?= $theme->movie_menu() ?> + <? elseif ($page_subtype == "tag") : ?> + <?= $theme->tag_menu() ?> + <? endif ?> + </div> + <? endif; ?> + <? switch ($theme->sidebarvisible): + case "left": + echo '<div id="g-column-left">'; + $closediv = TRUE; + break; + case "none": + case "top": + case "bottom": + if (($theme->thumb_inpage) and ($page_subtype == "photo")): + echo '<div id="g-column-right">'; + $closediv = TRUE; + else: + $closediv = FALSE; + endif; + break; + default: + echo '<div id="g-column-right">'; + $closediv = TRUE; + break; + endswitch; ?> +<? if (($theme->page_subtype != "login") and ($theme->page_subtype != "reauthenticate")): ?> +<? if (($theme->sidebarvisible == "none") or ($theme->sidebarvisible == "bottom") or ($theme->sidebarvisible == "top")): ?> +<? if (($theme->thumb_inpage) and ($page_subtype == "photo")): ?> +<?= '<div class="g-toolbar"><h1> </h1></div>'; ?> +<?= $theme->get_block_html("thumbnav"); ?> +<? endif; ?> +<? else: ?> +<?= new View("sidebar.html") ?> +<? endif; ?> +<? endif ?> +<?= ($closediv)? "</div>" : null; ?> + +<? switch ($theme->sidebarvisible): + case "left": + echo '<div id="g-column-centerright">'; + break; + case "none": + case "top": + case "bottom": + if (($theme->thumb_inpage) and ($page_subtype == "photo")): + echo '<div id="g-column-centerleft">'; + else: + echo '<div id="g-column-centerfull">'; + endif; + break; + default: + echo '<div id="g-column-centerleft">'; + break; + endswitch; + + if ($theme->show_root_page): + echo new View("rootpage.html"); + else: + echo $content; + endif; ?> + </div> + </div> +</div> +<? if (($theme->page_subtype != "login") and ($theme->page_subtype != "reauthenticate") and ($theme->sidebarvisible == "bottom")): ?> +<div id="g-column-bottom"> + <?= new View("sidebar.html") ?> +</div> +<? endif; ?> +<div id="g-footer"> +<? if ($theme->viewmode != "mini"): ?> +<?= $theme->footer() ?> +<? if ($footer_text = module::get_var("gallery", "footer_text")): ?> +<span id="g-footer-text"><?= $theme->bb2html($footer_text, 1) ?></span> +<? endif ?> + <?= $theme->credits() ?> + <ul id="g-footer-rightside"><li><?= $theme->copyright ?></li></ul> +<? if ($theme->loginmenu_position == "default"): ?> + <?= $theme->user_menu() ?> +<? endif; ?> +<? endif; ?> +<?= $theme->custom_footer(); ?> +</div> +<?= $theme->page_bottom() ?> +</body> +</html> diff --git a/themes/greydragon/views/dynamic.html.php b/themes/greydragon/views/dynamic.html.php new file mode 100644 index 0000000..4e328ef --- /dev/null +++ b/themes/greydragon/views/dynamic.html.php @@ -0,0 +1,38 @@ +<?php defined("SYSPATH") or die("No direct script access.");
+/**
+ * Grey Dragon Theme - a custom theme for Gallery 3
+ * This theme was designed and built by Serguei Dosyukov, whose blog you will find at http://blog.dragonsoft.us
+ * Copyright (C) 2009-2014 Serguei Dosyukov
+ *
+ * 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.
+ */
+?>
+<? if (!isset($title)):
+ $title = "";
+ endif;
+?>
+<div id="g-album-header">
+ <div id="g-album-header-buttons">
+ <?= $theme->dynamic_top() ?>
+ </div>
+ <h1><?= html::clean($title) ?></h1>
+</div>
+<?= $theme->add_paginator("top"); ?>
+<div class="g-album-grid-container">
+<ul id="g-album-grid">
+ <? foreach ($children as $i => $child): ?>
+ <?= $theme->get_thumb_element($child) ?>
+ <? endforeach ?>
+</ul>
+</div>
+<?= $theme->dynamic_bottom() ?>
+<?= $theme->add_paginator("bottom"); ?>
diff --git a/themes/greydragon/views/exif_sidebar.html.php b/themes/greydragon/views/exif_sidebar.html.php new file mode 100644 index 0000000..5c84caf --- /dev/null +++ b/themes/greydragon/views/exif_sidebar.html.php @@ -0,0 +1,18 @@ +<?php defined("SYSPATH") or die("No direct script access."); +/** + * Grey Dragon Theme - a custom theme for Gallery 3 + * This theme was designed and built by Serguei Dosyukov, whose blog you will find at http://blog.dragonsoft.us + * Copyright (C) 2009-2014 Serguei Dosyukov + * + * 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. + */ +?> diff --git a/themes/greydragon/views/info_block.html.php b/themes/greydragon/views/info_block.html.php new file mode 100644 index 0000000..d323784 --- /dev/null +++ b/themes/greydragon/views/info_block.html.php @@ -0,0 +1,29 @@ +<?php defined("SYSPATH") or die("No direct script access.");
+/**
+ * Grey Dragon Theme - a custom theme for Gallery 3
+ * This theme was designed and built by Serguei Dosyukov, whose blog you will find at http://blog.dragonsoft.us
+ * Copyright (C) 2009-2014 Serguei Dosyukov
+ *
+ * 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.
+ */
+?>
+<? if (array_key_exists("description", $metadata)): ?>
+<? $metadata["description"]["value"] = $theme->bb2html($metadata["description"]["value"], 1) ?>
+<? endif; ?>
+
+<ul class="g-metadata">
+ <? foreach($metadata as $info): ?>
+ <li>
+ <strong class="caption"><?= $info["label"] ?></strong> <?= $info["value"] ?>
+ </li>
+ <? endforeach; ?>
+</ul>
diff --git a/themes/greydragon/views/login_ajax.html.php b/themes/greydragon/views/login_ajax.html.php new file mode 100644 index 0000000..d62f31e --- /dev/null +++ b/themes/greydragon/views/login_ajax.html.php @@ -0,0 +1,10 @@ +<div id="fam-login"> + <p id="fam-login-header" style="background-image: url('<?= $theme->logopath ?>')"></p> + <?= $form; ?> +</div> + +<script type="text/javascript"> + $("#fam-login").ready(function() { + $("#g-username").focus(); + }); +</script> diff --git a/themes/greydragon/views/movie.html.php b/themes/greydragon/views/movie.html.php new file mode 100644 index 0000000..92a6605 --- /dev/null +++ b/themes/greydragon/views/movie.html.php @@ -0,0 +1,38 @@ +<?php defined("SYSPATH") or die("No direct script access.");
+/**
+ * Grey Dragon Theme - a custom theme for Gallery 3
+ * This theme was designed and built by Serguei Dosyukov, whose blog you will find at http://blog.dragonsoft.us
+ * Copyright (C) 2009-2014 Serguei Dosyukov
+ *
+ * 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.
+ */
+?>
+<div id="g-item">
+ <?= $theme->photo_top() ?>
+
+ <div id="g-info">
+ <h1><?= $theme->get_item_title($item, TRUE); ?></h1>
+ <div class="g-hideitem"><?= $theme->bb2html(html::purify($item->description), 1) ?></div>
+ </div>
+
+ <?= $theme->add_paginator("top", FALSE); ?>
+
+ <div id="g-movie">
+ <?= $theme->resize_top($item) ?>
+ <?= $item->movie_img(array("class" => "g-movie", "id" => "g-item-id-{$item->id}")); ?>
+ <?= $theme->resize_bottom($item) ?>
+ </div>
+
+ <?= $theme->add_paginator("bottom", FALSE); ?>
+
+ <?= $theme->photo_bottom() ?>
+</div>
diff --git a/themes/greydragon/views/no_sidebar.html.php b/themes/greydragon/views/no_sidebar.html.php new file mode 100644 index 0000000..751d8a4 --- /dev/null +++ b/themes/greydragon/views/no_sidebar.html.php @@ -0,0 +1,19 @@ +<?php defined("SYSPATH") or die("No direct script access."); +/** + * Grey Dragon Theme - a custom theme for Gallery 3 + * This theme was designed and built by Serguei Dosyukov, whose blog you will find at http://blog.dragonsoft.us + * Copyright (C) 2009-2014 Serguei Dosyukov + * + * 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. + */ +?> +<!-- No blocks --> diff --git a/themes/greydragon/views/page.html.php b/themes/greydragon/views/page.html.php new file mode 100644 index 0000000..a8949cb --- /dev/null +++ b/themes/greydragon/views/page.html.php @@ -0,0 +1,267 @@ +<?php defined("SYSPATH") or die("No direct script access.");
+/**
+ * Grey Dragon Theme - a custom theme for Gallery 3
+ * This theme was designed and built by Serguei Dosyukov, whose blog you will find at http://blog.dragonsoft.us
+ * Copyright (C) 2009-2014 Serguei Dosyukov
+ *
+ * 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.
+ */
+?>
+<!DOCTYPE html >
+<? $theme->load_sessioninfo(); ?>
+<html <?= $theme->html_attributes() ?> xml:lang="en" lang="en" <?= ($theme->is_rtl)? "dir=rtl" : null; ?> >
+<?
+ $item = $theme->item();
+ if (($theme->enable_pagecache) and (isset($item))):
+ // Page will expire in 60 seconds
+ header('Expires: ' . gmdate('D, d M Y H:i:s', time() + 60).'GMT');
+ header("Cache-Control: public");
+ header("Cache-Control: post-check=3600, pre-check=43200", false);
+ header("Content-Type: text/html; charset=UTF-8");
+ header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
+ endif;
+?>
+<!-- <?= $theme->themename ?> v.<?= $theme->themeversion ?> (<?= $theme->colorpack ?> : <?= $theme->framepack ?>) - Copyright (c) 2009-2014 Serguei Dosyukov - All Rights Reserved -->
+<head>
+<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
+<? $theme->start_combining("script,css") ?>
+<? if ($page_title && $theme->page_subtype != "login"): ?>
+<? $_title = $page_title ?>
+<? else: ?>
+<? if ($theme->item()): ?>
+<? $_title = $theme->get_item_title($theme->item()); ?>
+<? elseif ($theme->tag()): ?>
+<? $_title = t("Photos tagged with %tag_title", array("tag_title" => $theme->bb2html($theme->tag()->name, 2))) ?>
+<? else: /* Not an item, not a tag, no page_title specified. Help! */ ?>
+<? $_title = $theme->bb2html(item::root()->title, 2); ?>
+<? endif ?>
+<? endif ?>
+<title><?= $_title ?></title>
+<meta name="title" content="<?= $_title ?>" />
+<? if ($theme->disable_seosupport): ?>
+<meta name="robots" content="noindex, nofollow, noarchive" />
+<meta name="googlebot" content="noindex, nofollow, noarchive, nosnippet, noodp, noimageindex, notranslate" />
+<meta name="slurp" content="noindex, nofollow, noarchive, nosnippet, noodp, noydir" />
+<meta name="teoma" content="noindex, nofollow, noarchive" />
+<? endif; ?>
+
+<!-- Internet Explorer 9 Meta tags : Start -->
+<meta name="application-name" content="<?= $_title; ?>" />
+<meta name="msapplication-tooltip" content="<?= t("Start"); ?> <?= $_title; ?>" />
+<meta name="msapplication-starturl" content="<?= item::root()->url() ?>" />
+<? if ($theme->allow_root_page): ?>
+<meta name="msapplication-task" content="name=<?= t("Gallery") ?>: <?= t("Root Page") ?>; action-uri=<?= item::root()->url(); ?><?= $theme->permalinks["root"]; ?>; icon-uri=favicon.ico" />
+<meta name="msapplication-task" content="name=<?= t("Gallery") ?>: <?= t("Root Album") ?>; action-uri=<?= item::root()->url(); ?><?= $theme->permalinks["enter"]; ?>; icon-uri=favicon.ico" />
+<? else: ?>
+<meta name="msapplication-task" content="name=<?= t("Gallery") ?>: <?= t("Root Album") ?>; action-uri=<?= item::root()->url(); ?>; icon-uri=favicon.ico" />
+<? endif; ?>
+<? if (identity::active_user()->admin): ?>
+<meta name="msapplication-task-separator" content="gallery3-greydragon" />
+<meta name="msapplication-task" content="name=<?= t("Admin") ?>: <?= t("Dashboard") ?>; action-uri=<?= url::site("admin"); ?>; icon-uri=favicon.ico" />
+<? endif; ?>
+<!-- Internet Explorer 9 Meta tags : End -->
+<link rel="shortcut icon" href="<?= $theme->favicon ?>" type="image/x-icon" />
+<? if ($theme->appletouchicon): ?>
+<link rel="apple-touch-icon" href="<?= $theme->appletouchicon; ?>"/>
+<? endif; ?>
+
+<?= $theme->script("jquery.min.js"); ?>
+<?= $theme->script("jquery.json.min.js"); ?>
+<?= $theme->script("jquery.form.custom.js"); ?>
+<?= $theme->script("jquery-ui.min.js"); ?>
+
+<?= $theme->script("gallery.common.js") ?>
+<? /* MSG_CANCEL is required by gallery.dialog.js */ ?>
+<script type="text/javascript">
+ var MSG_CANCEL = <?= t('Cancel')->for_js() ?>;
+</script>
+
+<?= $theme->script("gallery.ajax.custom.js") ?>
+<?= $theme->script("gallery.dialog.custom.js"); ?>
+
+<? /* These are page specific but they get combined */ ?>
+<? if ($theme->page_subtype == "photo"): ?>
+<?= $theme->script("jquery.scrollTo.js"); ?>
+<? elseif ($theme->page_subtype == "movie"): ?>
+<?= $theme->script("flowplayer.js") ?>
+<? endif ?>
+
+<?= $theme->head() ?>
+
+<? // Theme specific CSS/JS goes last so that it can override module CSS/JS ?>
+<?= $theme->theme_js_inject(); ?>
+<?= $theme->theme_css_inject(); ?>
+<?= $theme->get_combined("css"); // LOOKING FOR YOUR CSS? It's all been combined into the link ?>
+<?= $theme->custom_css_inject(TRUE); ?>
+<?= $theme->get_combined("script") // LOOKING FOR YOUR JAVASCRIPT? It's all been combined into the link ?>
+
+<? if ($theme->thumb_inpage): ?>
+<style type="text/css">
+ #g-column-bottom #g-thumbnav-block, #g-column-top #g-thumbnav-block { display: none; }
+<? if (((!$user->guest) or ($theme->show_guest_menu)) and ($theme->mainmenu_position == "bar")): ?>
+ html { margin-top: 30px !important; }
+<? endif; ?>
+</style>
+<? endif; ?>
+</head>
+<? if ($theme->item()):
+ $item = $theme->item();
+ else:
+ $item = item::root();
+ endif; ?>
+<? if ($theme->page_subtype != "login"): ?>
+<body>
+<? endif; ?>
+<? if ($theme->page_subtype != "login"): ?>
+<body <?= $theme->body_attributes() ?><?= ($theme->show_root_page)? ' id="g-rootpage"' : null; ?> <?= $theme->get_bodyclass(); ?>>
+<?= $theme->page_top() ?>
+<?= $theme->site_status() ?>
+<? if (((!$user->guest) or ($theme->show_guest_menu)) and ($theme->mainmenu_position == "bar")): ?>
+ <div id="g-site-menu" class="g-<?= $theme->mainmenu_position; ?>">
+ <?= $theme->site_menu($theme->item() ? "#g-item-id-{$theme->item()->id}" : "") ?>
+ </div>
+<? endif; ?>
+<div id="g-header">
+<?= $theme->header_top() ?>
+<? if ($theme->viewmode != "mini"): ?>
+<? if ($header_text = module::get_var("gallery", "header_text")): ?>
+<span id="g-header-text"><?= $theme->bb2html($header_text, 1) ?></span>
+<? else: ?>
+ <a id="g-logo" href="<?= item::root()->url() ?><?= ($theme->allow_root_page)? $theme->permalinks["root"] : null; ?>" 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->logopath ?>" />
+ </a>
+<? endif; ?>
+<? endif; ?>
+<? if (((!$user->guest) or ($theme->show_guest_menu)) and ($theme->mainmenu_position != "bar")): ?>
+ <div id="g-site-menu" class="g-<?= $theme->mainmenu_position; ?>">
+ <?= $theme->site_menu($theme->item() ? "#g-item-id-{$theme->item()->id}" : "") ?>
+ </div>
+<? endif ?>
+
+<?= $theme->messages() ?>
+<?= $theme->header_bottom() ?>
+
+<? if ($theme->loginmenu_position == "header"): ?>
+<?= $theme->user_menu() ?>
+<? endif; ?>
+<? if (empty($breadcrumbs)): ?>
+<?= $theme->breadcrumb_menu(null); ?>
+<? else: ?>
+<?= $theme->breadcrumb_menu($breadcrumbs); ?>
+<? endif; ?>
+<?= $theme->custom_header(); ?>
+</div>
+<? if (($theme->page_subtype != "login") and ($theme->page_subtype != "reauthenticate") and ($theme->sidebarvisible == "top")): ?>
+<div id="g-column-top">
+ <?= new View("sidebar.html") ?>
+</div>
+<? endif; ?>
+<div id="g-main">
+ <div id="g-main-in">
+<? if (!$theme->show_root_page): ?>
+ <?= $theme->sidebar_menu($item->url()) ?>
+ <div id="g-view-menu" class="g-buttonset<?= ($theme->sidebarallowed != "any")? " g-buttonset-shift" : null; ?>">
+<? if ($page_subtype == "album"): ?>
+ <?= $theme->album_menu() ?>
+<? elseif ($page_subtype == "photo") : ?>
+ <?= $theme->photo_menu() ?>
+<? elseif ($page_subtype == "movie") : ?>
+ <?= $theme->movie_menu() ?>
+<? elseif ($page_subtype == "tag") : ?>
+ <?= $theme->tag_menu() ?>
+<? endif ?>
+ </div>
+<? endif; ?>
+<? switch ($theme->sidebarvisible):
+ case "left":
+ echo '<div id="g-column-left">';
+ $closediv = TRUE;
+ break;
+ case "none":
+ case "top":
+ case "bottom":
+ if (($theme->thumb_inpage) and ($page_subtype == "photo")):
+ echo '<div id="g-column-right">';
+ $closediv = TRUE;
+ else:
+ $closediv = FALSE;
+ endif;
+ break;
+ default:
+ echo '<div id="g-column-right">';
+ $closediv = TRUE;
+ break;
+ endswitch; ?>
+<? if (($theme->page_subtype != "login") && ($theme->page_subtype != "reauthenticate")): ?>
+<? if (($theme->sidebarvisible == "none") || ($theme->sidebarvisible == "bottom") || ($theme->sidebarvisible == "top")): ?>
+<? if (($theme->thumb_inpage) and ($page_subtype == "photo")): ?>
+<?= '<div class="g-toolbar"><h1> </h1></div>'; ?>
+<?= $theme->get_block_html("thumbnav"); ?>
+<? endif; ?>
+<? else: ?>
+<?= new View("sidebar.html") ?>
+<? endif; ?>
+<? endif ?>
+<?= ($closediv)? "</div>" : null; ?>
+
+<? switch ($theme->sidebarvisible):
+ case "left":
+ echo '<div id="g-column-centerright">';
+ break;
+ case "none":
+ case "top":
+ case "bottom":
+ if (($theme->thumb_inpage) and ($page_subtype == "photo")):
+ echo '<div id="g-column-centerleft">';
+ else:
+ echo '<div id="g-column-centerfull">';
+ endif;
+ break;
+ default:
+ echo '<div id="g-column-centerleft">';
+ break;
+ endswitch;
+
+ if ($theme->show_root_page):
+ echo new View("rootpage.html");
+ else:
+ echo $content;
+ endif; ?>
+ </div>
+ </div>
+</div>
+<? if (($theme->page_subtype != "login") and ($theme->page_subtype != "reauthenticate") and ($theme->sidebarvisible == "bottom")): ?>
+<div id="g-column-bottom">
+ <?= new View("sidebar.html") ?>
+</div>
+<? endif; ?>
+<div id="g-footer">
+<? if ($theme->viewmode != "mini"): ?>
+<?= $theme->footer() ?>
+<? if ($footer_text = module::get_var("gallery", "footer_text")): ?>
+<span id="g-footer-text"><?= $theme->bb2html($footer_text, 1) ?></span>
+<? endif ?>
+ <?= $theme->credits() ?>
+ <ul id="g-footer-rightside"><li><?= $theme->copyright ?></li></ul>
+<? if ($theme->loginmenu_position == "default"): ?>
+ <?= $theme->user_menu() ?>
+<? endif; ?>
+<? endif; ?>
+<?= $theme->custom_footer(); ?>
+</div>
+<?= $theme->page_bottom() ?>
+<? else:
+ echo $content;
+ endif;
+?>
+</body>
+</html>
diff --git a/themes/greydragon/views/paginator.html.php b/themes/greydragon/views/paginator.html.php new file mode 100644 index 0000000..912a537 --- /dev/null +++ b/themes/greydragon/views/paginator.html.php @@ -0,0 +1,216 @@ +<?php defined("SYSPATH") or die("No direct script access."); +/** + * Grey Dragon Theme - a custom theme for Gallery 3 + * This theme was designed and built by Serguei Dosyukov, whose blog you will find at http://blog.dragonsoft.us + * Copyright (C) 2009-2014 Serguei Dosyukov + * + * 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. + */ +?> +<? +// This is a generic paginator for album, photo and movie pages. Depending on the page type, +// there are different sets of variables available. With this data, you can make a paginator +// that lets you say "You're viewing photo 5 of 35", or "You're viewing photos 10 - 18 of 37" +// for album views. +// +// Available variables for all page types: +// $page_type - "collection", "item", or "other" +// $page_subtype - "album", "movie", "photo", "tag", etc. +// $previous_page_url - the url to the previous page, if there is one +// $next_page_url - the url to the next page, if there is one +// $total - the total number of photos in this album +// +// Available for the "collection" page types: +// $page - what page number we're on +// $max_pages - the maximum page number +// $page_size - the page size +// $first_page_url - the url to the first page, or null if we're on the first page +// $last_page_url - the url to the last page, or null if we're on the last page +// $first_visible_position - the position number of the first visible photo on this page +// $last_visible_position - the position number of the last visible photo on this page +// +// Available for "item" page types: +// $position - the position number of this photo +// +?> + +<? + $_pagelist = array(); + + // dynamic albums support - tag_albums module + if (isset($theme->dynamic_siblings)): + $current_page = $position; + $i = 1; + $total_pages = count($theme->dynamic_siblings); + foreach ($theme->dynamic_siblings as $one_sibling): + if ($page_type == "item"): + $_pagelist[$i] = url::site("tag_albums/show/" . $one_sibling->id . "/" . $tag_id . "/" . $album_id . "/" . urlencode($one_sibling->name)); + endif; + $i++; + endforeach; + else: + switch ($page_type): + case "collection": + if (isset($item)): + $parent = $item->parent(); + endif; + $current_page = $page; + $total_pages = $max_pages; + // Prepare page url list + for ($i = 1; $i <= $total_pages; $i++): + $_pagelist[$i] = url::site(url::merge(array("page" => $i))); + endfor; + break; + case "item": + if (isset($first_page_url)): // Good item collection + if (isset($item)): + $parent = $item->parent(); + endif; + + if (isset($position)): + $current_page = $position; + else: + $current_page = 1; + endif; + + $total_pages = $total; + if (isset($parent)): + $siblings = $parent->children(); + for ($i = 1; $i <= $total; $i++): + $sibling = $siblings[$i-1]; + if (method_exists($sibling, 'url')): + $_pagelist[$i] = $sibling->url(); + endif; + endfor; + endif; + else: // "Bad" item collection - photo from tag based collection + $total_pages = 1; + $current_page = 1; + endif; + break; + + default: + $current_page = 1; + $total_pages = 1; + $_pagelist[1] = url::site(); + break; + endswitch; + endif; + + if ($total_pages <= 1): + $pagination_msg = " "; + else: + $pagination_msg = t("Page:") . ' '; + if ($total_pages < 13): + for ($i = 1; $i <= $total_pages; $i++): + if ($i == $current_page): + $pagination_msg .= '<span>' . t($i) . '</span>'; + else: + $pagination_msg .= '<span><a href="' . $_pagelist[$i] . '" title="' . t("Page") . ' ' . t($i) . '">' . t($i) . '</a></span>'; + endif; + if ($i < $total_pages): + $pagination_msg .= '·'; + endif; + endfor; + elseif ($current_page < 9): + for ($i = 1; $i <= 10; $i++): + if ($i == $current_page): + $pagination_msg .= '<span>' . t($i) . '</span>'; + else: + $pagination_msg .= '<span><a href="' . $_pagelist[$i] . '" title="' . t("Page") . ' ' . t($i) . '">' . t($i) . '</a></span>'; + endif; + if ($i < 10): + $pagination_msg .= '·'; + endif; + endfor; + + $pagination_msg .= '…'; + $pagination_msg .= '<span><a href="' . $_pagelist[$total_pages - 1] . '" title="' . t("Page") . ' ' . t($total_pages - 1) . '">' . t($total_pages - 1) . '</a></span>'; + $pagination_msg .= '·'; + $pagination_msg .= '<span><a href="' . $_pagelist[$total_pages] . '" title="' . t("Page") . ' ' . t($total_pages) . '">' . t($total_pages) . '</a></span>'; + + elseif ($current_page > $total_pages - 8): + $pagination_msg .= '<span><a href="' . $_pagelist[1] . '" title="' . t("Page") . ' ' . t(1) . '">' . t(1) . '</a></span>'; + $pagination_msg .= '·'; + $pagination_msg .= '<span><a href="' . $_pagelist[2] . '" title="' . t("Page") . ' ' . t(2) . '">' . t(2) . '</a></span>'; + $pagination_msg .= '…'; + + for ($i = $total_pages - 9; $i <= $total_pages; $i++): + if ($i == $current_page): + $pagination_msg .= '<span>' . t($i) . '</span>'; + else: + $pagination_msg .= '<span><a href="' . $_pagelist[$i] . '" title="' . t("Page") . ' ' . t($i) . '">' . t($i) . '</a></span>'; + endif; + if ($i < $total_pages): + $pagination_msg .= '·'; + endif; + endfor; + + else: + $pagination_msg .= '<span><a href="' . $_pagelist[1] . '" title="' . t("Page") . ' ' . t(1) . '">' . t(1) . '</a></span>'; + $pagination_msg .= '·'; + $pagination_msg .= '<span><a href="' . $_pagelist[2] . '" title="' . t("Page") . ' ' . t(2) . '">' . t(2) . '</a></span>'; + $pagination_msg .= '…'; + + for ($i = $current_page - 5; $i <= $current_page + 5; $i++): + if ($i == $current_page): + $pagination_msg .= '<span>' . t($i) . '</span>'; + else: + $pagination_msg .= '<span><a href="' . $_pagelist[$i] . '" title="' . t("Page") . ' ' . t($i) . '">' . t($i) . '</a></span>'; + endif; + if ($i < $current_page + 5): + $pagination_msg .= '·'; + endif; + endfor; + + $pagination_msg .= '…'; + $pagination_msg .= '<span><a href="' . $_pagelist[$total_pages - 1] . '" title="' . t("Page") . ' ' . t($total_pages - 1) . '">' . t($total_pages - 1) . '</a></span>'; + $pagination_msg .= '·'; + $pagination_msg .= '<span><a href="' . $_pagelist[$total_pages] . '" title="' . t("Page") . ' ' . t($total_pages) . '">' . t($total_pages) . '</a></span>'; + endif; + endif; +?> +<ul class="g-paginator"> + <li class="g-pagination"><?= $pagination_msg ?></li> + <li class="g-navigation"> + <? if ($current_page > 1): ?> + <a title="<?= t("first") ?>" id="g-navi-first" href="<?= $_pagelist[1] ?>"><span class="ui-icon ui-icon-first"> </span></a> + <? else: ?> + <span class="ui-icon ui-icon-first-d"> </span> + <? endif ?> + + <? if (isset($previous_page_url)): ?> + <a title="<?= t("previous") ?>" id="g-navi-prev" href="<?= $previous_page_url ?>"><span class="ui-icon ui-icon-prev"> </span></a> + <? else: ?> + <span class="ui-icon ui-icon-prev-d"> </span> + <? endif ?> + + <? if (count($theme->breadcrumbs) > 1): ?> + <? end($theme->breadcrumbs); ?> + <a title="<?= t("up") ?>" id="g-navi-parent" href="<?= prev($theme->breadcrumbs)->url; ?>"><span class="ui-icon ui-icon-parent"> </span></a> + <? else: ?> + <span class="ui-icon ui-icon-parent-d"> </span> + <? endif ?> + + <? if (isset($next_page_url)): ?> + <a title="<?= t("next") ?>" class="ui-right" id="g-navi-next" href="<?= $next_page_url ?>"><span class="ui-icon ui-icon-next"> </span></a> + <? else: ?> + <span class="ui-icon ui-icon-next-d"> </span> + <? endif ?> + + <? if ($current_page < $total_pages): ?> + <a title="<?= t("last") ?>" class="ui-right" id="g-navi-last" href="<?= $_pagelist[$total_pages] ?>"><span class="ui-icon ui-icon-last"> </span></a> + <? else: ?> + <span class="ui-icon ui-icon-last-d"> </span> + <? endif ?> + </li> +</ul>
\ No newline at end of file diff --git a/themes/greydragon/views/photo.html.php b/themes/greydragon/views/photo.html.php new file mode 100644 index 0000000..1d2354e --- /dev/null +++ b/themes/greydragon/views/photo.html.php @@ -0,0 +1,129 @@ +<?php defined("SYSPATH") or die("No direct script access.");
+/**
+ * Grey Dragon Theme - a custom theme for Gallery 3
+ * This theme was designed and built by Serguei Dosyukov, whose blog you will find at http://blog.dragonsoft.us
+ * Copyright (C) 2009-2014 Serguei Dosyukov
+ *
+ * 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.
+ */
+?>
+<?
+ if ($theme->desc_allowbbcode):
+ $_description = $theme->bb2html($item->description, 1);
+ else:
+ $_description = nl2br(html::purify($item->description));
+ endif;
+
+ if ($theme->is_photometa_visible):
+ $_description .= '<ul class="g-metadata">' . $theme->thumb_info($item) . '</ul>';
+ endif;
+
+ switch ($theme->photo_popupbox):
+ case "preview":
+ $include_list = FALSE;
+ $include_single = TRUE;
+ break;
+ case "none":
+ $include_list = FALSE;
+ $include_single = FALSE;
+ break;
+ default:
+ $include_list = TRUE;
+ $include_single = TRUE;
+ break;
+ endswitch;
+?>
+
+<div id="g-item">
+ <? $_title = $theme->get_item_title($item, TRUE); ?>
+ <div id="g-info">
+ <h1><?= $_title ?></h1>
+ </div>
+ <?= $theme->add_paginator("top", FALSE); ?>
+ <?= $theme->photo_top() ?>
+ <? if (($theme->photo_descmode == "top") and ($_description)): ?>
+ <div id="g-info"><div class="g-description"><?= $_description ?></div></div>
+ <? endif; ?>
+ <div id="g-photo">
+ <?= $theme->resize_top($item) ?>
+ <? $_resizewidth = $item->resize_width;
+ if (isset($theme->dynamic_siblings)) {
+ $siblings = $theme->dynamic_siblings;
+ } else {
+ $siblings = $item->parent()->children();
+ }
+ ?>
+ <div class="g-resize" style="margin-left: -<?= intval($_resizewidth / 2); ?>px; ">
+ <? $script = "<script type=\"text/javascript\">\n";
+ $script .= "$(document).ready(function() {\n";
+ $script .= " if (document.images) {\n";
+ for ($i = 0; ($i <= count($siblings) - 1); $i++):
+ if ($siblings[$i]->rand_key == $item->rand_key): ?>
+ <a style="<?= ($siblings[$i]->rand_key == $item->rand_key)? "display: static;" : "display: none;"; ?>" title="<?= $theme->get_item_title($item); ?>" <?= ($include_single)? "class=\"g-sb-preview\"" : "target=_blank;"; ?> <?= ($include_list)? "rel=\"g-preview\"" : null; ?> href="<?= (access::can("view_full", $item))? $item->file_url() : $item->resize_url(); ?>">
+ <?= $item->resize_img(array("id" => "g-item-id-{$item->id}", "class" => "g-resize", "alt" => $_title)) ?>
+ </a>
+ <? if (($i < count($siblings) - 1) && (!$siblings[$i+1]->is_album())):
+ $script .= " var image_preload_n = new Image();\n image_preload_n.src = \"" . $siblings[$i+1]->resize_url() . "\";\n";
+ endif;
+ if (($i > 0) && (!$siblings[$i-1]->is_album())):
+ $script .= " var image_preload_p = new Image();\n image_preload_p.src = \"" . $siblings[$i-1]->resize_url() . "\";\n";
+ endif;
+ else:
+ if ($include_list): ?>
+ <? if (!$siblings[$i]->is_album()): ?>
+ <a title="<?= $theme->get_item_title($siblings[$i]); ?>" class="g-sb-preview g-hide" rel="g-preview" href="<?= (access::can("view_full", $siblings[$i]))? $siblings[$i]->file_url() : $siblings[$i]->resize_url(); ?>"> </a>
+ <? endif; ?>
+ <? endif; ?>
+ <? endif; ?>
+ <? endfor; ?>
+ <? $script .= " }\n});\n</script>\n"; ?>
+ <? $_align = "";
+ $_more = FALSE;
+ if ($_description):
+ switch ($theme->photo_descmode):
+ case "overlay_top":
+ $_align = "g-align-top";
+ $_more = TRUE;
+ break;
+ case "overlay_bottom":
+ $_align = "g-align-bottom";
+ $_more = TRUE;
+ break;
+ case "overlay_top_s":
+ $_align = "g-align-top g-align-static";
+ break;
+ case "overlay_bottom_s":
+ $_align = "g-align-bottom g-align-static";
+ break;
+ default:
+ break;
+ endswitch;
+ endif; ?>
+ <? if ($_align): ?>
+ <? if ($_more): ?>
+ <span class="g-more <?= $_align ?>"><?= t("More") ?></span>
+ <? endif ?>
+ <div class="g-description <?= $_align; ?>" style="width: <?= $_resizewidth - 20; ?>px;" >
+ <strong><?= $_title ?></strong>
+ <?= $_description ?>
+ </div>
+ <? endif ?>
+ </div>
+ <?= $theme->resize_bottom($item) ?>
+ </div>
+ <? if (($theme->photo_descmode == "bottom") and ($_description)): ?>
+ <div id="g-info"><div class="g-description"><?= $_description ?></div></div>
+ <? endif; ?>
+ <?= $theme->add_paginator("bottom", FALSE); ?>
+ <?= $theme->photo_bottom() ?>
+</div>
+<?= $script ?>
\ No newline at end of file diff --git a/themes/greydragon/views/rootpage.html.php b/themes/greydragon/views/rootpage.html.php new file mode 100644 index 0000000..c474ac7 --- /dev/null +++ b/themes/greydragon/views/rootpage.html.php @@ -0,0 +1,59 @@ +<?php defined("SYSPATH") or die("No direct script access.");
+/**
+ * Grey Dragon Theme - a custom theme for Gallery 3
+ * This theme was designed and built by Serguei Dosyukov, whose blog you will find at http://blog.dragonsoft.us
+ * Copyright (C) 2009-2014 Serguei Dosyukov
+ *
+ * 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.
+ */
+?>
+<?
+ $link_url = item::root()->url();
+ if ($theme->allow_root_page):
+ $link_url .= $theme->permalinks["enter"];
+ endif;
+ if ($theme->show_root_desc):
+ if ($theme->root_description):
+ $root_text = $theme->root_description;
+ elseif (isset($item)):
+ $root_text = $item->description;
+ endif;
+ if ($root_text):
+ ?><div id="g-rootpage-quote"><?= $theme->bb2html($root_text, 1); ?></div><?
+ endif;
+ endif;
+
+ $slideshow_list = $theme->get_slideshow_list();
+ $first = TRUE;
+?>
+<div id="g-rootpage-roll"<?= ($root_text)? null : ' class="g-full"'; ?>>
+ <span><a href="<?= $link_url ?>"><?= t("Click to Enter") ?></a></span>
+ <div id="g-rootpage-slideshow">
+ <? foreach ($slideshow_list as $entry): ?>
+ <? $attr = $entry["@attributes"]; ?>
+ <div class="slider-item" style="width: <?= $attr['width']; ?>px; height: <?= $attr["height"]; ?>px; display: <?= ($first)? "block" : "none"; ?>; position: absolute; z-index: 10; opacity: <?= ($first)? "1" : "0"; ?>;">
+ <a href="<?= $link_url; ?>"><img width="<?= $attr["width"]; ?>" height="<?= $attr["height"]; ?>" alt="" src="<?= $attr["url"]; ?>" /></a>
+ </div>
+ <? $first = FALSE; ?>
+ <? endforeach ?>
+ </div>
+</div>
+<? if (count($slideshow_list) > 0): ?>
+<script type="text/javascript">
+ $(document).ready(function() {
+ $('#g-rootpage-slideshow').cycle({
+ fx: '<?= $theme->root_cyclemode; ?>'
+ , timeout: <?= $theme->root_delay * 1000; ?>
+ });
+ });
+</script>
+<? endif; ?>
\ No newline at end of file diff --git a/themes/greydragon/views/rootpage.html.php_fix b/themes/greydragon/views/rootpage.html.php_fix new file mode 100644 index 0000000..4d082a5 --- /dev/null +++ b/themes/greydragon/views/rootpage.html.php_fix @@ -0,0 +1,46 @@ +<?php defined("SYSPATH") or die("No direct script access.");
+/**
+ * Grey Dragon Theme - a custom theme for Gallery 3
+ * This theme was designed and built by Serguei Dosyukov, whose blog you will find at http://blog.dragonsoft.us
+ * Copyright (C) 2009-2014 Serguei Dosyukov
+ *
+ * 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.
+ */
+?>
+<?
+ $link_url = item::root()->url();
+ if ($theme->allow_root_page):
+ $link_url .= $theme->permalinks["enter"];
+ endif;
+ if ($theme->show_root_desc):
+ if ($theme->root_description):
+ $root_text = $theme->root_description;
+ elseif (isset($item)):
+ $root_text = $item->description;
+ endif;
+ if ($root_text):
+ ?><div id="g-rootpage-quote"><?= $theme->bb2html($root_text, 1); ?></div><?
+ endif;
+ endif;
+?>
+<div id="g-rootpage-roll"<?= ($root_text)? null : ' class="g-full"'; ?>>
+<object type="application/x-shockwave-flash" data="<?= url::file("modules/imageblockex/player/minislideshow.swf"); ?>" width="100%" height="100%">
+<param name="movie" value="<?= url::file("modules/imageblockex/player/minislideshow.swf"); ?>" />
+<param name="FlashVars" value="xmlUrl=<?= $theme->root_feed; ?>&delay=<?= $theme->root_delay; ?>&showControls=false&altLink=<?= $link_url ?>&showDropShadow=true&useResizes=true&useFull=true&showLoader=false" />
+<param name="bgcolor" value="#1c242e" />
+<param name="wmode" value="transparent" />
+<param name="menu" value="false" />
+<param name="quality" value="high" />
+</object>
+<div id="g-rootpage-link" onclick="javascript:location='<?= $link_url ?>'" ></div>
+<span><a href="<?= $link_url ?>"><?= t("Click to Enter") ?></a></span>
+</div>
diff --git a/themes/greydragon/views/rss_block.html.php b/themes/greydragon/views/rss_block.html.php new file mode 100644 index 0000000..85f3111 --- /dev/null +++ b/themes/greydragon/views/rss_block.html.php @@ -0,0 +1,30 @@ +<?php defined("SYSPATH") or die("No direct script access."); +/** + * Grey Dragon Theme - a custom theme for Gallery 3 + * This theme was designed and built by Serguei Dosyukov, whose blog you will find at http://blog.dragonsoft.us + * Copyright (C) 2009-2014 Serguei Dosyukov + * + * 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. + */ +?> +<ul id="g-feeds"> +<? foreach($feeds as $url => $title): ?> + <li style="clear: both;"> + <span class="ui-icon-left"> + <a href="<?= rss::url($url) ?>"> + <span class="ui-icon ui-icon-signal-diag"> </span> + <?= html::purify($title) ?> + </a> + </span> + </li> +<? endforeach ?> +</ul> diff --git a/themes/greydragon/views/search.html.php b/themes/greydragon/views/search.html.php new file mode 100644 index 0000000..3d82379 --- /dev/null +++ b/themes/greydragon/views/search.html.php @@ -0,0 +1,35 @@ +<?php defined("SYSPATH") or die("No direct script access."); +/** + * Grey Dragon Theme - a custom theme for Gallery 3 + * This theme was designed and built by Serguei Dosyukov, whose blog you will find at http://blog.dragonsoft.us + * Copyright (C) 2009-2014 Serguei Dosyukov + * + * 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. + */ +?> +<div id="g-search-results"> + <h1><?= t("Search Results for \"%term\"", array("term" => $q)) ?> </h1> + + <?= $theme->add_paginator("top"); ?> + <div class="g-album-grid-container"> + <ul id="g-album-grid"> +<? if (count($items)): ?> + <? foreach ($items as $item): ?> + <?= $theme->get_thumb_element($item) ?> + <? endforeach ?> +<? else: ?> + <li><?= t("No results found for <b>%term</b>", array("term" => $q)) ?></li> +<? endif; ?> + </ul> + </div> + <?= $theme->add_paginator("bottom"); ?> +</div>
\ No newline at end of file diff --git a/themes/greydragon/views/sidebar.html.php b/themes/greydragon/views/sidebar.html.php new file mode 100644 index 0000000..635fbd5 --- /dev/null +++ b/themes/greydragon/views/sidebar.html.php @@ -0,0 +1,27 @@ +<?php defined("SYSPATH") or die("No direct script access.");
+/**
+ * Grey Dragon Theme - a custom theme for Gallery 3
+ * This theme was designed and built by Serguei Dosyukov, whose blog you will find at http://blog.dragonsoft.us
+ * Copyright (C) 2009-2014 Serguei Dosyukov
+ *
+ * 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.
+ */
+?>
+<?= $theme->sidebar_top() ?>
+<div class="g-toolbar"><h1> </h1></div>
+<? if ((!$user->guest) || (!$theme->sidebar_hideguest)):
+ try { echo $theme->sidebar_blocks(); } catch (Exception $e) { }
+ else:
+ echo "";
+ endif;
+?>
+<?= $theme->sidebar_bottom() ?>
diff --git a/themes/greydragon/views/user_profile.html.php b/themes/greydragon/views/user_profile.html.php new file mode 100644 index 0000000..587eec2 --- /dev/null +++ b/themes/greydragon/views/user_profile.html.php @@ -0,0 +1,44 @@ +<?php defined("SYSPATH") or die("No direct script access.") ?> +<script type="text/javascript"> + $(document).ready(function() { + $("#g-profile-return").click(function(event) { + history.go(-1); + return false; + }) + }); +</script> + +<div id="g-user-profile"> + <h1><?= t("User profile: %name", array("name" => $user->display_name())) ?></h1> + <div id="g-user-profile-operations"> + <a id="g-profile-return" class="g-button ui-state-default ui-corner-all" href="#"> + <?= t("Return") ?> + </a> +<? if ($editable): ?> + <a class="g-button ui-state-default ui-corner-all g-dialog-link" href="<?= url::site("form/edit/users/{$user->id}") ?>"> + <?= t("Edit") ?> + </a> + <a class="g-button ui-state-default ui-corner-all g-dialog-link" href="<?= url::site("users/form_change_email/{$user->id}") ?>"> + <?= t("Change email") ?> + </a> + <a class="g-button ui-state-default ui-corner-all g-dialog-link" href="<?= url::site("users/form_change_password/{$user->id}") ?>"> + <?= t("Change password") ?> + </a> +<? endif ?> +<? if ($contactable): ?> + <a class="g-button ui-state-default ui-corner-all g-dialog-link" + href="<?= url::site("user_profile/contact/{$user->id}") ?>"> + <?= t("Contact") ?> + </a> +<? endif ?> + </div> + <img src="<?= $user->avatar_url(40, $theme->url("images/avatar.jpg", true)) ?>" + alt="<?= html::clean_attribute($user->display_name()) ?>" + class="g-avatar g-left" width="40" height="40" /> +<? foreach ($info_parts as $info): ?> + <div class="g-block"> + <h2><?= html::purify($info->title) ?></h2> + <div class="g-block-content"><?= $info->view ?></div> + </div> +<? endforeach ?> +</div> |
