1
0
Fork 0

Total rewrite of StopDesign. OK with Gallery3 RC1+ (Work in progress)

This commit is contained in:
Romain LE DISEZ 2010-06-02 12:07:14 +02:00
parent 5db2ef8b23
commit 8fa3a991d7
62 changed files with 1474 additions and 1719 deletions

4
.gitignore vendored Normal file
View File

@ -0,0 +1,4 @@
.DS_Store
tmp
*~
*.swp

View File

@ -1,68 +0,0 @@
/*
-----------------------------------------------
Photos
Author: Douglas Bowman
Version: 9 Nov 2004
----------------------------------------------- */
body {
background:#ccb url("img/bg.jpg") repeat-x 0 0;
}
/* Header
----------------------------------------------- */
#path {
border-color:#bba;
}
h1 {
color:#543;
border-color:#ddc;
}
h1 strong {
color:#234;
}
#title h1 {
width:733px;
}
.galleryinfo fieldset {
border-color:#bba;
}
/* Index
----------------------------------------------- */
#gallerydesc {
margin:-110px 20px 0 398px;
}
/* Individual photo
----------------------------------------------- */
#ind {
background-color:#bba;
}
html>body #ind {
background-color:transparent;
}
#comments-form td, #comments-form th, .commentlist dd, .commentlist li {
border-color:#AAAB9B;
}
/* Count
----------------------------------------------- */
#info p.count {
border-color:#ddc;
}
.galleryinfo .count {
background:#bba;
}
/* Footer
----------------------------------------------- */
#footer p {
border-color:#ddc;
color:#887;
}

View File

@ -1,81 +0,0 @@
/*
-----------------------------------------------
Photo Gallery Templates:
Custom Dimensions
----------------------------------------------- */
/* This file containes isolated measurement values you should change if you'd like
to use different dimensions for the main photo. All measurements are based off main
photos' maximum width. Default "MaxWidth" for photos (per template docs) is 480.
------------------------------------------------------------------------------------- */
/* Sets width of main (center) column.
[value] = MaxWidth + 20
EG: 480 + 20 = 500
----------------------------------------------- */
.main {
width:660px;
}
/* Determines position of prev/next thumbnails.
Measurement is distance from center of main
photo to the nearest edge of slide background
image. */
#prev {
/* [value] = (MaxWidth / 2) + 22 */
right:342px;
}
#next {
/* [value] = (MaxWidth / 2) + 25 */
left:345px;
}
/* Determines offset of prev/next hoverable
regions that overlay the main photo. Measurement
is distance from nearest edge of slide
background image back to center of main photo. */
#prev a strong {
/* [value] = 0 - (MaxWidth / 2) - 22 */
right:-342px;
}
#next a strong {
/* [value] = 0 - (MaxWidth / 2) - 25 */
left:-345px;
}
/* Determines position of title and description.
Measurement is distance from center of main
photo to left edge of content.
Note: Second value for background position
should always be 0. */
#desc h1, #desc p {
/* [value] = (MaxWidth / 2) + 25 */
background-position:345px 0;
padding-left:345px;
}
/* Determines position of meta info such as
Photo x of y, date, & keywords. Measurement is
distance from center of main photo to left
edge of content. */
#meta ul {
/* [value] = (MaxWidth / 2) + 25 */
padding-right:345px;
}
/* If customizing the photo dimensions, one
more value needs to change in the Individual
Photo template (t_photo.php). Search for the
following tag:
<$MTSetVar2 name="padvalue" value="480"$>
and change the value to your new photo MaxWidth.
/* End of custom values
------------------------------------------------------------------------------------- */

View File

@ -1,113 +0,0 @@
.ui-widget-overlay {
background: #000;
opacity: 0.7;
position: fixed;
top: 0;
bottom: 0;
left: 0;
right: 0;
}
.ui-dialog {
background: #e5e5e5;
position: absolute;
/*top: 25px !important;*/
-moz-box-shadow: 10px 10px 5px #fff;
box-shadow: 10px 10px 5px #fff;
}
.ui-dialog-titlebar {
display: none;
}
.ui-dialog-titlebar-close {
display: none;
}
.ui-dialog fieldset {
border: 0;
}
.ui-dialog fieldset legend {
text-align: center;
font-weight: bold;
font-size: 1em;
}
/*#gDialog > form > fieldset {
border: 0;
margin: 0;
padding: 0;
}
#gDialog > form > fieldset > legend {
font-weight: bold;
}
#gDialog > form > fieldset > ul {
list-style-type: none;
margin: 0;
padding: 0;
}
#gDialog > form > fieldset > ul > li > input {
width: 100%;
}
#gPermissions {
}*/
/* Simple uploader ~~~~~~~~~~~~~~~~~~~~~~~ */
#g-add-photos-canvas {
border: 1px solid #ccc;
height: 200px;
margin: .5em 0;
overflow: auto;
width: 469px;
}
#g-add-photos-status {
border: 1px solid #ccc;
height: 125px;
margin: .5em 0;
overflow: auto;
width: 469px;
}
#g-add-photos button {
float: right;
margin-bottom: .5em;
margin-left: .5em;
}
#g-add-photos-status li {
text-align: left;
padding-left: 2em;
}
#g-add-photos-status li.g-success {
background: #d9efc2 url('images/ico-success.png') no-repeat .4em 50%;
width: 429px;
}
#g-add-photos-status li.g-error {
background: #f6cbca url('images/ico-error.png') no-repeat .4em 50%;
width: 429px;
/* color: #f00;*/
}
#g-add-photos-button {
background: #DFEFFC;
border: 1px solid #C5DBEC;
color: #2E6E9E
}
#g-add-photos p {
margin: 0
}
#g-add-photos .g-breadcrumbs li {
padding-top: .5em;
}

View File

