Changeset 195188
- Timestamp:
- 01/19/2010 03:29:12 AM (16 years ago)
- Location:
- wp-slimbox2/trunk
- Files:
-
- 1 added
- 2 edited
-
adminpage.php (modified) (23 diffs)
-
index.php (modified) (1 diff)
-
javascript/jquery.easing.1.3.js (added)
Legend:
- Unmodified
- Added
- Removed
-
wp-slimbox2/trunk/adminpage.php
r194136 r195188 1 1 <?php 2 //modify translation files, add all defaults to settings 2 3 $easingArray = array(swing,easeInQuad,easeOutQuad,easeInOutQuad,easeInCubic,easeOutCubic,easeInOutCubic,easeInQuart,easeOutQuart,easeInOutQuart,easeInQuint,easeOutQuint,easeInOutQuint,easeInSine,easeOutSine,easeInOutSine,easeInExpo,easeOutExpo,easeInOutExpo,easeInCirc,easeOutCirc,easeInOutCirc,easeInElastic,easeOutElastic,easeInOutElastic,easeInBack,easeOutBack,easeInOutBack,easeInBounce,easeOutBounce,easeInOutBounce); 3 4 $overlayOpacity = array(0,0.1,0.2,0.3,0.4,0.5,0.6,0.7,0.8,0.9,1); … … 5 6 $captions = array('a-title','img-alt','img-title','href','None'); 6 7 global $options; 7 //combine selection of lightbox and any non-lightboxed images into single selector8 8 ?> 9 9 <div class="wrap"> … … 38 38 ) 39 39 ); 40 echo '<div id="message" class="updated fade"><p><strong> Settings saved.</strong></p></div>';40 echo '<div id="message" class="updated fade"><p><strong>'.__('Settings Saved', 'wp-slimbox2').'.</strong></p></div>'; 41 41 } 42 42 $caption = $options->get_option('caption'); … … 45 45 foreach($array as $key=> $ms) { 46 46 $selected = ($option != $ms)? '' : ' selected'; 47 echo "<option value='$ms'$selected>".(($ms=='1'&&$array[0]!='0')? 'Disabled':$ms)."</option>\n";47 echo "<option value='$ms'$selected>".(($ms=='1'&&$array[0]!='0')?__('Disabled', 'wp-slimbox2'):$ms)."</option>\n"; 48 48 } 49 49 } … … 73 73 </th> 74 74 <td class='desc'> 75 <p> <?php _e('This option allows the user to automatically activate Slimbox on all links pointing to ".jpg" or ".png" or ".gif". All image links will automatically be grouped together in a gallery according to the selector chosen below. If this isn\'t activated you will need to manually add \'rel="lightbox"\' for individual images or \'rel="lightbox-imagesetname"\' for groups on all links you wish to use Slimbox.', 'wp-slimbox2'); ?>75 <p> <?php _e('This option allows the user to automatically activate Slimbox on all links pointing to ".jpg", ".jpeg", ".png", ".bmp" or ".gif". All image links will automatically be grouped together in a gallery according to the selector chosen below. If this isn\'t activated you will need to manually add \'rel="lightbox"\' for individual images or \'rel="lightbox-imagesetname"\' for groups on all links you wish to use the Slimbox effect. Default is DISABLED.', 'wp-slimbox2'); ?> 76 76 </p> 77 77 </td> … … 83 83 </th> 84 84 <td class='desc'> 85 <p> <?php _e('This option allows the user to automatically add the Slimbox effect to Picasaweb links when provided an appropriate thumbnail (this is separate from the autoload script which only functions on image links).', 'wp-slimbox2'); ?>85 <p> <?php _e('This option allows the user to automatically add the Slimbox effect to Picasaweb links when provided an appropriate url (this is separate from the autoload script which only functions on direct image links). Default is DISABLED.', 'wp-slimbox2'); ?> 86 86 </p> 87 87 </td> … … 93 93 </th> 94 94 <td class='desc'> 95 <p> <?php _e('This option allows the user to automatically add the Slimbox effect to Flickr links when provided an appropriate thumbnail (this is separate from the autoload script which only functions on image links).', 'wp-slimbox2'); ?>95 <p> <?php _e('This option allows the user to automatically add the Slimbox effect to Flickr links when provided an appropriate url (this is separate from the autoload script which only functions on direct image links). Default is DISABLED.', 'wp-slimbox2'); ?> 96 96 </p> 97 97 </td> … … 103 103 </th> 104 104 <td class='desc'> 105 <p> <?php _e('This option allows the user to navigate between the first and last images of a Slimbox gallery when there is more than one image to display.', 'wp-slimbox2'); ?>105 <p> <?php _e('This option allows the user to navigate between the first and last images of a Slimbox gallery group when there is more than one image to display. Default is DISABLED.', 'wp-slimbox2'); ?> 106 106 </p> 107 107 </td> … … 115 115 </th> 116 116 <td class='desc'> 117 <p> <?php _e('This option allows the user to adjust the opacity of the background overlay. 1 is completely opaque, 0 is completely transparent. ', 'wp-slimbox2'); ?>117 <p> <?php _e('This option allows the user to adjust the opacity of the background overlay. 1 is completely opaque, 0 is completely transparent. Default is 0.8.', 'wp-slimbox2'); ?> 118 118 </p> 119 119 </td> … … 138 138 </th> 139 139 <td class='desc'> 140 <p> <?php _e('This option allows the user to adjust the duration of the overlay fade-in and fade-out animations, in milliseconds. ', 'wp-slimbox2'); ?>140 <p> <?php _e('This option allows the user to adjust the duration of the overlay fade-in and fade-out animations, in milliseconds. Default is 400.', 'wp-slimbox2'); ?> 141 141 </p> 142 142 </td> … … 150 150 </th> 151 151 <td class='desc'> 152 <p> <?php _e('This option allows the user to adjust the duration of the resize animation for width and height, in milliseconds. ', 'wp-slimbox2'); ?>152 <p> <?php _e('This option allows the user to adjust the duration of the resize animation for width and height, in milliseconds. Default is 400.', 'wp-slimbox2'); ?> 153 153 </p> 154 154 </td> … … 162 162 </th> 163 163 <td class='desc'> 164 <p> <?php _e('This option allows the user to adjust the easing effect that you want to use for the resize animation ( this loads an additional jQuery Easing Plugin). Many easings require a longer execution time to look good, so you should adjust the resizeDuration option above as well.', 'wp-slimbox2'); ?>164 <p> <?php _e('This option allows the user to adjust the easing effect that you want to use for the resize animation (easings other than swing load an additional jQuery Easing Plugin). Many easings require a longer execution time to look good, so you should adjust the resizeDuration option above as well. Default is swing.', 'wp-slimbox2'); ?> 165 165 </p> 166 166 </td> … … 172 172 </th> 173 173 <td class='desc'> 174 <p> <?php _e('This option allows the user to adjust the initial width of the box, in pixels. ', 'wp-slimbox2'); ?>174 <p> <?php _e('This option allows the user to adjust the initial width of the box, in pixels. Default is 250.', 'wp-slimbox2'); ?> 175 175 </p> 176 176 </td> … … 182 182 </th> 183 183 <td class='desc'> 184 <p> <?php _e('This option allows the user to adjust the initial height of the box, in pixels. ', 'wp-slimbox2'); ?>184 <p> <?php _e('This option allows the user to adjust the initial height of the box, in pixels. Default is 250.', 'wp-slimbox2'); ?> 185 185 </p> 186 186 </tr> … … 193 193 </th> 194 194 <td class='desc'> 195 <p> <?php _e('This option allows the user to adjust the duration of the image fade-in animation, in milliseconds. Disabling this effect will make the image appear instantly. ', 'wp-slimbox2'); ?>195 <p> <?php _e('This option allows the user to adjust the duration of the image fade-in animation, in milliseconds. Disabling this effect will make the image appear instantly. Default is 400.', 'wp-slimbox2'); ?> 196 196 </p> 197 197 </td> … … 205 205 </th> 206 206 <td class='desc'> 207 <p> <?php _e('This option allows the user to adjust the duration of the caption animation, in milliseconds. Disabling this effect will make the caption appear instantly. ', 'wp-slimbox2'); ?>207 <p> <?php _e('This option allows the user to adjust the duration of the caption animation, in milliseconds. Disabling this effect will make the caption appear instantly. Default is 400.', 'wp-slimbox2'); ?> 208 208 </p> 209 209 </tr> … … 225 225 </th> 226 226 <td class='desc'> 227 <p> <?php _e('This option allows the user to select the order in which to search various locations for the caption text. If you\'d like no caption just select "None" in the first block. You can also leave out an option by replacing it with "None", but be sure to place any option you\'d like to search in front of it. If a caption can\'t be found, and "None" wasn\t selected, it will default to the URL ("href"). The default is "a-title", followed by "img-alt", "img-title", and "href".', 'wp-slimbox2'); ?>227 <p> <?php _e('This option allows the user to select the order in which to search various locations for the caption text. If you\'d like no caption just select "None" in the first block. You can also leave out an option by replacing it with "None", but be sure to place any option you\'d like to search in front of it. If a caption can\'t be found, and "None" wasn\t selected, it will default to the URL ("href"). Default is "a-title", followed by "img-alt", "img-title", and "href".', 'wp-slimbox2'); ?> 228 228 </p> 229 229 </td> … … 235 235 </th> 236 236 <td class='desc'> 237 <p> <?php _e('This option will render the caption as a hyperlink. This is enabled by default.', 'wp-slimbox2'); ?>237 <p> <?php _e('This option will render the caption as a hyperlink. Default is Enabled.', 'wp-slimbox2'); ?> 238 238 </p> 239 239 </tr> … … 244 244 </th> 245 245 <td class='desc'> 246 <p> <?php _e('This option allows the user to change how images are grouped when autoload is enabled. It uses jQuery selectors, as described <a href="http://api.jquery.com/category/selectors/">here</a>. The default is "div.entry-content, div.gallery, div.entry, div.post, div#page, body", which works in most themes by searching for a common post, gallery, or page that contains the images.', 'wp-slimbox2'); ?>246 <p> <?php _e('This option allows the user to change how images are grouped when autoload is enabled. It uses jQuery selectors, as described <a href="http://api.jquery.com/category/selectors/">here</a>. Default is "div.entry-content, div.gallery, div.entry, div.post, div#page, body", which works in most themes by searching for a common post, gallery, or page that contains the images.', 'wp-slimbox2'); ?> 247 247 </p> 248 248 </td> … … 254 254 </th> 255 255 <td class='desc'> 256 <p> <?php _e('This option allows the user to customize, translate or disable the counter text which appears in the captions when multiple images are shown. Inside the text, {x} will be replaced by the current image index, and {y} will be replaced by the total number of images . Set it to false (boolean value, without quotes) or "" to disable the counter display. Default is "Image {x} of {y}".', 'wp-slimbox2'); ?>256 <p> <?php _e('This option allows the user to customize, translate or disable the counter text which appears in the captions when multiple images are shown. Inside the text, {x} will be replaced by the current image index, and {y} will be replaced by the total number of images in the group. Set it to false (boolean value, without quotes) or "" to disable the counter display. Default is "Image {x} of {y}".', 'wp-slimbox2'); ?> 257 257 </p> 258 258 </tr> … … 294 294 </th> 295 295 <td class='desc'> 296 <p> <?php _e('This option enables a maintenance mode for testing purposes. When enabled slimbox will be disabled until you enable it by appending ?slimbox=on to a url. It will then remain on until you disable it by appending ?slimbox=off to a url, you clear your cookies, or in certain cases you clear your browser cache. This setting only impacts things at a vistor level, not a site wide level.', 'wp-slimbox2'); ?>296 <p> <?php _e('This option enables a maintenance mode for testing purposes. When enabled slimbox will be disabled until you enable it by appending ?slimbox=on to a url. It will then remain on until you disable it by appending ?slimbox=off to a url, you clear your cookies, or in certain cases you clear your browser cache. This setting only impacts things at an individual vistor level, not a site wide level. Default is Disabled.', 'wp-slimbox2'); ?> 297 297 </p> 298 298 </tr> … … 305 305 <div style="clear:both;padding-top:20px;"></div> 306 306 </form> 307 <div align="center"> 307 <div class="clear"></div> 308 <h2><?php _e('Notes', 'wp-slimbox2');?></h2> 309 <table class="widefat" cellspacing="0" id="active-plugins-table"> 310 <tfoot> 311 <tr> 312 <th scope="col"></th> 313 </tr> 314 315 </tfoot> 316 <tbody class="plugins"> 317 <tr class="inactive"> 318 <td class="desc"> 319 <p>Check out the <a href="http://transientmonkey.com/wp-slimbox2-user-guide">WP-Slimbox2 User Guide</a>!</p> 320 <p>Support is graciously being hosted at <a href="http://pixopoint.com/forum/index.php?board=6.0">PixoPoint.com</a> I'll make an effort to stay apprised of any questions that may arise.</p> 321 <p>The plugin webpage can be found at <a href="http://transientmonkey.com/wp-slimbox2">TransientMonkey.com</a>, feel free to leave comments, but don't post support questions, that's what the forum is for! Stay tuned in to all new Transient Monkey projects!</p> 322 <p>If you'd like to add or update a translation to WP-Slimbox2, please visit <a href="http://pixopoint.com/forum/index.php?topic=1383.0">this forum</a>. The more people who can easily use this plugin the better!</p> 308 323 <form action="https://www.paypal.com/cgi-bin/webscr" method="post"> 309 324 <input type="hidden" name="cmd" value="_s-xclick"> … … 313 328 </form> 314 329 <p><b style="font-size:11px;">Support this plugin!','wp-slimbox2'); ?></b></p> 315 </div> 330 </td> 331 </tr> 332 </tbody> 333 </table> 334 316 335 </div> -
wp-slimbox2/trunk/index.php
r194826 r195188 5 5 Description: A Wordpress implementation of the Slimbox2 javascript, utilizing jQuery, originally written by Christophe Beyls. Requires WP 2.6+ 6 6 Author: Greg Yingling (malcalevak) 7 Version: 0.9.87 Version: 1.0 8 8 Author URI: http://transientmonkey.com/ 9 9 10 Copyright 20 09 Transient Monkey10 Copyright 2010 Transient Monkey, LLC 11 11 12 12 This program is free software; you can redistribute it and/or modify
Note: See TracChangeset
for help on using the changeset viewer.