Changeset 1174533
- Timestamp:
- 06/04/2015 03:56:10 PM (11 years ago)
- Location:
- image-zoom/trunk
- Files:
-
- 3 edited
-
image-zoom.php (modified) (3 diffs)
-
lang/imagezoom.pot (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
image-zoom/trunk/image-zoom.php
r1170913 r1174533 4 4 Plugin Tag: zoom, highslide, image, panorama 5 5 Description: <p>Allow to dynamically zoom on images in posts/pages/... </p><p>When clicked, the image will dynamically scale-up. Please note that you have to insert image normally with the wordpress embedded editor.</p><p>You may configure:</p><ul><li>The max width/height of the image; </li><li>The transition delay; </li><li>The position of the buttons; </li><li>The auto-start of the slideshow; </li><li>the opacity of the background; </li><li>the pages to be excluded. </li></ul><p>If the image does not scale-up, please verify that the HTML looks like the following : <a href=' '><img src=' '></a>.</p><p>This plugin implements the colorbox javascript library. </p><p>This plugin is under GPL licence.</p> 6 Version: 1.8. 66 Version: 1.8.7 7 7 Author: SedLex 8 8 Author Email: sedlex@sedlex.fr … … 461 461 462 462 if (preg_match($pattern_img, $matches[0])) { 463 return preg_replace_callback($pattern_img, function ($m) { 464 return stripslashes("<a".$m[2]."href=\"".$m[3]."".$m[4]."\" class=\"gallery_colorbox\"".$m[5].">".$m[6]."<img".$m[7]."src=\"".$m[8]."".$m[9]."\" ".$m[10].">".$m[11]."</a>"); 465 }, $matches[0]); 463 return preg_replace_callback($pattern_img, array($this, "_modify_content_callback2"), $matches[0]); 466 464 } 467 465 … … 477 475 $this->image_temp = $image ; 478 476 479 return preg_replace_callback($pattern, function ($m) { 480 return stripslashes("<a".$m[2]."href=\"".$this->image_temp[0]."\" class=\"gallery_colorbox\"".$m[4].">".$m[5]."<img".$m[6]."src=\"".$m[7]."".$m[8]."\" ".$m[9].">".$m[10]."</a>") ; 481 }, $matches[0]); 477 return preg_replace_callback($pattern, array($this, "_modify_content_callback3"), $matches[0]); 482 478 } 483 479 484 480 return $matches[0]; 485 481 } 486 482 483 function _modify_content_callback2 ($m) { 484 return stripslashes("<a".$m[2]."href=\"".$m[3]."".$m[4]."\" class=\"gallery_colorbox\"".$m[5].">".$m[6]."<img".$m[7]."src=\"".$m[8]."".$m[9]."\" ".$m[10].">".$m[11]."</a>"); 485 } 486 487 function _modify_content_callback3 ($m) { 488 return stripslashes("<a".$m[2]."href=\"".$this->image_temp[0]."\" class=\"gallery_colorbox\"".$m[4].">".$m[5]."<img".$m[6]."src=\"".$m[7]."".$m[8]."\" ".$m[9].">".$m[10]."</a>") ; 489 } 487 490 488 491 -
image-zoom/trunk/lang/imagezoom.pot
r1170913 r1174533 22 22 msgstr "" 23 23 24 #: image-zoom.php:51 624 #: image-zoom.php:519 25 25 #@ imagezoom 26 26 msgid "Your theme contains (i.e. in %s file) a hardcoded reference to the jQuery javascript library." 27 27 msgstr "" 28 28 29 #: image-zoom.php:51 629 #: image-zoom.php:519 30 30 #@ imagezoom 31 31 msgid "This reference may break the plugin. So, if the plugin does not work, please either delete this reference or move it just after the %s declaration." 32 32 msgstr "" 33 33 34 #: image-zoom.php:53 034 #: image-zoom.php:533 35 35 #@ imagezoom 36 36 msgid "What are the clipped dimensions of the zoomed image?" 37 37 msgstr "" 38 38 39 #: image-zoom.php:53 139 #: image-zoom.php:534 40 40 #@ imagezoom 41 41 msgid "Max width:" 42 42 msgstr "" 43 43 44 #: image-zoom.php:53 244 #: image-zoom.php:535 45 45 #@ imagezoom 46 46 msgid "Max height:" 47 47 msgstr "" 48 48 49 #: image-zoom.php:53 349 #: image-zoom.php:536 50 50 #@ imagezoom 51 51 msgid "Do you want to clip to browser size:" 52 52 msgstr "" 53 53 54 #: image-zoom.php:53 454 #: image-zoom.php:537 55 55 #@ imagezoom 56 56 msgid "Do you want other width/height for mobile terminals?" 57 57 msgstr "" 58 58 59 #: image-zoom.php:53 559 #: image-zoom.php:538 60 60 #@ imagezoom 61 61 msgid "Max width for mobile:" 62 62 msgstr "" 63 63 64 #: image-zoom.php:53 664 #: image-zoom.php:539 65 65 #@ imagezoom 66 66 msgid "Max height for mobile:" 67 67 msgstr "" 68 68 69 #: image-zoom.php:5 3869 #: image-zoom.php:541 70 70 #@ imagezoom 71 71 msgid "What is the text for the frontend?" 72 72 msgstr "" 73 73 74 #: image-zoom.php:5 3974 #: image-zoom.php:542 75 75 #@ imagezoom 76 76 msgid "Previous:" 77 77 msgstr "" 78 78 79 #: image-zoom.php:54 079 #: image-zoom.php:543 80 80 #@ imagezoom 81 81 msgid "Next:" 82 82 msgstr "" 83 83 84 #: image-zoom.php:54 184 #: image-zoom.php:544 85 85 #@ imagezoom 86 86 msgid "Close:" 87 87 msgstr "" 88 88 89 #: image-zoom.php:54 289 #: image-zoom.php:545 90 90 #@ imagezoom 91 91 msgid "Play:" 92 92 msgstr "" 93 93 94 #: image-zoom.php:54 394 #: image-zoom.php:546 95 95 #@ imagezoom 96 96 msgid "Pause:" 97 97 msgstr "" 98 98 99 #: image-zoom.php:54 499 #: image-zoom.php:547 100 100 #@ imagezoom 101 101 msgid "The image counter:" 102 102 msgstr "" 103 103 104 #: image-zoom.php:54 5104 #: image-zoom.php:548 105 105 #@ imagezoom 106 106 msgid "The %s will be replace with the index of the image and %s with the total number of images in the page." 107 107 msgstr "" 108 108 109 #: image-zoom.php:5 47109 #: image-zoom.php:550 110 110 #@ imagezoom 111 111 msgid "What is the theme?" 112 112 msgstr "" 113 113 114 #: image-zoom.php:5 48114 #: image-zoom.php:551 115 115 #@ imagezoom 116 116 msgid "Choose the theme:" 117 117 msgstr "" 118 118 119 #: image-zoom.php:5 49119 #: image-zoom.php:552 120 120 #@ imagezoom 121 121 msgid "Theme 01 is : %s." 122 122 msgstr "" 123 123 124 #: image-zoom.php:55 0124 #: image-zoom.php:553 125 125 #@ imagezoom 126 126 msgid "Theme 02 is : %s." 127 127 msgstr "" 128 128 129 #: image-zoom.php:55 1129 #: image-zoom.php:554 130 130 #@ imagezoom 131 131 msgid "Theme 03 is : %s." 132 132 msgstr "" 133 133 134 #: image-zoom.php:55 2134 #: image-zoom.php:555 135 135 #@ imagezoom 136 136 msgid "Theme 04 is : %s (created by %s)." 137 137 msgstr "" 138 138 139 #: image-zoom.php:55 3139 #: image-zoom.php:556 140 140 #@ imagezoom 141 141 msgid "Additional CSS you want to add:" 142 142 msgstr "" 143 143 144 #: image-zoom.php:55 4144 #: image-zoom.php:557 145 145 #@ imagezoom 146 146 msgid "If you want to modify sligthly the CSS, you can modify it here." 147 147 msgstr "" 148 148 149 #: image-zoom.php:5 57149 #: image-zoom.php:560 150 150 #@ imagezoom 151 151 msgid "Show description text" 152 152 msgstr "" 153 153 154 #: image-zoom.php:5 58154 #: image-zoom.php:561 155 155 #@ imagezoom 156 156 msgid "Show the title of the image:" 157 157 msgstr "" 158 158 159 #: image-zoom.php:5 59159 #: image-zoom.php:562 160 160 #@ imagezoom 161 161 msgid "Show the alternative text of the image:" 162 162 msgstr "" 163 163 164 #: image-zoom.php:56 1164 #: image-zoom.php:564 165 165 #@ imagezoom 166 166 msgid "What are the other parameters?" 167 167 msgstr "" 168 168 169 #: image-zoom.php:56 2169 #: image-zoom.php:565 170 170 #@ imagezoom 171 171 msgid "Transition time if the slideshow is on:" 172 172 msgstr "" 173 173 174 #: image-zoom.php:56 3174 #: image-zoom.php:566 175 175 #@ imagezoom 176 176 msgid "Auto-start the slideshow when launched:" 177 177 msgstr "" 178 178 179 #: image-zoom.php:56 4179 #: image-zoom.php:567 180 180 #@ imagezoom 181 181 msgid "The opacity of the background:" 182 182 msgstr "" 183 183 184 #: image-zoom.php:56 6184 #: image-zoom.php:569 185 185 #@ imagezoom 186 186 msgid "Advanced parameters?" 187 187 msgstr "" 188 188 189 #: image-zoom.php:5 67189 #: image-zoom.php:570 190 190 #@ imagezoom 191 191 msgid "Disable the navigation buttons on images:" 192 192 msgstr "" 193 193 194 #: image-zoom.php:5 68194 #: image-zoom.php:571 195 195 #@ imagezoom 196 196 msgid "Disable click on the image for next (it will then close the slideshow):" 197 197 msgstr "" 198 198 199 #: image-zoom.php:5 69199 #: image-zoom.php:572 200 200 #@ imagezoom 201 201 msgid "Disable the slideshow buttons on images:" 202 202 msgstr "" 203 203 204 #: image-zoom.php:57 1204 #: image-zoom.php:574 205 205 #@ imagezoom 206 206 msgid "List of page exclusions (regular expressions):" 207 207 msgstr "" 208 208 209 #: image-zoom.php:57 2209 #: image-zoom.php:575 210 210 #@ imagezoom 211 211 msgid "For instance, you may exclude page with URL like %s by setting this option to %s. Please add one regular expressions by line" 212 212 msgstr "" 213 213 214 #: image-zoom.php:57 3214 #: image-zoom.php:576 215 215 #@ imagezoom 216 216 msgid "You may also exclude this same page by setting this option to %s" 217 217 msgstr "" 218 218 219 #: image-zoom.php:57 4219 #: image-zoom.php:577 220 220 #@ imagezoom 221 221 msgid "In addition, you may set this option to %s and to %s to exclude the home page" 222 222 msgstr "" 223 223 224 #: image-zoom.php:57 6224 #: image-zoom.php:579 225 225 #@ imagezoom 226 226 msgid "Disable if the user uses mobile terminal:" 227 227 msgstr "" 228 228 229 #: image-zoom.php:5 79229 #: image-zoom.php:582 230 230 #@ imagezoom 231 231 msgid "Parameters" 232 232 msgstr "" 233 233 234 #: image-zoom.php:58 3234 #: image-zoom.php:586 235 235 #@ imagezoom 236 236 msgid "This plugin allows a dynamic zoom on the images." 237 237 msgstr "" 238 238 239 #: image-zoom.php:58 4239 #: image-zoom.php:587 240 240 #@ imagezoom 241 241 msgid "All images in your pages/posts like %s will be zoomable." 242 242 msgstr "" 243 243 244 #: image-zoom.php:58 5244 #: image-zoom.php:588 245 245 #@ imagezoom 246 246 msgid "Purpose of that plugin" 247 247 msgstr "" 248 248 249 #: image-zoom.php:5 87249 #: image-zoom.php:590 250 250 #@ imagezoom 251 251 msgid "If you want to exclude one specific image, please modify the HTML code so that this image is like that: %s or %s." 252 252 msgstr "" 253 253 254 #: image-zoom.php:5 88254 #: image-zoom.php:591 255 255 #@ imagezoom 256 256 msgid "Exclude an image" 257 257 msgstr "" 258 258 259 #: image-zoom.php:59 0259 #: image-zoom.php:593 260 260 #@ imagezoom 261 261 msgid "If you want to exclude one specific page, please use the advanced option in the configuration tab" 262 262 msgstr "" 263 263 264 #: image-zoom.php:59 1264 #: image-zoom.php:594 265 265 #@ imagezoom 266 266 msgid "For instance, you may exclude page with URL like %s by setting this option to portfolio. Please add one regular expressions by line." 267 267 msgstr "" 268 268 269 #: image-zoom.php:59 2269 #: image-zoom.php:595 270 270 #@ imagezoom 271 271 msgid "You may also exclude this same page by setting this option to %s." 272 272 msgstr "" 273 273 274 #: image-zoom.php:59 3274 #: image-zoom.php:596 275 275 #@ imagezoom 276 276 msgid "In addition, you may set this option to %s and to %s to exclude the home page." 277 277 msgstr "" 278 278 279 #: image-zoom.php:59 4279 #: image-zoom.php:597 280 280 #@ imagezoom 281 281 msgid "Exclude a page" 282 282 msgstr "" 283 283 284 #: image-zoom.php:59 6284 #: image-zoom.php:599 285 285 #@ imagezoom 286 286 msgid "One of the most probable reason that the plugin does not work is that there is a conflict with your theme of one of your plugins." 287 287 msgstr "" 288 288 289 #: image-zoom.php: 597289 #: image-zoom.php:600 290 290 #@ imagezoom 291 291 msgid "Before contacting me, please test deactivating each plugin one by one to see if it solve the problem and change the theme by the default one." 292 292 msgstr "" 293 293 294 #: image-zoom.php: 598294 #: image-zoom.php:601 295 295 #@ imagezoom 296 296 msgid "Indeed, most of the time the %s library is not loaded correctly." 297 297 msgstr "" 298 298 299 #: image-zoom.php: 599299 #: image-zoom.php:602 300 300 #@ imagezoom 301 301 msgid "I cannot give you a simple way to correct it!" 302 302 msgstr "" 303 303 304 #: image-zoom.php:60 0304 #: image-zoom.php:603 305 305 #@ imagezoom 306 306 msgid "The plugin does not work" 307 307 msgstr "" 308 308 309 #: image-zoom.php:60 6309 #: image-zoom.php:609 310 310 #@ imagezoom 311 311 msgid "How To" 312 312 msgstr "" 313 313 314 #: image-zoom.php:61 2314 #: image-zoom.php:615 315 315 #@ imagezoom 316 316 msgid "Manage translations" 317 317 msgstr "" 318 318 319 #: image-zoom.php:6 18319 #: image-zoom.php:621 320 320 #@ imagezoom 321 321 msgid "Give feedback" 322 322 msgstr "" 323 323 324 #: image-zoom.php:62 3324 #: image-zoom.php:626 325 325 #@ imagezoom 326 326 msgid "Other plugins" -
image-zoom/trunk/readme.txt
r1170913 r1174533 86 86 == Changelog == 87 87 88 = 1.8.4 - 1.8.7 = 89 * BUG: various version to overcome a bug in PHP 5.2 90 88 91 = 1.8.3 = 89 92 * BUG: remove the e modifier for preg_replace (deprecated in 5.5) … … 209 212 210 213 211 InfoVersion: a87fac306ca6f172db1c60c133538d006944b708214 InfoVersion:442fd52d7eb365b5ec925e54de5e944da36c0e34
Note: See TracChangeset
for help on using the changeset viewer.