@ -1,108 +0,0 @@
body {
background-image: url("../img/bg.jpg");
}
.thumb a strong {
/* MaxWidth / 2 */
width: 320px;
/* MaxHeight */
height: 480px;
}
.vertical .thumb a strong {
/* MaxWidth / 2 */
width: 180px;
/* MaxHeight */
height: 480px;
}
.vertical .main {
width: 380px;
}
.thumb a strong {
margin-top: 11px;
}
.thumb a:hover strong {
background-position:50% 0px !important;
}
.thumb a {
/* thumb size + 31 */
width: 231px !important;
height: 231px !important;
}
#prev, #next {
/* thumb size + 34 */
width: 234px;
}
#prev a, #next a {
/* thumb size + 34 */
width: 231px;
}
#desc, #meta {
/* thumb size + 80 */
top:280px;
}
.slideset .thumb a {
position: relative;
line-height: 234px !important;
text-align: center;
text-indent: 0 !important;
font-size: 12px !important;
}
.slideset .thumb a span {
position: absolute;
line-height: 12px;
bottom: 2px;
width: 100%;
font-size:90%;
line-height:1.4em;
font-family:"Gill Sans","Trebuchet MS",Verdana,Sans-serif;
font-weight:normal;
text-transform:uppercase;
letter-spacing:.2em;
text-align:center;
color:#333;
}
.slideset .thumb a:hover span {
/*background: #ddd;*/
}
.galleryinfo p {
position: relative;
}
.galleryinfo .count {
text-align: center;
}
#next-page {
position: absolute;
right: 0;
clear: both;
}
#footer #credits {
margin: 0;
padding: 0;
list-style-type: none;
}
#footer #credits li {
background: none;
padding: 0;
display: inline;
}
#meta ul#actions {
margin-top: 10px;
}
#meta ul#actions li:first-child {
background:url("../img/divider_l.gif") no-repeat 100% 0;
padding-top:10px;
}
html>body #meta ul#actions li:first-child {
background-image:url("../img/divider_l.png");
}

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,913 @@
/* =Links
----------------------------------------------- */
h1 {
margin:0 0 3px;
padding:0 0 .35em;
border-bottom:1px solid #ddd;
font:200% "Gill Sans","Trebuchet MS",Verdana,Sans-serif;
line-height:1.2em;
text-align:center;
text-transform:uppercase;
letter-spacing:.15em;
}
h1 {
color:#543;
border-color:#ddc;
}
a, a:visited {
color:#258;
text-decoration:none;
border-bottom:1px solid #469;
outline:none;
}
html>body a, html>body a:visited {
border-bottom-style:dotted;
}
a:hover, a:active {
color:#933;
border-color:#b55;
border-bottom-style:solid;
}
a img, a.btn, a.btn:visited, a.i, a.i:visited, a.i:hover {
border-width:0;
}
a.btn img, a.i>img {
position:relative;
top:2px;
}
#g-login-menu {
position: absolute;
right: 0;
padding: 0;
margin: 0;
}
#g-login-menu li {
display: inline;
}
#g-login-menu li:first-child {
/*display: none;*/
}
#g-logo, #g-quick-search-form, #g-site-menu {
display: none;
}
/* ~~~~~ Page ~~~~~ */
body, html {
background: #ccb url("../images/backgrounds/body-bg.jpg") repeat-x 0 0;
margin: 0;
padding: 0;
font: small Verdana,Sans-serif;
color: #333;
}
.g-view {
width: 100%;
}
#bd {
margin: 0;
padding: 15px 15px 0 15px;
}
/* ~~~~~ Header ~~~~~ */
#g-header {
background: #000 url("../images/backgrounds/body-breadcrumbs-bg.gif");
padding: 4px 0 6px;
border-bottom: 3px solid #bba;
min-height: 1.6em;
}
#g-banner {
/*display: none;*/
}
.g-breadcrumbs {
margin: 0;
padding: 0;
font-size: 85%;
line-height: 1.6em;
color: #777;
text-align: center;
}
.g-breadcrumbs li,
.g-breadcrumbs a {
border-color: #777;
color: #888;
}
.g-breadcrumbs li {
display: inline;
padding-left: 0.3em;
}
.g-breadcrumbs li:after {
content: "»";
}
.g-breadcrumbs li.g-active:after {
content: "";
}
.g-breadcrumbs a {
margin-right: 0.3em;
}
/* ~~~~~ Footer ~~~~~ */
#g-footer {
clear: both;
margin: 0 15px;
border-top: 1px solid #ddc;
color: #887;
padding: .5em 0 2em 0;
text-align: center;
}
#g-footer #g-credits {
list-style: none;
display: inline;
margin: 0 auto;
padding: 0;
}
#g-footer #g-credits li {
display: inline;
}
/* Status and validation messages ~~~~ */
.g-message-block {
background-position: .4em .3em;
border: 1px solid #ccc;
padding: 0;
}
#g-action-status {
width: 75%;
float: right;
margin-bottom: 1em;
}
#g-action-status li,
p#g-action-status,
div#g-action-status {
padding: .3em .3em .3em 30px;
}
#g-site-status li {
border-bottom: 1px solid #ccc;
padding: .3em .3em .3em 30px;
}
.g-module-status {
clear: both;
margin-bottom: 1em;
}
.g-message {
background-position: 0 50%;
}
.g-warning {
background: #fcf9ce url('../../../lib/images/ico-warning.png') no-repeat .4em 50%;
}
/* ~~~~~ Album ~~~~~ */
#g-content > #g-info {
clear:left;
float:left;
width:22%;
margin:0;
line-height:1.4em;
}
#g-content > #g-info h1 {
margin:0 0 .5em;
text-align:left;
text-transform:none;
letter-spacing:0;
}
#g-content > #g-info .g-description {
line-height:1.6em;
margin-bottom:1em;
}
#g-content > #g-album-grid {
float:right;
position:relative;
width:75%;
margin:0 0 15px;
padding:0;
list-style:none;
line-height:1.4em;
}
#g-content > #g-album-grid li.g-item {
}
/*.g-item .g-context-menu,*/
.g-item .g-metadata
{
display: none;
}
.g-item > ul.g-context-menu {
list-style-type: none;
display: none;
position: absolute;
top: 0px;
left: 0px;
font-size: 12px;
width: 32px;
height: 32px;
padding: 2px;
margin: 0;
}
.g-item:hover > ul.g-context-menu {
display: block;
}
.g-item:hover > ul.g-context-menu > li {
display: block;
width: 32px;
height: 32px;
background: url('../images/emblems/g-context-menu.png') no-repeat;
}
.g-item:hover > ul.g-context-menu > li:hover {
background: none;
}
.g-item:hover > ul.g-context-menu > li > a {
display: none;
}
.g-item:hover > ul.g-context-menu > li > ul {
list-style-type: none;
background: url('../images/backgrounds/000000_opacity50.png') 0 0 repeat;
padding: 5px 2px ;
display: none;
position: absolute;
top: 0;
left: 0;
width: 230px;
text-align: left;
-moz-border-radius-topleft: 5px;
-moz-border-radius-topright: 5px;
-webkit-border-top-left-radius: 5px;
-webkit-border-top-right-radius: 5px;
z-index: 2;
}
.g-item:hover > ul.g-context-menu > li:hover > ul {
display: block;
}
.g-item:hover > ul.g-context-menu > li:hover > ul > li {
line-height: 16px;
padding: 0px 0 0px 20px;
}
.g-item:hover > ul.g-context-menu > li:hover > ul > li > a {
color: #fff;
text-decoration: none;
border: none;
display: block;
padding: 4px 0;
}
.g-item:hover > ul.g-context-menu > li:hover > ul > li > a > span {
height: 16px;
width: 16px;
display: block;
position: absolute;
left: 2px;
background-image: url("../images/icons/ui-icons_d8e7f3_256x240.png");
}
.g-item:hover > ul.g-context-menu > li:hover > ul > li:hover > a {
color: #f9bd01;
}
.g-item:hover > ul.g-context-menu > li:hover > ul > li:hover > a > span {
background-image: url("../images/icons/ui-icons_f9bd01_256x240.png");
}
span.ui-icon-pencil { background-position: -64px -112px; }
span.ui-icon-folder-open { background-position: -16px -96px; }
span.ui-icon-star { background-position: -224px -112px; }
span.ui-icon-trash { background-position: -176px -96px; }
span.ui-icon-rotate-ccw { background-position: -192px -64px; }
span.ui-icon-rotate-cw { background-position: -208px -64px; }
span.ui-icon-plus { background-position: -16px -128px; }
span.ui-icon-note { background-position: -64px -96px; }
span.ui-icon-key { background-position: -112px -128px; }
.g-item {
float:left;
margin:0 10px 10px 0;
position: relative;
text-align: center;
background-color: #fff;
background-image: url("../images/backgrounds/thumb.png");
background-position: 0 0;
background-repeat: no-repeat;
-webkit-border-radius: 5px;
-webkit-box-shadow: 3px 3px 0px #b7b7a7;
-moz-border-radius: 5px;
-moz-box-shadow: 3px 3px 0px #b7b7a7;
}
.g-item > div {
margin-top: 0;
}
.g-item > a {
display: table-cell;
text-decoration: none;
border: 0;
vertical-align: middle;
}
.g-item.g-album > a {
background-image: url("../images/emblems/g-item_g-album.png");
background-repeat: no-repeat;
}
.g-item > h2 {
position: absolute;
left: 15px;
bottom: 8px;
margin: 0;
padding-top: 8px;
background: #fff;
text-align: center;
color:#333;
line-height: 10px;
font-size: 10px;
font-family:"Gill Sans","Trebuchet MS",Verdana,Sans-serif;
font-weight: normal;
text-transform: uppercase;
letter-spacing: .1em;
}
.g-item > h2 a {
border: 0;
}
#g-content > .g-paginator {
clear:left;
float:left;
width:22%;
position: relative;
padding: 2em 0 0 0;
margin: 0;
}
#g-content > .g-paginator li {
padding: 0;
margin: 0;
list-style: none;
}
#g-content > .g-paginator .g-info {
position: absolute;
top: 0;
width: 100%;
background:#bba;
text-align: center;
padding:2px 0;
margin:0 0 .5em;
}
#g-content > .g-paginator .g-first,
#g-content > .g-paginator .g-text-right {
width: 45%;
float: left;
}
#g-content > .g-paginator .g-text-right {
float: right;
text-align: right;
}
#g-content > .g-paginator .g-first a + a:before {
content: "« ";
}
#g-content > .g-paginator .g-text-right a:first-child:after {
content: " »";
}
#g-content > .g-paginator .g-first a:first-child,
#g-content > .g-paginator .g-text-right a + a,
#g-content > .g-paginator .ui-state-disabled {
display: none;
}
#g-sidebar {
clear:left;
float:left;
width:22%;
}
#g-sidebar .g-block {
margin-top: 1em;
}
#g-sidebar .g-block h2 {
width: 100%;
background:#bba;
text-align: center;
padding:2px 0;
margin:0 0 .5em;
font-size: 1em;
font-weight: normal;
}
/* ~~~~~ Item ~~~~~ */
#g-item {
position: relative;
}
#g-item #g-photo,
#g-item #g-movie {
text-align: center;
display: inline;
position: relative;
left: 50%;
background: #b7b7a7;
}
#g-item #g-movie {
display: block;
}
#g-item #g-photo a {
border: none;
}
#g-item #g-photo a img {
border: 10px solid #fff;
-webkit-box-shadow: 3px 3px 0px #b7b7a7;
-moz-box-shadow: 3px 3px 0px #b7b7a7;
}
#g-item .g-paginator {
position: absolute;
left: 50%;
width: 0px;
height: 0px;
list-style: none;
padding: 0;
margin: 0;
}
#g-item .g-paginator li {
padding: 0;
margin: 0;
display: inline;
}
#g-item .g-paginator li.g-info {
display: block;
position: absolute;
right: 340px; /* 640/2 + 10 + 10 */
top: 230px;
width: 230px;
height: 30px;
padding-top: 10px;
margin-top: 30px;
text-align: right;
font-style: italic;
background-image: url("../images/divider_l.png");
background-position: right top;
background-repeat: no-repeat;
}
#g-item .g-paginator li.g-first,
#g-item .g-paginator li.g-text-right {
display: block;
position: relative;
background-color: #fff;
background-image: url("../images/backgrounds/thumb.png");
background-repeat: no-repeat;
border-radius: 5px;
box-shadow: 3px 3px 0px #b7b7a7;
-webkit-border-radius: 5px;
-webkit-box-shadow: 3px 3px 0px #b7b7a7;
-moz-border-radius: 5px;
-moz-box-shadow: 3px 3px 0px #b7b7a7;
}
#g-item .g-paginator li.g-first a,
#g-item .g-paginator li.g-text-right a {
display: block;
width: 100%;
height: 100%;
text-decoration: none;
background-position: center;
background-repeat: no-repeat;
border-bottom: none;
text-indent: -9999em;
font-size: 1px;
color: #fff;
}
#g-item .g-paginator li.g-text-right {
position: absolute;
top: 0px;
}
#g-item .g-paginator li.g-first a:hover span,
#g-item .g-paginator li.g-text-right a:hover span {
display: block;
position: relative;
height: 22px;
top: 10px;
background-position: center;
background-repeat: no-repeat;
z-index: 2;
}
#g-item .g-paginator li.g-first a:hover span {
background-image: url("../images/photonav_prev.png");
}
#g-item .g-paginator li.g-text-right a:hover span {
background-image: url("../images/photonav_next.png");
}
#g-item .g-context-menu {
display: none;
}
#g-item #g-info {
width: 230px;
position: absolute;
top: 260px; /* (230 + 30) */
left: 50%;
margin-left: 340px; /* (640/2 + 10 + 10) */
}
#g-item #g-info h1 {
text-align: left;
font-size: 1em;
border: none;
padding-top: 10px;
background-image: url("../images/divider_r.png");
background-position: left top;
background-repeat: no-repeat;
}
#g-item .g-block {
display: none;
}
#g-item .g-block#g-metadata {
text-align: right;
display: block;
width: 300px; /* 230px is not enought: french is verbose */
position: absolute;
right: 50%;
margin-right: 340px; /* (640/2 + 10 + 10) */
top: 300px; /* (230 + 30 + 10 + 30) */
}
#g-item .g-block#g-metadata h2 {
font-size: 1em;
padding-top: 10px;
text-align: right;
font-style: italic;
background-image: url("../images/divider_l.png");
background-position: right top;
background-repeat: no-repeat;
}
#g-item .g-block#g-metadata ul {
list-style: none;
padding: 0;
}
#g-item .g-block#g-comments {
display: block;
}
/* ~~~~~ Dialog ~~~~~ */
.ui-widget-overlay {
background: #000;
opacity: .8;
position: fixed;
top: 0;
bottom: 0;
left: 0;
right: 0;
}
.ui-dialog {
background: url("../images/backgrounds/f0f0f0_opacity80.png");
position: fixed !important;
padding: 0;
}
.ui-dialog-titlebar {
display: none;
}
#g-dialog {
padding: 0 2em 0 15px;
margin: 0;
}
#g-dialog form, #g-dialog div#g-edit-permissions-form {
padding: 0 0 0 63px; /* 48 + 15 */
margin: 0;
background-repeat: no-repeat;
background-position: 0px 3em;
}
#g-dialog form#g-add-album-form {
background-image: url("../images/icons/g-add-album-form.png");
}
#g-dialog form#g-edit-album-form {
background-image: url("../images/icons/g-edit-album-form.png");
}
#g-dialog form#g-add-photos-form {
background-image: url("../images/icons/g-add-photos-form.png");
}
#g-dialog form#g-confirm-delete {
background-image: url("../images/icons/g-confirm-delete.png");
}
#g-dialog div#g-edit-permissions-form {
background-image: url("../images/icons/g-edit-permissions-form.png");
}
#g-dialog form fieldset,
#g-dialog div#g-edit-permissions-form fieldset {
border: none;
padding: 0;
margin: 0;
}
#g-dialog form fieldset legend,
#g-dialog div#g-edit-permissions-form fieldset legend {
font-size: 1em;
font-weight: bold;
/*text-align: center;*/
display: block;
padding: 1em 0 1em 0;
/*margin: auto;*/
}
#g-dialog form fieldset ul,
#g-dialog div#g-edit-permissions-form fieldset ul {
list-style: none;
margin: 0;
padding: 0;
}
#g-dialog form fieldset ul li,
#g-dialog div#g-edit-permissions-form fieldset ul li {
padding-bottom: 0.8em;
}
/*#g-dialog form fieldset ul li label {
padding-bottom: 0.5em;
}*/
#g-dialog input.textbox,
#g-dialog input[type=text],
#g-dialog input[type=password],
#g-dialog textarea {
/*border: 1px solid #000;*/
width: 100%;
padding: 0;
margin: 0;
}
#g-dialog textarea {
height: 8em;
}
#g-add-photos-canvas-sd {
height: 33px;
/*margin-right: 63px;*/
position: relative;
}
#g-add-photos-button-sd {
z-index: 1;
display: block;
position: relative;
width: 150px;
height: 20px;
top: 6px;
padding: 0;
margin: auto;
}
#g-add-photos-canvas-sd object {
margin: 0;
z-index: 100;
position: relative;
display: block;
margin: auto;
top: -20px;
/*top: 0;
left: 50%;
padding-right: 75px;*/
/*position: relative;display: none;*/
}
.uploadifyQueue {
display: none;
}
#g-add-photos-progress {
margin-top: 1em;
}
#g-add-photos-progress li {
padding: 0;
}
#g-add-photos-progress-text {
font-size: 1.2em;
}
#g-add-photos-progressbar-frame {
width: 100%;
padding: 0 !important;
border: 1px solid #aaa;
}
#g-add-photos-progressbar {
display: block;
height: 22px;
width: 0%;
background-image: url("../images/backgrounds/pbar-ani.gif");
background-repeat: x-repeat;
}
#g-add-photos-progressbar.stop {
background-image: url("../images/backgrounds/pbar-ani-stop.gif");
}
#g-dialog div#g-edit-permissions-form table {
width: 100%;
border: none;
padding: 0;
margin: 0;
border-spacing: 0px;
border-collapse: collapse;
}
#g-dialog div#g-edit-permissions-form table a {
border: none;
}
#g-dialog div#g-edit-permissions-form tbody tr {
border-bottom: 1px solid #aaa;
}
#g-dialog div#g-edit-permissions-form thead th {
font-weight: normal;
}
#g-dialog div#g-edit-permissions-form tbody th {
text-align: left;
}
#g-dialog div#g-edit-permissions-form td {
width: 65px;
}
/*#g-dialog input[type=submit].submit {
float: right;
}
#g-dialog a.g-cancel {
float: left;
clear: left;
}*/
/* Forms in dialogs and panels ~~~~~~~~~ */
/*#g-dialog ul li {
padding-bottom: .8em;
}
input[readonly] {
background-color: #F4F4FC;
}
#g-dialog input.textbox,
#g-dialog input[type=text],
#g-dialog input[type=password],
#g-dialog textarea {
width: 97%;
}*/
/* Short forms ~~~~~~~~~~~~~~~~~~~~~~~ */
/*.g-short-form legend,
.g-short-form label {
display: none;
}
.g-short-form fieldset {
border: none;
padding: 0;
}
.g-short-form li {
float: left;
margin: 0 !important;
padding: .4em 0;
}
.g-short-form .textbox,
.g-short-form input[type=text] {
color: #666;
padding: .3em .6em;
width: 100%;
}
.g-short-form .textbox.g-error {
border: 1px solid #f00;
color: #f00;
padding-left: 24px;
}
.g-short-form .g-cancel {
display: block;
margin: .3em .8em;
}
#g-sidebar .g-short-form li {
padding-left: 0;
padding-right: 0;
}*/
/* Dialogs and panels ~~~~~~~~~~~~~~~~~~ */
/*#g-dialog {
text-align: left;
}
#g-dialog .g-cancel {
margin: .4em 1em;
}
#g-panel {
display: none;
padding: 1em;
}*/
/* Inline layout ~~~~~~~~~~ */
/*.g-inline li {
float: left;
margin-left: 1.8em;
padding-left: 0 !important;
}
.g-inline li.g-first {
margin-left: 0;
}*/

