Changeset 490353
- Timestamp:
- 01/15/2012 08:20:47 PM (14 years ago)
- Location:
- dm-albums/trunk
- Files:
-
- 1 deleted
- 10 edited
-
galleria/themes/classic/galleria.classic.css (modified) (8 diffs)
-
javascript/browser.js (modified) (2 diffs)
-
javascript/dragdrop.js (modified) (2 diffs)
-
javascript/galleria-common.js (modified) (3 diffs)
-
javascript/galleria.php (modified) (2 diffs)
-
php/.cache (deleted)
-
php/includes.php (modified) (6 diffs)
-
preview/Preview - 07.jpg (modified) (previous)
-
preview/Preview - 16.jpg (modified) (previous)
-
readme.txt (modified) (2 diffs)
-
wp-dm-albums.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
dm-albums/trunk/galleria/themes/classic/galleria.classic.css
r486244 r490353 44 44 cursor: pointer; 45 45 } 46 47 46 .galleria-thumbnails .active 48 47 { 49 48 border-top: 1px solid #DD4814 !important; 50 49 } 51 52 50 .galleria-counter { 53 position: absolute;54 bottom: 10px;55 51 left: 10px; 56 52 text-align: right; … … 228 224 position: absolute; 229 225 width: 100%; 230 bottom: 0px; 226 bottom: 0px; 227 left: 0px !important; 231 228 padding-top: 10px; 229 padding-left: 10px; 230 padding-right: 10px; 232 231 text-align: center; 233 232 background: #000000; … … 235 234 font: 11px helvetica,sans-serif !important; 236 235 font-weight: normal !important; 237 opacity: 0.5 ;236 opacity: 0.55; 238 237 z-index: 1; 239 filter: alpha(opacity=50); 238 filter: alpha(opacity=55); 239 } 240 241 .galleria-caption p 242 { 243 width: 90%; 244 padding-left: 10px; 245 padding-right: 10px; 240 246 } 241 247 … … 274 280 } 275 281 276 .dm-albums-slideshow, .dm-albums-fullscreen, .dm-albums-powered-by 282 .dm-albums-slideshow, .dm-albums-fullscreen, .dm-albums-powered-by, .dm-albums-download 277 283 { 278 284 font: 9px/1 helvetica; … … 284 290 } 285 291 286 .dm-albums-slideshow div, .dm-albums-fullscreen div 292 .dm-albums-slideshow div, .dm-albums-fullscreen div, .dm-albums-download div 287 293 { 288 294 float: left; … … 290 296 } 291 297 292 .dm-albums-slideshow p, .dm-albums-fullscreen p 298 .dm-albums-slideshow p, .dm-albums-fullscreen p, .dm-albums-download p 293 299 { 294 300 padding: 0px !important; … … 309 315 height: 17px; 310 316 width: 92px; 317 margin-right: 10px; 318 } 319 320 .dm-albums-download 321 { 322 float: left; 323 height: 17px; 324 width: 85px; 311 325 } 312 326 … … 336 350 height: 17px; 337 351 background: url(fullscreen.png) no-repeat center center; 352 } 353 354 .dm-albums-download a 355 { 356 float: right; 357 display: block; 358 width: 22px; 359 height: 17px; 360 background: url(download.png) no-repeat center center; 338 361 } 339 362 -
dm-albums/trunk/javascript/browser.js
r486244 r490353 37 37 this.rollovers = this.browser || this.version >= 3; 38 38 39 this.Width = function() { return ((navigator.appName == "Microsoft Internet Explorer" ? document.body.offsetWidth : window.innerWidth));} 40 this.Height = function() { return ((navigator.appName == "Microsoft Internet Explorer" ? document.body.offsetHeight : window.innerHeight));} 39 this.Width = function() { return ((navigator.appName == "Microsoft Internet Explorer" ? document.body.offsetWidth : window.innerWidth));}; 40 this.Height = function() { return ((navigator.appName == "Microsoft Internet Explorer" ? document.body.offsetHeight : window.innerHeight));}; 41 41 42 42 this.toString = _toString; … … 48 48 this.Decode = _Decode; 49 49 50 this.GetPosition = _GetAbsolutePosition 50 this.GetPosition = _GetAbsolutePosition; 51 51 52 52 this.DOM = _DOM; -
dm-albums/trunk/javascript/dragdrop.js
r486244 r490353 84 84 mouseOffset = getMouseOffset(this, ev); 85 85 return false; 86 } 86 }; 87 87 } 88 88 … … 90 90 object.onmousedown = function(){ 91 91 dragObject = this; 92 } 92 }; 93 93 } -
dm-albums/trunk/javascript/galleria-common.js
r487634 r490353 1 1 var hash = null; 2 2 var g_DM_FULLSCREEN_GALLERY_ID = null; 3 4 function dm_download_file() 5 { 6 var data = $('#' + g_DM_FULLSCREEN_GALLERY_ID).data('galleria').getData(); 7 8 location.href = "?download=yes&file=" + data.big; 9 } 3 10 4 11 function dm_warn_fullscreen(id) … … 6 13 dm_set_fullscreen_message("Press \"Esc\" to exit full screen"); 7 14 8 location.href="#full-screen" 15 location.href="#full-screen"; 9 16 10 17 hash = location.hash; … … 86 93 fileref.setAttribute("src", src); 87 94 88 document.getElementsByTagName("head")[0].appendChild(fileref) 95 document.getElementsByTagName("head")[0].appendChild(fileref); 89 96 } 90 97 -
dm-albums/trunk/javascript/galleria.php
r486671 r490353 1 1 <?php 2 header('Content-type: text/javascript'); 2 3 3 4 require_once(dirname(dirname(dirname(dirname(dirname(__FILE__))))) . "/wp-load.php"); … … 12 13 if($album) 13 14 14 $root = get_option('siteurl') . "/"; 15 16 if(get_option('DM_HOME_DIR') != get_option('DM_ALBUMS_CORE_DEFAULT_HOME_DIR')) $root = "http://"; 15 $root = dm_get_album_root(); 17 16 18 17 $album_url = $root . ltrim($album, '/'); //"http://" . ltrim($album, '/'); -
dm-albums/trunk/php/includes.php
r486244 r490353 1 1 <?php 2 2 3 error_reporting(0);3 //error_reporting(0); 4 4 5 5 $DM_ALBUMS_IMAGETYPE_PNG = 0; … … 12 12 if(dm_is_wamp()) define(DM_CACHE_DIRECTORY, "cache"); 13 13 else define(DM_CACHE_DIRECTORY, ".cache"); 14 } 15 16 function dm_get_album_root() 17 { 18 $rot = get_option('siteurl') . "/"; 19 20 if(get_option('DM_HOME_DIR') != get_option('DM_ALBUMS_CORE_DEFAULT_HOME_DIR')) $root = "http://"; 21 22 return $root; 23 } 24 25 function dm_download() 26 { 27 //dm_logerrors("dm_download: "); 28 29 $file = basename($_GET["file"]); 30 31 //dm_logerrors("dm_download -> file: " . $file); 32 33 $currdir = str_replace(dm_get_album_root(), get_option('DM_HOME_DIR'), dirname($_GET["file"])); 34 35 //dm_logerrors("dm_download -> curdir: " . $currdir); 36 37 $filename = dm_sanitize($currdir, 1) . "/" . $file; 38 39 //dm_logerrors("dm_download -> filename: " . $filename); 40 41 if(dm_is_image($filename)) 42 { 43 $filesize = filesize($filename); 44 45 header("Cache-Control: must-revalidate, post-check=0, pre-check=0"); 46 header('Content-Description: File Transfer'); 47 header('Content-Type: application/octet-stream'); 48 header('Content-Length: ' . $filesize); 49 header('Content-Disposition: attachment; filename="' . $file . '"'); 50 readfile($filename); 51 } 52 } 53 54 function dm_loadjavascript() 55 { 56 ?> 57 <script type='text/javascript' src='http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.js?ver=3.3.1'></script> 58 <script type='text/javascript' src='<?php echo plugins_url(); ?>/dm-albums/galleria/galleria-1.2.6.min.js?ver=3.3.1'></script> 59 <script type='text/javascript' src='<?php echo plugins_url(); ?>/dm-albums/javascript/galleria-common.js?ver=3.3.1'></script> 60 <script type='text/javascript' src='<?php echo plugins_url(); ?>/dm-albums/galleria/themes/classic/galleria.classic.min.js?ver=3.3.1'></script> 61 <?php 14 62 } 15 63 … … 179 227 $photoid = "dma-" . basename($directory) . "-" . $picturename . "-caption"; 180 228 181 $caption = get_option($photoid);229 $caption = htmlspecialchars(get_option($photoid), ENT_QUOTES); 182 230 183 231 if(!empty($caption)) return $caption; … … 202 250 $caption = trim($matches[2][0]); 203 251 204 if(strlen($caption) > 0) return trim("$caption");205 else return trim($caption);252 if(strlen($caption) > 0) return htmlspecialchars(trim("$caption"), ENT_QUOTES); 253 else return htmlspecialchars(trim($caption), ENT_QUOTES); 206 254 } 207 255 } … … 238 286 $photoid = "dma-" . basename($directory) . "-" . $picturename . "-link"; 239 287 240 $caption = get_option($photoid);288 $caption = htmlspecialchars(get_option($photoid), ENT_QUOTES); 241 289 242 290 if(!empty($caption)) return $caption; … … 297 345 $albumid = "dma-" . basename($photoalbum) . "-title"; 298 346 299 $ablum_title = get_option($albumid);347 $ablum_title = htmlspecialchars(get_option($albumid), ENT_QUOTES); //get_option($albumid); 300 348 301 349 if(!empty($ablum_title)) return $ablum_title; -
dm-albums/trunk/readme.txt
r490086 r490353 5 5 Requires at least: 2.7 6 6 Tested up to: 3.3.1 7 Stable tag: 3.1.3 7 Stable tag: 3.1.3.1 8 8 9 9 DM Albums™ is an inline photo album/gallery plugin that displays high quality images and thumbnails perfectly sized to your blog. … … 77 77 78 78 == Changelog == 79 80 = 3.1.3.1 = 81 <ul><li>Refresh on code commit to Wordpress SVN; no functional change over 3.1.3</li></ul> 79 82 80 83 = 3.1.3 = -
dm-albums/trunk/wp-dm-albums.php
r490086 r490353 4 4 Description: DM Albums is an inline photo album/gallery plugin that displays high quality images and thumbnails perfectly sized to your blog. 5 5 Plugin URI: http://www.dutchmonkey.com/?file=products/dm-albums/dm-albums.html 6 Version: 3.1.3 6 Version: 3.1.3.1 7 7 Author: Frank D. Strack 8 8 Author URI: http://www.dutchmonkey.com/ … … 29 29 Change log: 30 30 31 3.1.3.1 32 * Refreshed commit to Wordpress SVN database. No functional change over 3.1.3. 31 33 3.1.3 32 34 * Fixed dm-albums-external.php (you also need to call dm_loadjavascript(); somewhere on your page prior to calling dm_printalbum()
Note: See TracChangeset
for help on using the changeset viewer.