1
0

Convert the CRLF in the greydragon theme to LF

This commit is contained in:
Tim Almdal 2009-11-30 08:16:33 -08:00
parent 142c7b1368
commit 53acbe5e5e
17 changed files with 700 additions and 700 deletions

View File

@ -1,33 +1,33 @@
Grey Dragon Theme Changelog
version 1.5.7
- 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.
- Improved logic for dialogs on submit
- Theme related JS has been moved out of the page.html.php
version 1.5.6
- Fixed issue with tollbar buttons not properly aligned/shown when page is resized.
- Copyright info moved into DB. To change default settings add [th_greydragon/copyright] into VARS table.
version 1.5.5
- CSS fixes.
- Theme adjusted to be compatible with latest Git.
- Login links are moved into footer.
- Pagination module redesigned to support new structure of paging data.
version 1.5.4
- CSS fixes.
- Added support for Comments block.
- Improved support for Modal dialogs.
version 1.5.3
- Sync to git.
- Exif menu customization is now part of the theme.
- Sidebar management button is disabled for current mode.
version 1.5.2
- Code, layout, css cleanup.
- New thumbs for buttons.
- First set of Ajax dialogs is ready and now operational: Login, user info, edit album, exit info.
Grey Dragon Theme Changelog
version 1.5.7
- 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.
- Improved logic for dialogs on submit
- Theme related JS has been moved out of the page.html.php
version 1.5.6
- Fixed issue with tollbar buttons not properly aligned/shown when page is resized.
- Copyright info moved into DB. To change default settings add [th_greydragon/copyright] into VARS table.
version 1.5.5
- CSS fixes.
- Theme adjusted to be compatible with latest Git.
- Login links are moved into footer.
- Pagination module redesigned to support new structure of paging data.
version 1.5.4
- CSS fixes.
- Added support for Comments block.
- Improved support for Modal dialogs.
version 1.5.3
- Sync to git.
- Exif menu customization is now part of the theme.
- Sidebar management button is disabled for current mode.
version 1.5.2
- Code, layout, css cleanup.
- New thumbs for buttons.
- First set of Ajax dialogs is ready and now operational: Login, user info, edit album, exit info.
- Fixed some browser related issues.

View File