Binary file not shown.

After

Width:  |  Height:  |  Size: 291 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.9 KiB

View File

Before

Width:  |  Height:  |  Size: 502 B

After

Width:  |  Height:  |  Size: 502 B

View File

Before

Width:  |  Height:  |  Size: 62 B

After

Width:  |  Height:  |  Size: 62 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 293 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 254 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 297 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 321 B

View File

Before

Width:  |  Height:  |  Size: 48 B

After

Width:  |  Height:  |  Size: 48 B

View File

Before

Width:  |  Height:  |  Size: 166 B

After

Width:  |  Height:  |  Size: 166 B

View File

Before

Width:  |  Height:  |  Size: 168 B

After

Width:  |  Height:  |  Size: 168 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

View File

Before

Width:  |  Height:  |  Size: 99 B

After

Width:  |  Height:  |  Size: 99 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

View File

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB

View File

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB

View File

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

View File

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

View File

Before

Width:  |  Height:  |  Size: 1016 B

After

Width:  |  Height:  |  Size: 1016 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 460 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 137 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 884 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 922 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 235 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 289 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 77 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 77 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 478 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 547 B

View File

@ -1,73 +0,0 @@
<!--
/*
The hide/show code is based on an example from the article "Unobtrusive show/hide behavior reloaded" by Bobby van der Sluis
URL: http://www.bobbyvandersluis.com/articles/unobtrusiveshowhide.php
*/
if (document.getElementById) {
if (getCookie('showcomments') != 1) {
document.write('<link rel="stylesheet" type="text/css" href="' + blogrelurl + 'meta/css/comments-hide.css" />');
} else {
document.write('<link rel="stylesheet" type="text/css" href="' + blogrelurl + 'meta/css/comments-show.css" />');
}
window.onload = initCommentState;
}
// Hide all toggleable sections with JavaScript for the highly improbable case that CSS is disabled
// Note that in this case the 'flash of visible content' still will occur
function initCommentState() {
var showBtn = document.getElementById('showcomments');
var hideBtn = document.getElementById('hidecomments');
if ((showBtn) && (hideBtn)) {
if (getCookie('showcomments') != 1) {
document.getElementById('comments').style.display = 'none';
document.getElementById('hidecomments').style.display = 'none';
document.getElementById('showcomments').style.display = 'inline';
} else {
document.getElementById('showcomments').style.display = 'none';
document.getElementById('hidecomments').style.display = 'inline';
}
showBtn.onclick = function() {
showComments();
return false;
}
hideBtn.onclick = function() {
hideComments();
return false;
}
}
var addComment = document.getElementById('addcomment');
var addCommentButton = document.getElementById('addcommentbutton');
addComment.style.display = 'none';
addCommentButton.style.display = 'block';
addCommentButton.onclick = function() {
addComment.style.display = 'block';
addCommentButton.style.display = 'none';
}
}
function hideComments() {
var now = createExpires();
document.getElementById('comments').style.display = 'none';
document.getElementById('showcomments').style.display = 'inline';
document.getElementById('hidecomments').style.display = 'none';
setCookie('showcomments', 0, now, '/', '', '');
}
function showComments() {
var now = createExpires();
document.getElementById('comments').style.display = 'block';
document.getElementById('showcomments').style.display = 'none';
document.getElementById('hidecomments').style.display = 'inline';
setCookie('showcomments', 1, now, '/', '', '');
}
function createExpires() {
var now = new Date();
fixDate(now);
now.setTime(now.getTime() + 365 * 24 * 60 * 60 * 1000);
now = now.toGMTString();
return now;
}
//-->

