Changeset 570
- Timestamp:
- 07/31/08 11:07:15 (2 years ago)
- Location:
- trunk
- Files:
-
- 3 added
- 3 deleted
- 10 edited
-
plog-admin/css/admin.css (modified) (6 diffs)
-
plog-admin/css/greybox.css (deleted)
-
plog-admin/js/AmiJS.js (deleted)
-
plog-admin/js/greybox.js (deleted)
-
plog-admin/js/lightbox.js (modified) (28 diffs)
-
plog-admin/plog-admin-functions.php (modified) (7 diffs)
-
plog-admin/plog-admin.php (modified) (2 diffs)
-
plog-admin/plog-feedback.php (modified) (2 diffs)
-
plog-admin/plog-manage.php (modified) (2 diffs)
-
plog-admin/plog-options.php (modified) (10 diffs)
-
plog-admin/plog-themes.php (modified) (1 diff)
-
plog-admin/plog-thumb.php (modified) (1 diff)
-
plog-admin/plog-upload.php (modified) (1 diff)
-
plog-content/index.php (added)
-
plog-includes/js/index.php (added)
-
plog-includes/lib/index.php (added)
Legend:
- Unmodified
- Added
- Removed
-
trunk/plog-admin/css/admin.css
r568 r570 1 /* Plogger admin stylesheet */ 2 3 /* Body and general styles */ 4 1 5 html { 2 6 padding: 15px; … … 6 10 7 11 html, body, p, form, table, td, tr { 8 font-family: "Lucida Sans Unicode", "Lucida Sans", "Georgia", "Trebuchet MS", "Verdana", sans-serif;12 font-family: "Lucida Sans Unicode", "Lucida Sans", "Georgia", "Trebuchet MS", verdana, arial, sans-serif; 9 13 font-size: 13px; 10 14 } 11 15 12 #theme-table td { 13 padding: 8px; 14 } 15 16 #theme-table tr.header th { 17 padding: 8px; 18 } 19 20 .option-table td { 21 padding: 6px; 22 text-align: right; 23 width: 300px; 24 } 25 26 tr.alt td { 27 background: #fafafa; 28 border-bottom: 1px solid #efefef; 29 } 30 31 tr.activated td { 32 background: #bedebe; 33 border-bottom: 1px solid #519e51; 16 a:link, a:visited, a:active { 17 color: maroon; 18 text-decoration: none; 19 } 20 21 a:hover { 22 color: navy; 23 text-decoration: underline; 24 } 25 26 a:focus { 27 outline: none; 28 -moz-outline:none; 29 } 30 31 h1 { 32 font-family: "Verdana", "Lucida Sans", "Lucida Grande", "Trebuchet MS", arial, sans-serif; 33 font-size: 1.4em; 34 margin-top: 25px; 35 margin-bottom: 15px; 36 font-weight: bold; 37 color: #264b71; 38 } 39 40 h2 { 41 font-family: "Verdana", "Lucida Sans", "Lucida Grande", "Trebuchet MS", arial, sans-serif; 42 font-size: 1.2em; 43 margin-top: 20px; 44 margin-bottom: 15px; 45 text-decoration: underline; 46 } 47 48 h3 { 49 font-family: "Verdana", "Lucida Sans", "Lucida Grande", "Trebuchet MS", arial, sans-serif; 50 font-size: 1.0em; 51 margin-top: 15px; 52 margin-bottom: 10px; 53 } 54 55 img { 56 border: 0; 57 padding: 5px 58 display: inline; 59 } 60 61 input, select, textarea { 62 margin: 5px; 63 font-family: verdana, arial, sans-serif; 64 font-size: 13px; 34 65 } 35 66 … … 48 79 } 49 80 50 h1 { 51 font-family: "Verdana", "Lucida Sans", "Lucida Grande", "Trebuchet MS", sans-serif; 52 font-size: 1.4em; 53 margin-top: 25px; 54 margin-bottom: 15px; 55 font-weight: bold; 56 color: #264b71; 57 } 58 59 h2 { 60 font-family: "Verdana", "Lucida Sans", "Lucida Grande", "Trebuchet MS", sans-serif; 61 font-size: 1.2em; 62 margin-top: 20px; 63 margin-bottom: 15px; 81 label { 82 padding: 8px; 83 } 84 85 label em { 86 font-style: normal; 64 87 text-decoration: underline; 65 88 } 66 89 67 h3 { 68 font-family: "Verdana", "Lucida Sans", "Lucida Grande", "Trebuchet MS", sans-serif; 90 p { 91 padding: 3px; 92 } 93 94 /* Header elements */ 95 96 #plogger-version { 97 float: right; 98 color: #369; 99 font-weight: 300; 100 letter-spacing: 1px; 101 } 102 103 /* Login page structure/elements */ 104 105 #login { 106 background-image: url("../images/login.gif"); 107 background-repeat: no-repeat; 108 width: 382px; 109 height: 327px; 110 padding: 187px 15px 10px 15px; 111 margin: auto; 112 } 113 114 #login-page { 115 background: #369; 116 text-align: center; 117 margin-top: 100px; 118 } 119 120 .login-error { 121 text-align: center; 122 font-size: 1.1em; 123 font-weight: bold; 124 color: #c00; 125 } 126 127 /* Upload page elements */ 128 129 #uploadForm label { 130 display: block; 131 white-space: nowrap; 132 } 133 134 /* Import and Manage page elements */ 135 136 a.folder { 137 background-image: url("../images/folder_open.gif"); 138 background-repeat: no-repeat; 139 background-position: left 1px; 140 padding-left: 20px; 141 } 142 143 .add { 144 background-image: url("../images/new_file.gif"); 145 background-repeat: no-repeat; 146 background-position: left center; 147 padding-left: 20px; 148 margin-left: -12px; 149 text-decoration: underline; 150 } 151 152 /* Manage and Feedback page elements */ 153 154 #contentList { 155 } 156 157 #contentList #breadcrumb_links { 69 158 font-size: 1.0em; 70 margin-top: 15px; 71 margin-bottom: 10px; 72 } 73 74 a:link, a:active { 75 color: maroon; 76 text-decoration: none; 77 } 78 79 a:visited { 80 color: maroon; 81 text-decoration: none; 82 } 83 84 a:hover { 85 color: navy; 86 text-decoration: underline; 87 } 88 89 a:focus { 90 outline: none; 91 -moz-outline:none; 92 } 93 94 .actions { 95 background-image: url("../images/alert.gif"); 96 background-repeat: no-repeat; 97 background-position: 5px 8px; 98 margin-bottom: 15px; 99 margin-right: 15px; 100 border-top: 2px solid #bb0; 101 border-bottom: 2px solid #bb0; 102 padding: 8px; 103 background-color: #ffffe0; 104 padding-left: 28px; 105 clear: both; 106 } 107 108 .errors { 109 background-image: url("../images/x.gif"); 110 background-repeat: no-repeat; 111 background-position: 5px 8px; 112 margin-bottom: 15px; 113 margin-right: 15px; 114 border: 1px solid maroon; 115 padding: 8px; 116 background-color: #fcc; 117 padding-left: 28px; 118 clear: both; 159 padding: 3px; 160 } 161 162 #contentList .pagination { 163 font-size: 1.0em; 164 margin-right: 5px; 165 padding: 3px; 166 font-weight: bold; 167 text-align: right; 168 } 169 170 #contentList label, select, option { 171 font-weight: normal; 172 } 173 174 #contentList .entries-page { 175 text-align: right; 176 } 177 178 #contentList .entries-page label, select { 179 display: block inline; 180 margin-bottom: auto; 181 } 182 183 #contentList .move-del-manage input, select { 184 display: block inline; 185 margin-bottom: auto; 186 } 187 188 a#show-collection, a#show-album { 189 padding-left: 20px; 190 background: #ffc url("../images/new_file.gif") no-repeat left; 191 font-size: 1.1em; 192 } 193 194 a#show-collection:hover, a#show-album:hover { 195 text-decoration: none; 196 color: white; 197 background: #9c9 url("../images/new_file.gif") no-repeat left; 119 198 } 120 199 … … 140 219 } 141 220 142 img { 143 border: 0; 221 .editable { 222 color: #000; 223 background: #fff url("../images/diag-bg.gif") repeat top left; 224 padding: 2px; 225 border: 1px solid #efefef; 226 display: block; 227 } 228 229 .highlight { 230 padding: 8px; 231 background: #ffffe0; 232 border-top: 1px solid #ccc; 233 border-bottom: 1px solid #ccc; 234 width: 98%; 235 } 236 237 .highlight-row { 238 background: #ffffe0; 239 } 240 241 /* Options page elements */ 242 243 #options_section label { 244 font-weight: bold; 245 } 246 247 .option-table table { 248 width: 665px; 249 } 250 251 .option-table label { 252 padding: 8px 2px 8px 8px; 253 } 254 255 .option-table td.left { 256 padding: 7px; 257 text-align: right; 258 width: 330px; 259 } 260 261 .option-table td.right { 262 padding: 7px; 263 text-align: left; 264 width: 330px; 265 } 266 267 tr.alt td { 268 background: #fafafa; 269 border-bottom: 1px solid #efefef; 270 } 271 272 /* Themes page elements */ 273 274 #theme-table td { 275 padding: 8px; 276 } 277 278 #theme-table tr.header th { 279 padding: 8px; 280 } 281 282 tr.activated td { 283 background: #bedebe; 284 border-bottom: 1px solid #519e51; 285 } 286 287 /* Upload and Manage page elements */ 288 289 .cssbox, .cssbox_body, .cssbox_head, .cssbox_head h2 { /* set the image to use and establish the lower-right position */ 290 background: transparent url("../images/plogger-box-add.png") no-repeat bottom right; 291 margin: 0; 292 padding: 0; 293 } 294 295 .cssbox label, .cssbox-green label { 296 padding: 0; 297 margin: 0; 298 font-weight: bold; 144 299 display: inline; 145 300 } 146 301 147 tr.color-1 { 148 background-color: #ccc; 149 } 150 151 tr.color-2 { 152 background-color: #efefef; 153 } 154 155 tr.header { 302 .cssbox-green, .cssbox_body-green, .cssbox_head-green, .cssbox_head-green h2 { 303 background: transparent url("../images/plogger-box-add-green.png") no-repeat bottom right; 304 margin: 0; 305 padding: 0; 306 } 307 308 .cssbox-green { 309 width: 370px !important; /* intended total box width - padding-right(next) */ 310 width: 350px; /* IE Win = width - padding */ 311 padding-right: 15px; /* the gap on the right edge of the image (not content padding) */ 312 margin: 2px 0 20px 0; /* use to position the box */ 313 } 314 315 .cssbox-green em { 316 text-decoration: underline; 317 font-style: normal; 318 } 319 320 .cssbox { 321 width: 370px !important; /* intended total box width - padding-right(next) */ 322 width: 355px; /* IE Win = width - padding */ 323 padding-right: 15px; /* the gap on the right edge of the image (not content padding) */ 324 margin: 2px 0 20px 0; /* use to position the box */ 325 } 326 327 .cssbox_head, .cssbox_head-green { /* set the top-right image */ 328 background-position: top right; 329 margin-right: -15px; /* pull the right image over on top of border */ 330 padding-right: 40px; /* right-image-gap + right-inside padding */ 331 } 332 333 .cssbox_head h2, .cssbox_head-green h2 { /* set the top-left image */ 334 background-position: top left; 335 margin: 0; /* reset */ 336 border: 0; /* reset */ 337 padding: 7px 0 15px 20px; /* padding-left = image gap + interior padding ... no padding-right */ 338 height: auto !important; 339 height: 1%; /* IE Holly Hack */ 340 } 341 342 .cssbox_body, .cssbox_body-green { /* set the lower-left corner image */ 343 background-position: bottom left; 344 margin-right: 25px; /* interior-padding right */ 345 padding: 15px 0 15px 20px; /* mirror .cssbox_head right/left */ 346 } 347 348 .cssbox_head h2, .cssbox_head-green h2 { /* Misc Text formatting */ 156 349 color: #fff; 157 background-color: #264e75; 158 font-weight: bold; 159 } 160 161 tr.header th { 162 padding: 6px; 163 } 164 165 tr.breadcrumb { 350 font-weight: bold; 351 font-size: 15px; /* this is tricky if box width is in ems */ 352 text-align: center; 353 text-shadow: rgb(0,0,0) 0 2px 5px; /* Safari-only, but I'm doing it just 'cause I can */ 354 text-decoration: none; 355 } 356 357 .cssbox_body p, .cssbox_body-green p { 358 margin: 0 0 20px; 359 } 360 361 .cssbox_body a, .css_body a:hover { 362 margin: 0 !important; 363 padding: 0 !important; 364 border: 0 !important; 365 text-decoration: underline; 366 } 367 368 /* Action/Error messages */ 369 370 .actions { 371 background-image: url("../images/alert.gif"); 372 background-repeat: no-repeat; 373 background-position: 5px 8px; 374 margin-bottom: 15px; 375 margin-right: 15px; 376 border-top: 2px solid #bb0; 377 border-bottom: 2px solid #bb0; 378 padding: 8px; 166 379 background-color: #ffffe0; 380 padding-left: 28px; 381 clear: both; 382 } 383 384 .errors { 385 background-image: url("../images/x.gif"); 386 background-repeat: no-repeat; 387 background-position: 5px 8px; 388 margin-bottom: 15px; 389 margin-right: 15px; 390 border: 1px solid maroon; 391 padding: 8px; 392 background-color: #fcc; 393 padding-left: 28px; 394 clear: both; 395 } 396 397 /* Miscellaneous - used throughout admin panel */ 398 399 .breadcrumb-header { 167 400 height: 16px; 168 401 vertical-align: middle; 169 } 170 171 tr.footer { 172 background-color: #264e75; 173 } 174 175 tr.footer td { 176 padding: 6px; 177 } 178 179 label { 180 padding: 8px; 181 } 182 183 input, select, textarea { 184 margin: 5px; 185 font-family: verdana, arial, sans-serif; 186 font-size: 12px; 187 } 188 189 img { 190 padding: 5px 191 } 192 193 #login { 194 background-image: url("../images/login.gif"); 195 background-repeat: no-repeat; 196 width: 382px; 197 height: 327px; 198 padding: 187px 15px 10px 15px; 199 margin: auto; 200 } 201 202 #login-page { 203 background: #369; 204 text-align: center; 205 margin-top: 100px; 206 } 207 208 .login-error { 209 text-align: center; 210 font-size: 1.1em; 211 font-weight: bold; 212 color: #c00; 213 } 214 215 a.folder { 216 background-image: url("../images/folder_open.gif"); 217 background-repeat: no-repeat; 218 background-position: left 1px; 219 padding-left: 20px; 402 background-color: #ffc; 403 padding: 3px; 404 } 405 406 .box-heading { 407 font-family: "Georgia", "Lucida Sans", "Verdana", arial, sans-serif; 408 font-size: 15px; 409 font-weight: bold; 410 color: #333; 411 margin:0; 412 padding: 0; 413 vertical-align: middle; 414 position: relative; 415 top: 10px; 220 416 } 221 417 … … 258 454 } 259 455 260 .add {261 background-image: url("../images/new_file.gif");262 background-repeat: no-repeat;263 background-position: left center;264 padding-left: 20px;265 margin-left: -12px;266 text-decoration: underline;267 }268 269 .breadcrumb-header {270 height: 16px;271 vertical-align: middle;272 background-color: #ffc;273 padding: 3px;274 }275 276 .box-heading {277 font-family: "Georgia", "Lucida Sans", "Verdana", serif;278 font-size: 15px;279 font-weight: bold;280 color: #333;281 margin:0;282 padding: 0;283 vertical-align: middle;284 position: relative;285 top: 10px;286 }287 288 .thumbselect {289 height: 80px;290 padding-left: 90px;291 background-repeat: no-repeat;292 background-position: center left;293 }294 295 .thumboption {296 padding-left: 90px;297 height: 40px;298 margin-bottom: 2px;299 background-position: center left;300 }301 302 .highlight {303 padding: 8px;304 background: #ffffe0;305 border-top: 2px solid #ccc;306 border-bottom: 2px solid #ccc;307 width: 98%;308 }309 310 .highlight-row {311 background: #ffffe0;312 }313 314 #plogger-version {315 float: right;316 }317 318 /* set the image to use and establish the lower-right position */319 .cssbox, .cssbox_body, .cssbox_head, .cssbox_head h2 {320 background: transparent url("../images/plogger-box-add.png") no-repeat bottom right;321 margin: 0;322 padding: 0;323 }324 325 .cssbox label, .cssbox-green label {326 padding: 0;327 margin: 0;328 font-weight: bold;329 display: inline;330 }331 332 .cssbox-green, .cssbox_body-green, .cssbox_head-green, .cssbox_head-green h2 {333 background: transparent url("../images/plogger-box-add-green.png") no-repeat bottom right;334 margin: 0;335 padding: 0;336 }337 338 .cssbox-green {339 width: 320px !important; /* intended total box width - padding-right(next) */340 width: 300px; /* IE Win = width - padding */341 padding-right: 15px; /* the gap on the right edge of the image (not content padding) */342 margin: 2px 0 20px 0; /* use to position the box */343 }344 345 .cssbox-green em {346 text-decoration: underline;347 font-style: normal;348 }349 350 .cssbox {351 width: 420px !important; /* intended total box width - padding-right(next) */352 width: 405px; /* IE Win = width - padding */353 padding-right: 15px; /* the gap on the right edge of the image (not content padding) */354 margin: 2px 0 20px 0; /* use to position the box */355 }356 357 /* set the top-right image */358 .cssbox_head, .cssbox_head-green {359 background-position: top right;360 margin-right: -15px; /* pull the right image over on top of border */361 padding-right: 40px; /* right-image-gap + right-inside padding */362 }363 364 /* set the top-left image */365 .cssbox_head h2, .cssbox_head-green h2 {366 background-position: top left;367 margin: 0; /* reset */368 border: 0; /* reset */369 padding: 7px 0 15px 20px; /* padding-left = image gap + interior padding ... no padding-right */370 height: auto !important;371 height: 1%; /* IE Holly Hack */372 }373 374 /* set the lower-left corner image */375 .cssbox_body, .cssbox_body-green {376 background-position: bottom left;377 margin-right: 25px; /* interior-padding right */378 padding: 15px 0 15px 20px; /* mirror .cssbox_head right/left */379 }380 381 /* Misc Text formatting */382 .cssbox_head h2, .cssbox_head-green h2 {383 color: #fff;384 font-weight: bold;385 font-size: 15px; /* this is tricky if box width is in ems */386 text-align: center;387 text-shadow: rgb(0,0,0) 0 2px 5px; /* Safari-only, but I'm doing it just 'cause I can */388 text-decoration: none;389 }390 391 .cssbox_body p, .cssbox_body-green p {392 margin: 0 0 20px;393 }394 395 .cssbox_body a, .css_body a:hover {396 margin: 0 !important;397 padding: 0 !important;398 border: 0 !important;399 text-decoration: underline;400 }401 402 #contentList {403 }404 405 #contentList #breadcrumb_links {406 font-size: 1.0em;407 padding: 3px;408 }409 410 #contentList .pagination {411 font-size: 1.0em;412 margin-right: 5px;413 padding: 3px;414 font-weight: bold;415 text-align: right;416 }417 418 #contentList label, select, option {419 font-weight: normal;420 }421 422 #contentList .entries-page {423 text-align: right;424 }425 426 #contentList .entries-page label, select {427 display: block inline;428 margin-bottom: auto;429 }430 431 #contentList .move-del-manage input, select {432 display: block inline;433 margin-bottom: auto;434 }435 436 #uploadForm label {437 display: block;438 white-space: nowrap;439 }440 441 #options_section label {442 font-weight: bold;443 }444 445 label em {446 font-style: normal;447 text-decoration: underline;448 }449 450 .table-header-middle {451 background: url("../images/table-middle.gif") repeat-x top left;452 }453 454 .table-header-left {455 background: url("../images/table-top-left.gif") no-repeat top left;456 }457 458 .table-header-right {459 background: url("../images/table-top-right.gif") no-repeat top right;460 }461 462 a#show-collection, a#show-album {463 padding-left: 20px;464 background: #ffc url("../images/new_file.gif") no-repeat left;465 font-size: 1.1em;466 }467 468 a#show-collection:hover, a#show-album:hover {469 text-decoration: none;470 color: white;471 background: #9c9 url("../images/new_file.gif") no-repeat left;472 }473 474 .editable {475 color: #000;476 background: #fff url("../images/diag-bg.gif") repeat top left;477 padding: 2px;478 border: 1px solid #efefef;479 display: block;480 }481 482 p {483 padding: 3px;484 }485 486 456 .img-shadow { 487 457 float:left; … … 500 470 padding: 4px; 501 471 } 472 473 .table-header-middle { 474 background: url("../images/table-middle.gif") repeat-x top left; 475 } 476 477 .table-header-left { 478 background: url("../images/table-top-left.gif") no-repeat top left; 479 } 480 481 .table-header-right { 482 background: url("../images/table-top-right.gif") no-repeat top right; 483 } 484 485 tr.color-1 { 486 background-color: #ccc; 487 } 488 489 tr.color-2 { 490 background-color: #efefef; 491 } 492 493 tr.header { 494 color: #fff; 495 background-color: #264e75; 496 font-weight: bold; 497 } 498 499 tr.header th { 500 padding: 6px; 501 } 502 503 tr.breadcrumb { 504 background-color: #ffffe0; 505 height: 16px; 506 vertical-align: middle; 507 } 508 509 tr.footer { 510 background-color: #264e75; 511 } 512 513 tr.footer td { 514 padding: 6px; 515 } 516 517 .thumbselect { 518 height: 80px; 519 padding-left: 90px; 520 background-repeat: no-repeat; 521 background-position: center left; 522 } 523 524 .thumboption { 525 padding-left: 90px; 526 height: 40px; 527 margin-bottom: 2px; 528 background-position: center left; 529 } -
trunk/plog-admin/js/lightbox.js
r550 r570 8 8 Licensed under the Creative Commons Attribution 2.5 License - http://creativecommons.org/licenses/by/2.5/ 9 9 (basically, do anything you want, just leave my name and link) 10 10 11 11 Table of Contents 12 12 ----------------- 13 13 Configuration 14 14 15 15 Functions 16 16 - getPageScroll() … … 23 23 - initLightbox() 24 24 - addLoadEvent() 25 25 26 26 Function Calls 27 27 - addLoadEvent(initLightbox) … … 29 29 */ 30 30 31 32 33 31 // 34 32 // Configuration … … 37 35 // If you would like to use a custom loading image or close button reference them in the next two lines. 38 36 var loadingImage = 'images/loading.gif'; 39 var closeButton = ''; 40 41 42 43 37 var closeButton = ''; 44 38 45 39 // … … 64 58 } 65 59 66 67 68 60 // 69 61 // getPageSize() … … 73 65 // 74 66 function getPageSize(){ 75 67 76 68 var xScroll, yScroll; 77 78 if (window.innerHeight && window.scrollMaxY) { 69 70 if (window.innerHeight && window.scrollMaxY) { 79 71 xScroll = document.body.scrollWidth; 80 72 yScroll = window.innerHeight + window.scrollMaxY; … … 86 78 yScroll = document.body.offsetHeight; 87 79 } 88 80 89 81 var windowWidth, windowHeight; 90 82 if (self.innerHeight) { // all except Explorer … … 97 89 windowWidth = document.body.clientWidth; 98 90 windowHeight = document.body.clientHeight; 99 } 100 91 } 92 101 93 // for small pages with total height less then height of the viewport 102 94 if(yScroll < windowHeight){ 103 95 pageHeight = windowHeight; 104 } else { 96 } else { 105 97 pageHeight = yScroll; 106 98 } 107 99 108 100 // for small pages with total width less then width of the viewport 109 if(xScroll < windowWidth){ 101 if(xScroll < windowWidth){ 110 102 pageWidth = windowWidth; 111 103 } else { … … 113 105 } 114 106 115 116 arrayPageSize = new Array(pageWidth,pageHeight,windowWidth,windowHeight) 107 arrayPageSize = new Array(pageWidth,pageHeight,windowWidth,windowHeight) 117 108 return arrayPageSize; 118 109 } 119 120 110 121 111 // … … 146 136 } 147 137 key = String.fromCharCode(keycode).toLowerCase(); 148 138 149 139 if(key == 'x'){ hideLightbox(); } 150 140 } 151 141 152 153 142 // 154 143 // listenKey() 155 144 // 156 145 function listenKey () { document.onkeypress = getKey; } 157 158 146 159 147 // … … 171 159 var objLightboxDetails = document.getElementById('lightboxDetails'); 172 160 173 174 161 var arrayPageSize = getPageSize(); 175 162 var arrayPageScroll = getPageScroll(); … … 196 183 var lightboxTop = arrayPageScroll[1] + ((arrayPageSize[3] - 35 - imgPreload.height) / 2); 197 184 var lightboxLeft = ((arrayPageSize[0] - 20 - imgPreload.width) / 2); 198 185 199 186 objLightbox.style.top = (lightboxTop < 0) ? "0px" : lightboxTop + "px"; 200 187 objLightbox.style.left = (lightboxLeft < 0) ? "0px" : lightboxLeft + "px"; 201 188 202 203 189 objLightboxDetails.style.width = imgPreload.width + 'px'; 204 190 205 191 if(objLink.getAttribute('title')){ 206 192 objCaption.style.display = 'block'; … … 210 196 objCaption.style.display = 'none'; 211 197 } 212 198 213 199 // A small pause between the image loading and displaying is required with IE, 214 200 // this prevents the previous image displaying for a short burst causing flicker. 215 201 if (navigator.appVersion.indexOf("MSIE")!=-1){ 216 202 pause(250); 217 } 203 } 218 204 219 205 if (objLoadingImage) { objLoadingImage.style.display = 'none'; } … … 221 207 // Hide select boxes as they will 'peek' through the image in IE 222 208 selects = document.getElementsByTagName("select"); 223 for (i = 0; i != selects.length; i++) { 224 selects[i].style.visibility = "hidden"; 225 } 226 227 209 for (i = 0; i != selects.length; i++) { 210 selects[i].style.visibility = "hidden"; 211 } 212 228 213 objLightbox.style.display = 'block'; 229 214 … … 232 217 arrayPageSize = getPageSize(); 233 218 objOverlay.style.height = (arrayPageSize[1] + 'px'); 234 219 235 220 // Check for 'x' keypress 236 221 listenKey(); … … 240 225 241 226 imgPreload.src = objLink.href; 242 243 } 244 245 246 247 227 228 } 248 229 249 230 // … … 270 251 } 271 252 272 273 274 275 253 // 276 254 // initLightbox() … … 282 260 function initLightbox() 283 261 { 284 262 285 263 if (!document.getElementsByTagName){ return; } 286 264 var anchors = document.getElementsByTagName("a"); … … 302 280 // <div id="lightbox"> 303 281 // <a href="#" onclick="hideLightbox(); return false;" title="Click anywhere to close image"> 304 // <img id="closeButton" /> 282 // <img id="closeButton" /> 305 283 // <img id="lightboxImage" /> 306 284 // </a> … … 310 288 // </div> 311 289 // </div> 312 290 313 291 var objBody = document.getElementsByTagName("body").item(0); 314 292 315 293 // create overlay div and hardcode some functional styles (aesthetic styles are in CSS file) 316 294 var objOverlay = document.createElement("div"); … … 324 302 objOverlay.style.width = '100%'; 325 303 objBody.insertBefore(objOverlay, objBody.firstChild); 326 304 327 305 var arrayPageSize = getPageSize(); 328 306 var arrayPageScroll = getPageScroll(); … … 330 308 // preload and create loader image 331 309 var imgPreloader = new Image(); 332 310 333 311 // if loader image found, create link to hide lightbox and create loadingimage 334 312 imgPreloader.onload=function(){ … … 338 316 objLoadingImageLink.onclick = function () {hideLightbox(); return false;} 339 317 objOverlay.appendChild(objLoadingImageLink); 340 318 341 319 var objLoadingImage = document.createElement("img"); 342 320 objLoadingImage.src = loadingImage; … … 360 338 objLightbox.style.zIndex = '100'; 361 339 objBody.insertBefore(objLightbox, objOverlay.nextSibling); 362 340 363 341 // create link 364 342 var objLink = document.createElement("a"); … … 390 368 objImage.setAttribute('id','lightboxImage'); 391 369 objLink.appendChild(objImage); 392 370 393 371 // create details div, a container for the caption and keyboard message 394 372 var objLightboxDetails = document.createElement("div"); … … 408 386 objLightboxDetails.appendChild(objKeyboardMsg); 409 387 410 411 } 412 413 414 388 } 415 389 416 390 // … … 420 394 // 421 395 function addLoadEvent(func) 422 { 396 { 423 397 var oldonload = window.onload; 424 398 if (typeof window.onload != 'function'){ … … 433 407 } 434 408 435 436 437 addLoadEvent(initLightbox); // run initLightbox onLoad 409 addLoadEvent(initLightbox); // run initLightbox onLoad -
trunk/plog-admin/plog-admin-functions.php
r569 r570 53 53 54 54 $possible_values = array("1"=>1, "5"=>5, "10"=>10, "20"=>20, "50"=>50, "100"=>100, "250"=>250, "500"=>500); 55 $output= "\n\t\t\t" . '<label accesskey="e" for="entries_ on_page">' .plog_tr('<em>E</em>ntries per page') . '</label>56 <select class="entries-page" onchange="'.$java.'" name="entries_per_page" style="width: 60px;">';55 $output= "\n\t\t\t" . '<label accesskey="e" for="entries_per_page">' .plog_tr('<em>E</em>ntries per page') . '</label> 56 <select class="entries-page" onchange="'.$java.'" name="entries_per_page" id="entries_per_page" style="width: 60px;">'; 57 57 foreach ($possible_values as $key => $value) { 58 58 if ($_SESSION['entries_per_page'] == $key) { … … 956 956 } 957 957 958 function edit_comment_form($comment_id) {958 function plog_edit_comment_form($comment_id) { 959 959 $output = ''; 960 960 $comment_id = intval($comment_id); … … 981 981 $output .= "\n\t\t<table>"; 982 982 $output .= "\n\t\t\t" . '<tr> 983 <td>' . plog_tr('Author:') . '<br /><input size="30" name="author" id="author" value="'.SmartStripSlashes($comment['author']).'" /></td>984 <td>' . plog_tr('Email:') . '<br /><input size="30" name="email" id="email" value="'.SmartStripSlashes($comment['email']).'" /></td>985 <td>' . plog_tr('Website:') . '<br /><input size="30" name="url" id="url" value="'.SmartStripSlashes($comment['url']).'" /></td>983 <td>' . plog_tr('Author:') . '<br /><input size="30" name="author" id="author" value="'.SmartStripSlashes($comment['author']).'" /></td> 984 <td>' . plog_tr('Email:') . '<br /><input size="30" name="email" id="email" value="'.SmartStripSlashes($comment['email']).'" /></td> 985 <td>' . plog_tr('Website:') . '<br /><input size="30" name="url" id="url" value="'.SmartStripSlashes($comment['url']).'" /></td> 986 986 </tr> 987 987 <tr> … … 991 991 992 992 $output .= "\n\t\t" . '<div> 993 <input type="hidden" name="pid" value="'.$comment['id'].'" >994 <input type="hidden" name="action" value="update-comment" >993 <input type="hidden" name="pid" value="'.$comment['id'].'" /> 994 <input type="hidden" name="action" value="update-comment" /> 995 995 <input class="submit" name="update" value="' . plog_tr('Update') . '" type="submit" /> 996 <input class="submit" name="cancel" value="' . plog_tr('Cancel') . '" type="submit" /> ';997 998 $output .= "\n\ n\t\t" . '</form>';996 <input class="submit" name="cancel" value="' . plog_tr('Cancel') . '" type="submit" /> 997 </div>'; 998 $output .= "\n\t" . '</form>'; 999 999 return $output; 1000 1000 } … … 1189 1189 <input name="name" id="name" /><br /> 1190 1190 <label accesskey="d" for="description">' . plog_tr('<em>D</em>escription') . ':</label><br /> 1191 <input name="description" id="description" size=" 50" />1191 <input name="description" id="description" size="47" /> 1192 1192 <input name="action" type="hidden" value="add-collection" /> 1193 1193 <input class="submit" type="submit" value="' . plog_tr('Add Collection') . '" /> … … 1208 1208 <input name="name" id="name" /><br /> 1209 1209 <label accesskey="d" for="description">' . plog_tr('<em>D</em>escription') . ':</label><br /> 1210 <input name="description" id="description" size=" 50" />1210 <input name="description" id="description" size="47" /> 1211 1211 <input name="action" type="hidden" value="add-album" /> 1212 1212 <input type="hidden" name="parent_collection" value="' . $parent_collection . '" /> … … 1377 1377 //$java = "javascript:this.ThumbPreviewPopup('$target')"; 1378 1378 $output .= "\n\t\t\t\t" . '<td><div class="img-shadow"><a href="'.plogger_get_picture_thumb(THUMB_LARGE).'" rel="lightbox" title="'.plogger_get_picture_caption().'">'.$imgtag.'</a></div></td>'; 1379 $output .= "\n\t\t\t\t".'<td><strong><a class="folder" href="'.$_SERVER['PHP_SELF'].'?level=comments&id=' . $id . '">' . basename(plogger_get_source_picture_path()) . '</a></strong> — ' . sprintf(plog_tr('contains %d comment(s)'), plogger_picture_comment_count()) . '</td>';1379 $output .= "\n\t\t\t\t".'<td><strong><a class="folder" href="'.$_SERVER['PHP_SELF'].'?level=comments&id=' . $id . '">' . basename(plogger_get_source_picture_path()) . '</a></strong><br /><span style="margin-left: 20px;">' . sprintf(plog_tr('Comments: %d'), plogger_picture_comment_count()) . '</span></td>'; 1380 1380 $output .= "\n\t\t\t\t<td><p id=\"picture-caption-" . plogger_get_picture_id() ."\">" . plogger_get_picture_caption() . " </p></td>"; 1381 1381 $output .= "\n\t\t\t\t<td><p id=\"picture-description-" . plogger_get_picture_id() ."\">" . plogger_get_picture_description() . " </p></td>"; -
trunk/plog-admin/plog-admin.php
r569 r570 36 36 $tabs['import'] = array('url' => 'plog-import.php','caption' => plog_tr('<em>I</em>mport')); 37 37 $tabs['manage'] = array('url' => 'plog-manage.php','caption' => plog_tr('<em>M</em>anage')); 38 $tabs['feedback'] = array('url' => 'plog-feedback.php','caption' => plog_tr('<em>F</em>eedback'));38 $tabs['feedback'] = array('url' => 'plog-feedback.php','caption' => plog_tr('<em>F</em>eedback')); 39 39 $tabs['options'] = array('url' => 'plog-options.php','caption' => plog_tr('<em>O</em>ptions')); 40 $tabs['themes'] = array('url' => 'plog-themes.php','caption' => plog_tr('<em>T</em>hemes'));40 $tabs['themes'] = array('url' => 'plog-themes.php','caption' => plog_tr('<em>T</em>hemes')); 41 41 $tabs['view'] = array('url' => $config['gallery_url'],'caption' => plog_tr('<em>V</em>iew'), 'target' => '_blank'); 42 42 $tabs['support'] = array('url' => 'http://www.plogger.org/forum/','caption' => plog_tr('<em>S</em>upport'), 'target' => '_blank'); … … 56 56 <title>Plogger Administration</title> 57 57 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 58 <link href="'.$config['gallery_url'].'plog-admin/css/admin.css" type="text/css" rel="stylesheet" media="all" /> 59 <link href="'.$config['gallery_url'].'plog-admin/css/greybox.css" type="text/css" rel="stylesheet" media="all" /> 60 <link href="'.$config['gallery_url'].'plog-admin/css/tabs.css" type="text/css" rel="stylesheet" media="all" /> 61 <link href="'.$config['gallery_url'].'plog-admin/css/lightbox.css" type="text/css" rel="stylesheet" media="all" /> 58 <link rel="stylesheet" href="'.$config['gallery_url'].'plog-admin/css/admin.css" type="text/css" media="all" /> 59 <link rel="stylesheet" href="'.$config['gallery_url'].'plog-admin/css/tabs.css" type="text/css" media="all" /> 60 <link rel="stylesheet" href="'.$config['gallery_url'].'plog-admin/css/lightbox.css" type="text/css" media="all" /> 62 61 <script type="text/javascript" src="'.$config['gallery_url'].'plog-admin/js/prototype.js"></script> 63 62 <script type="text/javascript" src="'.$config['gallery_url'].'plog-admin/js/plogger.js"></script> -
trunk/plog-admin/plog-feedback.php
r569 r570 7 7 global $inHead; 8 8 9 $inHead = '<script src="js/ajax_editing.js" type="text/javascript"></script>';9 $inHead = '<script type="text/javascript" src="'.$config['gallery_url'].'plog-admin/js/ajax_editing.js"></script>'; 10 10 11 11 $output = "\n\t" . '<h1>'. plog_tr("Manage Feedback") . '</h1>' . "\n"; … … 55 55 } else if ($_REQUEST['action'] == "edit-comment") { 56 56 // show the edit form 57 $output .= edit_comment_form($_REQUEST['pid']);57 $output .= plog_edit_comment_form($_REQUEST['pid']); 58 58 $edit_page = 1; 59 59 } else if ($_REQUEST['action'] == "update-comment") { -
trunk/plog-admin/plog-manage.php
r569 r570 7 7 global $inHead; 8 8 9 $inHead = '<script src="js/ajax_editing.js" type="text/javascript"></script>';9 $inHead = '<script type="text/javascript" src="'.$config['gallery_url'].'plog-admin/js/ajax_editing.js"></script>'; 10 10 11 11 function generate_move_menu($level) { … … 223 223 case "edit-comment": 224 224 // show the edit comment form 225 $output .= edit_comment_form($id);225 $output .= plog_edit_comment_form($id); 226 226 $edit_page = 1; 227 227 break; -
trunk/plog-admin/plog-options.php
r557 r570 19 19 20 20 // verify that gallery URL contains a trailing slash. if not, add one. 21 if ($_POST['gallery_url']{strlen($_POST['gallery_url'])-1} != '/'){21 if ($_POST['gallery_url']{strlen($_POST['gallery_url'])-1} != '/'){ 22 22 $_POST['gallery_url'] .= '/'; 23 23 } … … 151 151 ); 152 152 153 $output .= "\n\t" . '<h1>' . plog_tr(" System Options") . '</h1>153 $output .= "\n\t" . '<h1>' . plog_tr("General") . '</h1> 154 154 155 155 <form action="'.$_SERVER["PHP_SELF"].'" method="post"> … … 157 157 <table class="option-table"> 158 158 <tr class="alt"> 159 <td><label for="gallery_name">' . plog_tr("Gallery Name:") . '</label><br /> ' . plog_tr("(optional)") . '</td> 160 <td><input size="45" type="text" id="gallery_name" name="gallery_name" value="'.stripslashes($config['gallery_name']).'" /></td> 161 </tr> 162 <tr> 163 <td><label for="gallery_url">' . plog_tr('Gallery URL:') . '</label></td> 164 <td><input size="45" type="text" id="gallery_url" name="gallery_url" value="'.stripslashes($config['gallery_url']).'" /></td> 165 </tr> 166 <tr class="alt"> 167 <td><label for="admin_username">' . plog_tr('Administrator Username:') . '</label></td> 168 <td><input size="45" type="text" id="admin_username" name="admin_username" value="'.$config['admin_username'].'" /></td> 169 </tr> 170 <tr> 171 <td><label for="admin_email">' . plog_tr('Administrator E-mail Address:') . '</label></td> 172 <td><input size="45" type="text" id="admin_email" name="admin_email" value="'.$config['admin_email'].'" /></td> 173 </tr> 174 <tr class="alt"> 175 <td><label for="comments_notify" style="white-space: nowrap;">' . plog_tr('Send E-mail Notification for Comments?') . '</label><br /> ' . plog_tr('(requires valid e-mail address)') . '</td> 176 <td>'; 159 <td class="left"><label for="gallery_name">' . plog_tr("Gallery Name:") . '</label><br />' . plog_tr("(optional)") . '</td> 160 <td class="right"><input size="40" type="text" id="gallery_name" name="gallery_name" value="'.stripslashes($config['gallery_name']).'" /></td> 161 </tr> 162 <tr> 163 <td class="left"><label for="gallery_url">' . plog_tr('Gallery URL:') . '</label></td> 164 <td class="right"><input size="40" type="text" id="gallery_url" name="gallery_url" value="'.stripslashes($config['gallery_url']).'" /></td> 165 </tr> 166 <tr class="alt"> 167 <td class="left"><label for="admin_username">' . plog_tr('Administrator Username:') . '</label></td> 168 <td class="right"><input size="40" type="text" id="admin_username" name="admin_username" value="'.$config['admin_username'].'" /></td> 169 </tr> 170 <tr> 171 <td class="left"><label for="admin_email">' . plog_tr('Administrator E-mail Address:') . '</label></td> 172 <td class="right"><input size="40" type="text" id="admin_email" name="admin_email" value="'.$config['admin_email'].'" /></td> 173 </tr> 174 </table> 175 176 <h1>' . plog_tr("Language") . '</h1> 177 178 <table class="option-table"> 179 <tr class="alt"> 180 <td class="left"><label for="feed_language">' . plog_tr('Language:') . '</label> <a href="http://www.w3.org/TR/REC-html40/struct/dirlang.html#langcodes">' . plog_tr('(language codes)') . '</a></td> 181 <td class="right"><input size="40" type="text" id="feed_language" name="feed_language" value="'.$config['feed_language'].'" /></td> 182 </tr> 183 </table> 184 185 <h1>' . plog_tr("Change Password") . '</h1> 186 187 <table class="option-table"> 188 <tr> 189 <td class="left"><label for="admin_password">' . plog_tr("New Administrator Password:") . '</label></td> 190 <td class="right"><input size="40" type="password" id="admin_password" name="admin_password" /></td> 191 </tr> 192 <tr class="alt"> 193 <td class="left"><label for="confirm_admin_password">' . plog_tr('Confirm New Administrator Password:') . '</label></td> 194 <td class="right"><input size="40" type="password" id="confirm_admin_password" name="confirm_admin_password" /></td> 195 </tr> 196 </table> 197 198 <h1>' . plog_tr("Comments") . '</h1> 199 200 <table class="option-table"> 201 <tr> 202 <td class="left"><label for="allow_comments">' . plog_tr('Allow User Comments:') . '</label><br />' .plog_tr('(will override individual settings)') . '</td> 203 <td class="right">'; 204 if ($config['allow_comments'] == 1) $checked = "checked='checked'"; else $checked = ""; 205 $output .='<input type="checkbox" id="allow_comments" name="allow_comments" value="1" '.$checked.' /></td> 206 </tr> 207 <tr class="alt"> 208 <td class="left"><label for="comments_notify" style="white-space: nowrap;">' . plog_tr('Send E-mail Notification for Comments:') . '</label><br />' . plog_tr('(requires valid e-mail address)') . '</td> 209 <td class="right">'; 177 210 if ($config['comments_notify'] == 1) $checked = "checked='checked'"; else $checked = ""; 178 211 $output .= '<input type="checkbox" id="comments_notify" name="comments_notify" value="1" '.$checked.' /></td> 179 212 </tr> 180 213 <tr> 181 <td ><label for="comments_moderate">' . plog_tr('Place New Comments Into Moderation?') . '</label><br /></td>182 <td >';214 <td class="left"><label for="comments_moderate">' . plog_tr('Place New Comments Into Moderation:') . '</label></td> 215 <td class="right">'; 183 216 if ($config['comments_moderate'] == 1) $checked = "checked='checked'"; else $checked = ""; 184 217 $output .= '<input type="checkbox" id="comments_moderate" name="comments_moderate" value="1" '.$checked.' /></td> 185 218 </tr> 186 <tr class="alt"> 187 <td><label for="admin_password">' . plog_tr("New Administrator Password:") . '</label></td> 188 <td><input size="45" type="password" id="admin_password" name="admin_password" /></td> 189 </tr> 190 <tr> 191 <td><label for="confirm_admin_password">' . plog_tr('Confirm New Administrator Password:') . '</label></td> 192 <td><input size="45" type="password" id="confirm_admin_password" name="confirm_admin_password" /></td> 193 </tr> 194 </table> 195 196 <h1>' . plog_tr('Thumbnail Options') . '</h1> 197 198 <table class="option-table">'; 199 if ($config['square_thumbs']) $dim = plog_tr("Small Thumbnail Width"); else $dim = plog_tr("Small Thumbnail Height"); 200 $generate_intermediate = ($thumbnail_config[THUMB_LARGE]['disabled'] == 0) ? "checked='checked'" : ""; 201 $output.=' 202 <tr class="alt"> 203 <td><label for="max_thumbnail_size">'.$dim.'</label> (pixels):</td> 204 <td><input size="5" type="text" id="max_thumbnail_size" name="max_thumbnail_size" value="'.$thumbnail_config[THUMB_SMALL]['size'].'" /></td> 205 </tr> 206 <tr> 207 <td><label for="generate_intermediate">' . plog_tr('Generate Intermediate Pictures?') . '</label></td> 208 <td><input type="checkbox" id="generate_intermediate" name="generate_intermediate" value="1" '.$generate_intermediate.' /></td> 209 </tr> 210 <tr class="alt"> 211 <td><label for="max_display_size">' . plog_tr('Intermediate Picture Width') . '</label> ' . plog_tr("(pixels):"). '</td> 212 <td><input size="5" type="text" id="max_display_size" name="max_display_size" value="'.$thumbnail_config[THUMB_LARGE]['size'].'" /></td> 213 </tr> 214 <tr> 215 <td><label for="thumb_num">' . plog_tr('Number of Thumbnails Per Page:') . '</label></td> 216 <td><input size="5" type="text" id="thumb_num" name="thumb_num" value="'.$config['thumb_num'].'" /></td> 217 </tr> 218 <tr class="alt"> 219 <td><label for="image_quality">' . plog_tr('JPEG Image Quality:') . '</label><br /> ' . plog_tr("(1=worst, 95=best, 75=default)") . '</label></td> 220 <td><input size="5" type="text" id="image_quality" name="image_quality" value="'.$config['compression'].'" /></td> 221 </tr> 222 <tr> 223 <td><label for="default_sortby">' . plog_tr('Default Sort Order:') . '</label></td> 224 <td>'; 219 </table> 220 221 <h1>' . plog_tr("Sort Order") . '</h1> 222 223 <table class="option-table"> 224 <tr class="alt"> 225 <td class="left"><label for="default_sortby">' . plog_tr('Image Sort Order:') . '</label></td> 226 <td class="right">'; 225 227 $sort_by_fields = array( 226 228 'date' => plog_tr('Date Submitted'), … … 241 243 ); 242 244 243 $output .= "\n\t\t\t\t\t\t\t" . '<select style="width: 14 6px;" id="default_sortby" name="default_sortby">';245 $output .= "\n\t\t\t\t\t\t\t" . '<select style="width: 145px;" id="default_sortby" name="default_sortby">'; 244 246 foreach($sort_by_fields as $sort_key => $sort_caption) { 245 247 $selected = ($config['default_sortby'] == $sort_key) ? 'selected="selected" ': ''; … … 247 249 }; 248 250 $output .= "\n\t\t\t\t\t\t\t" . '</select>'; 249 250 251 $output .= "\n\t\t\t\t\t\t\t" . '<select id="default_sortdir" name="default_sortdir">'; 251 252 foreach($sort_dir_fields as $sort_key => $sort_caption) { … … 256 257 $output .= "\n\t\t\t\t\t\t" . '</td> 257 258 </tr> 258 <tr class="alt">259 <td ><label for="album_sortby">' . plog_tr('Album Sort Order:') . '</label></td>260 <td >';261 $output .= "\n\t\t\t\t\t\t\t" . '<select id="album_sortby" name="album_sortby">';259 <tr> 260 <td class="left"><label for="album_sortby">' . plog_tr('Album Sort Order:') . '</label></td> 261 <td class="right">'; 262 $output .= "\n\t\t\t\t\t\t\t" . '<select style="width: 145px;" id="album_sortby" name="album_sortby">'; 262 263 foreach($sort_by_fields_collection as $sort_key => $sort_caption) { 263 264 $selected = ($config['album_sortby'] == $sort_key) ? 'selected="selected" ': ''; … … 273 274 $output .= "\n\t\t\t\t\t\t" . '</td> 274 275 </tr> 275 <tr >276 <td ><label for="collection_sortby">' . plog_tr('Collection Sort Order:') . '</label></td>277 <td >';278 $output .= "\n\t\t\t\t\t\t\t" . '<select id="collection_sortby" name="collection_sortby">';276 <tr class="alt"> 277 <td class="left"><label for="collection_sortby">' . plog_tr('Collection Sort Order:') . '</label></td> 278 <td class="right">'; 279 $output .= "\n\t\t\t\t\t\t\t" . '<select style="width: 145px;" id="collection_sortby" name="collection_sortby">'; 279 280 foreach($sort_by_fields_collection as $sort_key => $sort_caption) { 280 281 $selected = ($config['collection_sortby'] == $sort_key) ? 'selected="selected" ': ''; … … 287 288 $output .= "\n\t\t\t\t\t\t\t\t" . '<option ' .$selected.'value="'.$sort_key.'">'.$sort_caption.'</option>'; 288 289 }; 289 290 290 $output .= "\n\t\t\t\t\t\t\t" . '</select>'; 291 291 $output .= "\n\t\t\t\t\t\t" . '</td> 292 292 </tr> 293 <tr class="alt"> 294 <td><label for="square_thumbs">' . plog_tr('Use Cropped Square Thumbnails?') .'</label></td> 295 <td>'; 296 if ($config['square_thumbs'] == 1) $checked = "checked='checked'"; else $checked = ""; 297 $output .= '<input type="checkbox" id="square_thumbs" name="square_thumbs" value="1" '.$checked.' /></td> 298 </tr> 299 <tr> 300 <td><label for="enable_thumb_nav">' . plog_tr('Thumbnail Navigation Enabled:') . '</label></td> 301 <td>'; 302 if (!empty($config['enable_thumb_nav'])) $checked = "checked='checked'"; else $checked = ""; 303 $output .= '<input type="checkbox" id="enable_thumb_nav" name="enable_thumb_nav" value="1" '.$checked.' /></td> 304 </tr> 305 <tr class="alt"> 306 <td><label for="thumb_nav_range">' . plog_tr('Thumbnail Navigation Range:') . '</label><br /> ' . plog_tr('(0 for whole album)') . '</td> 307 <td><input size="5" type="text" id="thumb_nav_range" name="thumb_nav_range" value="'.$config['thumb_nav_range'].'" /></td> 308 </tr> 309 <tr> 310 <td><label for="nav_thumbsize">' . plog_tr('Thumbnail Navigation Size:') . '</label></td> 311 <td><input size="5" type="text" id="nav_thumbsize" name="nav_thumbsize" value="'.$thumbnail_config[THUMB_NAV]['size'].'" /></td> 312 </tr> 313 <tr class="alt"> 314 <td><label for="allow_fullpic">' . plog_tr('Allow Full Picture Access:') . '</label></td> 315 <td>'; 316 if (!empty($config['allow_fullpic'])) $checked = "checked='checked'"; else $checked = ""; 317 $output .= '<input type="checkbox" id="allow_fullpic" name="allow_fullpic" value="1" '.$checked.' /></td> 318 </tr> 319 </table> 320 321 <h1>' . plog_tr('Interface Options') . '</h1> 322 323 <table class="option-table"> 324 <tr> 325 <td><label for="date_format">' . plog_tr('Date Format:') . '</label></td> 326 <td> 293 </table> 294 295 <h1>' . plog_tr("Front-End Options") . '</h1> 296 297 <table class="option-table"> 298 <tr> 299 <td class="left"><label for="date_format">' . plog_tr('Date Format:') . '</label></td> 300 <td class="right"> 327 301 <select id="date_format" name="date_format">'; 328 302 foreach ($date_formats as $format){ … … 335 309 </tr> 336 310 <tr class="alt"> 337 <td ><label for="allow_dl" style="white-space: nowrap;">' . plog_tr('Allow Compressed Recursive Downloads?') . '</label></td>338 <td >';311 <td class="left"><label for="allow_dl" style="white-space: nowrap;">' . plog_tr('Allow Compressed Downloads:') . '</label></td> 312 <td class="right">'; 339 313 if ($config['allow_dl'] == 1) $checked = "checked='checked'"; else $checked = ""; 340 314 $output .= '<input type="checkbox" id="allow_dl" name="allow_dl" value="1" '.$checked.' /></td> 341 315 </tr> 342 316 <tr> 343 <td><label for="allow_comments">' . plog_tr('Allow User Comments?') . '</label><br /> ' .plog_tr('(will override individual settings)') . '</td> 344 <td>'; 345 if ($config['allow_comments'] == 1) $checked = "checked='checked'"; else $checked = ""; 346 $output .='<input type="checkbox" id="allow_comments" name="allow_comments" value="1" '.$checked.' /></td> 347 </tr> 348 <tr class="alt"> 349 <td><label for="allow_print">' . plog_tr('Allow Auto Print?') . ' </label></td> 350 <td>'; 317 <td class="left"><label for="allow_print">' . plog_tr('Allow Auto Print:') . ' </label></td> 318 <td class="right">'; 351 319 if ($config['allow_print'] == 1) $checked = "checked='checked'"; else $checked = ""; 352 320 $output .= '<input type="checkbox" id="allow_print" name="allow_print" value="1" '.$checked.' /></td> 353 321 </tr> 354 <tr> 355 <td><label for="truncate">' . plog_tr('Truncate Long Filenames How Long?') . '</label><br /> ' . plog_tr('(Use zero for no truncation)') . '</td> 356 <td><input size="5" type="text" id="truncate" name="truncate" value="'.$config['truncate'].'" /></td> 357 </tr> 358 <tr class="alt"> 359 <td><label for="use_mod_rewrite">' . plog_tr('Generate Cruft-Free URLs:') . '</label><br /> ' . plog_tr('(requires mod_rewrite)') . '</td> 360 <td>'; 322 <tr class="alt"> 323 <td class="left"><label for="use_mod_rewrite">' . plog_tr('Generate Cruft-Free URLs:') . '</label><br />' . plog_tr('(requires mod_rewrite)') . '</td> 324 <td class="right">'; 361 325 $htaccess_file = $config["basedir"] . ".htaccess"; 362 326 if ($config['use_mod_rewrite'] == 1) $checked = "checked='checked'"; else $checked = ""; … … 370 334 </table> 371 335 372 <h1>' . plog_tr('RSS Syndication Options') . '</h1> 373 374 <table class="option-table"> 375 <tr> 376 <td><label for="feed_title">' . plog_tr('RSS Feed Title:') . '</label></td> 377 <td><input size="45" type="text" id="feed_title" name="feed_title" value="'.stripslashes($config['feed_title']).'" /></td> 378 </tr> 379 <tr class="alt"> 380 <td><label for="rss_thumbsize">' . plog_tr('RSS Image Thumbnail Width (pixels):') . '</label></td> 381 <td><input size="5" type="text" id="rss_thumbsize" name="rss_thumbsize" value="'.$thumbnail_config[THUMB_RSS]["size"].'" /></td> 382 </tr> 383 <tr> 384 <td><label for="feed_language">' . plog_tr('Language:') . '</label> <a href="http://www.w3.org/TR/REC-html40/struct/dirlang.html#langcodes">' . plog_tr('(language codes)') . '</a></td> 385 <td><input size="45" type="text" id="feed_language" name="feed_language" value="'.$config['feed_language'].'" /></td> 386 </tr> 387 <tr class="alt"> 388 <td><label for="feed_num_entries">' . plog_tr('Number of Images Per Feed:') . '</label></td> 389 <td><input size="5" type="text" id="feed_num_entries" name="feed_num_entries" value="'.$config['feed_num_entries'].'" /></td> 390 </tr> 391 <tr> 392 <td></td> 393 <td><input class="submit" type="submit" name="submit" value="' . plog_tr('Update Options') . '" /></td> 336 <h1>' . plog_tr("Images") . '</h1> 337 338 <table class="option-table"> 339 <tr> 340 <td class="left"><label for="image_quality">' . plog_tr('JPEG Image Quality:') . '</label><br />' . plog_tr("(1=worst, 95=best, 75=default)") . '</td> 341 <td class="right"><input size="5" type="text" id="image_quality" name="image_quality" value="'.$config['compression'].'" /></td> 342 </tr> 343 <tr class="alt"> 344 <td class="left"><label for="allow_fullpic">' . plog_tr('Allow Full Picture Access:') . '</label><br />' . plog_tr("(must be enabled if intermediate thumbnails are disabled)") . '</td> 345 <td class="right">'; 346 if (!empty($config['allow_fullpic'])) $checked = "checked='checked'"; else $checked = ""; 347 $output .= '<input type="checkbox" id="allow_fullpic" name="allow_fullpic" value="1" '.$checked.' /></td> 348 </tr> 349 <tr> 350 <td class="left"><label for="truncate">' . plog_tr('Truncate Long Filenames - Length:') . '</label><br />' . plog_tr('(use zero for no truncation)') . '</td> 351 <td class="right"><input size="5" type="text" id="truncate" name="truncate" value="'.$config['truncate'].'" /></td> 352 </tr> 353 </table> 354 355 <h1>' . plog_tr("Small Thumbnails") . '</h1> 356 357 <table class="option-table">'; 358 if ($config['square_thumbs']) $dim = plog_tr("Small Thumbnail Width:"); else $dim = plog_tr("Small Thumbnail Height:"); 359 $output.=' 360 <tr class="alt"> 361 <td class="left"><label for="max_thumbnail_size">'.$dim.'</label><br />' . plog_tr("(pixels)"). '</td> 362 <td class="right"><input size="5" type="text" id="max_thumbnail_size" name="max_thumbnail_size" value="'.$thumbnail_config[THUMB_SMALL]['size'].'" /></td> 363 </tr> 364 <tr> 365 <td class="left"><label for="square_thumbs">' . plog_tr('Use Cropped Square Thumbnails:') .'</label></td> 366 <td class="right">'; 367 if ($config['square_thumbs'] == 1) $checked = "checked='checked'"; else $checked = ""; 368 $output .= '<input type="checkbox" id="square_thumbs" name="square_thumbs" value="1" '.$checked.' /></td> 369 </tr> 370 <tr class="alt"> 371 <td class="left"><label for="thumb_num">' . plog_tr('Number of Thumbnails Per Page:') . '</label></td> 372 <td class="right"><input size="5" type="text" id="thumb_num" name="thumb_num" value="'.$config['thumb_num'].'" /></td> 373 </tr> 374 <tr> 375 <td class="left"><label for="enable_thumb_nav">' . plog_tr('Thumbnail Navigation Enabled:') . '</label></td> 376 <td class="right">'; 377 if (!empty($config['enable_thumb_nav'])) $checked = "checked='checked'"; else $checked = ""; 378 $output .= '<input type="checkbox" id="enable_thumb_nav" name="enable_thumb_nav" value="1" '.$checked.' /></td> 379 </tr> 380 <tr class="alt"> 381 <td class="left"><label for="thumb_nav_range">' . plog_tr('Thumbnail Navigation Range:') . '</label><br />' . plog_tr('(0 for whole album)') . '</td> 382 <td class="right"><input size="5" type="text" id="thumb_nav_range" name="thumb_nav_range" value="'.$config['thumb_nav_range'].'" /></td> 383 </tr> 384 <tr> 385 <td class="left"><label for="nav_thumbsize">' . plog_tr('Thumbnail Navigation Size:') . '</label></td> 386 <td class="right"><input size="5" type="text" id="nav_thumbsize" name="nav_thumbsize" value="'.$thumbnail_config[THUMB_NAV]['size'].'" /></td> 387 </tr> 388 </table> 389 390 <h1>' . plog_tr("Intermediate Thumbnails") . '</h1> 391 392 <table class="option-table"> 393 <tr class="alt"> 394 <td class="left"><label for="generate_intermediate">' . plog_tr('Generate Intermediate Pictures:') . '</label></td> 395 <td class="right">'; 396 $generate_intermediate = ($thumbnail_config[THUMB_LARGE]['disabled'] == 0) ? "checked='checked'" : ""; 397 $output.='<input type="checkbox" id="generate_intermediate" name="generate_intermediate" value="1" '.$generate_intermediate.' /></td> 398 </tr> 399 <tr> 400 <td class="left"><label for="max_display_size">' . plog_tr('Intermediate Picture Width:') . '</label><br />' . plog_tr("(pixels)"). '</td> 401 <td class="right"><input size="5" type="text" id="max_display_size" name="max_display_size" value="'.$thumbnail_config[THUMB_LARGE]['size'].'" /></td> 402 </tr> 403 </table> 404 405 <h1>' . plog_tr("RSS Syndication Options") . '</h1> 406 407 <table class="option-table"> 408 <tr class="alt"> 409 <td class="left"><label for="feed_title">' . plog_tr('RSS Feed Title:') . '</label></td> 410 <td class="right"><input size="40" type="text" id="feed_title" name="feed_title" value="'.stripslashes($config['feed_title']).'" /></td> 411 </tr> 412 <tr> 413 <td class="left"><label for="rss_thumbsize">' . plog_tr('RSS Image Thumbnail Width:') . '</label><br />' . plog_tr("(pixels)"). '</td> 414 <td class="right"><input size="5" type="text" id="rss_thumbsize" name="rss_thumbsize" value="'.$thumbnail_config[THUMB_RSS]["size"].'" /></td> 415 </tr> 416 <tr class="alt"> 417 <td class="left"><label for="feed_num_entries">' . plog_tr('Number of Images Per Feed:') . '</label></td> 418 <td class="right"><input size="5" type="text" id="feed_num_entries" name="feed_num_entries" value="'.$config['feed_num_entries'].'" /></td> 419 </tr> 420 <tr> 421 <td class="left"></td> 422 <td class="right"><input class="submit" type="submit" name="submit" value="' . plog_tr('Update Options') . '" /></td> 394 423 </tr> 395 424 </table> -
trunk/plog-admin/plog-themes.php
r568 r570 22 22 23 23 } 24 25 $inHead = "<script type=\"text/javascript\" src=\"js/plogger.js\"></script>";26 24 27 25 $output = "\n\t<h1>" . plog_tr("Manage Themes") . "</h1>"; -
trunk/plog-admin/plog-thumb.php
r555 r570 23 23 24 24 $thumbpath = generate_thumb($up_dir.'/'.$rname,"import-".substr(md5($file),0,2),THUMB_SMALL); 25 print '<img src="'.$thumbpath.'" /></div>';25 print '<img src="'.$thumbpath.'" alt="" /></div>'; 26 26 //print "found $relative_name!"; 27 27 break; -
trunk/plog-admin/plog-upload.php
r569 r570 165 165 <input accesskey="n" id="userfile" name="userfile" value="Vali fail" type="file" onchange="checkArchive(this)" /> 166 166 <label accesskey="c" for="caption">' . plog_tr('Picture <em>C</em>aption (optional):') . '</label> 167 <input style="width: 3 20px;" name="caption" id="caption" />167 <input style="width: 331px;" name="caption" id="caption" /> 168 168 <label accesskey="d" for="description">' . plog_tr('<em>D</em>escription (optional):') . '</label> 169 <textarea name="description" id="description" cols=" 53" rows="7"></textarea>169 <textarea name="description" id="description" cols="43" rows="6"></textarea> 170 170 </p> 171 171 </div>
Note: See TracChangeset
for help on using the changeset viewer.