@ -1,33 +1,33 @@
#sb-content { padding: 0px; margin: 0; }
#g-exif-data { width: auto; min-height: 90%; margin: 10px; text-align: center; color: #ccc; background-color: #101415; overflow: auto; }
#g-exif-data table { border: #eee 1px solid; font-size: 10pt; }
#g-exif-data .g-even { background-color: #aaa; color: #000; }
#g-exif-data .g-odd { background-color: #999; color: #fff; }
/* Login dialog ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
form { background: #101415 url('../images/section.png') repeat-x; overflow: hidden; }
form fieldset { border: none; }
form legend { color: #bbb; padding: 6px 0 0 10px; width: 100%; }
form ul { padding: 0; }
form li { padding: 8px 0 0 20px; }
form ul>fieldset>legend { display: none; }
form label { display: block; }
form textarea { width: 98%; }
form input[type="text"],
input[type="password"] { width: 90%; }
#sb-content.html_ajax textarea { width: 270px; }
#sb-content.html_ajax p.g-error { padding-top: 4px; color: red; }
#g-text { min-height: 70px; }
#g-login-form { width: 100%; }
#g-login form ul { min-height: 160px; }
#g-edit-user-form ul { min-height: 276px; }
#g-password-reset { margin-left: 8px; }
#g-edit-album-form fieldset fieldset { border: none; }
#g-edit-album-form fieldset fieldset li { float: left; display: inline; }
#sb-content { padding: 0px; margin: 0; }
#g-exif-data { width: auto; min-height: 90%; margin: 10px; text-align: center; color: #ccc; background-color: #101415; overflow: auto; }
#g-exif-data table { border: #eee 1px solid; font-size: 10pt; }
#g-exif-data .g-even { background-color: #aaa; color: #000; }
#g-exif-data .g-odd { background-color: #999; color: #fff; }
/* Login dialog ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
form { background: #101415 url('../images/section.png') repeat-x; overflow: hidden; }
form fieldset { border: none; }
form legend { color: #bbb; padding: 6px 0 0 10px; width: 100%; }
form ul { padding: 0; }
form li { padding: 8px 0 0 20px; }
form ul>fieldset>legend { display: none; }
form label { display: block; }
form textarea { width: 98%; }
form input[type="text"],
input[type="password"] { width: 90%; }
#sb-content.html_ajax textarea { width: 270px; }
#sb-content.html_ajax p.g-error { padding-top: 4px; color: red; }
#g-text { min-height: 70px; }
#g-login-form { width: 100%; }
#g-login form ul { min-height: 160px; }
#g-edit-user-form ul { min-height: 276px; }
#g-password-reset { margin-left: 8px; }
#g-edit-album-form fieldset fieldset { border: none; }
#g-edit-album-form fieldset fieldset li { float: left; display: inline; }
#g-add-photos-form { height: 100%; }

View File

@ -1,21 +1,21 @@
html { overflow: auto; }
* { margin: 0px; }
body { min-width: 73em; padding: 0; margin: 0; }
#g-header { position: relative; min-width: 73em; z-index: 5; }
#g-main, #g-main-in { min-width: 72.7em; height: auto; bottom: auto; }
#g-footer { position: relative; height: auto; min-width: 73em; clear: both; display: block; overflow: auto; }
#g-column-left { float: left; width: 18em; min-height: 32em; overflow: hidden; height: 100%; }
#g-column-right { float: right; width: 18em; min-height: 32em; overflow: hidden; height: 100%; }
#g-column-center { margin: 0 19em 0 19em; min-height: 32em; overflow: hidden; height: 100%; }
#g-column-centerleft { margin: 0 19em 0 0; min-height: 32em; overflow: hidden; height: 100%; }
#g-column-centerright { margin: 0 0 0 19em; min-height: 32em; overflow: hidden; height: 100%; }
#g-column-centerfull { position: relative; margin: 0 0; min-height: 31em; overflow: hidden; height: 100%; }
#g-footer-leftside { float: left; display: inline; }
#g-footer-rightside { float: right; display: inline; }
.g-hideitem { display: none; }
html { overflow: auto; }
* { margin: 0px; }
body { min-width: 73em; padding: 0; margin: 0; }
#g-header { position: relative; min-width: 73em; z-index: 5; }
#g-main, #g-main-in { min-width: 72.7em; height: auto; bottom: auto; }
#g-footer { position: relative; height: auto; min-width: 73em; clear: both; display: block; overflow: auto; }
#g-column-left { float: left; width: 18em; min-height: 32em; overflow: hidden; height: 100%; }
#g-column-right { float: right; width: 18em; min-height: 32em; overflow: hidden; height: 100%; }
#g-column-center { margin: 0 19em 0 19em; min-height: 32em; overflow: hidden; height: 100%; }
#g-column-centerleft { margin: 0 19em 0 0; min-height: 32em; overflow: hidden; height: 100%; }
#g-column-centerright { margin: 0 0 0 19em; min-height: 32em; overflow: hidden; height: 100%; }
#g-column-centerfull { position: relative; margin: 0 0; min-height: 31em; overflow: hidden; height: 100%; }
#g-footer-leftside { float: left; display: inline; }
#g-footer-rightside { float: right; display: inline; }
.g-hideitem { display: none; }
#g-main-in { overflow: auto; height: 100%; }

View File

@ -1,27 +1,27 @@
#g-site-menu { position: absolute; bottom: 0px; left: 310px; }
#g-site-menu ul { float: left; padding: 0px; margin: 0px; width: 100%; border: #000000 0px solid; white-space: nowrap; z-index: 100; }
#g-site-menu a { display: block; padding: 3px 5px 4px 5px; text-align: center; width: auto; letter-spacing: 0px; cursor: pointer; }
#g-site-menu li { float: left; padding: 0px; background-color: transparent; border: transparent 1px solid; }
#g-site-menu li a:hover { color: #000000; cursor: pointer; background-color: #303030; }
#g-site-menu li:hover,
#g-site-menu li.iemhover { border: #303030 1px solid; background-color: #303030; border-bottom: #000000 1px solid; }
#g-site-menu li ul a { text-align: left; padding: 4px 0px; text-indent: 8px; letter-spacing: 0px; cursor: pointer; }
#g-site-menu li ul a:hover { background-image: none; cursor: pointer; }
#g-site-menu li ul { border: #000000 1px solid; position: absolute; margin: 0px 0px 0px -1px; width: 135px; height: auto; left: -999em; }
#g-site-menu li ul li { border: #C0C0C0 0px solid; background-color: #212121; }
#g-site-menu li ul li:hover,
#g-site-menu li ul li.iemhover { border: #C0C0C0 0px solid; background-color: #303030; }
#g-site-menu li li { width: 135px; padding-right: 0px; }
#g-site-menu li ul a { width: 135px; }
#g-site-menu li ul ul { margin: -21px 0px 0px 135px; }
#g-site-menu li:hover ul ul,
#g-site-menu li:hover ul ul ul,
#g-site-menu li.iemhover ul ul,
#g-site-menu li.iemhover ul ul ul { left: -999em; }
#g-site-menu li:hover ul,
#g-site-menu li li:hover ul,
#g-site-menu li li li:hover ul,
#g-site-menu li.iemhover ul,
#g-site-menu li li.iemhover ul,
#g-site-menu li li li.iemhover ul { left: auto; }
#g-site-menu { position: absolute; bottom: 0px; left: 310px; }
#g-site-menu ul { float: left; padding: 0px; margin: 0px; width: 100%; border: #000000 0px solid; white-space: nowrap; z-index: 100; }
#g-site-menu a { display: block; padding: 3px 5px 4px 5px; text-align: center; width: auto; letter-spacing: 0px; cursor: pointer; }
#g-site-menu li { float: left; padding: 0px; background-color: transparent; border: transparent 1px solid; }
#g-site-menu li a:hover { color: #000000; cursor: pointer; background-color: #303030; }
#g-site-menu li:hover,
#g-site-menu li.iemhover { border: #303030 1px solid; background-color: #303030; border-bottom: #000000 1px solid; }
#g-site-menu li ul a { text-align: left; padding: 4px 0px; text-indent: 8px; letter-spacing: 0px; cursor: pointer; }
#g-site-menu li ul a:hover { background-image: none; cursor: pointer; }
#g-site-menu li ul { border: #000000 1px solid; position: absolute; margin: 0px 0px 0px -1px; width: 135px; height: auto; left: -999em; }
#g-site-menu li ul li { border: #C0C0C0 0px solid; background-color: #212121; }
#g-site-menu li ul li:hover,
#g-site-menu li ul li.iemhover { border: #C0C0C0 0px solid; background-color: #303030; }
#g-site-menu li li { width: 135px; padding-right: 0px; }
#g-site-menu li ul a { width: 135px; }
#g-site-menu li ul ul { margin: -21px 0px 0px 135px; }
#g-site-menu li:hover ul ul,
#g-site-menu li:hover ul ul ul,
#g-site-menu li.iemhover ul ul,
#g-site-menu li.iemhover ul ul ul { left: -999em; }
#g-site-menu li:hover ul,
#g-site-menu li li:hover ul,
#g-site-menu li li li:hover ul,
#g-site-menu li.iemhover ul,
#g-site-menu li li.iemhover ul,
#g-site-menu li li li.iemhover ul { left: auto; }

View File

@ -1,4 +1,4 @@
body { word-wrap: break-word; }
.g-item .g-metadata:hover { padding: 0px 0 4px 6px; }
#g-quick-search-form input[type="submit"] { padding: 60px 0 0 0; }
body { word-wrap: break-word; }
.g-item .g-metadata:hover { padding: 0px 0 4px 6px; }
#g-quick-search-form input[type="submit"] { padding: 60px 0 0 0; }

View File

@ -1,211 +1,211 @@
/**
* Gallery 3 Grey Dragon Theme
* Copyright (C) 2006-2009 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.
*/
@import url(layout.css);
@import url(forms.css);
html { background-color: #1A2022; overflow: -moz-scrollbars-vertical; overflow-y: scroll; }
body { background: url(../images/background.gif) #1A2022 repeat-x; color: #BBB; font: 0.8em Arial, verdana, sans-serif; }
a { color: #6392CF !important; text-decoration: none; outline: none; -moz-outline-style: none; }
a:focus, a:active, a:hover { text-decoration: none; outline: none; }
img { border: none; }
p { font-size: small; text-indent: 0; }
ul { list-style: none none; }
input[type="submit"] { cursor: pointer; /* hand-shaped cursor */ cursor: hand; /* for IE 5.x */ }
h1 { font-weight: bold; font-size: 1.2em; }
h2 { font-weight: bold; font-size: 1.2em; }
h3 { font-weight: bold; }
h4 { font-weight: bold; }
h5 { font-weight: bold; }
/* Common elements ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
.txtright { text-align: right; }
.g-metadata { overflow: hidden; }
.ui-icon { display: inline-block; zoom: 1; width: 16px; height: 16px; background-image: url(../images/ui-icons.png); }
.ui-icon-first { background-position: -32px -162px; }
.ui-icon-first-d { background-position: -162px -162px; }
.ui-icon-prev { background-position: -48px -162px; }
.ui-icon-prev-d { background-position: -178px -162px; }
.ui-icon-next { background-position: -64px -162px; }
.ui-icon-next-d { background-position: -194px -162px; }
.ui-icon-last { background-position: -80px -162px; }
.ui-icon-last-d { background-position: -210px -162px; }
.ui-icon-signal-diag { background-position: -16px -178px; }
.ui-icon-info { background-position: -16px -144px; }
.ui-icon-comment { background-position: -227px -219px; width: 27px; height: 20px; }
.ui-icon-left .ui-icon { float: left; margin-right: .2em; }
.ui-icon-right .ui-icon { float: right; margin-left: .2em; }
.g-resize { border: 1px solid #888; padding: 5px; background: #555; }
/* Header section ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
#g-header { height: 90px; padding: 0; font-size: 80%; }
#g-logo { position: absolute; top: 8px; left: 16px; }
#g-login-menu { position: absolute; bottom: 10px; right: 14px; background-color: transparent; }
#g-login-menu li { display: inline; padding-left: 1.2em; }
.g-breadcrumbs { position: absolute; bottom: 4px; right: 14px; background-color: transparent; }
.g-breadcrumbs li { display: inline; padding-left: 1em; background: transparent url('../images/ico-separator.png') no-repeat 0 2px; }
.g-breadcrumbs li.g-first { background-image: none; }
/* Main section ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
#g-main { display: block; margin: 0; }
#g-main-in { display: block; position: relative; }
#g-column-center, #g-column-centerleft { padding: 6px 6px 6px 16px; }
#g-column-centerfull { padding: 6px 12px 6px 10px; }
#g-column-centerright { padding: 6px 12px 6px 6px; }
#g-column-left { padding: 6px 4px 6px 10px; }
#g-column-right { padding: 6px 10px 6px 4px; }
/* Pagination ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
.g-paginator { display: inline-block; width: 100%; padding: 4px 0 6px 0; font-size: 80%; zoom: 1; }
.g-paginator li { display: inline; float: left; margin-left: 0; zoom: 1; }
.g-paginator a { padding: 0 0 0 2px; }
.g-paginator .g-pagination { width: 80%; padding-top: 2px; }
.g-paginator .g-navigation { text-align: right; width: 20%; }
/* Album grid ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
.g-thumbcrop { overflow: hidden; position: relative; width: 200px; height: 150px; }
#g-album-grid { padding: 0px; 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 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 a { display: block; margin-top: 4px; font: bold 70% Arial, Helvetica, Verdana, Sans-Serif; letter-spacing: 0.1em; text-transform: uppercase; min-height: 2em; }
#g-album-grid .g-album h2 { padding-left: 20px; background: url('../images/ico-album.png') no-repeat 0px 2px; }
.g-item .g-metadata { display: block; position: absolute; margin: 0; padding: 0; top: 172px; left: 198px; width: 14px; height: 14px; background: url(../images/ui-icons.png) -162px -144px; }
.g-item .g-metadata li { padding: 0; margin: 0; text-indent: -9999px; font: bold 70% Arial, Helvetica, Verdana, Sans-Serif; letter-spacing: 0.1em; }
.g-item .g-metadata:hover { padding: 4px 0 0 6px; top: 148px; left: 6px; width: 198px; height: 32px; background: #181818 none; border: 1px #888 solid; z-index: 100; }
.g-item .g-metadata:hover li { text-indent: 0px; }
.g-item .g-context-menu { position: absolute; margin: 0; padding: 0; top: 6px; left: 198px; width: 14px; height: 14px; background: url(../images/ui-icons.png) -178px -144px; }
.g-item .g-context-menu li { width: 100%; padding: 0; margin: 0; text-indent: -9999px; font: bold 70% Arial, Helvetica, Verdana, Sans-Serif; letter-spacing: 0.1em; }
.g-item .g-context-menu:hover { top: 4px; left: 6px; width: 204px; height: auto; background: #181818 none; border: 1px #888 solid; z-index: 100; }
.g-item .g-context-menu ul { display: block; padding: 0; margin: 0; }
.g-item .g-context-menu li li { display: none; font-size: 100%; width: 100%; }
.g-item .g-context-menu li li a { display: block; padding: 4px 6px; }
.g-item .g-context-menu:hover li li { display: block; text-indent: 0px; }
.g-item .g-context-menu li li a:hover { background-color: #303030; }
.ul-table { text-align: center; margin: 0px auto; padding: 0; list-style-type: none; clear: both; }
.ul-table li { float: left; text-align: center; }
#g-info { }
#g-info h1 { padding-bottom: 1px; border-bottom: 1px solid #888; }
#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-photo { padding: 6px 0 0 6px; text-align: center; }
#g-albumheader h1 { padding-bottom: 1px; margin-bottom: 6px; border-bottom: 1px solid #888; }
/* Footer section ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
#g-footer { padding: 6px 6px 6px 14px; background: url('../images/footer.png') #1A2022 repeat-x top !important; zoom: 1; font-size: 80%; }
#g-footer ul { float: left; color: #999; padding: 0; text-align: left; }
#g-footer li { padding: 0 0 2px 0; }
#g-visitors { float: left; display: inline; margin: 3px 4px 3px 12px; }
#g-copyright { font-size: x-small; color: #808080; }
#g-footer-rightside { padding-right: 6px; text-align: right; }
/* Design blocks ~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
#g-quick-search-form { position: absolute; top: 10px; right: 14px; background: none transparent; }
#g-quick-search-form label { display: none; }
#g-quick-search-form li { display: inline; float: left; padding: 0px; }
#g-quick-search-form input[type="text"] { background-color: transparent; border: 1px solid #737373; color: #BBB; width: 150px; /* margin-left: 2px; */ }
#g-quick-search-form input[type="submit"] { display: block; width: 23px; height: 23px; text-indent: -9999px; background: transparent url(../images/search.png) no-repeat center top; border: none; overflow: hidden; }
#g-search-results h1 { border-bottom: #888 1px solid; }
/* Sidebar Blocks ~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
/* Common ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
.g-block { margin-bottom: 0.5em; padding-bottom: 4px; border: 1px solid #737373; background-color: #101415; position: relative; }
.g-block h2 { padding: 4px; font-size: 1.2em; background: url('../images/section.png') repeat-x; }
.g-block-content { margin: 4px 10px 0 10px; display: block; zoom: 1; }
/* Image Block ~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
#g-image-block>div { margin-left: 1px; margin-right: 1px; }
.g-image-block { text-align: center; }
.g-image-block img { border: 1px solid #888; background: #555; padding: 5px; }
/* Feeds Block ~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
ul#g-feeds { padding: 0; margin: 0; }
/* Tags and cloud ~~~~~~~~~~~~~~~~~~~~~~~~ */
#g-tag-cloud ul { padding: 0; font-size: 100%; }
#g-tag-cloud ul li { line-height: 1.2em; }
#g-tag-cloud ul li span { display: none; }
#g-add-tag-form { display: none; }
/* Comments ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
#g-admin-comment-button { width: 27px; right: 10px; text-indent: -900em; }
.g-avatar { float: right; }
#g-comments-link { background: url('../images/view-comments.png') top left no-repeat; }
#g-comments .g-block-content { margin: 0; }
#g-comment-detail ul { padding: 0px; }
#g-comment-detail > ul > li { margin: 4px; padding: 6px; min-height: 40px; border: 1px dotted #737373; }
#g-comment-detail div { margin-right: 48px; margin-top: 8px; }
/* Buttons ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
#g-viewformat { z-index: 5; position: absolute; padding: 0; top: 6px; right: 10px; }
#g-viewformat li { float: left; margin-right: 2px; }
#g-viewformat .g-viewthumb-left { background: url('../images/view-left.png') no-repeat left top; }
#g-viewformat .g-viewthumb-right { background: url('../images/view-right.png') no-repeat left top; }
#g-viewformat .g-viewthumb-full { background: url('../images/view-full.png') no-repeat left top; }
#g-viewformat span { line-height: 1px; text-indent: -900em; width: 17px; display: block; height: 15px; }
#g-viewformat span:hover,
#g-viewformat span.g-viewthumb-current { background-position: left bottom; }
#g-view-menu { position: absolute; top: 6px; right: 70px; height: 16px; z-index: 5; zoom: 1; margin: 0 0 6px 0; padding: 0 0 4px 0; }
.g-toolbar { height: 16px; zoom: 1; margin: 0 0 4px 0; padding: 0 0 3px 0; border-bottom: 1px solid #737373; }
.g-menu { margin: 0; padding: 0; text-align: left; }
.g-menu li { display: inline; }
.g-menu-element,
.g-menu-link { display: inline; float: left; margin-right: 4px; }
.g-buttonset ul { height: 16px; }
.g-buttonset .g-menu-link { text-indent: -99999px; width: 22px; height: 15px; }
#g-slideshow-link { background: url("../images/view-slideshow.png") top left no-repeat; }
.g-fullsize-link { background: url("../images/view-fullsize.png") top left no-repeat; }
#g-exifdata-link { background: url("../images/view-info.png") top left no-repeat; }
#g-slideshow-link:hover, .g-fullsize-link:hover, #g-exifdata-link:hover, #g-comments-link:hover { background-position: left bottom; }
/* ShadowBox Skin ~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
#sb-body { background: #101415 url('../images/ajax-loading.gif') no-repeat center center; }
#sb-title-inner { display: none; }
#sb-nav #sb-nav-close { background-image: url('../images/close.png'); width: 60px; }
.clear { clear: both; margin-top: -1px; height: 1px; overflow: hidden; }
.g-message-block { position: absolute; z-index: 10; min-width: 30em; padding: 4px 6px; right: 10px; top: 34px; border: 1px #888 solid; background-color: #AAA; overflow: hidden; color: #000; font: bold 9pt Arial, verdana, sans-serif; text-align: center; }
/**
* Gallery 3 Grey Dragon Theme
* Copyright (C) 2006-2009 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.
*/
@import url(layout.css);
@import url(forms.css);
html { background-color: #1A2022; overflow: -moz-scrollbars-vertical; overflow-y: scroll; }
body { background: url(../images/background.gif) #1A2022 repeat-x; color: #BBB; font: 0.8em Arial, verdana, sans-serif; }
a { color: #6392CF !important; text-decoration: none; outline: none; -moz-outline-style: none; }
a:focus, a:active, a:hover { text-decoration: none; outline: none; }
img { border: none; }
p { font-size: small; text-indent: 0; }
ul { list-style: none none; }
input[type="submit"] { cursor: pointer; /* hand-shaped cursor */ cursor: hand; /* for IE 5.x */ }
h1 { font-weight: bold; font-size: 1.2em; }
h2 { font-weight: bold; font-size: 1.2em; }
h3 { font-weight: bold; }
h4 { font-weight: bold; }
h5 { font-weight: bold; }
/* Common elements ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
.txtright { text-align: right; }
.g-metadata { overflow: hidden; }
.ui-icon { display: inline-block; zoom: 1; width: 16px; height: 16px; background-image: url(../images/ui-icons.png); }
.ui-icon-first { background-position: -32px -162px; }
.ui-icon-first-d { background-position: -162px -162px; }
.ui-icon-prev { background-position: -48px -162px; }
.ui-icon-prev-d { background-position: -178px -162px; }
.ui-icon-next { background-position: -64px -162px; }
.ui-icon-next-d { background-position: -194px -162px; }
.ui-icon-last { background-position: -80px -162px; }
.ui-icon-last-d { background-position: -210px -162px; }
.ui-icon-signal-diag { background-position: -16px -178px; }
.ui-icon-info { background-position: -16px -144px; }
.ui-icon-comment { background-position: -227px -219px; width: 27px; height: 20px; }
.ui-icon-left .ui-icon { float: left; margin-right: .2em; }
.ui-icon-right .ui-icon { float: right; margin-left: .2em; }
.g-resize { border: 1px solid #888; padding: 5px; background: #555; }
/* Header section ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
#g-header { height: 90px; padding: 0; font-size: 80%; }
#g-logo { position: absolute; top: 8px; left: 16px; }
#g-login-menu { position: absolute; bottom: 10px; right: 14px; background-color: transparent; }
#g-login-menu li { display: inline; padding-left: 1.2em; }
.g-breadcrumbs { position: absolute; bottom: 4px; right: 14px; background-color: transparent; }
.g-breadcrumbs li { display: inline; padding-left: 1em; background: transparent url('../images/ico-separator.png') no-repeat 0 2px; }
.g-breadcrumbs li.g-first { background-image: none; }
/* Main section ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
#g-main { display: block; margin: 0; }
#g-main-in { display: block; position: relative; }
#g-column-center, #g-column-centerleft { padding: 6px 6px 6px 16px; }
#g-column-centerfull { padding: 6px 12px 6px 10px; }
#g-column-centerright { padding: 6px 12px 6px 6px; }
#g-column-left { padding: 6px 4px 6px 10px; }
#g-column-right { padding: 6px 10px 6px 4px; }
/* Pagination ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
.g-paginator { display: inline-block; width: 100%; padding: 4px 0 6px 0; font-size: 80%; zoom: 1; }
.g-paginator li { display: inline; float: left; margin-left: 0; zoom: 1; }
.g-paginator a { padding: 0 0 0 2px; }
.g-paginator .g-pagination { width: 80%; padding-top: 2px; }
.g-paginator .g-navigation { text-align: right; width: 20%; }
/* Album grid ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
.g-thumbcrop { overflow: hidden; position: relative; width: 200px; height: 150px; }
#g-album-grid { padding: 0px; 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 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 a { display: block; margin-top: 4px; font: bold 70% Arial, Helvetica, Verdana, Sans-Serif; letter-spacing: 0.1em; text-transform: uppercase; min-height: 2em; }
#g-album-grid .g-album h2 { padding-left: 20px; background: url('../images/ico-album.png') no-repeat 0px 2px; }
.g-item .g-metadata { display: block; position: absolute; margin: 0; padding: 0; top: 172px; left: 198px; width: 14px; height: 14px; background: url(../images/ui-icons.png) -162px -144px; }
.g-item .g-metadata li { padding: 0; margin: 0; text-indent: -9999px; font: bold 70% Arial, Helvetica, Verdana, Sans-Serif; letter-spacing: 0.1em; }
.g-item .g-metadata:hover { padding: 4px 0 0 6px; top: 148px; left: 6px; width: 198px; height: 32px; background: #181818 none; border: 1px #888 solid; z-index: 100; }
.g-item .g-metadata:hover li { text-indent: 0px; }
.g-item .g-context-menu { position: absolute; margin: 0; padding: 0; top: 6px; left: 198px; width: 14px; height: 14px; background: url(../images/ui-icons.png) -178px -144px; }
.g-item .g-context-menu li { width: 100%; padding: 0; margin: 0; text-indent: -9999px; font: bold 70% Arial, Helvetica, Verdana, Sans-Serif; letter-spacing: 0.1em; }
.g-item .g-context-menu:hover { top: 4px; left: 6px; width: 204px; height: auto; background: #181818 none; border: 1px #888 solid; z-index: 100; }
.g-item .g-context-menu ul { display: block; padding: 0; margin: 0; }
.g-item .g-context-menu li li { display: none; font-size: 100%; width: 100%; }
.g-item .g-context-menu li li a { display: block; padding: 4px 6px; }
.g-item .g-context-menu:hover li li { display: block; text-indent: 0px; }
.g-item .g-context-menu li li a:hover { background-color: #303030; }
.ul-table { text-align: center; margin: 0px auto; padding: 0; list-style-type: none; clear: both; }
.ul-table li { float: left; text-align: center; }
#g-info { }
#g-info h1 { padding-bottom: 1px; border-bottom: 1px solid #888; }
#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-photo { padding: 6px 0 0 6px; text-align: center; }
#g-albumheader h1 { padding-bottom: 1px; margin-bottom: 6px; border-bottom: 1px solid #888; }
/* Footer section ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
#g-footer { padding: 6px 6px 6px 14px; background: url('../images/footer.png') #1A2022 repeat-x top !important; zoom: 1; font-size: 80%; }
#g-footer ul { float: left; color: #999; padding: 0; text-align: left; }
#g-footer li { padding: 0 0 2px 0; }
#g-visitors { float: left; display: inline; margin: 3px 4px 3px 12px; }
#g-copyright { font-size: x-small; color: #808080; }
#g-footer-rightside { padding-right: 6px; text-align: right; }
/* Design blocks ~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
#g-quick-search-form { position: absolute; top: 10px; right: 14px; background: none transparent; }
#g-quick-search-form label { display: none; }
#g-quick-search-form li { display: inline; float: left; padding: 0px; }
#g-quick-search-form input[type="text"] { background-color: transparent; border: 1px solid #737373; color: #BBB; width: 150px; /* margin-left: 2px; */ }
#g-quick-search-form input[type="submit"] { display: block; width: 23px; height: 23px; text-indent: -9999px; background: transparent url(../images/search.png) no-repeat center top; border: none; overflow: hidden; }
#g-search-results h1 { border-bottom: #888 1px solid; }
/* Sidebar Blocks ~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
/* Common ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
.g-block { margin-bottom: 0.5em; padding-bottom: 4px; border: 1px solid #737373; background-color: #101415; position: relative; }
.g-block h2 { padding: 4px; font-size: 1.2em; background: url('../images/section.png') repeat-x; }
.g-block-content { margin: 4px 10px 0 10px; display: block; zoom: 1; }
/* Image Block ~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
#g-image-block>div { margin-left: 1px; margin-right: 1px; }
.g-image-block { text-align: center; }
.g-image-block img { border: 1px solid #888; background: #555; padding: 5px; }
/* Feeds Block ~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
ul#g-feeds { padding: 0; margin: 0; }
/* Tags and cloud ~~~~~~~~~~~~~~~~~~~~~~~~ */
#g-tag-cloud ul { padding: 0; font-size: 100%; }
#g-tag-cloud ul li { line-height: 1.2em; }
#g-tag-cloud ul li span { display: none; }
#g-add-tag-form { display: none; }
/* Comments ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
#g-admin-comment-button { width: 27px; right: 10px; text-indent: -900em; }
.g-avatar { float: right; }
#g-comments-link { background: url('../images/view-comments.png') top left no-repeat; }
#g-comments .g-block-content { margin: 0; }
#g-comment-detail ul { padding: 0px; }
#g-comment-detail > ul > li { margin: 4px; padding: 6px; min-height: 40px; border: 1px dotted #737373; }
#g-comment-detail div { margin-right: 48px; margin-top: 8px; }
/* Buttons ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
#g-viewformat { z-index: 5; position: absolute; padding: 0; top: 6px; right: 10px; }
#g-viewformat li { float: left; margin-right: 2px; }
#g-viewformat .g-viewthumb-left { background: url('../images/view-left.png') no-repeat left top; }
#g-viewformat .g-viewthumb-right { background: url('../images/view-right.png') no-repeat left top; }
#g-viewformat .g-viewthumb-full { background: url('../images/view-full.png') no-repeat left top; }
#g-viewformat span { line-height: 1px; text-indent: -900em; width: 17px; display: block; height: 15px; }
#g-viewformat span:hover,
#g-viewformat span.g-viewthumb-current { background-position: left bottom; }
#g-view-menu { position: absolute; top: 6px; right: 70px; height: 16px; z-index: 5; zoom: 1; margin: 0 0 6px 0; padding: 0 0 4px 0; }
.g-toolbar { height: 16px; zoom: 1; margin: 0 0 4px 0; padding: 0 0 3px 0; border-bottom: 1px solid #737373; }
.g-menu { margin: 0; padding: 0; text-align: left; }
.g-menu li { display: inline; }
.g-menu-element,
.g-menu-link { display: inline; float: left; margin-right: 4px; }
.g-buttonset ul { height: 16px; }
.g-buttonset .g-menu-link { text-indent: -99999px; width: 22px; height: 15px; }
#g-slideshow-link { background: url("../images/view-slideshow.png") top left no-repeat; }
.g-fullsize-link { background: url("../images/view-fullsize.png") top left no-repeat; }
#g-exifdata-link { background: url("../images/view-info.png") top left no-repeat; }
#g-slideshow-link:hover, .g-fullsize-link:hover, #g-exifdata-link:hover, #g-comments-link:hover { background-position: left bottom; }
/* ShadowBox Skin ~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
#sb-body { background: #101415 url('../images/ajax-loading.gif') no-repeat center center; }
#sb-title-inner { display: none; }
#sb-nav #sb-nav-close { background-image: url('../images/close.png'); width: 60px; }
.clear { clear: both; margin-top: -1px; height: 1px; overflow: hidden; }
.g-message-block { position: absolute; z-index: 10; min-width: 30em; padding: 4px 6px; right: 10px; top: 34px; border: 1px #888 solid; background-color: #AAA; overflow: hidden; color: #000; font: bold 9pt Arial, verdana, sans-serif; text-align: center; }

View File

@ -1,17 +1,17 @@
function setupLoginForm() {
setupAjaxForm('#gLoginForm');
}
function setupAjaxForm($form_id) {
var options = {
dataType: "json",
success: function(data) {
if (data.result == "success") {
if (data.location) { window.location = data.location; }
else { window.parent.Shadowbox.close(); }
}
}
};
$($form_id).ajaxForm(options);
};
function setupLoginForm() {
setupAjaxForm('#gLoginForm');
}
function setupAjaxForm($form_id) {
var options = {
dataType: "json",
success: function(data) {
if (data.result == "success") {
if (data.location) { window.location = data.location; }
else { window.parent.Shadowbox.close(); }
}
}
};
$($form_id).ajaxForm(options);
};

View File

@ -1,14 +1,14 @@
// Javascript originally by Patrick Griffiths and Dan Webb.
// http://htmldog.com/articles/suckerfish/dropdowns/
sfHover = function() {
var sfEls = document.getElementById("gSiteMenu").getElementsByTagName("ul")[0].getElementsByTagName("li");
if (!sfEls) { return; }
for (var i=0; i<sfEls.length; i++) {
sfEls[i].onmouseover=function() { this.className+=" hover"; }
sfEls[i].onmouseout=function() { this.className=this.className.replace(new RegExp(" hover\\b"), ""); }
}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);
// Javascript originally by Patrick Griffiths and Dan Webb.
// http://htmldog.com/articles/suckerfish/dropdowns/
sfHover = function() {
var sfEls = document.getElementById("gSiteMenu").getElementsByTagName("ul")[0].getElementsByTagName("li");
if (!sfEls) { return; }
for (var i=0; i<sfEls.length; i++) {
sfEls[i].onmouseover=function() { this.className+=" hover"; }
sfEls[i].onmouseout=function() { this.className=this.className.replace(new RegExp(" hover\\b"), ""); }
}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);

View File

@ -1,54 +1,54 @@
/**
* JS support functions for the theme
*/
var myAjaxLoginSubmitOps =
{ dataType: 'json',
success: function(data) {
if (data.result == 'error') {
$('#g-login').html(data.form);
myAjaxLoginSubmit();
} else {
Shadowbox.close();
window.location.reload();
}
}
};
myAjaxLoginSubmit = function() {
$('form#g-login-form').one('submit', function() {
$(this).ajaxSubmit(myAjaxLoginSubmitOps);
return false;
} )
};
var myAjaxSubmitOps =
{ dataType: 'json',
success: function(data) {
if (data.result == 'error') {
$('#sb-content form').html(data.form);
myAjaxSubmit();
} else {
Shadowbox.close();
window.location.reload();
}
}
};
myAjaxSubmit = function() {
$('form').one('submit', function() {
$(this).ajaxSubmit(myAjaxSubmitOps);
return false;
} )
};
$(document).ready( function() {
Shadowbox.setup("a.g-dialog-link", {player: 'ajax', width: 340, height: 316, enableKeys: false, onFinish: myAjaxSubmit});
Shadowbox.setup("a.g-fullsize-link", {player: 'img'});
Shadowbox.setup("a#g-login-link", {player: 'ajax', width: 340, height: 230, enableKeys: false, onFinish: myAjaxLoginSubmit});
Shadowbox.setup("a#g-exifdata-link", {player: 'ajax', width: 420, height: 400});
Shadowbox.setup(".g-context-menu .ui-icon-pencil", {player: 'ajax', width: 340, height: 370, enableKeys: false});
$('.g-message-block').fadeOut(10000);
});
/**
* JS support functions for the theme
*/
var myAjaxLoginSubmitOps =
{ dataType: 'json',
success: function(data) {
if (data.result == 'error') {
$('#g-login').html(data.form);
myAjaxLoginSubmit();
} else {
Shadowbox.close();
window.location.reload();
}
}
};
myAjaxLoginSubmit = function() {
$('form#g-login-form').one('submit', function() {
$(this).ajaxSubmit(myAjaxLoginSubmitOps);
return false;
} )
};
var myAjaxSubmitOps =
{ dataType: 'json',
success: function(data) {
if (data.result == 'error') {
$('#sb-content form').html(data.form);
myAjaxSubmit();
} else {
Shadowbox.close();
window.location.reload();
}
}
};
myAjaxSubmit = function() {
$('form').one('submit', function() {
$(this).ajaxSubmit(myAjaxSubmitOps);
return false;
} )
};
$(document).ready( function() {
Shadowbox.setup("a.g-dialog-link", {player: 'ajax', width: 340, height: 316, enableKeys: false, onFinish: myAjaxSubmit});
Shadowbox.setup("a.g-fullsize-link", {player: 'img'});
Shadowbox.setup("a#g-login-link", {player: 'ajax', width: 340, height: 230, enableKeys: false, onFinish: myAjaxLoginSubmit});
Shadowbox.setup("a#g-exifdata-link", {player: 'ajax', width: 420, height: 400});
Shadowbox.setup(".g-context-menu .ui-icon-pencil", {player: 'ajax', width: 340, height: 370, enableKeys: false});
$('.g-message-block').fadeOut(10000);
});

View File

@ -1,44 +1,44 @@
<?php defined("SYSPATH") or die("No direct script access.") ?>
<div id="g-info">
<?= $theme->album_top() ?>
<h1><?= html::purify($item->title) ?></h1>
<div class="g-description"><?= ($item->description)? bb2html(html::purify($item->description), 1) : null; ?></div>
</div>
<?= $theme->paginator() ?>
<ul id="g-album-grid">
<? if (count($children)): ?>
<? foreach ($children as $i => $child): ?>
<? $item_class = "g-photo"; ?>
<? if ($child->is_album()): ?>
<? $item_class = "g-album"; ?>
<? endif ?>
<li id="g-item-id-<?= $child->id ?>" class="g-item <?= $item_class ?>">
<?= $theme->thumb_top($child) ?>
<p class="g-thumbcrop"><a href="<?= $child->url() ?>">
<?= $child->thumb_img() ?>
</a></p>
<?= $theme->thumb_bottom($child) ?>
<h2><a href="<?= $child->url() ?>"><?= html::purify($child->title) ?></a></h2>
<? $_text = $theme->context_menu($child, "#g-item-id-{$child->id} .g-thumbnail") ?>
<?= (stripos($_text, '<li>'))? $_text : null; ?>
<? if (module::is_active("info")): ?>
<ul class="g-metadata">
<?= $theme->thumb_info($child); ?>
</ul>
<? endif ?>
</li>
<? endforeach ?>
<? else: ?>
<? if ($user->admin || access::can("add", $item)): ?>
<? $addurl = url::file("index.php/simple_uploader/app/$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>
<?= $theme->album_bottom() ?>
<?= $theme->paginator() ?>
<?php defined("SYSPATH") or die("No direct script access.") ?>
<div id="g-info">
<?= $theme->album_top() ?>
<h1><?= html::purify($item->title) ?></h1>
<div class="g-description"><?= ($item->description)? bb2html(html::purify($item->description), 1) : null; ?></div>
</div>
<?= $theme->paginator() ?>
<ul id="g-album-grid">
<? if (count($children)): ?>
<? foreach ($children as $i => $child): ?>
<? $item_class = "g-photo"; ?>
<? if ($child->is_album()): ?>
<? $item_class = "g-album"; ?>
<? endif ?>
<li id="g-item-id-<?= $child->id ?>" class="g-item <?= $item_class ?>">
<?= $theme->thumb_top($child) ?>
<p class="g-thumbcrop"><a href="<?= $child->url() ?>">
<?= $child->thumb_img() ?>
</a></p>
<?= $theme->thumb_bottom($child) ?>
<h2><a href="<?= $child->url() ?>"><?= html::purify($child->title) ?></a></h2>
<? $_text = $theme->context_menu($child, "#g-item-id-{$child->id} .g-thumbnail") ?>
<?= (stripos($_text, '<li>'))? $_text : null; ?>
<? if (module::is_active("info")): ?>
<ul class="g-metadata">
<?= $theme->thumb_info($child); ?>
</ul>
<? endif ?>
</li>
<? endforeach ?>
<? else: ?>
<? if ($user->admin || access::can("add", $item)): ?>
<? $addurl = url::file("index.php/simple_uploader/app/$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>
<?= $theme->album_bottom() ?>
<?= $theme->paginator() ?>

View File

@ -1,10 +1,10 @@
<?php defined("SYSPATH") or die("No direct script access.") ?>
<? if ($anchor): ?>
<a name="<?= $anchor ?>"></a>
<? endif ?>
<div id="<?= $css_id ?>" class="g-block">
<h2><?= $title ?></h2>
<div class="g-block-content">
<?= $content ?>
</div>
</div>
<?php defined("SYSPATH") or die("No direct script access.") ?>
<? if ($anchor): ?>
<a name="<?= $anchor ?>"></a>
<? endif ?>
<div id="<?= $css_id ?>" class="g-block">
<h2><?= $title ?></h2>
<div class="g-block-content">
<?= $content ?>
</div>
</div>

View File

@ -1,29 +1,29 @@
<?php defined("SYSPATH") or die("No direct script access.") ?>
<div id="g-album-header">
<div id="g-album-header-buttons">
<?= $theme->dynamic_top() ?>
</div>
<h1><?= html::clean($title) ?></h1>
</div>
<ul id="g-album-grid">
<? foreach ($children as $i => $child): ?>
<li class="g-item <?= $child->is_album() ? "g-album" : "" ?>">
<?= $theme->thumb_top($child) ?>
<p class="g-thumbcrop"><a href="<?= $child->url() ?>">
<img id="g-photo-id-<?= $child->id ?>" class="g-thumbnail"
alt="photo" src="<?= $child->thumb_url() ?>"
width="<?= $child->thumb_width ?>"
height="<?= $child->thumb_height ?>" />
</a></p>
<h2><a href="<?= $child->url() ?>"><?= html::purify($child->title) ?></a></h2>
<?= $theme->thumb_bottom($child) ?>
<ul class="g-metadata">
<?= $theme->thumb_info($child) ?>
</ul>
</li>
<? endforeach ?>
</ul>
<?= $theme->dynamic_bottom() ?>
<?= $theme->paginator() ?>
<?php defined("SYSPATH") or die("No direct script access.") ?>
<div id="g-album-header">
<div id="g-album-header-buttons">
<?= $theme->dynamic_top() ?>
</div>
<h1><?= html::clean($title) ?></h1>
</div>
<ul id="g-album-grid">
<? foreach ($children as $i => $child): ?>
<li class="g-item <?= $child->is_album() ? "g-album" : "" ?>">
<?= $theme->thumb_top($child) ?>
<p class="g-thumbcrop"><a href="<?= $child->url() ?>">
<img id="g-photo-id-<?= $child->id ?>" class="g-thumbnail"
alt="photo" src="<?= $child->thumb_url() ?>"
width="<?= $child->thumb_width ?>"
height="<?= $child->thumb_height ?>" />
</a></p>
<h2><a href="<?= $child->url() ?>"><?= html::purify($child->title) ?></a></h2>
<?= $theme->thumb_bottom($child) ?>
<ul class="g-metadata">
<?= $theme->thumb_info($child) ?>
</ul>
</li>
<? endforeach ?>
</ul>
<?= $theme->dynamic_bottom() ?>
<?= $theme->paginator() ?>

View File

@ -1,9 +1,9 @@
<?php defined("SYSPATH") or die("No direct script access.") ?>
<?php defined("SYSPATH") or die("No direct script access.") ?>
<span class="g-metadata">
<? if ($item->description): ?>
<?= bb2html(html::purify($item->description), 1) ?>
<? else: ?>
<span class="g-metadata">
<? if ($item->description): ?>
<?= bb2html(html::purify($item->description), 1) ?>
<? else: ?>
&nbsp;
<? endif ?>
<? endif ?>
</span>

View File

@ -1,106 +1,106 @@
<?php defined("SYSPATH") or die("No direct script access.") ?>
<?
if ($sibling_count <= 1) {
$pagination_msg = "&nbsp;";
}
else
{
$siblings = $item->parent()->children();
$pagination_msg = t("Photo:") . ' ';
if ($sibling_count < 13) {
for ($i = 1; $i <= $sibling_count; $i++) {
if ($i == $position) {
$pagination_msg .= '<span>' . t($i) . '</span>';
} else {
$pagination_msg .= '<span><a href="' . $siblings[$i-1]->url() . '" title="Photo ' . t($i) . '">' . t($i) . '</a></span>';
}
if ($i < $sibling_count) { $pagination_msg .= '&middot;'; };
}
} elseif ($position < 9) {
for ($i = 1; $i <= 10; $i++) {
if ($i == $position) {
$pagination_msg .= '<span>' . t($i) . '</span>';
} else {
$pagination_msg .= '<span><a href="' . $siblings[$i-1]->url() . '" title="Photo ' . t($i) . '">' . t($i) . '</a></span>';
}
if ($i < 10) { $pagination_msg .= '&middot;'; };
}
$pagination_msg .= '&hellip;';
$pagination_msg .= '<span><a href="' . $siblings[$sibling_count - 2]->url() . '" title="Photo ' . t($sibling_count - 1) . '">' . t($sibling_count - 1) . '</a></span>';
$pagination_msg .= '&middot;';
$pagination_msg .= '<span><a href="' . $siblings[$sibling_count - 1]->url() . '" title="Photo ' . t($sibling_count) . '">' . t($sibling_count) . '</a></span>';
} elseif ($position > $sibling_count - 8) {
$pagination_msg .= '<span><a href="' . $siblings[0]->url() . '" title="Photo ' . t(1) . '">' . t(1) . '</a></span>';
$pagination_msg .= '&middot;';
$pagination_msg .= '<span><a href="' . $siblings[1]->url() . '" title="Photo ' . t(2) . '">' . t(2) . '</a></span>';
$pagination_msg .= '&hellip;';
for ($i = $sibling_count - 9; $i <= $sibling_count; $i++) {
if ($i == $position) {
$pagination_msg .= '<span>' . t($i) . '</span>';
} else {
$pagination_msg .= '<span><a href="' . $siblings[$i - 1]->url() . '" title="Photo ' . t($i) . '">' . t($i) . '</a></span>';
}
if ($i < $sibling_count) { $pagination_msg .= '&middot;'; };
}
} else {
$pagination_msg .= '<span><a href="' . $siblings[0]->url() . '" title="Photo ' . t(1) . '">' . t(1) . '</a></span>';
$pagination_msg .= '&middot;';
$pagination_msg .= '<span><a href="' . $siblings[1]->url() . '" title="Photo ' . t(2) . '">' . t(2) . '</a></span>';
$pagination_msg .= '&hellip;';
for ($i = $position - 5; $i <= $position + 5; $i++) {
if ($i == $position) {
$pagination_msg .= '<span>' . t($i) . '</span>';
} else {
$pagination_msg .= '<span><a href="' . $siblings[$i - 1]->url() . '" title="Photo ' . t($i) . '">' . t($i) . '</a></span>';
}
if ($i < $position + 5) { $pagination_msg .= '&middot;'; };
}
$pagination_msg .= '&hellip;';
$pagination_msg .= '<span><a href="' . $siblings[$sibling_count - 2]->url() . '" title="Photo ' . t($sibling_count - 1) . '">' . t($sibling_count - 1) . '</a></span>';
$pagination_msg .= '&middot;';
$pagination_msg .= '<span><a href="' . $siblings[$sibling_count - 1]->url() . '" title="Photo ' . t($sibling_count) . '">' . t($sibling_count) . '</a></span>';
}
}
?>
<ul class="g-pager">
<li class="g-pagination"><?= $pagination_msg; ?></li>
<li class="g-navigation">
<? if ($position > 1): ?>
<a href="<?= $siblings[0]->url() ?>" title="<?= t("first") ?>"><span class="ui-icon ui-icon-first">&nbsp;</span></a>
<? else: ?>
<span class="ui-icon ui-icon-first-d">&nbsp;</span>
<? endif ?>
<? if ($previous_item): ?>
<a href="<?= $previous_item->url() ?>" title="<?= t("previous") ?>"><span class="ui-icon ui-icon-prev">&nbsp;</span></a>
<? else: ?>
<span class="ui-icon ui-icon-prev-d">&nbsp;</span>
<? endif; ?>
<? if ($next_item): ?>
<a href="<?= $next_item->url() ?>" class="ui-right" title="<?= t("next") ?>"><span class="ui-icon ui-icon-next">&nbsp;</span></a>
<? else: ?>
<span class="ui-icon ui-icon-next-d">&nbsp;</span>
<? endif ?>
<? if (($sibling_count > 1) && ($sibling_count > $position)): ?>
<a href="<?= $siblings[$sibling_count-1]->url() ?>" class="ui-right" title="<?= t("last") ?>"><span class="ui-icon ui-icon-last">&nbsp;</span></a>
<? else: ?>
<span class="ui-icon ui-icon-last-d">&nbsp;</span>
<? endif ?>
</li>
<?php defined("SYSPATH") or die("No direct script access.") ?>
<?
if ($sibling_count <= 1) {
$pagination_msg = "&nbsp;";
}
else
{
$siblings = $item->parent()->children();
$pagination_msg = t("Photo:") . ' ';
if ($sibling_count < 13) {
for ($i = 1; $i <= $sibling_count; $i++) {
if ($i == $position) {
$pagination_msg .= '<span>' . t($i) . '</span>';
} else {
$pagination_msg .= '<span><a href="' . $siblings[$i-1]->url() . '" title="Photo ' . t($i) . '">' . t($i) . '</a></span>';
}
if ($i < $sibling_count) { $pagination_msg .= '&middot;'; };
}
} elseif ($position < 9) {
for ($i = 1; $i <= 10; $i++) {
if ($i == $position) {
$pagination_msg .= '<span>' . t($i) . '</span>';
} else {
$pagination_msg .= '<span><a href="' . $siblings[$i-1]->url() . '" title="Photo ' . t($i) . '">' . t($i) . '</a></span>';
}
if ($i < 10) { $pagination_msg .= '&middot;'; };
}
$pagination_msg .= '&hellip;';
$pagination_msg .= '<span><a href="' . $siblings[$sibling_count - 2]->url() . '" title="Photo ' . t($sibling_count - 1) . '">' . t($sibling_count - 1) . '</a></span>';
$pagination_msg .= '&middot;';
$pagination_msg .= '<span><a href="' . $siblings[$sibling_count - 1]->url() . '" title="Photo ' . t($sibling_count) . '">' . t($sibling_count) . '</a></span>';
} elseif ($position > $sibling_count - 8) {
$pagination_msg .= '<span><a href="' . $siblings[0]->url() . '" title="Photo ' . t(1) . '">' . t(1) . '</a></span>';
$pagination_msg .= '&middot;';
$pagination_msg .= '<span><a href="' . $siblings[1]->url() . '" title="Photo ' . t(2) . '">' . t(2) . '</a></span>';
$pagination_msg .= '&hellip;';
for ($i = $sibling_count - 9; $i <= $sibling_count; $i++) {
if ($i == $position) {
$pagination_msg .= '<span>' . t($i) . '</span>';
} else {
$pagination_msg .= '<span><a href="' . $siblings[$i - 1]->url() . '" title="Photo ' . t($i) . '">' . t($i) . '</a></span>';
}
if ($i < $sibling_count) { $pagination_msg .= '&middot;'; };
}
} else {
$pagination_msg .= '<span><a href="' . $siblings[0]->url() . '" title="Photo ' . t(1) . '">' . t(1) . '</a></span>';
$pagination_msg .= '&middot;';
$pagination_msg .= '<span><a href="' . $siblings[1]->url() . '" title="Photo ' . t(2) . '">' . t(2) . '</a></span>';
$pagination_msg .= '&hellip;';
for ($i = $position - 5; $i <= $position + 5; $i++) {
if ($i == $position) {
$pagination_msg .= '<span>' . t($i) . '</span>';
} else {
$pagination_msg .= '<span><a href="' . $siblings[$i - 1]->url() . '" title="Photo ' . t($i) . '">' . t($i) . '</a></span>';
}
if ($i < $position + 5) { $pagination_msg .= '&middot;'; };
}
$pagination_msg .= '&hellip;';
$pagination_msg .= '<span><a href="' . $siblings[$sibling_count - 2]->url() . '" title="Photo ' . t($sibling_count - 1) . '">' . t($sibling_count - 1) . '</a></span>';
$pagination_msg .= '&middot;';
$pagination_msg .= '<span><a href="' . $siblings[$sibling_count - 1]->url() . '" title="Photo ' . t($sibling_count) . '">' . t($sibling_count) . '</a></span>';
}
}
?>
<ul class="g-pager">
<li class="g-pagination"><?= $pagination_msg; ?></li>
<li class="g-navigation">
<? if ($position > 1): ?>
<a href="<?= $siblings[0]->url() ?>" title="<?= t("first") ?>"><span class="ui-icon ui-icon-first">&nbsp;</span></a>
<? else: ?>
<span class="ui-icon ui-icon-first-d">&nbsp;</span>
<? endif ?>
<? if ($previous_item): ?>
<a href="<?= $previous_item->url() ?>" title="<?= t("previous") ?>"><span class="ui-icon ui-icon-prev">&nbsp;</span></a>
<? else: ?>
<span class="ui-icon ui-icon-prev-d">&nbsp;</span>
<? endif; ?>
<? if ($next_item): ?>
<a href="<?= $next_item->url() ?>" class="ui-right" title="<?= t("next") ?>"><span class="ui-icon ui-icon-next">&nbsp;</span></a>
<? else: ?>
<span class="ui-icon ui-icon-next-d">&nbsp;</span>
<? endif ?>
<? if (($sibling_count > 1) && ($sibling_count > $position)): ?>
<a href="<?= $siblings[$sibling_count-1]->url() ?>" class="ui-right" title="<?= t("last") ?>"><span class="ui-icon ui-icon-last">&nbsp;</span></a>
<? else: ?>
<span class="ui-icon ui-icon-last-d">&nbsp;</span>
<? endif ?>
</li>
</ul>

View File

@ -1,28 +1,28 @@
<?php defined("SYSPATH") or die("No direct script access.") ?>
<div id="g-item">
<?= $theme->photo_top() ?>
<div id="g-info">
<h1><?= html::purify($item->title) ?></h1>
<div class="g-hideitem"><?= bb2html(html::purify($item->description), 1) ?></div>
</div>
<?= $theme->paginator() ?>
<? // = new View("pager_photo.html") ?>
<div id="g-photo">
<?= $theme->resize_top($item) ?>
<? if (access::can("view_full", $item)): ?>
<a href="<?= $item->file_url() ?>" rel="shadowbox;player=img" title="<?= html::purify($item->title) ?>">
<? endif ?>
<?= $item->resize_img(array("id" => "g-photo-id-{$item->id}", "class" => "g-resize")) ?>
<? if (access::can("view_full", $item)): ?>
</a>
<? endif ?>
<?= $theme->resize_bottom($item) ?>
</div>
<?= $theme->paginator() ?>
<?// = new View("pager_photo.html") ?>
<?= $theme->photo_bottom() ?>
</div>
<?php defined("SYSPATH") or die("No direct script access.") ?>
<div id="g-item">
<?= $theme->photo_top() ?>
<div id="g-info">
<h1><?= html::purify($item->title) ?></h1>
<div class="g-hideitem"><?= bb2html(html::purify($item->description), 1) ?></div>
</div>
<?= $theme->paginator() ?>
<? // = new View("pager_photo.html") ?>
<div id="g-photo">
<?= $theme->resize_top($item) ?>
<? if (access::can("view_full", $item)): ?>
<a href="<?= $item->file_url() ?>" rel="shadowbox;player=img" title="<?= html::purify($item->title) ?>">
<? endif ?>
<?= $item->resize_img(array("id" => "g-photo-id-{$item->id}", "class" => "g-resize")) ?>
<? if (access::can("view_full", $item)): ?>
</a>
<? endif ?>
<?= $theme->resize_bottom($item) ?>
</div>
<?= $theme->paginator() ?>
<?// = new View("pager_photo.html") ?>
<?= $theme->photo_bottom() ?>
</div>

View File

@ -1,5 +1,5 @@
<?php defined("SYSPATH") or die("No direct script access.") ?>
<?= $theme->sidebar_top() ?>
<div class="g-toolbar">&nbsp;</div>
<?= $theme->sidebar_blocks() ?>
<?= $theme->sidebar_bottom() ?>
<?php defined("SYSPATH") or die("No direct script access.") ?>
<?= $theme->sidebar_top() ?>
<div class="g-toolbar">&nbsp;</div>
<?= $theme->sidebar_blocks() ?>
<?= $theme->sidebar_bottom() ?>

View File

@ -1,63 +1,63 @@
<?php
// Syntax Sample:
// --------------
// [img]http://elouai.com/images/star.gif[/img]
// [url="http://elouai.com"]eLouai[/url]
// [size="25"]HUGE[/size]
// [color="red"]RED[/color]
// [b]bold[/b]
// [i]italic[/i]
// [u]underline[/u]
// [list][*]item[*]item[*]item[/list]
// [code]value="123";[/code]
// [quote]John said yadda yadda yadda[/quote]
function bb2html($text, $mixmode) {
static $bbcode_mappings = array(
"#\\[b\\](.*?)\\[/b\\]#" => "<strong>$1</strong>",
"#\\[i\\](.*?)\\[/i\\]#" => "<em>$1</em>",
"#\\[u\\](.*?)\\[/u\\]#" => "<u>$1</u>",
"#\\[s\\](.*?)\\[/s\\]#" => "<strike>$1</strike>",
"#\\[o\\](.*?)\\[/o\\]#" => "<overline>$1</overline>",
"#\\[url\\](.*?)\[/url\\]#" => "<a href=\"$1\">$1</a>",
"#\\[url=(.*?)\\](.*?)\[/url\\]#" => "<a href=\"$1\" target=\"_blank\">$2</a>",
"#\\[mail=(.*?)\\](.*?)\[/mail\\]#" => "<a href=\"mailto:$1\" target=\"_blank\">$2</a>",
"#\\[img\\](.*?)\\[/img\\]#" => "<img src=\"$1\" alt=\"\" />",
"#\\[img=(.*?)\\](.*?)\[/img\\]#" => "<img src=\"$1\" alt=\"$2\" />",
"#\\[quote\\](.*?)\\[/quote\\]#" => "<blockquote><p>$1</p></blockquote>",
"#\\[code\\](.*?)\\[/code\\]#" => "<pre>$1</pre>",
"#\\[size=([^\\[]*)\\]([^\\[]*)\\[/size\\]#" => "<span style=\"font-size: $1;\">$2</span>",
"#\\[color=([^\\[]*)\\]([^\\[]*)\\[/color\\]#" => "<span style=\"color: $1;\">$2</span>",
"#\\[class=([^\\[]*)\\]([^\\[]*)\\[/class\\]#" => "<span class=\"$1\">$2</span>",
"#\\[center\\](.*?)\\[/center\\]#" => "<div style=\"text-align: center;\">$1</div>",
"#\\[list\\](.*?)\\[/list\\]#" => "<ul>$1</ul>",
"#\\[ul\\](.*?)\\[/ul\\]#" => "<ul>$1</ul>",
"#\\[li\\](.*?)\\[/li\\]#" => "<li>$1</li>",
);
// Replace any html brackets with HTML Entities to prevent executing HTML or script
// Don't use strip_tags here because it breaks [url] search by replacing & with amp
if ($mixmode == 1)
{
$newtext = str_replace("&lt;", "<", $text);
$newtext = str_replace("&gt;", ">", $newtext);
$newtext = str_replace("&quot;", "\"", $newtext);
} else {
$newtext = str_replace("<", "&lt;", $text);
$newtext = str_replace(">", "&gt;", $newtext);
$newtext = str_replace("&amp;quot;", "&quot;", $newtext);
}
// Convert new line chars to html <br /> tags
$newtext = nl2br($newtext);
if (strpos($text, "[") !== false) {
$newtext = preg_replace(array_keys($bbcode_mappings), array_values($bbcode_mappings), $newtext);
}
return stripslashes($newtext); //stops slashing, useful when pulling from db
}
<?php
// Syntax Sample:
// --------------
// [img]http://elouai.com/images/star.gif[/img]
// [url="http://elouai.com"]eLouai[/url]
// [size="25"]HUGE[/size]
// [color="red"]RED[/color]
// [b]bold[/b]
// [i]italic[/i]
// [u]underline[/u]
// [list][*]item[*]item[*]item[/list]
// [code]value="123";[/code]
// [quote]John said yadda yadda yadda[/quote]
function bb2html($text, $mixmode) {
static $bbcode_mappings = array(
"#\\[b\\](.*?)\\[/b\\]#" => "<strong>$1</strong>",
"#\\[i\\](.*?)\\[/i\\]#" => "<em>$1</em>",
"#\\[u\\](.*?)\\[/u\\]#" => "<u>$1</u>",
"#\\[s\\](.*?)\\[/s\\]#" => "<strike>$1</strike>",
"#\\[o\\](.*?)\\[/o\\]#" => "<overline>$1</overline>",
"#\\[url\\](.*?)\[/url\\]#" => "<a href=\"$1\">$1</a>",
"#\\[url=(.*?)\\](.*?)\[/url\\]#" => "<a href=\"$1\" target=\"_blank\">$2</a>",
"#\\[mail=(.*?)\\](.*?)\[/mail\\]#" => "<a href=\"mailto:$1\" target=\"_blank\">$2</a>",
"#\\[img\\](.*?)\\[/img\\]#" => "<img src=\"$1\" alt=\"\" />",
"#\\[img=(.*?)\\](.*?)\[/img\\]#" => "<img src=\"$1\" alt=\"$2\" />",
"#\\[quote\\](.*?)\\[/quote\\]#" => "<blockquote><p>$1</p></blockquote>",
"#\\[code\\](.*?)\\[/code\\]#" => "<pre>$1</pre>",
"#\\[size=([^\\[]*)\\]([^\\[]*)\\[/size\\]#" => "<span style=\"font-size: $1;\">$2</span>",
"#\\[color=([^\\[]*)\\]([^\\[]*)\\[/color\\]#" => "<span style=\"color: $1;\">$2</span>",
"#\\[class=([^\\[]*)\\]([^\\[]*)\\[/class\\]#" => "<span class=\"$1\">$2</span>",
"#\\[center\\](.*?)\\[/center\\]#" => "<div style=\"text-align: center;\">$1</div>",
"#\\[list\\](.*?)\\[/list\\]#" => "<ul>$1</ul>",
"#\\[ul\\](.*?)\\[/ul\\]#" => "<ul>$1</ul>",
"#\\[li\\](.*?)\\[/li\\]#" => "<li>$1</li>",
);
// Replace any html brackets with HTML Entities to prevent executing HTML or script
// Don't use strip_tags here because it breaks [url] search by replacing & with amp
if ($mixmode == 1)
{
$newtext = str_replace("&lt;", "<", $text);
$newtext = str_replace("&gt;", ">", $newtext);
$newtext = str_replace("&quot;", "\"", $newtext);
} else {
$newtext = str_replace("<", "&lt;", $text);
$newtext = str_replace(">", "&gt;", $newtext);
$newtext = str_replace("&amp;quot;", "&quot;", $newtext);
}
// Convert new line chars to html <br /> tags
$newtext = nl2br($newtext);
if (strpos($text, "[") !== false) {
$newtext = preg_replace(array_keys($bbcode_mappings), array_values($bbcode_mappings), $newtext);
}
return stripslashes($newtext); //stops slashing, useful when pulling from db
}
?>