View File

@ -1,60 +0,0 @@
<!--
// Copyright (c) 1996-1997 Athenia Associates.
// http://www.webreference.com/js/
// License is granted if and only if this entire
// copyright notice is included. By Tomer Shiran.
function setCookie (name, value, expires, path, domain, secure) {
var curCookie = name + "=" + escape(value) + (expires ? "; expires=" + expires : "") + (path ? "; path=" + path : "") + (domain ? "; domain=" + domain : "") + (secure ? "secure" : "");
document.cookie = curCookie;
}
function getCookie (name) {
var prefix = name + '=';
var c = document.cookie;
var nullstring = '';
var cookieStartIndex = c.indexOf(prefix);
if (cookieStartIndex == -1)
return nullstring;
var cookieEndIndex = c.indexOf(";", cookieStartIndex + prefix.length);
if (cookieEndIndex == -1)
cookieEndIndex = c.length;
return unescape(c.substring(cookieStartIndex + prefix.length, cookieEndIndex));
}
function deleteCookie (name, path, domain) {
if (getCookie(name))
document.cookie = name + "=" + ((path) ? "; path=" + path : "") + ((domain) ? "; domain=" + domain : "") + "; expires=Thu, 01-Jan-70 00:00:01 GMT";
}
function fixDate (date) {
var base = new Date(0);
var skew = base.getTime();
if (skew > 0)
date.setTime(date.getTime() - skew);
}
function rememberMe (f) {
var now = new Date();
fixDate(now);
now.setTime(now.getTime() + 365 * 24 * 60 * 60 * 1000);
now = now.toGMTString();
if (f.author != undefined)
setCookie('mtcmtauth', f.author.value, now, '/', '', '');
if (f.email != undefined)
setCookie('mtcmtmail', f.email.value, now, '/', '', '');
if (f.url != undefined)
setCookie('mtcmthome', f.url.value, now, '/', '', '');
}
function forgetMe (f) {
deleteCookie('mtcmtmail', '/', '');
deleteCookie('mtcmthome', '/', '');
deleteCookie('mtcmtauth', '/', '');
f.email.value = '';
f.author.value = '';
f.url.value = '';
}
//-->

View File

@ -3,7 +3,7 @@
*/
$(document).ready(function() {
$(".g-dialog-link").gallery_dialog('option', 'position', 'top');
$(".g-dialog-link").gallery_dialog('option', 'draggable', false);
$(".g-ajax-link").gallery_ajax();
$.ui.gallery_dialog.defaults.position = "top";
//$.ui.gallery_dialog.defaults.show = "slide";
$.ui.dialog.defaults.draggable = false;
});

View File

@ -5,8 +5,8 @@
$(document).ready(function() {
// Initialize Superfish menus (hidden, then shown to address IE issue)
/*$("#g-site-menu .g-menu").hide().addClass("sf-menu");
$("#g-site-menu .g-menu").superfish({
$("#g-site-menu .g-menu").hide().addClass("sf-menu");
/*$("#g-site-menu .g-menu").superfish({
delay: 500,
animation: {
opacity:'show',
@ -17,23 +17,23 @@ $(document).ready(function() {
}).show();*/
// Initialize status message effects
/*$("#g-action-status li").gallery_show_message();*/
$("#g-action-status li").gallery_show_message();
// Initialize dialogs
$(".g-dialog-link").gallery_dialog();
// Initialize short forms
/*$(".g-short-form").gallery_short_form();*/
$(".g-short-form").gallery_short_form();
// Apply jQuery UI icon, hover, and rounded corner styles
/*$("input[type=submit]:not(.g-short-form input)").addClass("ui-state-default ui-corner-all");
$("input[type=submit]:not(.g-short-form input)").addClass("ui-state-default ui-corner-all");
if ($("#g-view-menu").length) {
$("#g-view-menu ul").removeClass("g-menu").removeClass("sf-menu");
$("#g-view-menu a").addClass("ui-icon");
}*/
}
// Apply jQuery UI icon and hover styles to context menus
/*if ($(".g-context-menu").length) {
if ($(".g-context-menu").length) {
$(".g-context-menu li").addClass("ui-state-default");
$(".g-context-menu a").addClass("g-button ui-icon-left");
$(".g-context-menu a").prepend("<span class=\"ui-icon\"></span>");
@ -41,9 +41,9 @@ $(document).ready(function() {
var iconClass = $(this).parent().attr("class").match(/ui-icon-.[^\s]+/).toString();
$(this).addClass(iconClass);
});
}*/
}
// Album view only
// Album and search results views
/*if ($("#g-album-grid").length) {
// Set equal height for album items and vertically align thumbnails/metadata
$('.g-item').equal_heights().gallery_valign();
@ -64,7 +64,13 @@ $(document).ready(function() {
$(this).height("auto");
var context_menu = $(this).find(".g-context-menu");
var adj_height = $(this).height() + context_menu.height();
$(this).height(adj_height);
if ($(this).next().height() > $(this).height()) {
$(this).height($(this).next().height());
} else if ($(this).prev().height() > $(this).height()) {
$(this).height($(this).prev().height());
} else {
$(this).height(adj_height);
}
},
function() {
// Reset item height and position
@ -87,25 +93,27 @@ $(document).ready(function() {
}*/
// Photo/Item item view
/*if ($("#g-photo,#g-movie").length) {
if ($("#g-photo,#g-movie").length) {
// Ensure the resized image fits within its container
$("#g-photo,#g-movie").gallery_fit_photo();
// Initialize context menus
var resize = $("#g-photo,#g-movie").gallery_get_photo();
$(resize).hover(function(){
$("#g-photo,#g-movie").hover(function(){
$(this).gallery_context_menu();
});
// Add scroll effect for links to named anchors
$.localScroll({
/*$.localScroll({
queue: true,
duration: 1000,
hash: true
});
}*/
});*/
$(this).find(".g-dialog-link").gallery_dialog();
$(this).find(".g-ajax-link").gallery_ajax();
}
// Initialize button hover effect
/*$.fn.gallery_hover_init();*/
$.fn.gallery_hover_init();
});

