Plugin Directory

Changeset 1454813


Ignore:
Timestamp:
07/14/2016 03:43:25 PM (10 years ago)
Author:
firimar
Message:

added some options

Location:
wp-magnific-popup
Files:
12 added
3 edited

Legend:

Unmodified
Added
Removed
  • wp-magnific-popup/trunk/js/wpmp.js

    r1454781 r1454813  
    77                jQuery('.' + wpmp_options.image.class).magnificPopup({
    88                    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,
    1011                    image: {
    1112                        verticalFit: typeof wpmp_options.image.vertical_fit !== 'undefined' && wpmp_options.image.vertical_fit
     
    2021            if (typeof wpmp_options.gallery !== 'undefined' && wpmp_options.gallery.class) {
    2122                jQuery('.' + wpmp_options.gallery.class).magnificPopup({
     23                    closeBtnInside: typeof wpmp_options.gallery.close_btn_inside !== 'undefined' && wpmp_options.gallery.close_btn_inside,
    2224                    delegate: 'a',
    2325                    type: 'image',
     
    2527                    gallery: {
    2628                        enabled: true,
    27                         navigateByImgClick: true,
     29                        navigateByImgClick: typeof wpmp_options.gallery.navigate_by_img_click !== 'undefined' && wpmp_options.gallery.navigate_by_img_click,
    2830                        preload: [0,1] // Will preload 0 - before current, and 1 after the current image
    2931                    },
     
    4345                    removalDelay: 160,
    4446                    preloader: false,
    45                     fixedContentPos: false
     47                    fixedContentPos: false,
     48                    closeBtnInside: typeof wpmp_options.iframe.close_btn_inside !== 'undefined' && wpmp_options.iframe.close_btn_inside,
    4649                });
    4750            }
     
    5053                jQuery('.' + wpmp_options.div.class).magnificPopup({
    5154                    type: 'inline',
    52                     closeBtnInside: true,
     55                    closeBtnInside: typeof wpmp_options.div.close_btn_inside !== 'undefined' && wpmp_options.div.close_btn_inside,
    5356                    preloader: false
    5457                });
  • wp-magnific-popup/trunk/readme.txt

    r1454502 r1454813  
    44Requires at least: 3.0.1
    55Tested up to: 4.5.3
     6Stable tag: 0.91
    67License: GPLv2 or later
    78License URI: http://www.gnu.org/licenses/gpl-2.0.html
  • wp-magnific-popup/trunk/wp_magnific_popup.php

    r1454781 r1454813  
    33Plugin Name: WP Magnific Popup
    44Description: Add magnific popup lightbox script to your wordpress site
    5 Version: 0.9
     5Version: 0.91
    66Author: Oleg Kosolapov
    77License: GPL2+
     
    105105                                <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>
    106106                            </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>
    107115                        </table>
    108116                    </div>
     
    113121                                <td><input type="text" name="wpmp_gallery_settings[class]" value="<?=$this->get_wpmp_option('gallery', 'class')?>" /></td>
    114122                            </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>
    115131                        </table>
    116132                    </div>
     
    121137                                <td><input type="text" name="wpmp_iframe_settings[class]" value="<?=$this->get_wpmp_option('iframe', 'class')?>" /></td>
    122138                            </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>
    123143                        </table>
    124144                    </div>
     
    128148                                <th><?php _e('CSS class for dialogs', 'wp-magnific-popup') ?>:</th>
    129149                                <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>
    130154                            </tr>
    131155                        </table>
Note: See TracChangeset for help on using the changeset viewer.