Changeset 1454813
- Timestamp:
- 07/14/2016 03:43:25 PM (10 years ago)
- Location:
- wp-magnific-popup
- Files:
-
- 12 added
- 3 edited
-
tags/0.91 (added)
-
tags/0.91/js (added)
-
tags/0.91/js/admin.js (added)
-
tags/0.91/js/wpmp.js (added)
-
tags/0.91/lang (added)
-
tags/0.91/lang/wp-magnific-popup-ru_RU.mo (added)
-
tags/0.91/lang/wp-magnific-popup-ru_RU.po (added)
-
tags/0.91/mpopup (added)
-
tags/0.91/mpopup/jquery.magnific-popup.min.js (added)
-
tags/0.91/mpopup/magnific-popup.css (added)
-
tags/0.91/readme.txt (added)
-
tags/0.91/wp_magnific_popup.php (added)
-
trunk/js/wpmp.js (modified) (5 diffs)
-
trunk/readme.txt (modified) (1 diff)
-
trunk/wp_magnific_popup.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-magnific-popup/trunk/js/wpmp.js
r1454781 r1454813 7 7 jQuery('.' + wpmp_options.image.class).magnificPopup({ 8 8 type: 'image', 9 closeOnContentClick: true, 9 closeOnContentClick: typeof wpmp_options.image.close_on_content_click !== 'undefined' && wpmp_options.image.close_on_content_click, 10 closeBtnInside: typeof wpmp_options.image.close_btn_inside !== 'undefined' && wpmp_options.image.close_btn_inside, 10 11 image: { 11 12 verticalFit: typeof wpmp_options.image.vertical_fit !== 'undefined' && wpmp_options.image.vertical_fit … … 20 21 if (typeof wpmp_options.gallery !== 'undefined' && wpmp_options.gallery.class) { 21 22 jQuery('.' + wpmp_options.gallery.class).magnificPopup({ 23 closeBtnInside: typeof wpmp_options.gallery.close_btn_inside !== 'undefined' && wpmp_options.gallery.close_btn_inside, 22 24 delegate: 'a', 23 25 type: 'image', … … 25 27 gallery: { 26 28 enabled: true, 27 navigateByImgClick: t rue,29 navigateByImgClick: typeof wpmp_options.gallery.navigate_by_img_click !== 'undefined' && wpmp_options.gallery.navigate_by_img_click, 28 30 preload: [0,1] // Will preload 0 - before current, and 1 after the current image 29 31 }, … … 43 45 removalDelay: 160, 44 46 preloader: false, 45 fixedContentPos: false 47 fixedContentPos: false, 48 closeBtnInside: typeof wpmp_options.iframe.close_btn_inside !== 'undefined' && wpmp_options.iframe.close_btn_inside, 46 49 }); 47 50 } … … 50 53 jQuery('.' + wpmp_options.div.class).magnificPopup({ 51 54 type: 'inline', 52 closeBtnInside: t rue,55 closeBtnInside: typeof wpmp_options.div.close_btn_inside !== 'undefined' && wpmp_options.div.close_btn_inside, 53 56 preloader: false 54 57 }); -
wp-magnific-popup/trunk/readme.txt
r1454502 r1454813 4 4 Requires at least: 3.0.1 5 5 Tested up to: 4.5.3 6 Stable tag: 0.91 6 7 License: GPLv2 or later 7 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html -
wp-magnific-popup/trunk/wp_magnific_popup.php
r1454781 r1454813 3 3 Plugin Name: WP Magnific Popup 4 4 Description: Add magnific popup lightbox script to your wordpress site 5 Version: 0.9 5 Version: 0.91 6 6 Author: Oleg Kosolapov 7 7 License: GPL2+ … … 105 105 <td><input type="checkbox" name="wpmp_image_settings[zoom_enabled]" value="1" <?php if ($this->get_wpmp_option('image', 'zoom_enabled') == 1) echo 'checked="checked"';?> /></td> 106 106 </tr> 107 <tr> 108 <th><?php _e('Close Button Inside', 'wp-magnific-popup') ?>:</th> 109 <td><input type="checkbox" name="wpmp_image_settings[close_btn_inside]" value="1" <?php if ($this->get_wpmp_option('image', 'close_btn_inside') == 1) echo 'checked="checked"';?> /></td> 110 </tr> 111 <tr> 112 <th><?php _e('Close On Content Click', 'wp-magnific-popup') ?>:</th> 113 <td><input type="checkbox" name="wpmp_image_settings[close_on_content_click]" value="1" <?php if ($this->get_wpmp_option('image', 'close_on_content_click') == 1) echo 'checked="checked"';?> /></td> 114 </tr> 107 115 </table> 108 116 </div> … … 113 121 <td><input type="text" name="wpmp_gallery_settings[class]" value="<?=$this->get_wpmp_option('gallery', 'class')?>" /></td> 114 122 </tr> 123 <tr> 124 <th><?php _e('Navigate by image click', 'wp-magnific-popup') ?>:</th> 125 <td><input type="checkbox" name="wpmp_gallery_settings[navigate_by_img_click]" value="1" <?php if ($this->get_wpmp_option('gallery', 'navigate_by_img_click') == 1) echo 'checked="checked"';?> /></td> 126 </tr> 127 <tr> 128 <th><?php _e('Close Button Inside', 'wp-magnific-popup') ?>:</th> 129 <td><input type="checkbox" name="wpmp_gallery_settings[close_btn_inside]" value="1" <?php if ($this->get_wpmp_option('gallery', 'close_btn_inside') == 1) echo 'checked="checked"';?> /></td> 130 </tr> 115 131 </table> 116 132 </div> … … 121 137 <td><input type="text" name="wpmp_iframe_settings[class]" value="<?=$this->get_wpmp_option('iframe', 'class')?>" /></td> 122 138 </tr> 139 <tr> 140 <th><?php _e('Close Button Inside', 'wp-magnific-popup') ?>:</th> 141 <td><input type="checkbox" name="wpmp_iframe_settings[close_btn_inside]" value="1" <?php if ($this->get_wpmp_option('iframe', 'close_btn_inside') == 1) echo 'checked="checked"';?> /></td> 142 </tr> 123 143 </table> 124 144 </div> … … 128 148 <th><?php _e('CSS class for dialogs', 'wp-magnific-popup') ?>:</th> 129 149 <td><input type="text" name="wpmp_div_settings[class]" value="<?=$this->get_wpmp_option('div', 'class')?>" /></td> 150 </tr> 151 <tr> 152 <th><?php _e('Close Button Inside', 'wp-magnific-popup') ?>:</th> 153 <td><input type="checkbox" name="wpmp_div_settings[close_btn_inside]" value="1" <?php if ($this->get_wpmp_option('div', 'close_btn_inside') == 1) echo 'checked="checked"';?> /></td> 130 154 </tr> 131 155 </table>
Note: See TracChangeset
for help on using the changeset viewer.