View File

@ -1,6 +1,8 @@
name = "Stop Design"
description = "A clean and sober theme from <a href="http://stopdesign.com/templates/photos/">stopdesign.com</a>, by Douglas Bowman."
description = "A clean and sober theme from http://stopdesign.com/templates/photos/, by Douglas Bowman."
version = 1
author = "Romain LE DISEZ"
author = "RLD"
site = 1
admin = 0
;wind commit = 1240878df0f4a2b0ad0cdb32814717038ff2773f
;wind date = Fri May 14 16:55:15 2010 -0700

Binary file not shown.

Before

Width:  |  Height:  |  Size: 41 KiB

After

Width:  |  Height:  |  Size: 37 KiB

View File

@ -1,61 +1,42 @@
<?php defined("SYSPATH") or die("No direct script access.") ?>
<? // @todo Set hover on AlbumGrid list items for guest users ?>
<div class="galleryinfo">
<div id="g-info">
<?= $theme->album_top() ?>
<h1><?= html::purify($item->title) ?></h1>
<p class="desc"><?= nl2br(html::purify($item->description)) ?></p>
<div class="g-description"><?= nl2br(html::purify($item->description)) ?></div>
</div>
<ul class="slideset">
<ul id="g-album-grid" class="ui-helper-clearfix">
<? if (count($children)): ?>
<!-- Albums first -->
<? foreach ($children as $i => $child): ?>
<? if( $child->is_album() ): ?>
<li class="thumb"><em style="background-image: url('<?= $child->thumb_url() ?>');"><a href="<?= $child->url() ?>"><span><?= html::purify($child->title) ?></span></a></em></li>
<? endif; ?>
<? endforeach ?>
<? foreach ($children as $i => $child): ?>
<? if( !$child->is_album() ): ?>
<li class="thumb"><em style="background-image: url('<?= $child->thumb_url() ?>');"><a href="<?= $child->url() ?>"><span><?= html::purify($child->title) ?></span></a></em></li>
<? endif; ?>
<? $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) ?>
<a href="<?= $child->url() ?>">
<?= $child->thumb_img(array("class" => "g-thumbnail")) ?>
</a>
<?= $theme->thumb_bottom($child) ?>
<?= $theme->context_menu($child, "#g-item-id-{$child->id} .g-thumbnail") ?>
<h2><span class="<?= $item_class ?>"></span>
<a href="<?= $child->url() ?>"><?= html::purify($child->title) ?></a></h2>
<ul class="g-metadata">
<?= $theme->thumb_info($child) ?>
</ul>
</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() ?>
<div class="galleryinfo">
<p>
<em class="count"><?= /* @todo This message isn't easily localizable */
t2("Photo %from_number of %count",
"Photos %from_number - %to_number of %count",
$children_count,
array("from_number" => ($page - 1) * $page_size + 1,
"to_number" => min($page * $page_size, $children_count),
"count" => $children_count)) ?>
</em>
<? if ($page != 1): ?>
<a href="<?= url::site(url::merge(array("page" => $page - 1))) ?>" accesskey="z">&laquo; <?= t("Previous") ?></a>
<? endif; ?>
&nbsp;
<? if ($page != $max_pages): ?>
<a id="next-page" href="<?= url::site(url::merge(array("page" => $page + 1))) ?>" accesskey="x"><?= t("Next") ?> &raquo;</a>
<? endif; ?>
</p>
<? if( access::can("add", $item) || access::can("edit", $item) ): ?>
<p><em class="count">Actions</em></p>
<ul>
<? if( access::can("add", $item) ): ?>
<li><a class="g-dialog-link" href="<?= url::site("simple_uploader/app/$item->id") ?>"><?= t("Add photos") ?></a></li>
<li><a class="g-dialog-link" href="<?= url::site("form/add/albums/$item->id?type=album") ?>"><?= t("Add an album") ?></a></li>
<? endif; ?>
<? if( access::can("edit", $item) ): ?>
<li><a class="g-dialog-link" href="<?= url::site("form/edit/{$item->type}s/$item->id") ?>"><?= t("Edit album") ?></a></li>
<li><a class="g-dialog-link" href="<?= url::site("move/browse/$item->id") ?>"><?= t("Move to another album") ?></a></li>
<li><a class="g-dialog-link" href="<?= url::site("quick/form_delete/$item->id?csrf=$csrf&from_id=$theme_item->id") ?>"><?= t("Delete this album") ?></a></li>
<? endif; ?>
<? if( identity::active_user()->admin ): ?>
<li><a class="g-dialog-link" href="<?= url::site("permissions/browse/$item->id") ?>"><?= t("Edit permissions") ?></a></li>
<? endif; ?>
</ul>
<? endif; ?>
</div>
<?= $theme->paginator() ?>

View File

@ -0,0 +1,169 @@
<?php defined("SYSPATH") or die("No direct script access.") ?>
<script type="text/javascript" src="<?= url::file("lib/swfobject.js") ?>"></script>
<script type="text/javascript" src="<?= url::file("lib/uploadify/jquery.uploadify.min.js") ?>"></script>
<script type="text/javascript">
var allBytesTotal = 0;
function humanSize(size) {
if( size > 1000000000000 ) {
size = Math.round(size / 10000000000) / 100;
unit = "TB";
} else if( size > 1000000000 ) {
size = Math.round(size / 10000000) / 100;
unit = "GB";
} else if( size > 1000000 ) {
size = Math.round(size / 10000) / 100;
unit = "MB";
} else if( size > 1000 ) {
size = Math.round(size / 1000);
unit = "KB";
} else {
unit = "B";
}
return size+" "+unit;
}
function humanTime(time) {
if( time >= 60*60 ) {
time = Math.round(time/60/60);
unit = "heure";
} else if( time >= 60 ) {
time = Math.round(time/60);
unit = "minute";
} else {
unit = "seconde"
}
if( time > 1 ) unit += "s";
return time+" "+unit;
}
$("#g-add-photos-canvas-sd").ready(function () {
$("#g-uploadify-sd").uploadify({
width: 150,
height: 33,
uploader: "<?= url::file("lib/uploadify/uploadify.swf") ?>",
script: "<?= url::site("simple_uploader/add_photo/{$album->id}") ?>",
scriptData: <?= json_encode($script_data) ?>,
fileExt: "*.gif;*.jpg;*.jpeg;*.png;*.flv;*.mp4;*.GIF;*.JPG;*.JPEG;*.PNG;*.FLV;*.MP4",
fileDesc: <?= t("Photos and movies")->for_js() ?>,
cancelImg: "<?= url::file("lib/uploadify/cancel.png") ?>",
simUploadLimit: <?= $simultaneous_upload_limit ?>,
wmode: "transparent",
hideButton: true, /* should be true */
auto: true,
multi: true,
/*onClearQueue: function(event) {
$("#g-upload-cancel-all")
.addClass("ui-state-disabled")
.attr("disabled", "disabled");
return true;
},
onError: function(event, queueID, fileObj, errorObj) {
var msg = " - ";
if (errorObj.type == "HTTP") {
if (errorObj.info == "500") {
msg += <?= t("Unable to process this file")->for_js() ?>;
// Server error - check server logs
} else if (errorObj.info == "404") {
msg += <?= t("The upload script was not found.")->for_js() ?>;
// Server script not found
} else {
// Server Error: status: errorObj.info
msg += (<?= t("Server error: __INFO__")->for_js() ?>.replace("__INFO__", errorObj.info));
}
} else if (errorObj.type == "File Size") {
var sizelimit = $("#g-uploadify").uploadifySettings(sizeLimit);
msg += fileObj.name+' '+errorObj.type+' Limit: '+Math.round(d.sizeLimit/1024)+'KB';
} else {
msg += (<?= t("Server error: __INFO__ (__TYPE__)")->for_js() ?>
.replace("__INFO__", errorObj.info)
.replace("__TYPE__", errorObj.type));
}
$("#g-add-photos-status ul").append(
"<li class=\"g-error\">" + fileObj.name + msg + "</li>");
$("#g-uploadify" + queueID).remove();
},*/
onSelectOnce: function(event, data) {
allBytesTotal = data.allBytesTotal;
$("#g-add-photos-allBytes").text(humanSize(allBytesTotal));
$("#g-add-photos-current-eta").text( "<?= t("calculating...") ?>" );
$("#g-add-photos-progressbar").removeClass("stop");
$("#g-upload-cancel-all").removeClass("ui-state-disabled").attr("disabled", null);
return true;
},
onProgress: function(event, queueID, fileObj, data) {
$("#g-add-photos-allBytesLoaded").text(humanSize(data.allBytesLoaded));
$("#g-add-photos-progressbar").css("width", Math.floor(data.allBytesLoaded/allBytesTotal * 100)+"%");
$("#g-add-photos-current-upload").text(fileObj.name);
$("#g-add-photos-current-rate").text(humanSize(data.speed*1000)+"/s");
$("#g-add-photos-current-eta").text( humanTime(Math.round((allBytesTotal - data.allBytesLoaded) / (data.speed * 1000))) );
},
onAllComplete: function(event, data) {
$("#g-add-photos-progressbar").addClass("stop");
$("#g-upload-cancel-all").addClass("ui-state-disabled").attr("disabled", "disabled");
$("#g-add-photos-current-rate").text(humanSize(data.speed*1000)+"/s");
},
});
});
</script>
<?php
/*
<? if (ini_get("suhosin.session.encrypt")): ?>
<ul id="g-action-status" class="g-message-block">
<li class="g-error">
<?= t("Error: your server is configured to use the <a href=\"%encrypt_url\"><code>suhosin.session.encrypt</code></a> setting from <a href=\"%suhosin_url\">Suhosin</a>. You must disable this setting to upload photos.",
array("encrypt_url" => "http://www.hardened-php.net/suhosin/configuration.html#suhosin.session.encrypt",
"suhosin_url" => "http://www.hardened-php.net/suhosin/")) ?>
</li>
</ul>
<? endif ?>
<div>
<p>
<?= t("Photos will be uploaded to album: ") ?>
</p>
<ul class="g-breadcrumbs ui-helper-clearfix">
<? foreach ($album->parents() as $i => $parent): ?>
<li<? if ($i == 0) print " class=\"g-first\"" ?>> <?= html::clean($parent->title) ?> </li>
<? endforeach ?>
<li class="g-active"> <?= html::purify($album->title) ?> </li>
</ul>
</div>
*/
?>
<div id="g-add-photos-canvas-sd">
<button id="g-add-photos-button-sd" onclick="return false;"><?= t("Select photos...") ?></button>
<span id="g-uploadify-sd"></span>
</div>
<div id="g-add-photos-progress">
<ul>
<li id="g-add-photos-progress-text"><?= t("Uploaded:") ?> <span id="g-add-photos-allBytesLoaded">0 KB</span> <?= t("of") ?> <span id="g-add-photos-allBytes">0 KB</span></li>
<li id="g-add-photos-progressbar-frame"><span id="g-add-photos-progressbar"></span></li>
<li><?= t("Uploading:") ?> <span id="g-add-photos-current-upload">n/a</span></li>
<li><?= t("Upload rate:") ?> <span id="g-add-photos-current-rate">n/a</span>, <?= t("Estimated time remaining:") ?> <span id="g-add-photos-current-eta">n/a</span></li>
</ul>
</div>
<?php
/*
<div id="g-add-photos-status">
<ul id="g-action-status" class="g-message-block">
</ul>
</div>
*/
?>

View File

@ -5,8 +5,7 @@
<?= $theme->paginator() ?>
<div id="g-movie" class="ui-helper-clearfix">
<?= $item->movie_img(array("class" => "g-movie", "id" => "g-movie-id-{$item->id}")) ?>
<?= $theme->context_menu($item, "#g-movie-id-{$item->id}") ?>
<?= $item->movie_img(array("class" => "g-movie", "id" => "g-item-id-{$item->id}")) ?>
</div>
<div id="g-info">

View File

@ -1,6 +1,6 @@
<?php defined("SYSPATH") or die("No direct script access.") ?>
<ul class="g-message-block">
<li class="g-warning"><?= t("No active sidebar blocks.<br/>
<a href=\"%url\">Add blocks</a>",
array("url" => html::mark_clean(url::site("admin/sidebar")))) ?></li>
<li class="g-warning"><?= t("No active sidebar blocks.") ?>
<br/><a href="<?= url::site("admin/sidebar") ?>"><?= t("Add blocks") ?></a>
</li>
</ul>

View File

@ -24,11 +24,15 @@
<? endif ?>
</title>
<link rel="shortcut icon" href="<?= url::file("lib/images/favicon.ico") ?>" type="image/x-icon" />
<?= $theme->css("_DISABLED_yui/reset-fonts-grids.css") ?>
<?= $theme->css("_DISABLED_superfish/css/superfish.css") ?>
<?= $theme->css("_DISABLED_themeroller/ui.base.css") ?>
<?= $theme->css("_DISABLED_gallery.common.css") ?>
<?= $theme->css("screen.css") ?>
<!--[if lt IE 8]>
<link rel="stylesheet" type="text/css" href="<?= $theme->url("css/fix-ie.css") ?>"
media="screen,print,projection" />
<![endif]-->
<?= $theme->script("jquery.js") ?>
<?= $theme->script("jquery.form.js") ?>
<?= $theme->script("jquery-ui.js") ?>
@ -39,58 +43,96 @@
</script>
<?= $theme->script("gallery.ajax.js") ?>
<?= $theme->script("gallery.dialog.js") ?>
<?= $theme->script("superfish/js/superfish.js") ?>
<?= $theme->script("jquery.localscroll.js") ?>
<?= $theme->script("_DISABLED_superfish/js/superfish.js") ?>
<?= $theme->script("_DISABLED_jquery.localscroll.js") ?>
<?= $theme->script("stopdesign.ui.init.js") ?>
<?= $theme->script("ui.init.js") ?>
<? /* These are page specific, but if we put them before $theme->head() they get combined */ ?>
<? if ($theme->page_subtype == "photo"): ?>
<?= $theme->script("jquery.scrollTo.js") ?>
<?= $theme->script("gallery.show_full_size.js") ?>
<?= $theme->script("_DISABLED_jquery.scrollTo.js") ?>
<?= $theme->script("_DISABLED_gallery.show_full_size.js") ?>
<? elseif ($theme->page_subtype == "movie"): ?>
<?= $theme->script("flowplayer.js") ?>
<? endif ?>
<?= $theme->css("photos.css") ?>
<?= $theme->css("aus04.css") ?>
<?= $theme->css("custom.css") ?>
<?= $theme->css("custom.gallery3.css") ?>
<?= $theme->css("custom.gallery3-dialog.css") ?>
<?= $theme->script("_DISABLED_rememberMe.js") ?>
<?= $theme->script("_DISABLED_comments.js") ?>
<?= $theme->script("stopdesign.ui.init.js") ?>
<?= $theme->head() ?>
<?= new View("stopdesign_styles.html") ?>
</head>
<body>
<div id="content">
<?= $content ?>
</div>
<body <?= $theme->body_attributes() ?>>
<?= $theme->page_top() ?>
<div id="doc4" class="yui-t5 g-view">
<?= $theme->site_status() ?>
<div id="g-header" class="ui-helper-clearfix">
<div id="g-banner">
<? if ($header_text = module::get_var("gallery", "header_text")): ?>
<?= $header_text ?>
<? else: ?>
<a id="g-logo" class="g-left" href="<?= item::root()->url() ?>" title="<?= t("go back to the Gallery home")->for_html_attr() ?>">
<img width="107" height="48" alt="<?= t("Gallery logo: Your photos on your web site")->for_html_attr() ?>" src="<?= url::file("lib/images/logo.png") ?>" />
</a>
<? endif ?>
<?= $theme->user_menu() ?>
<?= $theme->header_top() ?>
<? if ($theme->item() && !empty($parents)): ?>
<p id="path">
<? $i = 0 ?>
<? foreach ($parents as $parent): ?>
<a href="<?= $parent->url($parent == $theme->item()->parent() ? "show={$theme->item()->id}" : null) ?>">
<?= html::purify($parent->title) ?>
</a> »
<? $i++ ?>
<? endforeach ?>
<?= html::purify($theme->item()->title) ?>
</p>
<? endif ?>
<!-- hide the menu and make it visible after the page has loaded, to minimize menu flicker -->
<div id="g-site-menu" style="visibility: hidden">
<?= $theme->site_menu($theme->item() ? "#g-item-id-{$theme->item()->id}" : "") ?>
</div>
<script type="text/javascript"> $(document).ready(function() { $("#g-site-menu").css("visibility", "visible"); }) </script>
<div id="footer">
<hr />
<p></p>
<ul id="credits">
<li><a href="http://stopdesign.com/templates/photos/">Photo Templates</a> from Stopdesign.</li>
<?= $theme->credits() ?>.
<? if( identity::active_user()->admin ): ?>
<li><a href="<?= url::site("admin") ?>"><?= t("Admin") ?></a></li>
<? endif; ?>
</ul>
<?= $theme->header_bottom() ?>
</div>
<? if ($theme->item() && !empty($parents)): ?>
<ul class="g-breadcrumbs">
<? $i = 0 ?>
<? foreach ($parents as $parent): ?>
<li<? if ($i == 0) print " class=\"g-first\"" ?>>
<!-- Adding ?show=<id> causes Gallery3 to display the page
containing that photo. For now, we just do it for
the immediate parent so that when you go back up a
level you're on the right page. -->
<a href="<?= $parent->url($parent == $theme->item()->parent() ?
"show={$theme->item()->id}" : null) ?>">
<?= html::purify($parent->title) ?>
</a>
</li>
<? $i++ ?>
<? endforeach ?>
<li class="g-active<? if ($i == 0) print " g-first" ?>"><?= html::purify($theme->item()->title) ?></li>
</ul>
<? endif ?>
</div>
<div id="bd">
<div id="yui-main">
<div class="yui-b">
<div id="g-content" class="yui-g">
<?= $theme->messages() ?>
<?= $content ?>
</div>
</div>
</div>
<div id="g-sidebar" class="yui-b">
<? if ($theme->page_subtype != "login"): ?>
<?= new View("sidebar.html") ?>
<? endif ?>
</div>
</div>
<div id="g-footer" class="ui-helper-clearfix">
<?= $theme->footer() ?>
<? if ($footer_text = module::get_var("gallery", "footer_text")): ?>
<?= $footer_text ?>
<? endif ?>
<? if (module::get_var("gallery", "show_credits")): ?>
<ul id="g-credits" class="g-inline">
<?= $theme->credits() ?>
</ul>
<? endif ?>
</div>
</div>
<?= $theme->page_bottom() ?>
</body>
</html>

View File

@ -0,0 +1,97 @@
<?php defined("SYSPATH") or die("No direct script access.") ?>
<fieldset>
<legend> <?= t('Edit Permissions') ?> </legend>
<table>
<thead>
<tr>
<th><!-- group name --></th>
<? foreach ($permissions as $permission): ?>
<th><?= t($permission->display_name) ?></th>
<? endforeach ?>
</tr>
</thead>
<tbody>
<? foreach ($groups as $group): ?>
<tr>
<th><?= html::clean($group->name) ?></th>
<? foreach ($permissions as $permission): ?>
<? $intent = access::group_intent($group, $permission->name, $item) ?>
<? $allowed = access::group_can($group, $permission->name, $item) ?>
<? $lock = access::locked_by($group, $permission->name, $item) ?>
<? if ($lock): ?>
<td class="g-denied">
<img src="<?= url::file(gallery::find_file("images", "ico-denied.png")) ?>"
title="<?= t('denied and locked through parent album')->for_html_attr() ?>"
alt="<?= t('denied icon')->for_html_attr() ?>" />
<a href="javascript:show(<?= $lock->id ?>)" title="<?= t('click to go to parent album')->for_html_attr() ?>">
<img src="<?= url::file(gallery::find_file("images", "ico-lock.png")) ?>" alt="<?= t('locked icon')->for_html_attr() ?>" />
</a>
</td>
<? else: ?>
<? if ($intent === access::INHERIT): ?>
<? if ($allowed): ?>
<td class="g-allowed">
<a href="javascript:set('allow',<?= $group->id ?>,<?= $permission->id ?>,<?= $item->id ?>)" title="<?= t('allowed through parent album, click to allow explicitly')->for_html_attr() ?>">
<img src="<?= url::file(gallery::find_file("images", "ico-success-passive.png")) ?>" alt="<?= t('passive allowed icon')->for_html_attr() ?>" />
</a>
<a href="javascript:set('deny',<?= $group->id ?>,<?= $permission->id ?>,<?= $item->id ?>)"
title="<?= t('click to deny')->for_html_attr() ?>">
<img src="<?= url::file(gallery::find_file("images", "ico-denied-inactive.png")) ?>" alt="<?= t('inactive denied icon')->for_html_attr() ?>" />
</a>
</td>
<? else: ?>
<td class="g-denied">
<a href="javascript:set('allow',<?= $group->id ?>,<?= $permission->id ?>,<?= $item->id ?>)"
title="<?= t('click to allow')->for_html_attr() ?>">
<img src="<?= url::file(gallery::find_file("images", "ico-success-inactive.png")) ?>" alt="<?= t('inactive allowed icon')->for_html_attr() ?>" />
</a>
<a href="javascript:set('deny',<?= $group->id ?>,<?= $permission->id ?>,<?= $item->id ?>)"
title="<?= t('denied through parent album, click to deny explicitly')->for_html_attr() ?>">
<img src="<?= url::file(gallery::find_file("images", "ico-denied-passive.png")) ?>" alt="<?= t('passive denied icon')->for_html_attr() ?>" />
</a>
</td>
<? endif ?>
<? elseif ($intent === access::DENY): ?>
<td class="g-denied">
<a href="javascript:set('allow',<?= $group->id ?>,<?= $permission->id ?>,<?= $item->id ?>)"
title="<?= t('click to allow')->for_html_attr() ?>">
<img src="<?= url::file(gallery::find_file("images", "ico-success-inactive.png")) ?>" alt="<?= t('inactive allowed icon')->for_html_attr() ?>" />
</a>
<? if ($item->id == 1): ?>
<img src="<?= url::file(gallery::find_file("images", "ico-denied.png")) ?>" alt="<?= t('denied icon')->for_html_attr() ?>" title="<?= t('denied')->for_html_attr() ?>"/>
<? else: ?>
<a href="javascript:set('reset',<?= $group->id ?>,<?= $permission->id ?>,<?= $item->id ?>)"
title="<?= t('denied, click to reset')->for_html_attr() ?>">
<img src="<?= url::file(gallery::find_file("images", "ico-denied.png")) ?>" alt="<?= t('denied icon')->for_html_attr() ?>" />
</a>
<? endif ?>
</td>
<? elseif ($intent === access::ALLOW): ?>
<td class="g-allowed">
<? if ($item->id == 1): ?>
<img src="<?= url::file(gallery::find_file("images", "ico-success.png")) ?>" title="<?= t("allowed")->for_html_attr() ?>" alt="<?= t('allowed icon')->for_html_attr() ?>" />
<? else: ?>
<a href="javascript:set('reset',<?= $group->id ?>,<?= $permission->id ?>,<?= $item->id ?>)"
title="<?= t('allowed, click to reset')->for_html_attr() ?>">
<img src="<?= url::file(gallery::find_file("images", "ico-success.png")) ?>" alt="<?= t('allowed icon')->for_html_attr() ?>" />
</a>
<? endif ?>
<a href="javascript:set('deny',<?= $group->id ?>,<?= $permission->id ?>,<?= $item->id ?>)"
title="<?= t('click to deny')->for_html_attr() ?>">
<img src="<?= url::file(gallery::find_file("images", "ico-denied-inactive.png")) ?>" alt="<?= t('inactive denied icon')->for_html_attr() ?>" />
</a>
</td>
<? endif ?>
<? endif ?>
<? endforeach ?>
</tr>
<? endforeach ?>
</tbody>
</table>
</fieldset>
<fieldset>
<button>Done</button>
</fieldset>

View File

@ -1,49 +1,39 @@
<?php defined("SYSPATH") or die("No direct script access.") ?>
<div class="<?php if($item->height > $item->width): ?>vertical<?php endif; ?>">
<div id="desc">
<? if (access::can("view_full", $theme->item())): ?>
<!-- Use javascript to show the full size as an overlay on the current page -->
<script type="text/javascript">
$(document).ready(function() {
$(".g-fullsize-link").click(function() {
$.gallery_show_full_size(<?= html::js_string($theme->item()->file_url()) ?>, "<?= $theme->item()->width ?>", "<?= $theme->item()->height ?>");
return false;
});
});
</script>
<? endif ?>
<div id="g-item">
<?= $theme->photo_top() ?>
<?= $theme->paginator() ?>
<div id="g-photo">
<?= $theme->resize_top($item) ?>
<? if (access::can("view_full", $item)): ?>
<a href="<?= $item->file_url() ?>" class="g-fullsize-link" title="<?= t("View full size")->for_html_attr() ?>">
<? endif ?>
<?= $item->resize_img(array("id" => "g-item-id-{$item->id}", "class" => "g-resize")) ?>
<? if (access::can("view_full", $item)): ?>
</a>
<? endif ?>
<?= $theme->resize_bottom($item) ?>
</div>
<div id="g-info">
<h1><?= html::purify($item->title) ?></h1>
<p><?= nl2br(html::purify($item->description)) ?></p>
<div><?= nl2br(html::purify($item->description)) ?></div>
</div>
<div class="main">
<p id="photo" style="padding:0 0px"><strong><?= $item->resize_img(array()) ?></strong></p>
</div>
<div id="meta">
<ul>
<li class="count">Photo <?= t("%position of %total", array("position" => $position, "total" => $sibling_count)) ?></li>
<?php if($item->captured): ?><li class="date"><?= strftime("%e %B %Y", $item->captured); ?></li><?php endif; ?>
<li class="tags"><$MTEntryKeywords$></li>
</ul>
<? if( access::can("edit", $item) ): ?>
<ul id="actions">
<li><a class="g-dialog-link" href="<?= url::site("form/edit/{$item->type}s/$item->id") ?>"><?= t($item->type == 'movie' ? "Edit movie" : "Edit photo") ?></a></li>
<li><a class="g-dialog-link" href="<?= url::site("move/browse/$item->id") ?>"><?= t("Move to another album") ?></a></li>
<? if( $item->is_photo() && graphics::can("rotate") ): ?>
<li><a class="g-ajax-link" href="<?= url::site("quick/rotate/$item->id/ccw?csrf=$csrf&from_id=$theme_item->id") ?>" ajax_handler="function() { location.reload(); }"><?= t("Rotate 90° counter clockwise") ?></a></li>
<li><a class="g-ajax-link" href="<?= url::site("quick/rotate/$item->id/cw?csrf=$csrf&from_id=$theme_item->id") ?>" ajax_handler="function() { location.reload(); }"><?= t("Rotate 90° clockwise") ?></a></li>
<? endif; ?>
<li><a class="g-dialog-link" href="<?= url::site("quick/form_delete/$item->id?csrf=$csrf&from_id=$theme_item->id") ?>"><?= t($item->type == 'movie' ? "Delete this movie": "Delete this photo") ?></a></li>
</ul>
<? endif; ?>
</div>
<div class="main"></div>
<div id="prevnext">
<?php if($previous_item): ?>
<div id="prev">
<span class="thumb"><em style="background-image: url('<?= $previous_item->thumb_url() ?>');"><a href="<?= $previous_item->url() ?>" accesskey="z"><strong>Previous: </strong><?= html::purify($previous_item->title) ?></a></em></span>
</div>
<?php endif; ?>
<?php if($next_item): ?>
<div id="next">
<span class="thumb"><em style="background-image: url('<?= $next_item->thumb_url() ?>');"><a href="<?= $next_item->url() ?>" accesskey="z"><strong>Next: </strong><?= html::purify($next_item->title) ?></a></em></span>
</div>
<?php endif; ?>
</div>
</div>
<?= new View("stopdesign_actions.html") ?>
<?= $theme->photo_bottom() ?>
</div>

View File

@ -11,6 +11,7 @@
<?= $theme->tag_menu() ?>
<? endif ?>
</div>
<?= new View("stopdesign_actions.html") ?>
<?= $theme->sidebar_blocks() ?>
<?= $theme->sidebar_bottom() ?>

View File

@ -0,0 +1,22 @@
<?php defined("SYSPATH") or die("No direct script access.") ?>
<?
$menu = Menu::factory("root");
module::event("site_menu", $menu, $this->theme, "");
?>
<? if( isset($menu->elements['add_menu']->elements) || isset($menu->elements['options_menu']->elements) ): ?>
<div id="g-metadata" class="g-block">
<h2><?= t("Actions") ?></h2>
<div class="g-block-content">
<ul class="g-metadata">
<? foreach($menu->elements['add_menu']->elements as $menu_element): ?>
<li><a href="<?= $menu_element->url ?>" class="g-dialog-link"><?= $menu_element->label ?></a></li>
<? endforeach; ?>
<? foreach($menu->elements['options_menu']->elements as $menu_element): ?>
<li><a href="<?= $menu_element->url ?>" class="g-dialog-link"><?= $menu_element->label ?></a></li>
<? endforeach; ?>
</ul>
</div>
</div>
<? endif; ?>

View File

@ -0,0 +1,86 @@
<?php defined("SYSPATH") or die("No direct script access.") ?>
<?
/*
*
*/
?>
<style type="text/css">
<? $THUMB_SIZE = (int)module::get_var("gallery", "thumb_size"); $RESIZE_SIZE = (int)module::get_var("gallery", "resize_size"); ?>
.g-item, .g-item > div, .g-item > a {
width: <?= $THUMB_SIZE + 30 ?>px;
height: <?= $THUMB_SIZE + 30 ?>px;
line-height: <?= $THUMB_SIZE + 30 ?>px;
}
.g-item.g-album > a {
background-position: <?= $THUMB_SIZE - 2 ?>px 2px;
}
.g-item > h2 {
width: <?= $THUMB_SIZE ?>px;
}
<? if( $item ): ?>
#g-item #g-photo {
margin-left: <?= -1*(int)($theme->item()->resize_width/2 + 10) ?>px;
}
#g-item #g-movie {
width: <?= (int)$theme->item()->width ?>px;
margin-left: <?= -1*(int)($theme->item()->width/2) ?>px;
}
<? endif ?>
#g-item .g-paginator li.g-first,
#g-item .g-paginator li.g-text-right {
width: <?= $THUMB_SIZE + 30 ?>px;
height: <?= $THUMB_SIZE + 30 ?>px;
}
#g-item .g-paginator li.g-first {
right: <?= (int)($RESIZE_SIZE/2 + 10 + 10 + $THUMB_SIZE + 30) ?>px;
}
#g-item .g-paginator li.g-text-right {
left: <?= (int)($RESIZE_SIZE/2 + 10 + 10) ?>px;
}
<? if( $item ): ?>
#g-item .g-paginator li.g-first a:hover span,
#g-item .g-paginator li.g-text-right a:hover span {
width: <?= (int)($theme->item()->resize_width/2) ?>px;
}
#g-item .g-paginator li.g-first a:hover span {
left: <?= ($THUMB_SIZE + 30 + 10 + 10) + (int)($RESIZE_SIZE/2 - $theme->item()->resize_width/2) ?>px;
}
<? endif ?>
#g-item .g-paginator li.g-text-right a:hover span {
left: <?= -1*(int)($RESIZE_SIZE/2 + 10 + 10) ?>px;
}
#g-item .g-block {
width: <?= $RESIZE_SIZE + 10 + 10 ?>px;
}
<? if ($theme->page_subtype != "album"): ?>
#g-sidebar {
display: none;
}
<? endif ?>
<? if( $item && !$item->is_album() ): ?>
<? if($previous_item): ?>
#g-item .g-paginator li.g-first a {
background-image: url("<?= $previous_item->thumb_url() ?>");
}
<? else: ?>
#g-item .g-paginator li.g-first {
display: none;
}
<? endif ?>
<? if($next_item): ?>
#g-item .g-paginator li.g-text-right a {
background-image: url("<?= $next_item->thumb_url() ?>");
}
<? else: ?>
#g-item .g-paginator li.g-text-right {
display: none;
}
<? endif ?>
<? endif ?>
</style>