Plugin Directory

Changeset 1965336


Ignore:
Timestamp:
10/29/2018 07:13:43 PM (7 years ago)
Author:
colorlibplugins
Message:

Update to 3.1.0

Location:
fancybox-for-wordpress
Files:
162 added
7 deleted
12 edited

Legend:

Unmodified
Added
Removed
  • fancybox-for-wordpress/trunk/admin.php

    r1493816 r1965336  
    22
    33function mfbfw_options_page() {
    4 
    54    require_once( FBFW_PATH . 'lib/admin-head.php' );
    65
    76    ?>
    87
    9     <div class="wrap">
     8    <div class="wrap about-wrap fbfw-wrap">
     9        <div id="icon-plugins" class="icon32"></div>
     10        <div class="inlined">
     11            <div id="pluginDescription">
     12                <h1><?php printf( __( 'Fancybox for WordPress (version %s)', 'mfbfw' ), FBFW_VERSION ); ?></h1>
     13                <p class="about-text">Seamlessly integrates FancyBox into your blog: Upload, activate, and you’re done. Additional configuration optional.</p>
     14            </div>
     15        </div>
    1016
    11     <div id="icon-plugins" class="icon32"></div><h2><?php printf( __('Fancybox for WordPress (version %s)', 'mfbfw'), FBFW_VERSION ); ?></h2>
     17        <br/>
    1218
    13     <br />
     19        <form method="post" action="options.php" id="options">
    1420
    15     <form method="post" action="options.php" id="options">
     21            <?php settings_fields( 'mfbfw-options' ); ?>
    1622
    17         <?php settings_fields( 'mfbfw-options' ); ?>
     23            <div id="fbfwTabs">
     24                <ul class="nav-tab-wrapper wp-clearfix">
     25                    <li><a href="#fbfw-appearance"><?php _e( 'Appearance', 'mfbfw' ); ?></a></li>
     26                    <li><a href="#fbfw-animations"><?php _e( 'Animations', 'mfbfw' ); ?></a></li>
     27                    <li><a href="#fbfw-behaviour"><?php _e( 'Behaviour', 'mfbfw' ); ?></a></li>
     28                    <li><a href="#fbfw-galleries"><?php _e( 'Galleries', 'mfbfw' ); ?></a></li>
     29                    <li><a href="#fbfw-other"><?php _e( 'Misc.', 'mfbfw' ); ?></a></li>
     30                    <li><a href="#fbfw-support" style="color:green;"><?php _e( 'Support', 'mfbfw' ); ?></a></li>
     31                </ul>
    1832
    19         <div id="fbfwTabs">
     33                <div id="fbfw-appearance">
     34                    <?php require_once( FBFW_PATH . 'lib/admin-tab-appearance.php' ); ?>
     35                </div>
    2036
    21             <ul>
    22                 <li><a href="#fbfw-info"><?php _e( 'Info', 'mfbfw' ); ?></a></li>
    23                 <li><a href="#fbfw-appearance"><?php _e( 'Appearance', 'mfbfw' ); ?></a></li>
    24                 <li><a href="#fbfw-animations"><?php _e( 'Animations', 'mfbfw' ); ?></a></li>
    25                 <li><a href="#fbfw-behaviour"><?php _e( 'Behaviour', 'mfbfw' ); ?></a></li>
    26                 <li><a href="#fbfw-galleries"><?php _e( 'Galleries', 'mfbfw' ); ?></a></li>
    27                 <li><a href="#fbfw-other"><?php _e( 'Miscellaneous', 'mfbfw' ); ?></a></li>
    28                 <li><a href="#fbfw-calls"><?php _e( 'Extra Calls', 'mfbfw' ); ?></a></li>
    29                 <li><a href="#fbfw-troubleshooting"><?php _e( 'Troubleshooting', 'mfbfw' ); ?></a></li>
    30                 <li><a href="#fbfw-support" style="color:green;"><?php _e( 'Support', 'mfbfw' ); ?></a></li>
    31                 <li><a href="#fbfw-uninstall" style="color:red;"><?php _e ('Uninstall', 'mfbfw' ); ?></a></li>
    32             </ul>
     37                <div id="fbfw-animations">
     38                    <?php require_once( FBFW_PATH . 'lib/admin-tab-animations.php' ); ?>
     39                </div>
    3340
    34             <div id="fbfw-info">
    35                 <?php require_once ( FBFW_PATH . 'lib/admin-tab-info.php' ); ?>
    36             </div>
     41                <div id="fbfw-behaviour">
     42                    <?php require_once( FBFW_PATH . 'lib/admin-tab-behaviour.php' ); ?>
     43                </div>
    3744
    38             <div id="fbfw-appearance">
    39                 <?php require_once ( FBFW_PATH . 'lib/admin-tab-appearance.php' ); ?>
    40             </div>
     45                <div id="fbfw-galleries">
     46                    <?php require_once( FBFW_PATH . 'lib/admin-tab-galleries.php' ); ?>
     47                </div>
    4148
    42             <div id="fbfw-animations">
    43                 <?php require_once ( FBFW_PATH . 'lib/admin-tab-animations.php' ); ?>
    44             </div>
     49                <div id="fbfw-other">
     50                    <?php require_once( FBFW_PATH . 'lib/admin-tab-other.php' ); ?>
     51                </div>
    4552
    46             <div id="fbfw-behaviour">
    47                 <?php require_once ( FBFW_PATH . 'lib/admin-tab-behaviour.php' ); ?>
    48             </div>
     53                <div id="fbfw-support">
     54                    <?php require_once( FBFW_PATH . 'lib/admin-tab-support.php' ); ?>
     55                </div>
    4956
    50             <div id="fbfw-galleries">
    51                 <?php require_once ( FBFW_PATH . 'lib/admin-tab-galleries.php' ); ?>
    52             </div>
     57            </div>
    5358
    54             <div id="fbfw-other">
    55                 <?php require_once ( FBFW_PATH . 'lib/admin-tab-other.php' ); ?>
    56             </div>
     59            <p class="submit" style="text-align:center;">
     60                <input type="submit" name="mfbfw_update" class="button-primary"
     61                       value="<?php esc_attr_e( 'Save Changes', 'mfbfw' ); ?>"/>
     62            </p>
    5763
    58             <div id="fbfw-calls">
    59                 <?php require_once ( FBFW_PATH . 'lib/admin-tab-calls.php' ); ?>
    60             </div>
     64        </form>
    6165
    62             <div id="fbfw-troubleshooting">
    63                 <?php require_once ( FBFW_PATH . 'lib/admin-tab-troubleshooting.php' ); ?>
    64             </div>
     66        <form method="post" action="">
     67            <div style="text-align:center;padding:0 0 1.5em;margin:-15px 0 5px;">
     68                <?php wp_nonce_field( 'mfbfw-options-reset' ); ?>
     69                <input type="submit" name="mfbfw_update" id="reset" onClick="return confirmDefaults();"
     70                       class="button-secondary" value="<?php esc_attr_e( 'Revert to defaults', 'mfbfw' ); ?>"/>
     71                <input type="hidden" name="action" value="reset"/>
     72            </div>
    6573
    66             <div id="fbfw-support">
    67                 <?php require_once ( FBFW_PATH . 'lib/admin-tab-support.php' ); ?>
    68             </div>
     74            <div id="mfbfwd"
     75                 style="border-top:1px dashed #DDDDDD;margin:20px 0 40px;overflow:hidden;padding-top:25px;width:100%;float:left;display:block !important;">
    6976
    70             <div id="fbfw-uninstall">
    71                 <?php require_once ( FBFW_PATH . 'lib/admin-tab-uninstall.php' ); ?>
    72             </div>
     77                Plugin developed and supported by <a href="https://colorlib.com">Colorlib</a>
    7378
    74         </div>
     79            </div>
    7580
    76         <p class="submit" style="text-align:center;">
    77             <input type="submit" name="mfbfw_update" class="button-primary" value="<?php esc_attr_e( 'Save Changes', 'mfbfw' ); ?>" />
    78         </p>
     81    </div>
     82   
     83    <div class="modula-wrap">
     84        <a target="_blank" href="http://wp-modula.com/?utm_source=fancybox-for-wp&utm_medium=options-page&utm_campaign=Modula%20Lite" class="modula-link">
     85        <img src="<?php echo FBFW_URL; ?>assets/images/modula-300x300.jpg"/>
     86        <h2>Easy Image Gallery for WP</h2>
     87        <p>Modula is creative! Modula is dynamic! Modula doesn’t always look the same. Just have fun with it! Modula uses a new concept to build its internal grid. The result is a dynamic, creative, interesting and attractive gallery.</p>
    7988
    80     </form>
     89        <?php
    8190
    82     <form method="post" action="">
    83         <div style="text-align:center;padding:0 0 1.5em;margin:-15px 0 5px;">
    84             <?php wp_nonce_field( 'mfbfw-options-reset' ); ?>
    85             <input type="submit" name="mfbfw_update" id="reset" onClick="return confirmDefaults();" class="button-secondary" value="<?php esc_attr_e( 'Revert to defaults', 'mfbfw' ); ?>" />
    86             <input type="hidden" name="action" value="reset" />
    87         </div>
    88     </form>
     91        $plugin_slug = 'modula-best-grid-gallery';
     92        $plugin_path = 'modula-best-grid-gallery/Modula.php';
    8993
    90     <div id="mfbfwd" style="border-top:1px dashed #DDDDDD;margin:20px 0 40px;overflow:hidden;padding-top:25px;width:100%;float:left">
     94        $installed = false;
     95        $activated = false;
     96        if ( file_exists( ABSPATH . 'wp-content/plugins/' . $plugin_slug ) ) {
     97            $installed = true;
     98        }
    9199
    92         Plugin developer and supported by <a href="https://colorlib.com">Colorlib</a>
     100        if ( file_exists( ABSPATH . 'wp-content/plugins/' . $plugin_path ) ) {
     101            include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
     102            if ( is_plugin_active( $plugin_path ) ) {
     103                $activated = true;
     104            }
     105        }
    93106
    94     </div>
     107        if ( ! $activated ) {
     108           
     109            if ( ! $installed ) {
     110                $label = esc_html__( 'Install & Activate Modula', 'mfbfw' );
     111                $link = wp_nonce_url(
     112                    add_query_arg(
     113                        array(
     114                            'action' => 'install-plugin',
     115                            'plugin' => $plugin_slug,
     116                        ),
     117                        network_admin_url( 'update.php' )
     118                    ),
     119                    'install-plugin_' . $plugin_slug
     120                );
     121                $action = 'install';
     122            }else{
     123                $label = esc_html__( 'Activate Modula', 'mfbfw' );
     124                $link = add_query_arg(
     125                    array(
     126                        'action'        => 'activate',
     127                        'plugin'        => rawurlencode( $plugin_path ),
     128                        'plugin_status' => 'all',
     129                        'paged'         => '1',
     130                        '_wpnonce'      => wp_create_nonce( 'activate-plugin_' . $plugin_path ),
     131                    ),
     132                    admin_url( 'plugins.php' )
     133                );
     134                $action = 'activate';
     135            }
    95136
    96 </div>
     137            echo '<a href="' . esc_url( $link ) . '" class="mfbfw-modula-link button button-primary button-large" data-action="' . esc_attr( $action ) . '">' . esc_html( $label ) . '</a>';
    97138
    98 <?php
     139        }
    99140
     141        ?>
     142
     143        </a>
     144    </div>
     145   
     146
     147    <?php
    100148}
    101149
  • fancybox-for-wordpress/trunk/fancybox.php

    r1960611 r1965336  
    11<?php
     2
    23/*
    34Plugin Name: FancyBox for WordPress
    45Plugin URI: https://wordpress.org/plugins/fancybox-for-wordpress/
    5 Description: Integrates FancyBox by Janis Skarnelis into WordPress.
    6 Version: 3.0.14
     6Description: Integrates <a href="http://fancyapps.com/fancybox/3/">FancyBox 3</a> into WordPress.
     7Version: 3.1.0
    78Author: Colorlib
    8 Author URI: https://colorlib.com/
     9Author URI: https://colorlib.com/wp/
    910
    1011 * FancyBox is Copyright (c) 2008 - 2010 Janis Skarnelis
     
    1314 * http://www.gnu.org/licenses/gpl.html
    1415
    15 */
    16 
    17 
    18 
    19 /**
    20  * Constants
    21  */
    22 
    23 define( 'FBFW_VERSION', '3.0.14' );
    24 define( 'FBFW_PATH', plugin_dir_path(__FILE__) );
    25 define( 'FBFW_URL', plugin_dir_url(__FILE__) );
    26 
    27 
     16 */
     17
     18/**
     19 * Plugin Init
     20 */
     21// Constants
     22define( 'FBFW_VERSION', '3.1.0' );
     23define( 'FBFW_PATH', plugin_dir_path( __FILE__ ) );
     24define( 'FBFW_URL', plugin_dir_url( __FILE__ ) );
     25define( 'FBFW_PLUGIN_BASE', plugin_basename( __FILE__ ) );
     26define( 'FBFW_PREVIOUS_PLUGIN_VERSION', '3.0.14' );
     27define( 'FBFW_FILE_', __FILE__ );
     28define( 'PLUGIN_NAME', 'fancybox-for-wordpress' );
     29
     30
     31// Get Main Settings
     32$mfbfw         = get_option( 'mfbfw' );
     33$mfbfw_version = get_option( 'mfbfw_active_version' );
     34
     35// If previous version detected
     36if ( is_admin() && isset( $mfbfw_version ) && $mfbfw_version < FBFW_VERSION ) {
     37
     38    // get default settings and add any new ones to the database
     39    $current_settings = get_option( 'mfbfw' );
     40    $default_settings = mfbfw_defaults();
     41    $new_settings     = (array) $current_settings + (array) $default_settings;
     42    update_option( 'mfbfw', $new_settings );
     43
     44    // update version number
     45    update_option( 'mfbfw_active_version', FBFW_VERSION );
     46} else {
     47
     48    // update is not needed, add settings if first time activation
     49    $default_settings = mfbfw_defaults();
     50    add_option( 'mfbfw', $default_settings );
     51    add_option( 'mfbfw_active_version', FBFW_VERSION );
     52}
    2853
    2954/**
    3055 * Store default settings in an array
    3156 */
    32 
    3357function mfbfw_defaults() {
    3458
    35     $defaults_array = array(
    36 
     59    $default_settings = array(
    3760        // Appearance
    38         'border'                => '',
    39         'borderColor'           => '#BBBBBB',
    40         'showCloseButton'       => 'on',
    41         'closeHorPos'           => 'right',
    42         'closeVerPos'           => 'top',
    43         'paddingColor'          => '#FFFFFF',
    44         'padding'               => '10',
    45         'overlayShow'           => 'on',
    46         'overlayColor'          => '#666666',
    47         'overlayOpacity'        => '0.3',
    48         'titleShow'             => 'on',
    49         'titlePosition'         => 'inside',
    50         'titleColor'            => '#333333',
    51         'showNavArrows'         => 'on',
    52 
     61        'border'                     => '',
     62        'borderColor'                => '#BBBBBB',
     63        'paddingColor'               => '#FFFFFF',
     64        'padding'                    => '10',
     65        'overlayShow'                => 'on',
     66        'overlayColor'               => '#666666',
     67        'overlayOpacity'             => '0.3',
     68        'titleShow'                  => 'on',
     69        'titlePosition'              => 'inside',
     70        'titleColor'                 => '#333333',
     71        'showNavArrows'              => 'on',
     72        'titleSize'                  => '14',
     73        'showCloseButton'            => '',
     74        'showToolbar'                => 'on',
    5375        // Animations
    54         'zoomOpacity'           => 'on',
    55         'zoomSpeedIn'           => '500',
    56         'zoomSpeedOut'          => '500',
    57         'zoomSpeedChange'       => '300',
    58         'transitionIn'          => 'fade',
    59         'transitionOut'         => 'fade',
    60         'easing'                => '',
    61         'easingIn'              => 'easeOutBack',
    62         'easingOut'             => 'easeInBack',
    63         'easingChange'          => 'easeInOutQuart',
    64 
     76        'zoomOpacity'                => 'on',
     77        'zoomSpeedIn'                => '500',
     78        'zoomSpeedChange'            => '300',
     79        'transitionIn'               => 'fade',
     80        'transitionEffect'           => 'fade',
    6581        // Behaviour
    66         'imageScale'            => 'on',
    67         'centerOnScroll'        => 'on',
    68         'hideOnContentClick'    => '',
    69         'hideOnOverlayClick'    => 'on',
    70         'enableEscapeButton'    => 'on',
    71         'cyclic'                => '',
    72         'mouseWheel'            => '',
    73 
     82        'hideOnOverlayClick'         => 'function(current, event) {
     83                                    return current.type === "image" ? "close" : false;
     84                                  },',
     85        'hideOnContentClick'         => '',
     86        'enableEscapeButton'         => 'on',
     87        'cyclic'                     => '',
     88        'mouseWheel'                 => '',
     89        'disableWoocommercePages'    => '',
     90        'disableWoocommerceProducts' => '',
    7491        // Gallery Type
    75         'galleryType'           => 'all',
    76         'customExpression'      => 'jQuery(thumbnails).addClass("fancybox").attr("rel","fancybox").getTitle();',
    77 
    78         // Other
    79         'autoDimensions'        => 'on',
    80         'frameWidth'            => '560',
    81         'frameHeight'           => '340',
    82         'loadAtFooter'          => '',
    83         'callbackEnable'        => '',
    84         'callbackOnStart'       => 'function() { alert("Start!"); }',
    85         'callbackOnCancel'      => 'function() { alert("Cancel!"); }',
    86         'callbackOnComplete'    => 'function() { alert("Complete!"); }',
    87         'callbackOnCleanup'     => 'function() { alert("CleanUp!"); }',
    88         'callbackOnClose'       => 'function() { alert("Close!"); }',
    89 
    90         // Troubleshooting
    91         'nojQuery'              => '',
    92 
    93         // Extra Calls
    94         'extraCallsEnable'      => '',
    95         'extraCallsData'        => '',
    96 
    97         // Uninstall
    98         'uninstall'             => ''
    99 
     92        'galleryType'                => 'all',
     93        'customExpression'           => 'jQuery(thumbnails).attr("data-fancybox","gallery").getTitle();',
     94        // Misc
     95        'autoDimensions'             => 'on',
     96        'frameWidth'                 => '560',
     97        'frameHeight'                => '340',
     98        'loadAtFooter'               => '',
     99        'callbackEnable'             => '',
     100        'callbackOnStart'            => 'function() { alert("Start!"); }',
     101        'callbackOnCancel'           => 'function() { alert("Cancel!"); }',
     102        'callbackOnComplete'         => 'function() { alert("Complete!"); }',
     103        'callbackOnCleanup'          => 'function() { alert("CleanUp!"); }',
     104        'callbackOnClose'            => 'function() { alert("Close!"); }',
     105        'copyTitleFunction'          => 'var arr = jQuery("a[data-fancybox]");
     106                                jQuery.each(arr, function() {
     107                                    var title = jQuery(this).children("img").attr("title");
     108                                    var caption = jQuery(this).next("figcaption").html();
     109                                    if(caption.length){jQuery(this).attr("title",title+" " + caption)}else{ jQuery(this).attr("title",title);}console.log(caption);
     110                                }); ',
     111        'nojQuery'                   => '',
     112        'extraCallsEnable'           => '',
     113        'extraCallsData'             => '',
     114        'uninstall'                  => '',
    100115    );
    101116
    102     return $defaults_array;
    103 }
    104 
    105 
    106 
    107 /**
    108  * When plugin is installed, write default settings and update version
    109  */
    110 
    111 function mfbfw_install() {
    112 
    113     $defaults_array = mfbfw_defaults();
    114     add_option( 'mfbfw', $defaults_array );
    115     update_option( 'mfbfw_active_version', FBFW_VERSION );
    116 
    117 }
    118 register_activation_hook( __FILE__, 'mfbfw_install' );
    119 
    120 
     117    return $default_settings;
     118}
    121119
    122120/**
    123121 * If requested, when plugin is deactivated, remove settings
    124122 */
    125 
    126 function mfbfw_uninstall() {
    127     $settings = get_option( 'mfbfw' );
    128     if ( isset($settings['uninstall']) && $settings['uninstall'] ) {
     123function mfbfw_deactivate() {
     124
     125    global $mfbfw;
     126
     127    if ( isset( $mfbfw['uninstall'] ) && $mfbfw['uninstall'] ) {
    129128        delete_option( 'mfbfw' );
    130129        delete_option( 'mfbfw_active_version' );
    131130    }
    132131}
    133 register_deactivation_hook( __FILE__, 'mfbfw_uninstall' );
    134 
    135 
    136 
    137 /**
    138  * Here we load FancyBox JS with jQuery and jQuery.easing if necessary
    139  */
    140 
    141 function mfbfw_register_scripts() {
     132
     133register_deactivation_hook( __FILE__, 'mfbfw_deactivate' );
     134
     135/**
     136 * Load FancyBox JS with jQuery and
     137 */
     138function mfbfw_enqueue_scripts() {
     139
     140    global $mfbfw, $wp_styles;
     141
     142    // Check if script should be loaded in footer
     143    if ( isset( $mfbfw['loadAtFooter'] ) && $mfbfw['loadAtFooter'] ) {
     144        $footer = true;
     145    } else {
     146        $footer = false;
     147    }
     148
     149    // Check if plugin should not call jQuery script (for troubleshooting only)
     150    if ( isset( $mfbfw['nojQuery'] ) && $mfbfw['nojQuery'] ) {
     151        $jquery = false;
     152    } else {
     153        $jquery = array( 'jquery' );
     154    }
     155
     156    // Register Scripts
     157    wp_register_script( 'fancybox', FBFW_URL . 'assets/js/jquery.fancybox.js', $jquery, '1.3.4', $footer ); // Main Fancybox script
     158    // Enqueue Scripts
     159    wp_enqueue_script( 'fancybox' ); // Load fancybox
     160
     161    if ( isset( $mfbfw['easing'] ) && $mfbfw['easing'] ) {
     162        wp_enqueue_script( 'jqueryeasing' ); // Load easing javascript file if required
     163    }
     164
     165    if ( isset( $mfbfw['wheel'] ) && $mfbfw['wheel'] ) {
     166        wp_enqueue_script( 'jquerymousewheel' ); // Load mouse wheel javascript file if required
     167    }
     168
     169    // Register Styles
     170    wp_register_style( 'fancybox', FBFW_URL . 'assets/css/fancybox.css', false, '1.3.4' ); // Main Fancybox style
     171    wp_register_style( 'fancybox-ie', FBFW_URL . 'assets/css/fancybox.ie.css', array( 'fancybox' ), '1.3.4' ); // Main Fancybox style fixes for IE6-8
     172    // Enqueue Styles
     173    wp_enqueue_style( 'fancybox' );
     174    wp_enqueue_style( 'fancybox-ie' );
     175
     176    // Make IE specific styles load only on IE6-8
     177    $wp_styles->add_data( 'fancybox-ie', 'conditional', 'lt IE 9' );
     178}
     179
     180add_action( 'wp_enqueue_scripts', 'mfbfw_enqueue_scripts' );
     181
     182/**
     183 * Print inline styles and load FancyBox with the selected settings
     184 */
     185function mfbfw_init() {
     186
     187    global $mfbfw, $mfbfw_version;
     188
     189    //caption function to display image title
     190    $caption = 'function( instance, item ) {' .
     191               'var testing = jQuery(this).context.title;' .
     192               'var caption = jQuery(this).data(\'caption\') || \'\';' .
     193               'if ( item.type === \'image\' && testing.length ) {' .
     194               'caption = (caption.length ? caption + \'<br />\' : \'\') + \'<p class="caption-title">\'+testing+\'</p>\' ;' .
     195               '}' .
     196               'return caption;' .
     197               '}';
     198
     199    // fix undefined index copyTitleFunction. $mfbfw array misses this index.
     200
     201    $mfbfw['copyTitleFunction'] = 'var arr = jQuery("a[data-fancybox]");
     202                                    jQuery.each(arr, function() {
     203                                        var title = jQuery(this).children("img").attr("title");
     204                                         var caption = jQuery(this).next("figcaption").html();
     205                                        if(caption && title){jQuery(this).attr("title",title+" " + caption)}else if(title){ jQuery(this).attr("title",title);}else if(caption){jQuery(this).attr("title",caption);}
     206                                    }); ';
     207
     208
     209    if ( $mfbfw['titlePosition'] == 'inside' ) {
     210        $afterLoad = 'function( instance, current ) {';
     211        $afterLoad .= 'current.$content.append(\'<div class=\"fancybox-custom-caption\" style=\" position: absolute;left:0;right:0;color:#000;padding-top:10px;bottom:-50px;background:#fff;margin:0 auto;text-align:center; \">\' + current.opts.caption + \'</div>\');';
     212        $afterLoad .= '}';
     213        $hideCaption = 'div.fancybox-caption{display:none !important;}';
     214    } else if ( $mfbfw['titlePosition'] == 'over' ) {
     215        $afterLoad = 'function( instance, current ) {';
     216        $afterLoad .= 'current.$content.append(\'<div class=\"fancybox-custom-caption\" style=\" position: absolute;left:0;right:0;color:#000;padding-top:10px;bottom:0;background:#fff;margin:0 auto;text-align:center; \">\' + current.opts.caption + \'</div>\');';
     217        $afterLoad .= '}';
     218        $hideCaption = 'div.fancybox-caption{display:none !important;}';
     219    } else {
     220        $afterLoad .= '""';
     221        $hideCaption = '';
     222    }
     223
     224
     225    if ( isset( $mfbfw['autoDimensions'] ) && $mfbfw['autoDimensions'] == true ) {
     226        $frameSize = '';
     227    } else {
     228        $frameSize = ' "width": ' . $mfbfw['frameWidth'] . ',
     229            "height": ' . $mfbfw['frameHeight'] . ',';
     230    }
     231
     232
     233    $mfbfw['customExpression'] = str_replace( '"rel"', '"data-fancybox"', $mfbfw['customExpression'] );
     234
     235    //title position settings
     236    if ( isset( $mfbfw['titlePosition'] ) ) {
     237        if ( $mfbfw['titlePosition'] == 'inside' ) {
     238            $captionPosition = 'div.fancybox-caption p.caption-title {background:#fff; width:auto;padding:10px 30px;}';
     239        } elseif ( $mfbfw['titlePosition'] == 'float' ) {
     240            $captionPosition = 'div.fancybox-caption p.caption-title {background:#fff;color:#000;padding:10px 30px;width:auto;}';
     241        } else {
     242            $captionPosition = 'div.fancybox-caption {position:relative;max-width:50%;margin:0 auto;min-width:480px;padding:15px;}div.fancybox-caption p.caption-title{position:relative;left:0;right:0;margin:0 auto;top:0px;color:#fff;}';
     243        }
     244    }
     245
     246    if ( ( isset( $mfbfw['disableWoocommerceProducts'] ) && $mfbfw['disableWoocommerceProducts'] == true && fancy_check_if_woocommerce() == 'product' ) || ( isset( $mfbfw['disableWoocommercePages'] ) && $mfbfw['disableWoocommercePages'] == true && fancy_check_if_woocommerce() == 'shop_page' ) ) {
     247
     248    } else {
     249
     250
     251        echo '
     252<!-- Fancybox for WordPress v' . $mfbfw_version . ' -->
     253<style type="text/css">
     254    '.$hideCaption.'
     255    ' . ( isset( $mfbfw['overlayShow'] ) ? '' : 'div.fancybox-bg{background:transparent !important;}' ) . '
     256    ' . 'img.fancybox-image{border-width:' . $mfbfw['padding'] . 'px;border-color:' . $mfbfw['paddingColor'] . ';border-style:solid;}' . '
     257    ' . ( isset( $mfbfw['overlayColor'] ) && $mfbfw['overlayColor'] ? 'div.fancybox-bg{background-color:' . hexTorgba( $mfbfw['overlayColor'], $mfbfw['overlayOpacity'] ) . ';opacity:1 !important;}' : '' ) . ( isset( $mfbfw['paddingColor'] ) && $mfbfw['paddingColor'] ? 'div.fancybox-content{border-color:' . $mfbfw['paddingColor'] . '}' : '' ) . '
     258    ' . ( isset( $mfbfw['paddingColor'] ) && $mfbfw['paddingColor'] && $mfbfw['titlePosition'] == 'inside' ? 'div#fancybox-title{background-color:' . $mfbfw['paddingColor'] . '}' : '' ) . '
     259    div.fancybox-content{background-color:' . $mfbfw['paddingColor'] . ( isset( $mfbfw['border'] ) && $mfbfw['border'] ? ';border:1px solid ' . $mfbfw['borderColor'] : '' ) . '}
     260    ' . ( isset( $mfbfw['titleColor'] ) && $mfbfw['titleColor'] && $mfbfw['titlePosition'] == 'inside' ? 'div#fancybox-title-inside{color:' . $mfbfw['titleColor'] . '}' : '' ) . '
     261    ' . ( isset( $mfbfw['borderRadius'] ) ? 'div.fancybox-content{border-radius:' . $mfbfw['borderRadius'] . 'px}' : '' ) . '
     262    ' . ( isset( $mfbfw['borderRadiusInner'] ) ? 'img#fancybox-img{border-radius:' . $mfbfw['borderRadiusInner'] . 'px}' : '' ) . '
     263    ' . ( isset( $mfbfw['shadowSize'] ) && $mfbfw['shadowOffset'] && $mfbfw['shadowOpacity'] ? 'div.fancybox-content{box-shadow:0 ' . $mfbfw['shadowOffset'] . 'px ' . $mfbfw['shadowSize'] . 'px rgba(0,0,0,' . $mfbfw['shadowOpacity'] . ')}' : '' ) . '
     264    ' . ( isset( $mfbfw['titleShow'] ) ? 'div.fancybox-caption p.caption-title{display:inline-block}' : 'div.fancybox-caption p.caption-title{display:none}div.fancybox-caption{display:none;}' ) . '
     265    ' . ( isset( $mfbfw['titleSize'] ) ? 'div.fancybox-caption p.caption-title{font-size:' . $mfbfw['titleSize'] . 'px}' : 'div.fancybox-caption p.caption-title{font-size:14px}' ) . '
     266    ' . ( isset( $mfbfw['titleColor'] ) && $mfbfw['titlePosition'] == 'inside' ? 'div.fancybox-caption p.caption-title{color:' . $mfbfw['titleColor'] . '}' : 'div.fancybox-caption p.caption-title{color:#fff}' ) . '
     267    ' . ( isset( $mfbfw['titlePosition'] ) ? 'div.fancybox-caption {color:' . $mfbfw['titleColor'] . '}' : 'div.fancybox-caption p.caption-title{color:#333333}' ) . $captionPosition . '
     268</style>';
     269
     270        echo '
     271<script type="text/javascript">
     272    jQuery(function(){
     273
     274        jQuery.fn.getTitle = function() { // Copy the title of every IMG tag and add it to its parent A so that fancybox can show titles
     275            ' . $mfbfw['copyTitleFunction'] . '
     276        }
     277
     278        // Supported file extensions
     279        var thumbnails = jQuery("a:has(img)").not(".nolightbox, .nofancybox, a:has(img.nolightbox, img.nofancybox)").filter( function() { return /\.(jpe?g|png|gif|bmp|mp4)?.+$/i.test(jQuery(this).attr("href")) });';
     280        if ( $mfbfw['galleryType'] == 'post' ) {
     281
     282            // Gallery type BY POST and on post or page (so only one post or page is visible)
     283            if ( is_singular() ) {
     284                echo '
     285        // Gallery by post
     286        thumbnails.addClass("fancybox").attr("data-fancybox","gallery").getTitle();
     287';
     288
     289                // Gallery type BY POST, but neither on post or page, so make a different rel attribute on each post
     290            } else {
     291                echo '
     292        // Gallery by post
     293        var posts = jQuery(".post");
     294        posts.each(function() {
     295            jQuery(this).find(thumbnails).addClass("fancybox").attr("data-fancybox","gallery"+posts.index(this)).attr("rel","fancybox"+posts.index(this)).getTitle()
     296        });
     297';
     298            }
     299
     300// Gallery type ALL
     301        } elseif ( $mfbfw['galleryType'] == 'all' ) {
     302            echo '
     303        // Gallery All
     304        thumbnails.addClass("fancybox").attr("data-fancybox","gallery").getTitle();
     305';
     306
     307// Gallery type NONE
     308        } elseif ( $mfbfw['galleryType'] == 'none' ) {
     309            echo '
     310        // No Galleries
     311        thumbnails.each(function(){
     312            var rel = jQuery(this).attr("rel");
     313            var imgTitle = jQuery(this).children("img").attr("title");
     314            jQuery(this).addClass("fancybox").attr("data-fancybox",rel);
     315            jQuery(this).attr("title",imgTitle);
     316        })
     317';
     318
     319// Else, gallery type is custom, so just print the custom expression
     320        } else {
     321            echo '
     322        // Custom Expression
     323        ' . $mfbfw['customExpression'] . '
     324';
     325        }
     326
     327// Call fancybox and apply it on any link with a rel atribute that starts with "fancybox", with the options set on the admin panel
     328        echo '
     329        jQuery("a.fancybox").fancybox({
     330            "loop": ' . ( isset( $mfbfw['cyclic'] ) && $mfbfw['cyclic'] ? 'true' : 'false' ) . ',
     331            "smallBtn": ' . ( isset( $mfbfw['showCloseButton'] ) && $mfbfw['showCloseButton'] ? 'true' : 'false' ) . ',
     332            "zoomOpacity": "' . ( isset( $mfbfw['zoomOpacity'] ) && $mfbfw['zoomOpacity'] ? 'auto' : 'false' ) . '",
     333            "animationEffect": "' . $mfbfw['transitionIn'] . '",
     334            "animationDuration": ' . $mfbfw['zoomSpeedIn'] . ',
     335            "transitionEffect": "' . $mfbfw['transitionEffect'] . '",
     336            "transitionDuration" : "' . $mfbfw['zoomSpeedChange'] . '",
     337            "overlayShow": ' . ( isset( $mfbfw['overlayShow'] ) && $mfbfw['overlayShow'] ? 'true' : 'false' ) . ',
     338            "overlayOpacity": "' . $mfbfw['overlayOpacity'] . '",
     339            "titleShow": ' . ( isset( $mfbfw['titleShow'] ) && $mfbfw['titleShow'] ? 'true' : 'false' ) . ',
     340            "titlePosition": "' . $mfbfw['titlePosition'] . '",
     341            "keyboard": ' . ( isset( $mfbfw['enableEscapeButton'] ) && $mfbfw['enableEscapeButton'] ? 'true' : 'false' ) . ',
     342            "showCloseButton": ' . ( isset( $mfbfw['showCloseButton'] ) && $mfbfw['showCloseButton'] ? 'true' : 'false' ) . ',
     343            "arrows": ' . ( isset( $mfbfw['showNavArrows'] ) && $mfbfw['showNavArrows'] ? 'true' : 'false' ) . ',
     344            "clickContent": ' . ( isset( $mfbfw['hideOnContentClick'] ) && $mfbfw['hideOnContentClick'] ? '"close"' : 'false' ) . ',
     345            "clickSlide": ' . ( isset( $mfbfw['hideOnOverlayClick'] ) && $mfbfw['hideOnOverlayClick'] ? 'function(current, event) {
     346    return current.type === "image" ? "close" : false;
     347  }' : 'false' ) . ',
     348            "wheel": ' . ( isset( $mfbfw['mouseWheel'] ) && $mfbfw['mouseWheel'] ? 'true' : 'false' ) . ',
     349            ' . $frameSize . '
     350            "onInit": ' . ( isset( $mfbfw['callbackEnable'], $mfbfw['callbackOnStart'] ) && $mfbfw['callbackEnable'] && $mfbfw['callbackOnStart'] ? $mfbfw['callbackOnStart'] . ',' : 'function() { },' ) . '
     351            "onDeactivate": ' . ( isset( $mfbfw['callbackEnable'], $mfbfw['callbackOnCancel'] ) && $mfbfw['callbackEnable'] && $mfbfw['callbackOnCancel'] ? $mfbfw['callbackOnCancel'] . ',' : 'function() { },' ) . '
     352            "beforeClose": ' . ( isset( $mfbfw['callbackEnable'], $mfbfw['callbackOnCleanup'] ) && $mfbfw['callbackEnable'] && $mfbfw['callbackOnCleanup'] ? $mfbfw['callbackOnCleanup'] . ',' : 'function() { },' ) . '
     353            "afterShow": ' . ( isset( $mfbfw['callbackEnable'], $mfbfw['callbackOnComplete'] ) && $mfbfw['callbackEnable'] && $mfbfw['callbackOnComplete'] ? $mfbfw['callbackOnComplete'] . ',' : 'function() { },' ) . '
     354            "afterClose": ' . ( isset( $mfbfw['callbackEnable'], $mfbfw['callbackOnClose'] ) && $mfbfw['callbackEnable'] && $mfbfw['callbackOnClose'] ? $mfbfw['callbackOnClose'] . ',' : 'function() { },' ) . '
     355            "toolbar":' . ( isset( $mfbfw['showToolbar'] ) && $mfbfw['showToolbar'] ? 'true' : 'false' ) . ',
     356            "preventCaptionOverlap": true,
     357            "caption" : ' . $caption . ',
     358            "afterLoad" : ' . $afterLoad . ',
     359        });
     360';
     361
     362        if ( isset( $mfbfw['extraCallsEnable'] ) && $mfbfw['extraCallsEnable'] ) {
     363            echo '
     364            // Extra Calls
     365            ' . $mfbfw['extraCallsData'] . '
     366            ';
     367        }
     368
     369        echo '
     370    })
     371</script>
     372<!-- END Fancybox for WordPress -->
     373';
     374    }
     375}
     376
     377// Check if inline script should be loaded in footer
     378if ( isset( $mfbfw['loadAtFooter'] ) && $mfbfw['loadAtFooter'] ) {
     379    add_action( 'wp_footer', 'mfbfw_init' );
     380} else {
     381    add_action( 'wp_head', 'mfbfw_init' );
     382}
     383
     384/**
     385 * Load text domain
     386 */
     387function mfbfw_textdomain() {
     388
     389    if ( function_exists( 'load_plugin_textdomain' ) ) {
     390        load_plugin_textdomain( 'mfbfw', FBFW_URL . 'languages', 'fancybox-for-wordpress/languages' );
     391    }
     392}
     393
     394add_action( 'init', 'mfbfw_textdomain' );
     395
     396
     397/**
     398 * Insert Rollback link for plugin in plugins page
     399 */
     400
     401function extra_settings_links( $links ) {
     402
     403    if ( apply_filters( 'fbfw_show_rollback_link', true ) ) {
     404        $links['rollback'] = sprintf( '<a href="%s" class="fbfw-rollback-button">%s</a>', wp_nonce_url( admin_url( 'admin-post.php?action=fbfw_rollback' ), 'fbfw_rollback' ), __( 'Rollback version', 'mfbfw' ) );
     405    }
     406
     407    return $links;
     408}
     409
     410add_action( 'plugin_action_links_' . plugin_basename( __FILE__ ), 'extra_settings_links' );
     411
     412
     413/**
     414 * Register options
     415 */
     416function mfbfw_admin_options() {
    142417
    143418    $settings = get_option( 'mfbfw' );
    144419
    145     // Check if script should be loaded in footer
    146     if ( isset($settings['loadAtFooter']) && $settings['loadAtFooter'] ) {
    147         $footer = true;
    148     } else {
    149         $footer = false;
    150     }
    151 
    152     // Check if plugin should not call jQuery script (for troubleshooting only)
    153     if ( isset($settings['nojQuery']) && $settings['nojQuery'] ) {
    154         $jquery = false;
    155     } else {
    156         $jquery = array('jquery');
    157     }
    158 
    159     // Register scripts
    160     wp_register_script('fancybox', FBFW_URL . 'fancybox/jquery.fancybox.js', $jquery, '1.3.8', $footer ); // Main Fancybox script
    161     wp_register_script('jqueryeasing', FBFW_URL . 'js/jquery.easing.min.js', false, '1.4', $footer ); // Easing animations script
    162     wp_register_script('jquerymousewheel', FBFW_URL . 'js/jquery.mousewheel.pack.js', false, '3.1.13', $footer ); // Mouse wheel support script
    163 
    164 
    165 }
    166 add_action( 'init', 'mfbfw_register_scripts' );
    167 
    168 function mfbfw_scripts() {
    169 
    170     $settings = get_option( 'mfbfw' );
    171 
    172     wp_enqueue_script( 'fancybox' ); // Load fancybox
    173 
    174     if ( isset($settings['easing']) && $settings['easing'] ) {
    175         wp_enqueue_script( 'jqueryeasing' ); // Load easing javascript file if required
    176     }
    177 
    178     if ( isset($settings['mouseWheel']) && $settings['mouseWheel'] ) {
    179         wp_enqueue_script( 'jquerymousewheel' ); // Load mouse wheel javascript file if required
    180     }
    181 
    182 }
    183 add_action( 'wp_enqueue_scripts', 'mfbfw_scripts' ); // Load Scripts
    184 
    185 
    186 
    187 /**
    188  * Link to FancyBox stylesheet and apply some custom styles
    189  */
    190 
    191 function mfbfw_styles() {
    192 
    193     $settings = get_option( 'mfbfw' );
    194     wp_enqueue_style( 'fancybox', FBFW_URL . 'fancybox/fancybox.css' );
    195 
    196     ?>
    197 
    198     <style type="text/css">
    199         #fancybox-close{<?php echo $settings['closeHorPos']; ?>:-15px;<?php echo $settings['closeVerPos']; ?>:-15px}
    200         <?php if ( isset($settings['paddingColor']) && $settings['paddingColor'] ) { echo "div#fancybox-content{border-color:" . $settings['paddingColor'] . "}\n"; } ?>
    201         <?php if ( isset($settings['paddingColor']) && $settings['paddingColor'] && $settings['titlePosition'] == "inside" ) { echo "div#fancybox-title{background-color:" . $settings['paddingColor'] . "}\n"; } ?>
    202         div#fancybox-outer{background-color:<?php echo $settings['paddingColor']; if ( isset($settings['border']) && $settings['border'] ) { echo "; border:1px solid " . $settings['borderColor']; } echo "}\n"; ?>
    203         <?php if ( isset($settings['titleColor']) && $settings['titleColor'] && $settings['titlePosition'] == "inside" ) { echo "div#fancybox-title-inside{color:" . $settings['titleColor'] . "}\n"; } ?>
    204     </style>
    205 
    206     <?php
    207 
    208 }
    209 add_action( 'wp_enqueue_scripts', 'mfbfw_styles' );
    210 
    211 
    212 
    213 /**
    214  * Load FancyBox with the settings set
    215  */
    216 
    217 function mfbfw_init() {
    218 
    219     $settings = get_option( 'mfbfw' );
    220 
    221     echo "\n<!-- Fancybox for WordPress -->"; ?>
    222 
    223 <script type="text/javascript">
    224 jQuery(function(){
    225 
    226 jQuery.fn.getTitle = function() { // Copy the title of every IMG tag and add it to its parent A so that fancybox can show titles
    227     var arr = jQuery("a.fancybox");
    228     jQuery.each(arr, function() {
    229         var title = jQuery(this).children("img").attr("title");
    230         jQuery(this).attr('title',title);
    231     })
    232 }
    233 
    234 // Supported file extensions
    235 var thumbnails = jQuery("a:has(img)").not(".nolightbox").filter( function() { return /\.(jpe?g|png|gif|bmp)$/i.test(jQuery(this).attr('href')) });
    236 
    237 <?php if ( $settings['galleryType'] == 'post' ) {
    238 
    239         // Gallery type BY POST and we are on post or page (so only one post or page is visible)
    240         if ( is_single() | is_page() ) {
    241             echo 'thumbnails.addClass("fancybox").attr("rel","fancybox").getTitle();';
    242         }
    243 
    244         // Gallery type BY POST, but we are neither on post or page, so we make a different rel attribute on each post
    245         else {
    246             echo 'var posts = jQuery(".post");
    247 
    248 posts.each(function() {
    249     jQuery(this).find(thumbnails).addClass("fancybox").attr("rel","fancybox"+posts.index(this)).getTitle()
    250 });';
    251         }
    252 
    253     }
    254 
    255     // Gallery type ALL
    256     elseif ( $settings['galleryType'] == 'all' ) {
    257         echo 'thumbnails.addClass("fancybox").attr("rel","fancybox").getTitle();';
    258     }
    259 
    260     // Gallery type NONE
    261     elseif ( $settings['galleryType'] == 'none' ) {
    262         echo 'thumbnails.addClass("fancybox").getTitle();';
    263     }
    264 
    265     // Else, gallery type is custom, so we just print the custom expression
    266     else {
    267         echo $settings['customExpression'];
    268     }
    269 
    270     // Now we call fancybox and apply it on any link with a rel atribute that starts with "fancybox", with the options set on the admin panel
    271     ?>
    272 
    273 jQuery("a.fancybox").fancybox({
    274     'cyclic': <?php if ( isset($settings['cyclic']) && $settings['cyclic'] ) { echo "true"; } else { echo "false"; } ?>,
    275     'autoScale': <?php if ( isset($settings['imageScale']) && $settings['imageScale'] ) { echo "true"; } else { echo "false"; } ?>,
    276     'padding': <?php echo $settings['padding']; ?>,
    277     'opacity': <?php if ( isset($settings['zoomOpacity']) && $settings['zoomOpacity'] ) { echo "true"; } else { echo "false"; } ?>,
    278     'speedIn': <?php echo $settings['zoomSpeedIn']; ?>,
    279     'speedOut': <?php echo $settings['zoomSpeedOut']; ?>,
    280     'changeSpeed': <?php echo $settings['zoomSpeedChange']; ?>,
    281     'overlayShow': <?php if ( isset($settings['overlayShow']) && $settings['overlayShow'] ) { echo "true"; } else { echo "false"; } ?>,
    282     'overlayOpacity': <?php echo '"' . $settings['overlayOpacity'] . '"'; ?>,
    283     'overlayColor': <?php echo '"' . $settings['overlayColor'] . '"'; ?>,
    284     'titleShow': <?php if ( isset($settings['titleShow']) && $settings['titleShow'] ) { echo "true"; } else { echo "false"; } ?>,
    285     'titlePosition': '<?php echo $settings['titlePosition']; ?>',
    286     'enableEscapeButton': <?php if ( isset($settings['enableEscapeButton']) && $settings['enableEscapeButton'] ) { echo "true"; } else { echo "false"; } ?>,
    287     'showCloseButton': <?php if ( isset($settings['showCloseButton']) && $settings['showCloseButton'] ) { echo "true"; } else { echo "false"; } ?>,
    288     'showNavArrows': <?php if ( isset($settings['showNavArrows']) && $settings['showNavArrows'] ) { echo "true"; } else { echo "false"; } ?>,
    289     'hideOnOverlayClick': <?php if ( isset($settings['hideOnOverlayClick']) && $settings['hideOnOverlayClick'] ) { echo "true"; } else { echo "false"; } ?>,
    290     'hideOnContentClick': <?php if ( isset($settings['hideOnContentClick']) && $settings['hideOnContentClick'] ) { echo "true"; } else { echo "false"; } ?>,
    291     'width': <?php echo $settings['frameWidth']; ?>,
    292     'height': <?php echo $settings['frameHeight']; ?>,
    293     'transitionIn': <?php echo '"' . $settings['transitionIn'] . '"'; ?>,
    294     'transitionOut': <?php echo '"' . $settings['transitionOut'] . '"'; ?>,
    295 <?php if ( isset($settings['callbackEnable'], $settings['callbackOnStart']) && $settings['callbackEnable'] && $settings['callbackOnStart'] ) echo "\t'onStart': ". $settings['callbackOnStart'] .","."\n"; ?>
    296 <?php if ( isset($settings['callbackEnable'], $settings['callbackOnCancel']) && $settings['callbackEnable'] && $settings['callbackOnCancel'] ) echo "\t'onCancel': ". $settings['callbackOnCancel'] .","."\n"; ?>
    297 <?php if ( isset($settings['callbackEnable'], $settings['callbackOnCleanup']) && $settings['callbackEnable'] && $settings['callbackOnCleanup'] ) echo "\t'onCleanup': ". $settings['callbackOnCleanup'] .","."\n"; ?>
    298 <?php if ( isset($settings['callbackEnable'], $settings['callbackOnComplete']) && $settings['callbackEnable'] && $settings['callbackOnComplete'] ) echo "\t'onComplete': ". $settings['callbackOnComplete'] .","."\n"; ?>
    299 <?php if ( isset($settings['callbackEnable'], $settings['callbackOnClose']) && $settings['callbackEnable'] && $settings['callbackOnClose'] ) echo "\t'onClosed': ". $settings['callbackOnClose'] .","."\n"; ?>
    300     'centerOnScroll': <?php if ( isset($settings['centerOnScroll']) && $settings['centerOnScroll'] ) { echo "true"; } else { echo "false"; } ?><?php if ( isset($settings['easing']) && $settings['easing'] ) { ?>,
    301     'easingIn': <?php echo '"' . $settings['easingIn'] . '"'; ?>,
    302     'easingOut': <?php echo '"' . $settings['easingOut'] . '"'; ?>,
    303     'easingChange': <?php echo '"' . $settings['easingChange'] . '"';
    304 } ?>
    305 
    306 });
    307 
    308 <?php if ( isset($settings['extraCallsEnable']) && $settings['extraCallsEnable'] ) { echo $settings['extraCallsData'];  echo "\n"; } ?>
    309 
    310 })
    311 </script>
    312 <?php echo "<!-- END Fancybox for WordPress -->\n";
    313 }
    314 add_action( 'wp_head', 'mfbfw_init' );
    315 
    316 
    317 
    318 /**
    319  * Load text domain
    320  */
    321 
    322 function mfbfw_textdomain() {
    323 
    324     if ( function_exists('load_plugin_textdomain') ) {
    325         load_plugin_textdomain( 'mfbfw', FBFW_URL . 'languages', 'fancybox-for-wordpress/languages' );
    326     }
    327 
    328 }
    329 add_action( 'init', 'mfbfw_textdomain' );
    330 
    331 
    332 
    333 /**
    334  * Register Options
    335  */
    336 
    337 function mfbfw_admin_options() {
    338 
    339     $settings = get_option( 'mfbfw' );
    340 
    341     if ( isset($_GET['page']) && $_GET['page'] == 'fancybox-for-wordpress' ) {
    342 
    343         if ( isset($_REQUEST['action']) && 'reset' == $_REQUEST['action'] && check_admin_referer( 'mfbfw-options-reset' ) ) {
     420    if ( isset( $_GET['page'] ) && $_GET['page'] == 'fancybox-for-wordpress' ) {
     421
     422        if ( isset( $_REQUEST['action'] ) && 'reset' == $_REQUEST['action'] && check_admin_referer( 'mfbfw-options-reset' ) ) {
    344423
    345424            $defaults_array = mfbfw_defaults(); // Store defaults in an array
    346425            update_option( 'mfbfw', $defaults_array ); // Write defaults to database
    347             wp_safe_redirect( add_query_arg('reset', 'true') );
     426            wp_safe_redirect( add_query_arg( 'reset', 'true' ) );
    348427            die;
    349 
    350428        }
    351429    }
    352430
    353431    register_setting( 'mfbfw-options', 'mfbfw' );
    354 
    355 }
     432}
     433
    356434add_action( 'admin_init', 'mfbfw_admin_options' );
    357435
    358 
    359 
    360436/**
    361437 * Admin options page
    362438 */
    363 
    364439function mfbfw_admin_menu() {
    365440
     
    370445    add_action( 'admin_print_styles-' . $mfbfwadmin, 'mfbfw_admin_styles' );
    371446    add_action( 'admin_print_scripts-' . $mfbfwadmin, 'mfbfw_admin_scripts' );
    372 
    373 }
    374 add_action('admin_menu', 'mfbfw_admin_menu');
    375 
    376 
     447}
     448
     449add_action( 'admin_menu', 'mfbfw_admin_menu' );
    377450
    378451/**
    379452 * Load Admin CSS & JS (called in mfbfw_admin_menu())
    380453 */
    381 
    382454function mfbfw_admin_styles() {
    383     wp_enqueue_style( 'fancybox-admin', FBFW_URL . 'css/fancybox-admin.css' ); // Load custom CSS for Admin Page
    384     wp_enqueue_style( 'jquery-ui', FBFW_URL . 'css/jquery-ui.css' ); // Load jQuery UI Tabs CSS for Admin Page
     455    wp_enqueue_style( 'fancybox-admin', FBFW_URL . 'assets/css/fancybox-admin.css', false, FBFW_VERSION ); // Load custom CSS for Admin Page
     456    wp_enqueue_style( 'wp-color-picker' );
     457    wp_enqueue_style( 'jquery-ui', '//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css' ); // Load jQuery UI Tabs CSS for Admin Page
    385458}
    386459
    387460function mfbfw_admin_scripts() {
    388     wp_enqueue_script( 'jquery-ui-tabs', array('jquery-ui-core') ); // Load jQuery UI Tabs JS for Admin Page
    389     wp_enqueue_script( 'fancybox-admin', FBFW_URL . 'js/admin.js', array('jquery') ); // Load specific JS for Admin Page
    390 }
    391 
    392 
     461    print_r( $hook );
     462    wp_enqueue_script( 'jquery-ui-tabs', array( 'jquery-ui-core' ), true ); // Load jQuery UI Tabs JS for Admin Page
     463    wp_enqueue_script( 'fancybox-admin', FBFW_URL . 'assets/js/admin.js', array( 'jquery', 'wp-color-picker', 'updates' ), FBFW_VERSION, true ); // Load specific JS for Admin Page
     464
     465    /* Load codemirror editor */
     466    $settings = wp_enqueue_code_editor( array( 'type' => 'text/javascript' ) );
     467}
    393468
    394469/**
     
    396471 */
    397472
    398 function mfbfw_plugin_action_links($links, $file) {
     473
     474require FBFW_PATH . '/lib/class-fbfw-plugin-rollback.php';
     475require FBFW_PATH . '/lib/class-fbfw-rollback.php';
     476
     477function mfbfw_plugin_action_links(
     478    $links,
     479    $file
     480) {
    399481
    400482    static $this_plugin;
    401     if ( ! $this_plugin ) $this_plugin = plugin_basename( __FILE__ );
    402 
    403     if ( $file == $this_plugin ){
     483    if ( ! $this_plugin ) {
     484        $this_plugin = plugin_basename( __FILE__ );
     485    }
     486
     487    if ( $file == $this_plugin ) {
    404488        $settings_link = '<a href="options-general.php?page=fancybox-for-wordpress">' . __( 'Settings', 'mfbfw' ) . '</a>';
    405489        array_unshift( $links, $settings_link );
     
    407491
    408492    return $links;
    409 
    410 }
     493}
     494
    411495add_filter( 'plugin_action_links', 'mfbfw_plugin_action_links', 10, 2 );
     496
     497/*
     498 * Transform from Hex to rgb or rgba
     499 */
     500
     501function hexTorgba( $hexColor, $opacity ) {
     502    list( $r, $g, $b ) = sscanf( $hexColor, "#%02x%02x%02x" );
     503    if ( $opacity ) {
     504        $rgb = 'rgba(' . $r . ',' . $g . ',' . $b . ',' . $opacity . ')';
     505    } else {
     506        $rgb = 'rgba(' . $r . ',' . $g . ',' . $b . ')';
     507    }
     508
     509    return $rgb;
     510}
     511
     512/*
     513 *
     514 * Check if WooCommerce Product post
     515 *
     516 */
     517function fancy_check_if_woocommerce() {
     518    if ( class_exists( 'WooCommerce' ) ) {
     519        if ( is_shop() ) {
     520            return 'shop_page';
     521        } else if ( get_post_type( get_the_id() ) == 'product' ) {
     522            return 'product';
     523        } else {
     524            return 'true';
     525        }
     526    } else {
     527        return 'true';
     528    }
     529}
     530
     531// Ajax request for activate link
     532add_action( 'wp_ajax_mfbfw_activate_link', 'mfbfw_get_activate_link' );
     533function mfbfw_get_activate_link() {
     534
     535    $plugin_path = 'modula-best-grid-gallery/Modula.php';
     536    $link = add_query_arg(
     537        array(
     538            'action'        => 'activate',
     539            'plugin'        => rawurlencode( $plugin_path ),
     540            'plugin_status' => 'all',
     541            'paged'         => '1',
     542            '_wpnonce'      => wp_create_nonce( 'activate-plugin_' . $plugin_path ),
     543        ),
     544        admin_url( 'plugins.php' )
     545    );
     546
     547    wp_die(
     548        wp_json_encode(
     549            array(
     550                'status' => 'succes',
     551                'link'   => $link,
     552            )
     553        )
     554    );
     555
     556}
  • fancybox-for-wordpress/trunk/languages/mfbfw-es_ES.po

    r1084242 r1965336  
    373373
    374374#: lib/admin-tab-behaviour.php:81
    375 msgid "Cyclic Galleries"
     375msgid "Loop Galleries"
    376376msgstr "Galerías Cíclicas"
    377377
    378378#: lib/admin-tab-behaviour.php:87
    379379msgid ""
    380 "This will make galleries cyclic, allowing you to keep pressing next/back "
     380"This will make galleries loop, allowing you to keep pressing next/back "
    381381"(default: off)"
    382382msgstr ""
  • fancybox-for-wordpress/trunk/languages/mfbfw.pot

    r1084242 r1965336  
    1414"Language-Team: LANGUAGE <[email protected]>\n"
    1515
    16 #: admin.php:11
     16#: admin.php:12
     17#, php-format
    1718msgid "Fancybox for WordPress (version %s)"
    1819msgstr ""
    1920
    20 #: admin.php:22
    21 msgid "Info"
    22 msgstr ""
    23 
    24 #: admin.php:23
     21#: admin.php:26
    2522msgid "Appearance"
    2623msgstr ""
    2724
    28 #: admin.php:24
     25#: admin.php:27
    2926msgid "Animations"
    3027msgstr ""
    3128
    32 #: admin.php:25
     29#: admin.php:28
    3330msgid "Behaviour"
    3431msgstr ""
    3532
    36 #: admin.php:26
     33#: admin.php:29
    3734msgid "Galleries"
    3835msgstr ""
    3936
    40 #: admin.php:27
    41 msgid "Miscellaneous"
    42 msgstr ""
    43 
    44 #: admin.php:28
    45 msgid "Extra Calls"
    46 msgstr ""
    47 
    48 #: admin.php:29
    49 msgid "Troubleshooting"
    50 msgstr ""
    51 
    52 #: admin.php:30 lib/admin-tab-support.php:1
     37#: admin.php:30
     38msgid "Misc."
     39msgstr ""
     40
     41#: admin.php:31
    5342msgid "Support"
    5443msgstr ""
    5544
    56 #: admin.php:31 lib/admin-tab-uninstall.php:1
    57 msgid "Uninstall"
    58 msgstr ""
    59 
    60 #: admin.php:77
     45#: admin.php:62
    6146msgid "Save Changes"
    6247msgstr ""
    6348
    64 #: admin.php:85
     49#: admin.php:71
    6550msgid "Revert to defaults"
    6651msgstr ""
    6752
    68 #: admin.php:93
    69 msgid "If you use FancyBox and like it, buy the author a beer!"
    70 msgstr ""
    71 
    72 #: admin.php:110
    73 msgid "The author of this WordPress Plugin also likes beer :P"
    74 msgstr ""
    75 
    76 #: admin.php:120
    77 msgid "Follow me on Twitter for more WordPress Plugins and Themes"
    78 msgstr ""
    79 
    80 #: fancybox.php:404
     53#: fancybox.php:382
     54msgid "Rollback version"
     55msgstr ""
     56
     57#: fancybox.php:469
    8158msgid "Settings"
    8259msgstr ""
     
    9269msgstr ""
    9370
    94 #: lib/admin-tab-animations.php:9
     71#: lib/admin-tab-animations.php:8
    9572msgid "Zoom Options"
    9673msgstr ""
    9774
    98 #: lib/admin-tab-animations.php:15
     75#: lib/admin-tab-animations.php:16
    9976msgid "Change content transparency during zoom animations (default: on)"
    10077msgstr ""
    10178
    102 #: lib/admin-tab-animations.php:27
    103 msgid "Speed in miliseconds of the zooming-in animation (default: 500)"
    104 msgstr ""
    105 
    106 #: lib/admin-tab-animations.php:39
    107 msgid "Speed in miliseconds of the zooming-out animation (default: 500)"
    108 msgstr ""
    109 
    110 #: lib/admin-tab-animations.php:51
     79#: lib/admin-tab-animations.php:22
     80msgid "Animation Type"
     81msgstr ""
     82
     83#: lib/admin-tab-animations.php:33
     84msgid "Animation type when opening FancyBox. (default: fade)"
     85msgstr ""
     86
     87#: lib/admin-tab-animations.php:45
     88msgid "Speed in miliseconds of the FancyBox opening  animation (default: 500)"
     89msgstr ""
     90
     91#: lib/admin-tab-animations.php:52
     92msgid "Animation between slides Options"
     93msgstr ""
     94
     95#: lib/admin-tab-animations.php:63
     96msgid "Select Animation type for the slides(default: fade)"
     97msgstr ""
     98
     99#: lib/admin-tab-animations.php:74
    111100msgid ""
    112101"Speed in miliseconds of the animation when navigating thorugh gallery items "
     
    114103msgstr ""
    115104
    116 #: lib/admin-tab-animations.php:59
    117 msgid "Transition Type"
    118 msgstr ""
    119 
    120 #: lib/admin-tab-animations.php:73
    121 msgid "Transition type when opening FancyBox. (default: fade)"
    122 msgstr ""
    123 
    124 #: lib/admin-tab-animations.php:86
    125 msgid "Transition type when closing FancyBox. (default: fade)"
    126 msgstr ""
    127 
    128 #: lib/admin-tab-animations.php:94
    129 msgid "Easing"
    130 msgstr ""
    131 
    132 #: lib/admin-tab-animations.php:100
    133 msgid "Activate easing (default: off)"
    134 msgstr ""
    135 
    136 #: lib/admin-tab-animations.php:103
    137 msgid "(Will load one additional javascript file, 8KB)"
    138 msgstr ""
    139 
    140 #: lib/admin-tab-animations.php:117
    141 msgid "Easing method when opening FancyBox. (default: easeOutBack)"
    142 msgstr ""
    143 
    144 #: lib/admin-tab-animations.php:120
    145 msgid "(Requires opening transition type to be set to elastic)"
    146 msgstr ""
    147 
    148 #: lib/admin-tab-animations.php:132
    149 msgid "Easing method when closing FancyBox. (default: easeInBack)"
    150 msgstr ""
    151 
    152 #: lib/admin-tab-animations.php:135
    153 msgid "(Requires closing transition type to be set to elastic)"
    154 msgstr ""
    155 
    156 #: lib/admin-tab-animations.php:147
    157 msgid ""
    158 "Easing method when navigating through gallery items. (default: "
    159 "easeInOutQuart)"
    160 msgstr ""
    161 
    162 #: lib/admin-tab-animations.php:150
    163 msgid ""
    164 "(There are 30 different easing methods, the first ones are the most boring. "
    165 "You can test them <a href=\"http://commadot.com/jquery/easing.php\" target="
    166 "\"_blank\">here</a> or <a href=\"http://hosted.zeh.com.br/mctween/"
    167 "animationtypes.html\" target=\"_blank\">here</a>)"
    168 msgstr ""
    169 
    170105#: lib/admin-tab-appearance.php:1
    171106msgid "Appearance Settings <span style=\"color:green\">(basic)</span>"
     
    178113msgstr ""
    179114
    180 #: lib/admin-tab-appearance.php:9
     115#: lib/admin-tab-appearance.php:8
     116msgid "Close Button"
     117msgstr ""
     118
     119#: lib/admin-tab-appearance.php:17
     120msgid "Show Close button (default: on)"
     121msgstr ""
     122
     123#: lib/admin-tab-appearance.php:24
     124msgid "Toolbar"
     125msgstr ""
     126
     127#: lib/admin-tab-appearance.php:33
     128msgid "Show Toolbar  (default: on)"
     129msgstr ""
     130
     131#: lib/admin-tab-appearance.php:40
    181132msgid "Border"
    182133msgstr ""
    183134
    184 #: lib/admin-tab-appearance.php:15
     135#: lib/admin-tab-appearance.php:48
    185136msgid "Show Border (default: off)"
    186137msgstr ""
    187138
    188 #: lib/admin-tab-appearance.php:22
     139#: lib/admin-tab-appearance.php:55
    189140msgid "HTML color of the border (default: #BBBBBB)"
    190141msgstr ""
    191142
    192 #: lib/admin-tab-appearance.php:32
    193 msgid "Close Button"
    194 msgstr ""
    195 
    196 #: lib/admin-tab-appearance.php:38
    197 msgid "Show Close button (default: on)"
    198 msgstr ""
    199 
    200 #: lib/admin-tab-appearance.php:43
    201 msgid "Close button position:"
    202 msgstr ""
    203 
    204 #: lib/admin-tab-appearance.php:46
    205 msgid "Left"
    206 msgstr ""
    207 
    208 #: lib/admin-tab-appearance.php:51
    209 msgid "Right (default)"
    210 msgstr ""
    211 
    212 #: lib/admin-tab-appearance.php:56
    213 msgid "Bottom"
    214 msgstr ""
    215 
    216 #: lib/admin-tab-appearance.php:61
    217 msgid "Top (default)"
    218 msgstr ""
    219 
    220 #: lib/admin-tab-appearance.php:71
     143#: lib/admin-tab-appearance.php:62
    221144msgid "Padding"
    222145msgstr ""
    223146
    224 #: lib/admin-tab-appearance.php:77
     147#: lib/admin-tab-appearance.php:69
    225148msgid "HTML color of the padding (default: #FFFFFF)"
    226149msgstr ""
    227150
    228 #: lib/admin-tab-appearance.php:80
     151#: lib/admin-tab-appearance.php:70
    229152msgid ""
    230153"(This should be left on #FFFFFF (white) if you want to display anything "
     
    232155msgstr ""
    233156
    234 #: lib/admin-tab-appearance.php:84
     157#: lib/admin-tab-appearance.php:78
    235158msgid "Padding size in pixels (default: 10)"
    236159msgstr ""
    237160
    238 #: lib/admin-tab-appearance.php:92
     161#: lib/admin-tab-appearance.php:85
    239162msgid "Overlay Options"
    240163msgstr ""
    241164
    242 #: lib/admin-tab-appearance.php:98
     165#: lib/admin-tab-appearance.php:93
    243166msgid "Add overlay (default: on)"
    244167msgstr ""
    245168
    246 #: lib/admin-tab-appearance.php:105
     169#: lib/admin-tab-appearance.php:100
    247170msgid "HTML color of the overlay (default: #666666)"
    248171msgstr ""
    249172
    250 #: lib/admin-tab-appearance.php:118
     173#: lib/admin-tab-appearance.php:108
    251174msgid "Opacity of overlay. 0 is transparent, 1 is opaque (default: 0.3)"
    252175msgstr ""
    253176
    254 #: lib/admin-tab-appearance.php:128
     177#: lib/admin-tab-appearance.php:116
    255178msgid "Title"
    256179msgstr ""
    257180
    258 #: lib/admin-tab-appearance.php:134
     181#: lib/admin-tab-appearance.php:124
    259182msgid "Show the title (default: on)"
    260183msgstr ""
    261184
    262 #: lib/admin-tab-appearance.php:141
     185#: lib/admin-tab-appearance.php:130
     186msgid "Title size (default: 14px)"
     187msgstr ""
     188
     189#: lib/admin-tab-appearance.php:139
    263190msgid "Inside (default)"
    264191msgstr ""
     
    268195msgstr ""
    269196
    270 #: lib/admin-tab-appearance.php:151
     197#: lib/admin-tab-appearance.php:153
    271198msgid "Over"
    272199msgstr ""
    273200
    274 #: lib/admin-tab-appearance.php:158
     201#: lib/admin-tab-appearance.php:162
    275202msgid "Title text color (default: #333333)"
    276203msgstr ""
    277204
    278 #: lib/admin-tab-appearance.php:161
     205#: lib/admin-tab-appearance.php:163
    279206msgid "(Should contrast with the padding color set above)"
    280207msgstr ""
    281208
    282 #: lib/admin-tab-appearance.php:172
     209#: lib/admin-tab-appearance.php:171
    283210msgid "Navigation Arrows"
    284211msgstr ""
    285212
    286 #: lib/admin-tab-appearance.php:178
     213#: lib/admin-tab-appearance.php:179
    287214msgid "Show the navigation arrows (default: on)"
    288215msgstr ""
     
    292219msgstr ""
    293220
    294 #: lib/admin-tab-behaviour.php:3
     221#: lib/admin-tab-behaviour.php:2
    295222msgid ""
    296223"The following settings should be left alone unless you know what you are "
     
    298225msgstr ""
    299226
    300 #: lib/admin-tab-behaviour.php:9
    301 msgid "Auto Resize to Fit"
    302 msgstr ""
    303 
    304 #: lib/admin-tab-behaviour.php:15
    305 msgid "Scale images to fit in viewport (default: on)"
    306 msgstr ""
    307 
    308 #: lib/admin-tab-behaviour.php:23
    309 msgid "Center on Scroll"
    310 msgstr ""
    311 
    312 #: lib/admin-tab-behaviour.php:29
    313 msgid ""
    314 "Keep image in the center of the browser window when scrolling (default: on)"
    315 msgstr ""
    316 
    317 #: lib/admin-tab-behaviour.php:37
     227#: lib/admin-tab-behaviour.php:6
    318228msgid "Close on Content Click"
    319229msgstr ""
    320230
    321 #: lib/admin-tab-behaviour.php:43
     231#: lib/admin-tab-behaviour.php:14
    322232msgid "Close FancyBox by clicking on the image (default: off)"
    323233msgstr ""
    324234
    325 #: lib/admin-tab-behaviour.php:46
     235#: lib/admin-tab-behaviour.php:17
    326236msgid ""
    327237"(You may want to leave this off if you display iframed or inline content "
     
    330240msgstr ""
    331241
    332 #: lib/admin-tab-behaviour.php:53
     242#: lib/admin-tab-behaviour.php:24
    333243msgid "Close on Overlay Click"
    334244msgstr ""
    335245
    336 #: lib/admin-tab-behaviour.php:59
     246#: lib/admin-tab-behaviour.php:32
    337247msgid "Close FancyBox by clicking on the overlay sorrounding it (default: on)"
    338248msgstr ""
    339249
    340 #: lib/admin-tab-behaviour.php:67
    341 msgid "Close with &quot;Esc&quot;"
    342 msgstr ""
    343 
    344 #: lib/admin-tab-behaviour.php:73
    345 msgid "Close FancyBox when &quot;Escape&quot; key is pressed (default: on)"
    346 msgstr ""
    347 
    348 #: lib/admin-tab-behaviour.php:81
    349 msgid "Cyclic Galleries"
    350 msgstr ""
    351 
    352 #: lib/admin-tab-behaviour.php:87
    353 msgid ""
    354 "This will make galleries cyclic, allowing you to keep pressing next/back "
     250#: lib/admin-tab-behaviour.php:39
     251msgid "Keyboard navigation;"
     252msgstr ""
     253
     254#: lib/admin-tab-behaviour.php:47
     255msgid "Enable Keyboard Navigation (default: on)"
     256msgstr ""
     257
     258#: lib/admin-tab-behaviour.php:54
     259msgid "Loop Galleries"
     260msgstr ""
     261
     262#: lib/admin-tab-behaviour.php:62
     263msgid ""
     264"This will make galleries loop, allowing you to keep pressing next/back "
    355265"(default: off)"
    356266msgstr ""
    357267
    358 #: lib/admin-tab-behaviour.php:95
     268#: lib/admin-tab-behaviour.php:69
    359269msgid "Mouse Wheel Navigation"
    360270msgstr ""
    361271
     272#: lib/admin-tab-behaviour.php:77
     273msgid "Lets visitors navigate galleries with the mouse wheel  (default: off)"
     274msgstr ""
     275
     276#: lib/admin-tab-behaviour.php:84
     277msgid "Woocommerce:"
     278msgstr ""
     279
     280#: lib/admin-tab-behaviour.php:92
     281msgid "Disable on Woocommerce Shop page.( Default : off )"
     282msgstr ""
     283
    362284#: lib/admin-tab-behaviour.php:101
    363 msgid "Lets visitors navigate galleries with the mouse wheel  (default: off)"
    364 msgstr ""
    365 
    366 #: lib/admin-tab-behaviour.php:104
    367 msgid "(Will load one additional javascript file, 3KB)"
    368 msgstr ""
    369 
    370 #: lib/admin-tab-calls.php:1
    371 msgid "Extra FancyBox Calls <span style=\"color:red\">(advanced)</span>"
    372 msgstr ""
    373 
    374 #: lib/admin-tab-calls.php:3
    375 msgid ""
    376 "Here you can add as many additional calls to fancybox as you want, with "
    377 "different settings. For example, if you want to use fancybox with iframes or "
    378 "ajax on any specific link, you can configure those calls here without "
    379 "affecting the settings for images."
    380 msgstr ""
    381 
    382 #: lib/admin-tab-calls.php:5
    383 msgid ""
    384 "For information on the options available you can use here see <a href="
    385 "\"http://fancybox.net/api\">FancyBox's API & Options page</a>."
    386 msgstr ""
    387 
    388 #: lib/admin-tab-calls.php:11
    389 msgid "Additional FancyBox Calls"
    390 msgstr ""
    391 
    392 #: lib/admin-tab-calls.php:17
    393 msgid "Additional FancyBox Calls (default: off)"
    394 msgstr ""
    395 
    396 #: lib/admin-tab-calls.php:26 lib/admin-tab-other.php:89
    397 msgid "Example:"
     285msgid "Disable on Woocommerce products.( Default : off )"
    398286msgstr ""
    399287
     
    402290msgstr ""
    403291
    404 #: lib/admin-tab-galleries.php:3
     292#: lib/admin-tab-galleries.php:2
    405293msgid ""
    406294"Here you can choose if you want the plugin to group all images into a "
     
    409297msgstr ""
    410298
    411 #: lib/admin-tab-galleries.php:9
     299#: lib/admin-tab-galleries.php:11
    412300msgid "Gallery Type"
    413301msgstr ""
    414302
    415 #: lib/admin-tab-galleries.php:15
     303#: lib/admin-tab-galleries.php:16
    416304msgid "Make a gallery for all images on the page (default)"
    417305msgstr ""
    418306
    419 #: lib/admin-tab-galleries.php:20
     307#: lib/admin-tab-galleries.php:21
    420308msgid ""
    421309"Do not group images in gallery automatically (use this if you want to make "
     
    423311msgstr ""
    424312
    425 #: lib/admin-tab-galleries.php:25
     313#: lib/admin-tab-galleries.php:26
    426314msgid ""
    427315"Make a gallery for each post (will only work if your theme uses <code>class="
     
    429317msgstr ""
    430318
    431 #: lib/admin-tab-galleries.php:30
     319#: lib/admin-tab-galleries.php:31
    432320msgid "Use a custom expression to apply FancyBox"
     321msgstr ""
     322
     323#: lib/admin-tab-galleries.php:35 lib/admin-tab-other.php:70
     324#: lib/admin-tab-other.php:78 lib/admin-tab-other.php:86
     325#: lib/admin-tab-other.php:94 lib/admin-tab-other.php:102
     326#: lib/admin-tab-other.php:137
     327msgid "Click to start editing"
    433328msgstr ""
    434329
     
    440335msgid ""
    441336"&middot; The custom expression has to apply <code>class=\"fancybox\"</code> "
    442 "to the links where you want to use FancyBox. Do not call the <code>fancybox()"
    443 "</code> function here, the plugin does this for you."
     337"to the links where you want to use FancyBox. Do not call the "
     338"<code>fancybox()</code> function here, the plugin does this for you."
    444339msgstr ""
    445340
     
    480375msgstr ""
    481376
    482 #: lib/admin-tab-info.php:1
    483 msgid "Information"
    484 msgstr ""
    485 
    486 #: lib/admin-tab-info.php:3
    487 msgid ""
    488 "<a target=\"_blank\" href=\"http://fancybox.net\">FancyBox</a> developed by "
    489 "<a target=\"_blank\" href=\"http://fancybox.net\">Janis Skarnelis</a>, "
    490 "ported to WordPress by <a target=\"_blank\" href=\"http://twitter.com/moskis"
    491 "\">Jos&eacute; Pardilla</a>. Licensed under the <a target=\"_blank\" href="
    492 "\"http://en.wikipedia.org/wiki/MIT_License\">MIT License</a>."
    493 msgstr ""
    494 
    495 #: lib/admin-tab-info.php:5
    496 msgid ""
    497 "As you can see, this plugin has many options you can edit, but have no fear, "
    498 "you can leave everything as it is if you don't want to get your hands dirty, "
    499 "since the default options should be a good start... :)"
    500 msgstr ""
    501 
    502 #: lib/admin-tab-info.php:7
    503 msgid ""
    504 "If you are an advanced user you can <a target=\"_blank\" href=\"https://"
    505 "github.com/moskis/fancybox-for-wordpress\">follow the plugin in Github</a>, "
    506 "fork it or help submitting fixes!"
    507 msgstr ""
    508 
    509 #: lib/admin-tab-info.php:9
    510 msgid ""
    511 "<strong>Note:</strong> Having a cache plugin may prevent changes from taking "
    512 "effect immidiately, if this happens clear cache after saving changes here or "
    513 "deactivate cache until you finish editing these options."
    514 msgstr ""
    515 
    516377#: lib/admin-tab-other.php:1
    517378msgid "Other Settings <span style=\"color:red\">(advanced)</span>"
    518379msgstr ""
    519380
    520 #: lib/admin-tab-other.php:3
     381#: lib/admin-tab-other.php:2
    521382msgid "These are additional settings for advanced users."
    522383msgstr ""
    523384
    524 #: lib/admin-tab-other.php:9
     385#: lib/admin-tab-other.php:6
    525386msgid "Dimensions"
    526387msgstr ""
    527388
    528 #: lib/admin-tab-other.php:15
     389#: lib/admin-tab-other.php:14
    529390msgid "Auto detect dimensions (default: on)"
    530391msgstr ""
    531392
    532 #: lib/admin-tab-other.php:18
     393#: lib/admin-tab-other.php:17
    533394msgid ""
    534395"Only works with <strong>Ajax</strong> and <strong>Inline</strong> content! "
     
    539400msgstr ""
    540401
    541 #: lib/admin-tab-other.php:22
     402#: lib/admin-tab-other.php:23
    542403msgid ""
    543404"Width for iframe and swf content. Also set for inline content if "
     
    545406msgstr ""
    546407
    547 #: lib/admin-tab-other.php:27
     408#: lib/admin-tab-other.php:28
    548409msgid ""
    549410"Height for iframe and swf content. Also set for inline content if "
     
    555416msgstr ""
    556417
    557 #: lib/admin-tab-other.php:41
     418#: lib/admin-tab-other.php:43
    558419msgid ""
    559420"Loads JavaScript at the end of the blog's HTML (experimental) (default: off)"
    560421msgstr ""
    561422
    562 #: lib/admin-tab-other.php:44
     423#: lib/admin-tab-other.php:46
    563424msgid ""
    564425"This option won't be recognized if you use <strong>Parallel Load</strong> "
     
    566427msgstr ""
    567428
    568 #: lib/admin-tab-other.php:51
     429#: lib/admin-tab-other.php:53
    569430msgid "Callbacks"
    570431msgstr ""
    571432
    572 #: lib/admin-tab-other.php:57
     433#: lib/admin-tab-other.php:61
    573434msgid "Enable callbacks (default: off)"
    574435msgstr ""
    575436
    576 #: lib/admin-tab-other.php:60
     437#: lib/admin-tab-other.php:63
    577438msgid "Enabling this will show additional settings."
    578439msgstr ""
    579440
    580 #: lib/admin-tab-other.php:65
     441#: lib/admin-tab-other.php:67
    581442msgid ""
    582443"Callback on <strong>Start</strong> event: Will be called right before "
     
    584445msgstr ""
    585446
    586 #: lib/admin-tab-other.php:70
     447#: lib/admin-tab-other.php:75
    587448msgid ""
    588449"Callback on <strong>Cancel</strong> event: Will be called after loading is "
     
    590451msgstr ""
    591452
    592 #: lib/admin-tab-other.php:75
     453#: lib/admin-tab-other.php:83
    593454msgid ""
    594455"Callback on <strong>Complete</strong> event: Will be called once the content "
     
    596457msgstr ""
    597458
    598 #: lib/admin-tab-other.php:80
     459#: lib/admin-tab-other.php:91
    599460msgid ""
    600461"Callback on <strong>CleanUp</strong> event: Will be called just before "
     
    602463msgstr ""
    603464
    604 #: lib/admin-tab-other.php:85
     465#: lib/admin-tab-other.php:99
    605466msgid ""
    606467"Callback on <strong>Closed</strong> event: Will be called once FancyBox is "
     
    608469msgstr ""
    609470
    610 #: lib/admin-tab-other.php:91
     471#: lib/admin-tab-other.php:107 lib/admin-tab-other.php:142
     472msgid "Example:"
     473msgstr ""
     474
     475#: lib/admin-tab-other.php:110
    611476msgid "Leave empty any speciic callbacks you don't need to use."
    612477msgstr ""
    613478
    614 #: lib/admin-tab-support.php:3
    615 msgid "Help with Fancybox"
    616 msgstr ""
    617 
    618 #: lib/admin-tab-support.php:5
    619 msgid ""
    620 "If you have problems or questions about FancyBox itself (and not this "
    621 "WordPress plugin), please start with these links: <a target=\"_blank\" href="
    622 "\"http://fancybox.net/howto\">How-To</a> & <a target=\"_blank\" href="
    623 "\"http://fancybox.net/faq\">FAQ</a>.<br />If that does not help, go to <a "
    624 "href=\"http://groups.google.com/group/fancybox\">the FancyBox Google Group</"
    625 "a>, use the <strong>Search</strong> option, and if necesary, post your "
    626 "question."
    627 msgstr ""
    628 
    629 #: lib/admin-tab-support.php:8
    630 msgid "Help with Fancybox for WordPress plugin"
    631 msgstr ""
    632 
    633 #: lib/admin-tab-support.php:10
    634 msgid ""
    635 "Try to localize the problem (switch your theme and deactivate plugins until "
    636 "you find the source of the problem). You can also try the Troubleshooting "
    637 "settings of this plugin if necesary."
    638 msgstr ""
    639 
    640 #: lib/admin-tab-support.php:11
    641 msgid ""
    642 "Try reverting the plugin's settings to their defaults with the button below."
    643 msgstr ""
    644 
    645 #: lib/admin-tab-support.php:12
    646 msgid ""
    647 "If you still can not get the plugin to work, <a target=\"_blank\" href="
    648 "\"http://wordpress.org/support/plugin/fancybox-for-wordpress#postform"
    649 "\">write a post in the WordPress Support forums</a> explaining the problem "
    650 "or take a look and the <a target=\"_blank\" href=\"http://wordpress.org/"
    651 "support/plugin/fancybox-for-wordpress\">already posted messages</a>."
    652 msgstr ""
    653 
    654 #: lib/admin-tab-support.php:15
    655 msgid "IMPORTANT:"
    656 msgstr ""
    657 
    658 #: lib/admin-tab-support.php:15
    659 msgid ""
    660 "When posting your problem please provide a link to your blog and the page "
    661 "where the error is found, and all relevant information you can, especially "
    662 "your theme, plugins, etc."
    663 msgstr ""
    664 
    665 #: lib/admin-tab-troubleshooting.php:1
     479#: lib/admin-tab-other.php:118
     480msgid "Extra FancyBox Calls <span style=\"color:red\">(advanced)</span>"
     481msgstr ""
     482
     483#: lib/admin-tab-other.php:119
     484msgid ""
     485"Here you can add as many additional calls to fancybox as you want, with "
     486"different settings. For example, if you want to use fancybox with iframes or "
     487"ajax on any specific link, you can configure those calls here without "
     488"affecting the settings for images."
     489msgstr ""
     490
     491#: lib/admin-tab-other.php:120
     492msgid ""
     493"For information on the options available you can use here see <a href="
     494"\"http://fancyapps.com/fancybox/3/\">FancyBox's API & Options page</a>."
     495msgstr ""
     496
     497#: lib/admin-tab-other.php:124
     498msgid "Additional FancyBox Calls"
     499msgstr ""
     500
     501#: lib/admin-tab-other.php:132
     502msgid "Additional FancyBox Calls (default: off)"
     503msgstr ""
     504
     505#: lib/admin-tab-other.php:157
    666506msgid "Troubleshooting Settings"
    667507msgstr ""
    668508
    669 #: lib/admin-tab-troubleshooting.php:3
     509#: lib/admin-tab-other.php:159
    670510msgid ""
    671511"Settings in this section should only be changed if you are having problems "
     
    673513msgstr ""
    674514
    675 #: lib/admin-tab-troubleshooting.php:5
     515#: lib/admin-tab-other.php:161
    676516msgid ""
    677517"If the plugin doesn't seem to work, first you should check for other plugins "
     
    681521msgstr ""
    682522
    683 #: lib/admin-tab-troubleshooting.php:7
     523#: lib/admin-tab-other.php:162
    684524msgid ""
    685525"Change them one at a time and test to see if they help. Remember that having "
     
    689529msgstr ""
    690530
    691 #: lib/admin-tab-troubleshooting.php:13
     531#: lib/admin-tab-other.php:167
    692532msgid "Do not call jQuery"
    693533msgstr ""
    694534
    695 #: lib/admin-tab-troubleshooting.php:19
     535#: lib/admin-tab-other.php:175
    696536msgid ""
    697537"Skip jQuery call. Use this only if jQuery is being loaded twice (default: "
     
    699539msgstr ""
    700540
    701 #: lib/admin-tab-uninstall.php:3
     541#: lib/admin-tab-other.php:182
     542msgid "Uninstall"
     543msgstr ""
     544
     545#: lib/admin-tab-other.php:183
    702546msgid ""
    703547"Like many other plugins, FancyBox for WordPress stores its settings on your "
     
    709553msgstr ""
    710554
    711 #: lib/admin-tab-uninstall.php:9
     555#: lib/admin-tab-other.php:187
    712556msgid "Remove settings"
    713557msgstr ""
    714558
    715 #: lib/admin-tab-uninstall.php:15
     559#: lib/admin-tab-other.php:195
    716560msgid ""
    717561"Remove Settings when plugin is deactivated from the \"Manage Plugins\" page. "
     
    719563msgstr ""
    720564
     565#: lib/admin-tab-support.php:1
     566msgid "Help with Fancybox"
     567msgstr ""
     568
     569#: lib/admin-tab-support.php:3
     570msgid ""
     571"If you have problems or questions about FancyBox itself (and not this "
     572"WordPress plugin), please start with these links: <a target=\"_blank\" href="
     573"\"http://fancyapps.com/fancybox/3/\">How-To</a> & <a target=\"_blank\" href="
     574"\"http://fancyapps.com/fancybox/3/docs/\">Documentation</a>.<br />If that "
     575"does not help, go to <a href=\"http://groups.google.com/group/fancybox\">the "
     576"FancyBox Google Group</a>, use the <strong>Search</strong> option, and if "
     577"necesary, post your question."
     578msgstr ""
     579
     580#: lib/admin-tab-support.php:6
     581msgid "Help with Fancybox for WordPress plugin"
     582msgstr ""
     583
     584#: lib/admin-tab-support.php:8
     585msgid ""
     586"Try to localize the problem (switch your theme and deactivate plugins until "
     587"you find the source of the problem). You can also try the Troubleshooting "
     588"settings of this plugin if necesary."
     589msgstr ""
     590
     591#: lib/admin-tab-support.php:9
     592msgid ""
     593"Try reverting the plugin's settings to their defaults with the button below."
     594msgstr ""
     595
     596#: lib/admin-tab-support.php:10
     597msgid ""
     598"If you still can not get the plugin to work, <a target=\"_blank\" href="
     599"\"http://wordpress.org/support/plugin/fancybox-for-wordpress#postform"
     600"\">write a post in the WordPress Support forums</a> explaining the problem "
     601"or take a look and the <a target=\"_blank\" href=\"http://wordpress.org/"
     602"support/plugin/fancybox-for-wordpress\">already posted messages</a>."
     603msgstr ""
     604
     605#: lib/admin-tab-support.php:13
     606msgid "IMPORTANT:"
     607msgstr ""
     608
     609#: lib/admin-tab-support.php:13
     610msgid ""
     611"When posting your problem please provide a link to your blog and the page "
     612"where the error is found, and all relevant information you can, especially "
     613"your theme, plugins, etc."
     614msgstr ""
     615
     616#: lib/class-fbfw-plugin-rollback.php:41
     617msgid "Previous plugin version or plugin basename CONST aren't defined."
     618msgstr ""
     619
     620#: lib/class-fbfw-plugin-rollback.php:58 lib/class-fbfw-rollback.php:157
     621msgid "Rollback to Previous Version"
     622msgstr ""
     623
    721624#. Plugin Name of the plugin/theme
    722625msgid "FancyBox for WordPress"
     
    724627
    725628#. Plugin URI of the plugin/theme
    726 msgid "https://wordpress.org/plugins/fancybox-for-wordpress/"
     629msgid "http://plugins.josepardilla.com/fancybox-for-wordpress/"
    727630msgstr ""
    728631
    729632#. Description of the plugin/theme
    730633msgid ""
    731 "Integrates <a href=\"http://fancybox.net/\">FancyBox</a> by <a href=\"http://"
    732 "klade.lv/\">Janis Skarnelis</a> into WordPress."
     634"Integrates <a href=\"http://fancyapps.com/fancybox/3/\">FancyBox</a> by <a "
     635"href=\"http://klade.lv/\">Janis Skarnelis</a> into WordPress."
    733636msgstr ""
    734637
     
    738641
    739642#. Author URI of the plugin/theme
    740 msgid "http://twitter.com/moskis"
    741 msgstr ""
     643msgid "http://josepardilla.com/"
     644msgstr ""
  • fancybox-for-wordpress/trunk/lib/admin-head.php

    r566930 r1965336  
    1212
    1313// Make selects data
    14 $transitionTypeArray = array( 'fade', 'elastic', 'none' );
     14$transitionTypeArray = array( 'fade', 'zoom', 'zoom-in-out' ,'none' );
    1515$overlayArray = array( 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1 );
    1616$msArray = array( 0, 25, 50, 75, 100, 200, 300, 400, 500, 600, 700, 800, 900, 1000, 1250, 1500, 1750, 2000 );
    17 $easingArray = array( 'easeInQuad', 'easeOutQuad', 'easeInOutQuad', 'easeInCubic', 'easeOutCubic', 'easeInOutCubic', 'easeInQuart', 'easeOutQuart',
    18     'easeInOutQuart', 'easeInQuint', 'easeOutQuint', 'easeInOutQuint', 'easeInSine', 'easeOutSine', 'easeInOutSine', 'easeInExpo',
    19     'easeOutExpo', 'easeInOutExpo', 'easeInCirc', 'easeOutCirc', 'easeInOutCirc', 'easeInElastic', 'easeOutElastic', 'easeInOutElastic',
    20     'easeInBack', 'easeOutBack', 'easeInOutBack', 'easeInBounce', 'easeOutBounce', 'easeInOutBounce' );
     17$slideEffectArray = array('false','fade','slide','circular','tube','zoom-in-out','rotate');
  • fancybox-for-wordpress/trunk/lib/admin-tab-animations.php

    r566930 r1965336  
    1                 <h2><?php _e('Animation Settings <span style="color:green">(basic)</span>', 'mfbfw'); ?></h2>
     1<h3><?php _e( 'Animation Settings <span style="color:green">(basic)</span>', 'mfbfw' ); ?></h3>
    22
    3                 <p><?php _e('These settings control the animations when opening and closing Fancybox, and the optional easing effects.', 'mfbfw'); ?></p>
     3<p><?php _e( 'These settings control the animations when opening and closing Fancybox, and the optional easing effects.', 'mfbfw' ); ?></p>
    44
    5             <table class="form-table" style="clear:none;">
    6                     <tbody>
    7 
    8                         <tr valign="top">
    9                             <th scope="row"><?php _e('Zoom Options', 'mfbfw'); ?></th>
    10                             <td>
    11                                 <fieldset>
    12 
    13                                     <label for="zoomOpacity">
    14                                         <input type="checkbox" name="mfbfw[zoomOpacity]" id="zoomOpacity"<?php if ( isset($settings['zoomOpacity']) && $settings['zoomOpacity'] ) echo ' checked="yes"';?> />
    15                                         <?php _e('Change content transparency during zoom animations (default: on)', 'mfbfw'); ?>
    16                                     </label><br /><br />
    17 
    18                                     <label for="zoomSpeedIn">
    19                                         <select name="mfbfw[zoomSpeedIn]" id="zoomSpeedIn">
    20                                             <?php
    21                                             foreach($msArray as $key=> $ms) {
    22                                                 if($settings['zoomSpeedIn'] != $ms) $selected = '';
    23                                                 else $selected = ' selected';
    24                                                 echo "<option value='$ms'$selected>$ms</option>\n";
    25                                             } ?>
    26                                         </select>
    27                                         <?php _e('Speed in miliseconds of the zooming-in animation (default: 500)', 'mfbfw'); ?>
    28                                     </label><br /><br />
    29 
    30                                     <label for="zoomSpeedOut">
    31                                         <select name="mfbfw[zoomSpeedOut]" id="zoomSpeedOut">
    32                                             <?php
    33                                             foreach($msArray as $key=> $ms) {
    34                                                 if($settings['zoomSpeedOut'] != $ms) $selected = '';
    35                                                 else $selected = ' selected';
    36                                                 echo "<option value='$ms'$selected>$ms</option>\n";
    37                                             } ?>
    38                                         </select>
    39                                         <?php _e('Speed in miliseconds of the zooming-out animation (default: 500)', 'mfbfw'); ?>
    40                                     </label><br /><br />
    41 
    42                                     <label for="zoomSpeedChange">
    43                                         <select name="mfbfw[zoomSpeedChange]" id="zoomSpeedChange">
    44                                             <?php
    45                                             foreach($msArray as $key=> $ms) {
    46                                                 if($settings['zoomSpeedChange'] != $ms) $selected = '';
    47                                                 else $selected = ' selected';
    48                                                 echo "<option value='$ms'$selected>$ms</option>\n";
    49                                             } ?>
    50                                         </select>
    51                                         <?php _e('Speed in miliseconds of the animation when navigating thorugh gallery items (default: 300)', 'mfbfw'); ?>
    52                                     </label><br /><br />
    53 
    54                                 </fieldset>
    55                             </td>
    56                         </tr>
    57 
    58                         <tr valign="top">
    59                             <th scope="row"><?php _e('Transition Type', 'mfbfw'); ?></th>
    60                             <td>
    61                                 <fieldset>
    62 
    63                                     <label for="transitionIn">
    64                                         <select name="mfbfw[transitionIn]" id="transitionIn">
    65                                             <?php
    66                                             foreach($transitionTypeArray as $key=> $transitionIn) {
    67                                                 if($settings['transitionIn'] != $transitionIn) $selected = '';
    68                                                 else $selected = ' selected';
    69                                                 echo "<option value='$transitionIn'$selected>$transitionIn</option>\n";
    70                                             }
    71                                             ?>
    72                                         </select>
    73                                         <?php _e('Transition type when opening FancyBox. (default: fade)', 'mfbfw'); ?>
    74                                     </label><br /><br />
    75 
    76                                     <label for="transitionOut">
    77                                         <select name="mfbfw[transitionOut]" id="transitionOut">
    78                                             <?php
    79                                             foreach($transitionTypeArray as $key=> $transitionOut) {
    80                                                 if($settings['transitionOut'] != $transitionOut) $selected = '';
    81                                                 else $selected = ' selected';
    82                                                 echo "<option value='$transitionOut'$selected>$transitionOut</option>\n";
    83                                             }
    84                                             ?>
    85                                         </select>
    86                                         <?php _e('Transition type when closing FancyBox. (default: fade)', 'mfbfw'); ?>
    87                                     </label><br /><br />
    88 
    89                                 </fieldset>
    90                             </td>
    91                         </tr>
    92 
    93                         <tr valign="top">
    94                             <th scope="row"><?php _e('Easing', 'mfbfw'); ?></th>
    95                             <td>
    96                                 <fieldset>
    97 
    98                                     <label for="easing">
    99                                         <input type="checkbox" name="mfbfw[easing]" id="easing"<?php if ( isset($settings['easing']) && $settings['easing'] ) echo ' checked="yes"';?> />
    100                                         <?php _e('Activate easing (default: off)', 'mfbfw'); ?>
    101                                     </label><br />
    102 
    103                                     <small><em><?php _e('(Will load one additional javascript file, 8KB)', 'mfbfw'); ?></em></small><br /><br />
    104 
    105                                     <div id="easingBlock">
    106 
    107                                         <label for="easingIn">
    108                                             <select name="mfbfw[easingIn]" id="easingIn">
    109                                                 <?php
    110                                                 foreach($easingArray as $key=> $easingIn) {
    111                                                     if( $settings['easingIn'] != $easingIn ) $selected = '';
    112                                                     else $selected = ' selected';
    113                                                     echo "<option value='$easingIn'$selected>$easingIn</option>\n";
    114                                                 }
    115                                                 ?>
    116                                             </select>
    117                                             <?php _e('Easing method when opening FancyBox. (default: easeOutBack)', 'mfbfw'); ?>
    118                                         </label><br />
    119 
    120                                         <small><em><?php _e('(Requires opening transition type to be set to elastic)', 'mfbfw'); ?></em></small><br /><br />
    121 
    122                                         <label for="easingOut">
    123                                             <select name="mfbfw[easingOut]" id="easingOut">
    124                                                 <?php
    125                                                 foreach($easingArray as $key=> $easingOut) {
    126                                                     if( $settings['easingOut'] != $easingOut ) $selected = '';
    127                                                     else $selected = ' selected';
    128                                                     echo "<option value='$easingOut'$selected>$easingOut</option>\n";
    129                                                 }
    130                                                 ?>
    131                                             </select>
    132                                             <?php _e('Easing method when closing FancyBox. (default: easeInBack)', 'mfbfw'); ?>
    133                                         </label><br />
    134 
    135                                         <small><em><?php _e('(Requires closing transition type to be set to elastic)', 'mfbfw'); ?></em></small><br /><br />
    136 
    137                                         <label for="easingChange">
    138                                             <select name="mfbfw[easingChange]" id="easingChange">
    139                                                 <?php
    140                                                 foreach($easingArray as $key=> $easingChange) {
    141                                                     if( isset($settings['easingChange']) && $settings['easingChange'] != $easingChange ) $selected = '';
    142                                                     else $selected = ' selected';
    143                                                     echo "<option value='$easingChange'$selected>$easingChange</option>\n";
    144                                                 }
    145                                                 ?>
    146                                             </select>
    147                                             <?php _e('Easing method when navigating through gallery items. (default: easeInOutQuart)', 'mfbfw'); ?>
    148                                         </label><br />
    149 
    150                                         <small><em><?php _e('(There are 30 different easing methods, the first ones are the most boring. You can test them <a href="http://commadot.com/jquery/easing.php" target="_blank">here</a> or <a href="http://hosted.zeh.com.br/mctween/animationtypes.html" target="_blank">here</a>)', 'mfbfw'); ?></em></small><br /><br />
    151 
    152                                     </div>
    153 
    154                                 </fieldset>
    155                             </td>
    156                         </tr>
    157 
    158                     </tbody>
    159                 </table>
     5<table class="form-table fancy-table" style="clear:none;">
     6    <tbody>
     7    <tr valign="top">
     8        <th scope="row"><?php _e( 'Zoom Options', 'mfbfw' ); ?></th>
     9        <td>
     10            <fieldset>
     11                <input type="checkbox" class="onoffswitch-checkbox" name="mfbfw[zoomOpacity]"
     12                       id="zoomOpacity"<?php if ( isset( $settings['zoomOpacity'] ) && $settings['zoomOpacity'] ) {
     13                    echo ' checked="yes"';
     14                } ?> />
     15                <label for="zoomOpacity" class="onoffswitch-label"></label>
     16                <span class="switch-text"><?php _e( 'Change content transparency during zoom animations (default: on)', 'mfbfw' ); ?></span>
     17            </fieldset>
     18        </td>
     19    </tr>
     20    <tr valign="top">
     21        <th scope="row"><?php _e( 'Animation Type', 'mfbfw' ); ?></th>
     22        <td>
     23            <fieldset>
     24                <label for="transitionIn">
     25                    <select name="mfbfw[transitionIn]" id="transitionIn">
     26                        <?php
     27                        foreach ( $transitionTypeArray as $key => $ms ) {
     28                            echo "<option value='$ms' " . selected( $settings['transitionIn'], $ms, false ) . ">$ms</option>\n";
     29                        }
     30                        ?>
     31                    </select>
     32                    <?php _e( 'Animation type when opening FancyBox. (default: fade)', 'mfbfw' ); ?>
     33                </label>
     34                <div class="cf"></div>
     35                <div class="line-spacer"></div>
     36                <label for="zoomSpeedIn">
     37                    <select name="mfbfw[zoomSpeedIn]" id="zoomSpeedIn">
     38                        <?php
     39                        foreach ( $msArray as $key => $ms ) {
     40                            echo "<option value='$ms' " . selected( $settings['zoomSpeedIn'], $ms, false ) . ">$ms</option>\n";
     41                        }
     42                        ?>
     43                    </select>
     44                    <?php _e( 'Speed in miliseconds of the FancyBox opening  animation (default: 500)', 'mfbfw' ); ?>
     45                </label>
     46            </fieldset>
     47        </td>
     48    </tr>
     49    <tr valign="top">
     50        <th scope="row"><?php _e( 'Animation between slides Options', 'mfbfw' ); ?></th>
     51        <td>
     52            <fieldset>
     53                <label for="transitionEffect">
     54                    <select name="mfbfw[transitionEffect]" id="animationDuration">
     55                        <?php
     56                        foreach ( $slideEffectArray as $key => $ms ) {
     57                            echo "<option value='$ms' " . selected( $settings['transitionEffect'], $ms, false ) . ">$ms</option>\n";
     58                        }
     59                        ?>
     60                    </select>
     61                    <?php _e( 'Select Animation type for the slides(default: fade)', 'mfbfw' ); ?>
     62                </label>
     63                <div class="line-spacer"></div>
     64                <label for="zoomSpeedChange">
     65                    <select name="mfbfw[zoomSpeedChange]" id="zoomSpeedChange">
     66                        <?php
     67                        foreach ( $msArray as $key => $ms ) {
     68                            echo "<option value='$ms' " . selected( $settings['zoomSpeedChange'], $ms, false ) . ">$ms</option>\n";
     69                        }
     70                        ?>
     71                    </select>
     72                    <?php _e( 'Speed in miliseconds of the animation when navigating thorugh gallery items (default: 300)', 'mfbfw' ); ?>
     73                </label>
     74            </fieldset>
     75        </td>
     76    </tr>
     77    </tbody>
     78</table>
  • fancybox-for-wordpress/trunk/lib/admin-tab-appearance.php

    r566930 r1965336  
    1                 <h2><?php _e('Appearance Settings <span style="color:green">(basic)</span>', 'mfbfw'); ?></h2>
     1<h3><?php _e( 'Appearance Settings <span style="color:green">(basic)</span>', 'mfbfw' ); ?></h3>
    22
    3                 <p><?php _e('These setting control how Fancybox looks, they let you tweak color, borders and position of elements, like the image title and closing buttons.', 'mfbfw'); ?></p>
     3<p><?php _e( 'These setting control how Fancybox looks, they let you tweak color, borders and position of elements, like the image title and closing buttons.', 'mfbfw' ); ?></p>
    44
    5                 <table class="form-table" style="clear:none;">
    6                     <tbody>
    7 
    8                         <tr valign="top">
    9                             <th scope="row"><?php _e('Border', 'mfbfw'); ?></th>
    10                             <td>
    11                                 <fieldset>
    12 
    13                                     <label for="border">
    14                                         <input type="checkbox" name="mfbfw[border]" id="border"<?php if ( isset($settings['border']) && $settings['border'] ) echo ' checked="yes"';?> />
    15                                         <?php _e('Show Border (default: off)', 'mfbfw'); ?>
    16                                     </label><br /><br />
    17 
    18                                     <div id="borderColorBlock">
    19 
    20                                         <label for="borderColor">
    21                                             <input type="text" name="mfbfw[borderColor]" id="borderColor" value="<?php echo $settings['borderColor'] ?>" size="7" maxlength="7" />
    22                                             <?php _e('HTML color of the border (default: #BBBBBB)', 'mfbfw'); ?>
    23                                         </label><br /><br />
    24 
    25                                     </div>
    26 
    27                                 </fieldset>
    28                             </td>
    29                         </tr>
    30 
    31                         <tr valign="top">
    32                             <th scope="row"><?php _e('Close Button', 'mfbfw'); ?></th>
    33                             <td>
    34                                 <fieldset>
    35 
    36                                     <label for="showCloseButton">
    37                                         <input type="checkbox" name="mfbfw[showCloseButton]" id="showCloseButton"<?php if ( isset($settings['showCloseButton']) && $settings['showCloseButton'] ) echo ' checked="yes"';?> />
    38                                         <?php _e('Show Close button (default: on)', 'mfbfw'); ?>
    39                                     </label><br /><br />
    40 
    41                                     <div id="closeButtonBlock">
    42 
    43                                         <?php _e('Close button position:', 'mfbfw'); ?><br />
    44                                         <input name="mfbfw[closeHorPos]" type="radio" value="left" id="closePosLeft"<?php if ( isset($settings['closeHorPos']) && $settings['closeHorPos'] == 'left' ) echo ' checked="yes"';?> />
    45                                         <label for="closePosLeft" style="padding-right:15px">
    46                                             <?php _e('Left', 'mfbfw'); ?>
    47                                         </label>
    48 
    49                                         <input name="mfbfw[closeHorPos]" type="radio" value="right" id="closePosRight"<?php if ( isset($settings['closeHorPos']) && $settings['closeHorPos'] == 'right' ) echo ' checked="yes"';?> />
    50                                         <label for="closePosRight">
    51                                             <?php _e('Right (default)', 'mfbfw'); ?>
    52                                         </label><br />
    53 
    54                                         <input name="mfbfw[closeVerPos]" type="radio" value="bottom" id="closePosBottom"<?php if ( isset($settings['closeVerPos']) && $settings['closeVerPos'] == 'bottom' ) echo ' checked="yes"';?> />
    55                                         <label for="closePosBottom" style="padding-right:15px">
    56                                             <?php _e('Bottom', 'mfbfw'); ?>
    57                                         </label>
    58 
    59                                         <input name="mfbfw[closeVerPos]" type="radio" value="top" id="closePosTop"<?php if ( isset($settings['closeVerPos']) && $settings['closeVerPos'] == 'top' ) echo ' checked="yes"';?> />
    60                                         <label for="closePosTop">
    61                                             <?php _e('Top (default)', 'mfbfw'); ?>
    62                                         </label><br /><br />
    63 
    64                                     </div>
    65 
    66                                 </fieldset>
    67                             </td>
    68                         </tr>
    69 
    70                         <tr valign="top">
    71                             <th scope="row"><?php _e('Padding', 'mfbfw'); ?></th>
    72                             <td>
    73                                 <fieldset>
    74 
    75                                     <label for="paddingColor">
    76                                         <input type="text" name="mfbfw[paddingColor]" id="paddingColor" value="<?php echo $settings['paddingColor'] ?>" size="7" maxlength="7" />
    77                                         <?php _e('HTML color of the padding (default: #FFFFFF)', 'mfbfw'); ?>
    78                                     </label><br />
    79 
    80                                     <small><em><?php _e('(This should be left on #FFFFFF (white) if you want to display anything other than images, like inline or framed content)', 'mfbfw'); ?></em></small><br /><br />
    81 
    82                                     <label for="padding">
    83                                         <input type="text" name="mfbfw[padding]" id="padding" value="<?php echo $settings['padding']; ?>" size="7" maxlength="7" />
    84                                         <?php _e('Padding size in pixels (default: 10)', 'mfbfw'); ?>
    85                                     </label><br /><br />
    86 
    87                                 </fieldset>
    88                             </td>
    89                         </tr>
    90 
    91                         <tr valign="top">
    92                             <th scope="row"><?php _e('Overlay Options', 'mfbfw'); ?></th>
    93                             <td>
    94                                 <fieldset>
    95 
    96                                     <label for="overlayShow">
    97                                         <input type="checkbox" name="mfbfw[overlayShow]" id="overlayShow"<?php if ( isset($settings['overlayShow']) && $settings['overlayShow'] ) echo ' checked="yes"';?> />
    98                                         <?php _e('Add overlay (default: on)', 'mfbfw'); ?>
    99                                     </label><br /><br />
    100 
    101                                     <div id="overlayBlock">
    102 
    103                                         <label for="overlayColor">
    104                                             <input type="text" name="mfbfw[overlayColor]" id="overlayColor" value="<?php echo $settings['overlayColor']; ?>" size="7" maxlength="7" />
    105                                             <?php _e('HTML color of the overlay (default: #666666)', 'mfbfw'); ?>
    106                                         </label><br /><br />
    107 
    108                                         <label for="overlayOpacity">
    109                                             <select name="mfbfw[overlayOpacity]" id="overlayOpacity">
    110                                                 <?php
    111                                                 foreach($overlayArray as $key=> $opacity) {
    112                                                     if($settings['overlayOpacity'] != $opacity) $selected = '';
    113                                                     else $selected = ' selected';
    114                                                     echo "<option value='$opacity'$selected>$opacity</option>\n";
    115                                                 }
    116                                                 ?>
    117                                             </select>
    118                                             <?php _e('Opacity of overlay. 0 is transparent, 1 is opaque (default: 0.3)', 'mfbfw'); ?>
    119                                         </label><br /><br />
    120 
    121                                     </div>
    122 
    123                                 </fieldset>
    124                             </td>
    125                         </tr>
    126 
    127                         <tr valign="top">
    128                             <th scope="row"><?php _e('Title', 'mfbfw'); ?></th>
    129                             <td>
    130                                 <fieldset>
    131 
    132                                     <label for="titleShow">
    133                                         <input type="checkbox" name="mfbfw[titleShow]" id="titleShow"<?php if ( isset($settings['titleShow']) && $settings['titleShow'] ) echo ' checked="yes"';?> />
    134                                         <?php _e('Show the title (default: on)', 'mfbfw'); ?>
    135                                     </label><br /><br />
    136 
    137                                     <div id="titleBlock">
    138 
    139                                         <input id="titlePositionInside" class="titlePosition" type="radio" value="inside" name="mfbfw[titlePosition]"<?php if ($settings['titlePosition'] == 'inside') echo ' checked="yes"';?> />
    140                                         <label for="titlePositionInside">
    141                                             <?php _e('Inside (default)', 'mfbfw'); ?>
    142                                         </label><br />
    143 
    144                                         <input id="titlePositionOutside" class="titlePosition" type="radio" value="float" name="mfbfw[titlePosition]"<?php if ($settings['titlePosition'] == 'float') echo ' checked="yes"';?> />
    145                                         <label for="titlePositionOutside">
    146                                             <?php _e('Outside', 'mfbfw'); ?>
    147                                         </label><br />
    148 
    149                                         <input id="titlePositionOver" class="titlePosition" type="radio" value="over" name="mfbfw[titlePosition]"<?php if ($settings['titlePosition'] == 'over') echo ' checked="yes"';?> />
    150                                         <label for="titlePositionOver">
    151                                             <?php _e('Over', 'mfbfw'); ?>
    152                                         </label><br /><br />
    153 
    154                                         <div id="titleColorBlock">
    155 
    156                                             <label for="titleColor">
    157                                                 <input type="text" name="mfbfw[titleColor]" id="titleColor" class="colorpick" value="<?php echo $settings['titleColor']; ?>" size="7" maxlength="7" />
    158                                                 <?php _e('Title text color (default: #333333)', 'mfbfw'); ?>
    159                                             </label><br />
    160 
    161                                             <small><em><?php _e('(Should contrast with the padding color set above)', 'mfbfw'); ?></em></small><br /><br />
    162 
    163                                         </div>
    164 
    165                                     </div>
    166 
    167                                 </fieldset>
    168                             </td>
    169                         </tr>
    170 
    171                         <tr valign="top">
    172                             <th scope="row"><?php _e('Navigation Arrows', 'mfbfw'); ?></th>
    173                             <td>
    174                                 <fieldset>
    175 
    176                                     <label for="showNavArrows">
    177                                         <input type="checkbox" name="mfbfw[showNavArrows]" id="showNavArrows"<?php if ( isset($settings['showNavArrows']) && $settings['showNavArrows'] ) echo ' checked="yes"';?> />
    178                                         <?php _e('Show the navigation arrows (default: on)', 'mfbfw'); ?>
    179                                     </label><br /><br />
    180 
    181                                 </fieldset>
    182                             </td>
    183                         </tr>
    184 
    185                     </tbody>
    186                 </table>
     5<table class="form-table fancy-table" style="clear:none;">
     6    <tbody>
     7    <tr valign="top">
     8        <th scope="row"><?php _e( 'Close Button', 'mfbfw' ); ?></th>
     9        <td>
     10            <fieldset>
     11                <input type="checkbox" class="onoffswitch-checkbox" name="mfbfw[showCloseButton]"
     12                       id="showCloseButton"<?php if ( isset( $settings['showCloseButton'] ) && $settings['showCloseButton'] ) {
     13                    echo ' checked="yes"';
     14                } ?> />
     15                <label for="showCloseButton" class="onoffswitch-label">
     16                </label>
     17                <span class="switch-text"><?php _e( 'Show Close button (default: off)', 'mfbfw' ); ?></span>
     18                <div class="cf"></div>
     19            </fieldset>
     20        </td>
     21    </tr>
     22    <tr valign="top">
     23        <th scope="row"><?php _e( 'Toolbar', 'mfbfw' ); ?></th>
     24        <td>
     25            <fieldset>
     26                <input type="checkbox" class="onoffswitch-checkbox" name="mfbfw[showToolbar]"
     27                       id="showToolbar"<?php if ( isset( $settings['showToolbar'] ) && $settings['showToolbar'] ) {
     28                    echo ' checked="yes"';
     29                } ?> />
     30                <label for="showToolbar" class="onoffswitch-label">
     31                </label>
     32                <span class="switch-text"><?php _e( 'Show Toolbar  (default: on)', 'mfbfw' ); ?></span>
     33                <div class="cf"></div>
     34            </fieldset>
     35        </td>
     36    </tr>
     37    <tr valign="top">
     38        <th scope="row"><?php _e( 'Border', 'mfbfw' ); ?></th>
     39        <td>
     40            <fieldset>
     41                <input class="onoffswitch-checkbox" type="checkbox" name="mfbfw[border]"
     42                       id="border"<?php if ( isset( $settings['border'] ) && $settings['border'] ) {
     43                    echo ' checked="yes"';
     44                } ?> />
     45                <label for="border" class="onoffswitch-label"></label>
     46                <span class="switch-text"><?php _e( 'Show Border (default: off)', 'mfbfw' ); ?></span>
     47                <div class="cf"></div>
     48                <div id="borderColorBlock" class="hidden-block">
     49                    <label for="borderColor">
     50                        <input type="text" class="color-btn" name="mfbfw[borderColor]" id="borderColor"
     51                               value="<?php echo $settings['borderColor'] ?>" size="7" maxlength="7"/>
     52                    </label>
     53                    <p class="description"><?php _e( 'HTML color of the border (default: #BBBBBB)', 'mfbfw' ); ?></p>
     54                </div>
     55            </fieldset>
     56        </td>
     57    </tr>
     58    <tr valign="top">
     59        <th scope="row"><?php _e( 'Padding', 'mfbfw' ); ?></th>
     60        <td>
     61            <fieldset>
     62                <label for="paddingColor">
     63                    <input type="text" class="color-btn" name="mfbfw[paddingColor]" id="paddingColor"
     64                           value="<?php echo $settings['paddingColor'] ?>" size="7" maxlength="7"/>
     65                </label>
     66                <p class="description"><?php _e( 'HTML color of the padding (default: #FFFFFF)', 'mfbfw' ); ?></p>
     67                <p class="description"><?php _e( '(This should be left on #FFFFFF (white) if you want to display anything other than images, like inline or framed content)', 'mfbfw' ); ?></p>
     68                <div class="line-spacer"></div>
     69                <label for="padding" class="inlined">
     70                    <input type="text" class="slider-text" name="mfbfw[padding]" id="padding"
     71                           value="<?php echo $settings['padding']; ?>" size="7" maxlength="7"/>
     72                    <div class="slider-horizontal" minSl="0" maxSl="100" stepSl="1" rangeSl="min"
     73                         style="height:14px;"></div>
     74                    <div class="cf"></div>
     75                    <p class="description"><span class="slider-spantext"><?php _e( 'Padding size in pixels (default: 10)', 'mfbfw' ); ?></span></p>
     76                </label>
     77            </fieldset>
     78        </td>
     79    </tr>
     80    <tr valign="top">
     81        <th scope="row"><?php _e( 'Overlay Options', 'mfbfw' ); ?></th>
     82        <td>
     83            <fieldset>
     84                <input type="checkbox" class="onoffswitch-checkbox" name="mfbfw[overlayShow]"
     85                       id="overlayShow"<?php if ( isset( $settings['overlayShow'] ) && $settings['overlayShow'] ) {
     86                    echo ' checked="yes"';
     87                } ?> />
     88                <label for="overlayShow" class="onoffswitch-label"></label>
     89                <span class="switch-text"><?php _e( 'Add overlay (default: on)', 'mfbfw' ); ?></span>
     90                <div class="cf"></div>
     91                <div id="overlayBlock" class="hidden-block">
     92                    <label for="overlayColor">
     93                        <input type="text" class="color-btn" name="mfbfw[overlayColor]" id="overlayColor"
     94                               value="<?php echo $settings['overlayColor']; ?>" size="7" maxlength="7"/>
     95                    </label>
     96                    <p class="description"><?php _e( 'HTML color of the overlay (default: #666666)', 'mfbfw' ); ?></p>
     97                    <div class="line-spacer"></div>
     98                    <label for="overlayOpacity" class="inlined">
     99                        <input type="text" class="slider-text" name="mfbfw[overlayOpacity]" id="overlayOpacity"
     100                               value="<?php echo $settings['overlayOpacity']; ?>" size="7" maxlength="7"/>
     101                        <div class="slider-horizontal" minSl="0" maxSl="1" stepSl="0.1" rangeSl="min"
     102                             style="height:14px;"></div>
     103                        <div class="cf"></div>
     104                        <p class="description"><span class="slider-spantext"><?php _e( 'Opacity of overlay. 0 is transparent, 1 is opaque (default: 0.3)', 'mfbfw' ); ?></span></p>
     105                    </label>
     106                </div>
     107            </fieldset>
     108        </td>
     109    </tr>
     110    <tr valign="top">
     111        <th scope="row"><?php _e( 'Title', 'mfbfw' ); ?></th>
     112        <td>
     113            <fieldset>
     114                <input type="checkbox" class="onoffswitch-checkbox" name="mfbfw[titleShow]"
     115                       id="titleShow"<?php if ( isset( $settings['titleShow'] ) && $settings['titleShow'] ) {
     116                    echo ' checked="yes"';
     117                } ?> />
     118                <label for="titleShow" class="onoffswitch-label"></label>
     119                <span class="switch-text"><?php _e( 'Show the title (default: on)', 'mfbfw' ); ?></span>
     120                <div class="cf"></div>
     121                <div id="titleBlock" class="hidden-block">
     122                    <label for="titleSize">
     123                        <input type="text" name="mfbfw[titleSize]" id="titleSize" size="2" maxlength="4"
     124                               value="<?php echo $settings['titleSize']; ?>"/>
     125                        <?php _e( 'Title size (default: 14px)', 'mfbfw' ); ?>
     126                    </label>
     127                    <div class="cf"></div>
     128                    <div class="line-spacer"></div>
     129                    <input id="titlePositionInside" class="titlePosition" type="radio" value="inside"
     130                           name="mfbfw[titlePosition]"<?php if ( $settings['titlePosition'] == 'inside' ) {
     131                        echo ' checked="yes"';
     132                    } ?> />
     133                    <label for="titlePositionInside">
     134                        <?php _e( 'Inside (default)', 'mfbfw' ); ?>
     135                    </label>
     136                    <input id="titlePositionOutside" class="titlePosition" type="radio" value="float"
     137                           name="mfbfw[titlePosition]"<?php if ( $settings['titlePosition'] == 'float' ) {
     138                        echo ' checked="yes"';
     139                    } ?> />
     140                    <label for="titlePositionOutside">
     141                        <?php _e( 'Outside', 'mfbfw' ); ?>
     142                    </label>
     143                    <input id="titlePositionOver" class="titlePosition" type="radio" value="over"
     144                           name="mfbfw[titlePosition]"<?php if ( $settings['titlePosition'] == 'over' ) {
     145                        echo ' checked="yes"';
     146                    } ?> />
     147                    <label for="titlePositionOver">
     148                        <?php _e( 'Over', 'mfbfw' ); ?>
     149                    </label>
     150                    <div class="line-spacer"></div>
     151                    <div id="titleColorBlock">
     152                        <label for="titleColor">
     153                            <input type="text" class="color-btn" name="mfbfw[titleColor]" id="titleColor"
     154                                   class="colorpick" value="<?php echo $settings['titleColor']; ?>" size="7"
     155                                   maxlength="7"/>
     156                        </label>
     157                        <p class="description"><?php _e( 'Title text color (default: #333333)', 'mfbfw' ); ?></p>
     158                        <p class="description"><?php _e( '(Should contrast with the padding color set above)', 'mfbfw' ); ?></p>
     159                    </div>
     160                </div>
     161            </fieldset>
     162        </td>
     163    </tr>
     164    <tr valign="top">
     165        <th scope="row"><?php _e( 'Navigation Arrows', 'mfbfw' ); ?></th>
     166        <td>
     167            <fieldset>
     168                <input type="checkbox" class="onoffswitch-checkbox" name="mfbfw[showNavArrows]"
     169                       id="showNavArrows"<?php if ( isset( $settings['showNavArrows'] ) && $settings['showNavArrows'] ) {
     170                    echo ' checked="yes"';
     171                } ?> />
     172                <label for="showNavArrows" class="onoffswitch-label"></label>
     173                <span class="switch-text"><?php _e( 'Show the navigation arrows (default: on)', 'mfbfw' ); ?></span>
     174                <div class="cf"></div>
     175            </fieldset>
     176        </td>
     177    </tr>
     178    </tbody>
     179</table>
  • fancybox-for-wordpress/trunk/lib/admin-tab-behaviour.php

    r566930 r1965336  
    1                 <h2><?php _e('Behavior Settings <span style="color:orange">(medium)</span>', 'mfbfw'); ?></h2>
    2 
    3                 <p><?php _e('The following settings should be left alone unless you know what you are doing.', 'mfbfw'); ?></p>
    4 
    5                 <table class="form-table" style="clear:none;">
    6                     <tbody>
    7 
    8                         <tr valign="top">
    9                             <th scope="row"><?php _e('Auto Resize to Fit', 'mfbfw'); ?></th>
    10                             <td>
    11                                 <fieldset>
    12 
    13                                     <label for="imageScale">
    14                                         <input type="checkbox" name="mfbfw[imageScale]" id="imageScale"<?php if ( isset($settings['imageScale']) && $settings['imageScale'] ) echo ' checked="yes"';?> />
    15                                         <?php _e('Scale images to fit in viewport (default: on)', 'mfbfw'); ?>
    16                                     </label><br /><br />
    17 
    18                                 </fieldset>
    19                             </td>
    20                         </tr>
    21 
    22                         <tr valign="top">
    23                             <th scope="row"><?php _e('Center on Scroll', 'mfbfw'); ?></th>
    24                             <td>
    25                                 <fieldset>
    26 
    27                                     <label for="centerOnScroll">
    28                                         <input type="checkbox" name="mfbfw[centerOnScroll]" id="centerOnScroll"<?php if ( isset($settings['centerOnScroll']) && $settings['centerOnScroll'] ) echo ' checked="yes"';?> />
    29                                         <?php _e('Keep image in the center of the browser window when scrolling (default: on)', 'mfbfw'); ?>
    30                                     </label><br /><br />
    31 
    32                                 </fieldset>
    33                             </td>
    34                         </tr>
    35 
    36                         <tr valign="top">
    37                             <th scope="row"><?php _e('Close on Content Click', 'mfbfw'); ?></th>
    38                             <td>
    39                                 <fieldset>
    40 
    41                                     <label for="hideOnContentClick">
    42                                         <input type="checkbox" name="mfbfw[hideOnContentClick]" id="hideOnContentClick"<?php if ( isset($settings['hideOnContentClick']) && $settings['hideOnContentClick'] ) echo ' checked="yes"';?> />
    43                                         <?php _e('Close FancyBox by clicking on the image (default: off)', 'mfbfw'); ?>
    44                                     </label><br />
    45 
    46                                     <small><em><?php _e('(You may want to leave this off if you display iframed or inline content that containts clickable elements - for example: play buttons for movies, links to other pages)', 'mfbfw'); ?></em></small><br /><br />
    47 
    48                                 </fieldset>
    49                             </td>
    50                         </tr>
    51 
    52                         <tr valign="top">
    53                             <th scope="row"><?php _e('Close on Overlay Click', 'mfbfw'); ?></th>
    54                             <td>
    55                                 <fieldset>
    56 
    57                                     <label for="hideOnOverlayClick">
    58                                         <input type="checkbox" name="mfbfw[hideOnOverlayClick]" id="hideOnOverlayClick"<?php if ( isset($settings['hideOnOverlayClick']) && $settings['hideOnOverlayClick'] ) echo ' checked="yes"';?> />
    59                                         <?php _e('Close FancyBox by clicking on the overlay sorrounding it (default: on)', 'mfbfw'); ?>
    60                                     </label><br /><br />
    61 
    62                                 </fieldset>
    63                             </td>
    64                         </tr>
    65 
    66                         <tr valign="top">
    67                             <th scope="row"><?php _e('Close with &quot;Esc&quot;', 'mfbfw'); ?></th>
    68                             <td>
    69                                 <fieldset>
    70 
    71                                     <label for="enableEscapeButton">
    72                                         <input type="checkbox" name="mfbfw[enableEscapeButton]" id="enableEscapeButton"<?php if ( isset($settings['enableEscapeButton']) && $settings['enableEscapeButton'] ) echo ' checked="yes"';?> />
    73                                         <?php _e('Close FancyBox when &quot;Escape&quot; key is pressed (default: on)', 'mfbfw'); ?>
    74                                     </label><br /><br />
    75 
    76                                 </fieldset>
    77                             </td>
    78                         </tr>
    79 
    80                         <tr valign="top">
    81                             <th scope="row"><?php _e('Cyclic Galleries', 'mfbfw'); ?></th>
    82                             <td>
    83                                 <fieldset>
    84 
    85                                     <label for="cyclic">
    86                                         <input type="checkbox" name="mfbfw[cyclic]" id="cyclic"<?php if ( isset($settings['cyclic']) && $settings['cyclic'] ) echo ' checked="yes"';?> />
    87                                         <?php _e('This will make galleries cyclic, allowing you to keep pressing next/back (default: off)', 'mfbfw'); ?>
    88                                     </label><br /><br />
    89 
    90                                 </fieldset>
    91                             </td>
    92                         </tr>
    93 
    94                         <tr valign="top">
    95                             <th scope="row"><?php _e('Mouse Wheel Navigation', 'mfbfw'); ?></th>
    96                             <td>
    97                                 <fieldset>
    98 
    99                                     <label for="mouseWheel">
    100                                         <input type="checkbox" name="mfbfw[mouseWheel]" id="mouseWheel"<?php if ( isset($settings['mouseWheel']) && $settings['mouseWheel'] ) echo ' checked="yes"';?> />
    101                                         <?php _e('Lets visitors navigate galleries with the mouse wheel  (default: off)', 'mfbfw'); ?>
    102                                     </label><br />
    103 
    104                                     <small><em><?php _e('(Will load one additional javascript file, 3KB)', 'mfbfw'); ?></em></small><br /><br />
    105 
    106                                 </fieldset>
    107                             </td>
    108                         </tr>
    109 
    110                     </tbody>
    111                 </table>
     1<h3><?php _e( 'Behavior Settings <span style="color:orange">(medium)</span>', 'mfbfw' ); ?></h3>
     2<p><?php _e( 'The following settings should be left alone unless you know what you are doing.', 'mfbfw' ); ?></p>
     3<table class="form-table fancy-table" style="clear:none;">
     4    <tbody>
     5    <tr valign="top">
     6        <th scope="row"><?php _e( 'Close on Content Click', 'mfbfw' ); ?></th>
     7        <td>
     8            <fieldset>
     9                <input type="checkbox" class="onoffswitch-checkbox" name="mfbfw[hideOnContentClick]"
     10                       id="hideOnContentClick"<?php if ( isset( $settings['hideOnContentClick'] ) && $settings['hideOnContentClick'] ) {
     11                    echo ' checked="yes"';
     12                } ?> />
     13                <label for="hideOnContentClick" class="onoffswitch-label"></label>
     14                <span class="switch-text"><?php _e( 'Close FancyBox by clicking on the image (default: off)', 'mfbfw' ); ?></span>
     15                <div class="cf"></div>
     16                <p class="description">
     17                    <em><?php _e( '(You may want to leave this off if you display iframed or inline content that containts clickable elements - for example: play buttons for movies, links to other pages)', 'mfbfw' ); ?>
     18                </p>
     19            </fieldset>
     20        </td>
     21    </tr>
     22    <tr valign="top">
     23        <th scope="row"><?php _e( 'Close on Overlay Click', 'mfbfw' ); ?></th>
     24        <td>
     25            <fieldset>
     26                <input type="checkbox" class="onoffswitch-checkbox" name="mfbfw[hideOnOverlayClick]"
     27                       id="hideOnOverlayClick"<?php if ( isset( $settings['hideOnOverlayClick'] ) && $settings['hideOnOverlayClick'] ) {
     28                    echo ' checked="yes"';
     29                } ?> />
     30                <label for="hideOnOverlayClick" class="onoffswitch-label"></label>
     31                <span class="switch-text"><?php _e( 'Close FancyBox by clicking on the overlay sorrounding it (default: on)', 'mfbfw' ); ?></span>
     32                <div class="cf"></div>
     33            </fieldset>
     34        </td>
     35    </tr>
     36    <tr valign="top">
     37        <th scope="row"><?php _e( 'Keyboard navigation;', 'mfbfw' ); ?></th>
     38        <td>
     39            <fieldset>
     40                <input type="checkbox" class="onoffswitch-checkbox" name="mfbfw[enableEscapeButton]"
     41                       id="enableEscapeButton"<?php if ( isset( $settings['enableEscapeButton'] ) && $settings['enableEscapeButton'] ) {
     42                    echo ' checked="yes"';
     43                } ?> />
     44                <label for="enableEscapeButton" class="onoffswitch-label"></label>
     45                <span class="switch-text"><?php _e( 'Enable Keyboard Navigation (default: on)', 'mfbfw' ); ?></span>
     46                <div class="cf"></div>
     47            </fieldset>
     48        </td>
     49    </tr>
     50    <tr valign="top">
     51        <th scope="row"><?php _e( 'Loop Galleries', 'mfbfw' ); ?></th>
     52        <td>
     53            <fieldset>
     54                <input type="checkbox" class="onoffswitch-checkbox" name="mfbfw[cyclic]"
     55                       id="cyclic"<?php if ( isset( $settings['cyclic'] ) && $settings['cyclic'] ) {
     56                    echo ' checked="yes"';
     57                } ?> />
     58                <label for="cyclic" class="onoffswitch-label"></label>
     59                <span class="switch-text"><?php _e( 'This will make galleries loop, allowing you to keep pressing next/back (default: off)', 'mfbfw' ); ?></span>
     60                <div class="cf"></div>
     61            </fieldset>
     62        </td>
     63    </tr>
     64    <tr valign="top">
     65        <th scope="row"><?php _e( 'Mouse Wheel Navigation', 'mfbfw' ); ?></th>
     66        <td>
     67            <fieldset>
     68                <input type="checkbox" class="onoffswitch-checkbox" name="mfbfw[mouseWheel]"
     69                       id="mouseWheel"<?php if ( isset( $settings['mouseWheel'] ) && $settings['mouseWheel'] ) {
     70                    echo ' checked="yes"';
     71                } ?> />
     72                <label for="mouseWheel" class="onoffswitch-label"></label>
     73                <span class="switch-text"><?php _e( 'Lets visitors navigate galleries with the mouse wheel  (default: off)', 'mfbfw' ); ?></span>
     74                <div class="cf"></div>
     75            </fieldset>
     76        </td>
     77    </tr>
     78    <tr valign="top">
     79        <th scope="row"><?php _e( 'Woocommerce:', 'mfbfw' ); ?></th>
     80        <td>
     81            <fieldset>
     82                <input type="checkbox" class="onoffswitch-checkbox" name="mfbfw[disableWoocommercePages]"
     83                       id="disableWoocommercePages"<?php if ( isset( $settings['disableWoocommercePages'] ) && $settings['disableWoocommercePages'] ) {
     84                    echo ' checked="yes"';
     85                } ?> />
     86                <label for="disableWoocommercePages" class="onoffswitch-label"></label>
     87                <span class="switch-text"><?php _e( 'Disable on Woocommerce Shop page.( Default : off )', 'mfbfw' ); ?></span>
     88                <div class="cf"></div>
     89            </fieldset>
     90            <fieldset>
     91                <input type="checkbox" class="onoffswitch-checkbox" name="mfbfw[disableWoocommerceProducts]"
     92                       id="disableWoocommerceProducts"<?php if ( isset( $settings['disableWoocommerceProducts'] ) && $settings['disableWoocommerceProducts'] ) {
     93                    echo ' checked="yes"';
     94                } ?> />
     95                <label for="disableWoocommerceProducts" class="onoffswitch-label"></label>
     96                <span class="switch-text"><?php _e( 'Disable on Woocommerce products.( Default : off )', 'mfbfw' ); ?></span>
     97                <div class="cf"></div>
     98            </fieldset>
     99        </td>
     100    </tr>
     101    </tbody>
     102</table>
  • fancybox-for-wordpress/trunk/lib/admin-tab-galleries.php

    r356623 r1965336  
    1                 <h2><?php _e('Gallery Settings <span style="color:red">(advanced)</span>', 'mfbfw'); ?></h2>
     1<h3><?php _e( 'Gallery Settings <span style="color:red">(advanced)</span>', 'mfbfw' ); ?></h3>
     2<p><?php _e( 'Here you can choose if you want the plugin to group all images into a gallery, or make a gallery for each post. You can also define you own jQuery expression if you like.', 'mfbfw' ); ?></p>
     3<?php
     4//customExpression fix for update ( fancybox uses data-fancybox attribute for grouping galleries )
     5$settings['customExpression'] = str_replace('"rel"','"data-fancybox"',$settings['customExpression']);
    26
    3                 <p><?php _e('Here you can choose if you want the plugin to group all images into a gallery, or make a gallery for each post. You can also define you own jQuery expression if you like.', 'mfbfw'); ?></p>
     7?>
     8<table class="form-table" style="clear:none;">
     9    <tbody>
     10        <tr valign="top">
     11            <th scope="row"><?php _e( 'Gallery Type', 'mfbfw' ); ?></th>
     12            <td>
     13                <input id="galleryTypeAll" class="galleryType" type="radio" value="all" name="mfbfw[galleryType]"<?php if ( $settings[ 'galleryType' ] == 'all' ) echo ' checked="yes"'; ?> />
     14                <label for="galleryTypeAll">
     15                    <?php _e( 'Make a gallery for all images on the page (default)', 'mfbfw' ); ?>
     16                </label><br /><br />
    417
    5                 <table class="form-table" style="clear:none;">
    6                     <tbody>
     18                <input id="galleryTypeNone" class="galleryType" type="radio" value="none" name="mfbfw[galleryType]"<?php if ( $settings[ 'galleryType' ] == 'none' ) echo ' checked="yes"'; ?> />
     19                <label for="galleryTypeNone">
     20                    <?php _e( 'Do not group images in gallery automatically (use this if you want to make galleries manually with the <code>REL</code> attribute)', 'mfbfw' ); ?>
     21                </label><br /><br />
    722
    8                         <tr valign="top">
    9                             <th scope="row"><?php _e('Gallery Type', 'mfbfw'); ?></th>
    10                             <td>
    11                                 <fieldset>
     23                <input id="galleryTypePost" class="galleryType" type="radio" value="post" name="mfbfw[galleryType]"<?php if ( $settings[ 'galleryType' ] == 'post' ) echo ' checked="yes"'; ?> />
     24                <label for="galleryTypePost">
     25                    <?php _e( 'Make a gallery for each post (will only work if your theme uses <code>class="post"</code> on each post, which is common in WordPress', 'mfbfw' ); ?>
     26                </label><br /><br />
    1227
    13                                     <input id="galleryTypeAll" class="galleryType" type="radio" value="all" name="mfbfw[galleryType]"<?php if ($settings['galleryType'] == 'all') echo ' checked="yes"';?> />
    14                                     <label for="galleryTypeAll">
    15                                         <?php _e('Make a gallery for all images on the page (default)', 'mfbfw'); ?>
    16                                     </label><br />
     28                <input id="galleryTypeCustom" class="galleryType" type="radio" value="custom" name="mfbfw[galleryType]"<?php if ( $settings[ 'galleryType' ] == 'custom' ) echo ' checked="yes"'; ?> />
     29                <label for="galleryTypeCustom">
     30                    <?php _e( 'Use a custom expression to apply FancyBox', 'mfbfw' ); ?>
     31                </label><br /><br />
     32                <fieldset>
     33                    <div id="customExpressionBlock">
     34                        <label for="mfbfw[customExpression]">
     35                            <div class="start-editing"><p><?php _e( 'Click to start editing', 'mfbfw' ); ?></p></div>
     36                            <textarea rows="10" cols="50" class="large-text code" name="mfbfw[customExpression]" wrap="physical" id="customExpression"><?php echo ($settings[ 'customExpression' ]); ?></textarea>
     37                        </label><br />
     38                        <p class="description"><strong><em><?php _e( 'Custom expression guidelines:', 'mfbfw' ); ?></em></strong></p><br />
     39                        <p class="description"><em><?php _e('&middot; The custom expression has to apply <code>class="fancybox"</code> to the links where you want to use FancyBox. Do not call the <code>fancybox()</code> function here, the plugin does this for you.', 'mfbfw'); ?></em></p><br />
     40                        <p class="description"><em><?php _e('&middot; The jQuery <code>addClass()</code> function is a good way to add the class to the desired links conserving any existing class.', 'mfbfw'); ?></em></p><br />
     41                        <p class="description"><em><?php _e('&middot; You can use <code>getTitle()</code> in your expression to copy the title attribute from the <code>IMG</code> tag to the <code>A</code> tag, so that FancyBox can show captions.', 'mfbfw'); ?></em></p><br />
     42                        <p class="description"><em><?php _e('&middot; You can use <code>jQuery(thumbnails)</code> like in the example expression to apply FancyBox to thumbnails that link to these extensions: BMP, GIF, JPG, JPEG, PNG (both lowercase and uppercase).', 'mfbfw'); ?></em></p><br />
     43                        <p class="description"><em><?php _e('&middot; If you want to do it manually you can use something like <code>jQuery("a:has(img)[href$=\'.jpg\']")</code> or whatever works for you.', 'mfbfw'); ?></em></p><br />
     44                        <p class="description"><em><?php _e('See the <a href="http://docs.jquery.com/" target="_blank">jQuery Documentation</a> for more help.', 'mfbfw'); ?></em></p><br /><br />
     45                        <p class="description"><strong><em><?php _e('Examples:', 'mfbfw'); ?></em></strong></p><br />
     46                        <p class="description"><em><code>jQuery(thumbnails).addClass(&quot;fancybox&quot;).attr(&quot;rel&quot;,&quot;fancybox&quot;).getTitle();</code></em></p><br />
     47                        <p class="description"><em><code>jQuery&quot;a:has(img)[href$='.jpg']&quot;).addClass&quot;fancybox&quot;).attr(&quot;rel&quot;,&quot;fancybox&quot;).getTitle();</code></em></p><br /><br />
     48                    </div>
     49                </fieldset>
     50            </td>
     51        </tr>
    1752
    18                                     <input id="galleryTypeNone" class="galleryType" type="radio" value="none" name="mfbfw[galleryType]"<?php if ($settings['galleryType'] == 'none') echo ' checked="yes"';?> />
    19                                     <label for="galleryTypeNone">
    20                                         <?php _e('Do not group images in gallery automatically (use this if you want to make galleries manually with the <code>REL</code> attribute)', 'mfbfw'); ?>
    21                                     </label><br />
    22 
    23                                     <input id="galleryTypePost" class="galleryType" type="radio" value="post" name="mfbfw[galleryType]"<?php if ($settings['galleryType'] == 'post') echo ' checked="yes"';?> />
    24                                     <label for="galleryTypePost">
    25                                         <?php _e('Make a gallery for each post (will only work if your theme uses <code>class="post"</code> on each post, which is common in WordPress', 'mfbfw'); ?>
    26                                     </label><br />
    27 
    28                                     <input id="galleryTypeCustom" class="galleryType" type="radio" value="custom" name="mfbfw[galleryType]"<?php if ($settings['galleryType'] == 'custom') echo ' checked="yes"';?> />
    29                                     <label for="galleryTypeCustom">
    30                                         <?php _e('Use a custom expression to apply FancyBox', 'mfbfw'); ?>
    31                                     </label><br /><br />
    32 
    33                                     <div id="customExpressionBlock">
    34 
    35                                     <label for="mfbfw[customExpression]">
    36                                         <textarea rows="10" cols="50" class="large-text code" name="mfbfw[customExpression]" wrap="physical" id="customExpression"><?php echo ($settings['customExpression']); ?></textarea>
    37                                     </label><br />
    38 
    39                                     <small><strong><em><?php _e('Custom expression guidelines:', 'mfbfw'); ?></em></strong></small><br />
    40 
    41                                     <small><em><?php _e('&middot; The custom expression has to apply <code>class="fancybox"</code> to the links where you want to use FancyBox. Do not call the <code>fancybox()</code> function here, the plugin does this for you.', 'mfbfw'); ?></em></small><br />
    42 
    43                                     <small><em><?php _e('&middot; The jQuery <code>addClass()</code> function is a good way to add the class to the desired links conserving any existing class.', 'mfbfw'); ?></em></small><br />
    44 
    45                                     <small><em><?php _e('&middot; You can use <code>getTitle()</code> in your expression to copy the title attribute from the <code>IMG</code> tag to the <code>A</code> tag, so that FancyBox can show captions.', 'mfbfw'); ?></em></small><br />
    46 
    47                                     <small><em><?php _e('&middot; You can use <code>jQuery(thumbnails)</code> like in the example expression to apply FancyBox to thumbnails that link to these extensions: BMP, GIF, JPG, JPEG, PNG (both lowercase and uppercase).', 'mfbfw'); ?></em></small><br />
    48 
    49                                     <small><em><?php _e('&middot; If you want to do it manually you can use something like <code>jQuery("a:has(img)[href$=\'.jpg\']")</code> or whatever works for you.', 'mfbfw'); ?></em></small><br />
    50 
    51                                     <small><em><?php _e('See the <a href="http://docs.jquery.com/" target="_blank">jQuery Documentation</a> for more help.', 'mfbfw'); ?></em></small><br /><br />
    52 
    53                                     <small><strong><em><?php _e('Examples:', 'mfbfw'); ?></em></strong></small><br />
    54 
    55                                     <small><em><code>jQuery(thumbnails).addClass(&quot;fancybox&quot;).attr(&quot;rel&quot;,&quot;fancybox&quot;).getTitle();</code></em></small><br />
    56 
    57                                     <small><em><code>jQuery&quot;a:has(img)[href$='.jpg']&quot;).addClass&quot;fancybox&quot;).attr(&quot;rel&quot;,&quot;fancybox&quot;).getTitle();</code></em></small><br /><br />
    58 
    59                                     </div>
    60 
    61                                 </fieldset>
    62                             </td>
    63                         </tr>
    64 
    65                     </tbody>
    66                 </table>
     53    </tbody>
     54</table>
  • fancybox-for-wordpress/trunk/lib/admin-tab-other.php

    r566930 r1965336  
    1                 <h2><?php _e('Other Settings <span style="color:red">(advanced)</span>', 'mfbfw'); ?></h2>
    2 
    3                 <p><?php _e('These are additional settings for advanced users.', 'mfbfw'); ?></p>
    4 
    5                 <table class="form-table" style="clear:none;">
    6                     <tbody>
    7 
    8                         <tr valign="top">
    9                             <th scope="row"><?php _e('Dimensions', 'mfbfw'); ?></th>
    10                             <td>
    11                                 <fieldset>
    12 
    13                                     <label for="autoDimensions">
    14                                         <input type="checkbox" name="mfbfw[autoDimensions]" id="autoDimensions"<?php if ( isset($settings['autoDimensions']) && $settings['autoDimensions'] ) echo ' checked="yes"';?> />
    15                                         <?php _e('Auto detect dimensions (default: on)', 'mfbfw'); ?>
    16                                     </label><br />
    17 
    18                                     <small><em><?php _e('Only works with <strong>Ajax</strong> and <strong>Inline</strong> content! Flash dimensions won\'t be autodetected so specify them below if necessary. If you want to insert several pieces of flash content with different dimensions you will have to use the <strong>Additional FancyBox Calls</strong> option.', 'mfbfw'); ?></em></small><br /><br />
    19 
    20                                     <label for="frameWidth">
    21                                         <input type="text" name="mfbfw[frameWidth]" id="frameWidth" value="<?php echo $settings['frameWidth']; ?>" size="4" maxlength="4" />
    22                                         <?php _e('Width for iframe and swf content. Also set for inline content if <em>autoDimensions</em> is disabled (default: 560)', 'mfbfw'); ?>
    23                                     </label><br /><br />
    24 
    25                                     <label for="frameHeight">
    26                                         <input type="text" name="mfbfw[frameHeight]" id="frameHeight" value="<?php echo $settings['frameHeight']; ?>" size="4" maxlength="4" />
    27                                         <?php _e('Height for iframe and swf content. Also set for inline content if <em>autoDimensions</em> is disabled (default: 340)', 'mfbfw'); ?>
    28                                     </label><br /><br />
    29 
    30                                 </fieldset>
    31                             </td>
    32                         </tr>
    33 
    34                         <tr valign="top">
    35                             <th scope="row"><?php _e('Load JavaScript in Footer', 'mfbfw'); ?></th>
    36                             <td>
    37                                 <fieldset>
    38 
    39                                     <label for="loadAtFooter">
    40                                         <input type="checkbox" name="mfbfw[loadAtFooter]" id="loadAtFooter"<?php if ( isset($settings['loadAtFooter']) && $settings['loadAtFooter'] ) echo ' checked="yes"';?> />
    41                                         <?php _e('Loads JavaScript at the end of the blog\'s HTML (experimental) (default: off)', 'mfbfw'); ?>
    42                                     </label><br />
    43 
    44                                     <small><em><?php _e('This option won\'t be recognized if you use <strong>Parallel Load</strong> plugin. In that case, you can do this from Parallel Load\'s options.', 'mfbfw'); ?></em></small><br /><br />
    45 
    46                                 </fieldset>
    47                             </td>
    48                         </tr>
    49 
    50                         <tr valign="top">
    51                             <th scope="row"><?php _e('Callbacks', 'mfbfw'); ?></th>
    52                             <td>
    53                                 <fieldset>
    54 
    55                                     <label for="callbackEnable">
    56                                         <input type="checkbox" name="mfbfw[callbackEnable]" id="callbackEnable"<?php if ( isset($settings['callbackEnable']) && $settings['callbackEnable'] ) echo ' checked="yes"';?> />
    57                                         <?php _e('Enable callbacks (default: off)', 'mfbfw'); ?>
    58                                     </label><br />
    59 
    60                                     <small><em><?php _e('Enabling this will show additional settings.', 'mfbfw'); ?></em></small><br /><br />
    61 
    62                                     <div id="callbackBlock">
    63 
    64                                         <label for="callbackOnStart">
    65                                             <?php _e('Callback on <strong>Start</strong> event: Will be called right before attempting to load the content', 'mfbfw'); ?>
    66                                             <textarea rows="10" cols="50" class="large-text code" name="mfbfw[callbackOnStart]" wrap="physical" id="callbackOnStart"><?php echo ($settings['callbackOnStart']); ?></textarea>
    67                                         </label><br /><br />
    68 
    69                                         <label for="callbackOnCancel">
    70                                             <?php _e('Callback on <strong>Cancel</strong> event: Will be called after loading is canceled', 'mfbfw'); ?>
    71                                             <textarea rows="10" cols="50" class="large-text code" name="mfbfw[callbackOnCancel]" wrap="physical" id="callbackOnCancel"><?php echo ($settings['callbackOnCancel']); ?></textarea>
    72                                         </label><br /><br />
    73 
    74                                         <label for="callbackOnComplete">
    75                                             <?php _e('Callback on <strong>Complete</strong> event: Will be called once the content is displayed', 'mfbfw'); ?>
    76                                             <textarea rows="10" cols="50" class="large-text code" name="mfbfw[callbackOnComplete]" wrap="physical" id="callbackOnComplete"><?php echo ($settings['callbackOnComplete']); ?></textarea>
    77                                         </label><br /><br />
    78 
    79                                         <label for="callbackOnCleanup">
    80                                             <?php _e('Callback on <strong>CleanUp</strong> event: Will be called just before closing', 'mfbfw'); ?>
    81                                             <textarea rows="10" cols="50" class="large-text code" name="mfbfw[callbackOnCleanup]" wrap="physical" id="callbackOnCleanup"><?php echo ($settings['callbackOnCleanup']); ?></textarea>
    82                                         </label><br /><br />
    83 
    84                                         <label for="callbackOnClosed">
    85                                             <?php _e('Callback on <strong>Closed</strong> event: Will be called once FancyBox is closed', 'mfbfw'); ?>
    86                                             <textarea rows="10" cols="50" class="large-text code" name="mfbfw[callbackOnClose]" wrap="physical" id="callbackOnClosed"><?php echo ($settings['callbackOnClose']); ?></textarea>
    87                                         </label><br /><br/>
    88 
    89                                         <small><strong><em><?php _e('Example:', 'mfbfw'); ?></em></strong></small><br />
    90                                         <small><em><code>function() { alert('Hello world!'); }</code></em></small><br />
    91                                         <small><em><?php _e('Leave empty any speciic callbacks you don\'t need to use.', 'mfbfw'); ?></em></small><br /><br />
    92 
    93                                     </div>
    94 
    95                                 </fieldset>
    96                             </td>
    97                         </tr>
    98 
    99                     </tbody>
    100                 </table>
     1<h3><?php _e( 'Other Settings <span style="color:red">(advanced)</span>', 'mfbfw' ); ?></h3>
     2<p><?php _e( 'These are additional settings for advanced users.', 'mfbfw' ); ?></p>
     3<table class="form-table fancy-table" style="clear:none;">
     4    <tbody>
     5    <tr valign="top">
     6        <th scope="row"><?php _e( 'Dimensions', 'mfbfw' ); ?></th>
     7        <td>
     8            <fieldset>
     9                <input type="checkbox" class="onoffswitch-checkbox" name="mfbfw[autoDimensions]"
     10                       id="autoDimensions"<?php if ( isset( $settings['autoDimensions'] ) && $settings['autoDimensions'] ) {
     11                    echo ' checked="yes"';
     12                } ?> />
     13                <label for="autoDimensions" class="onoffswitch-label"></label>
     14                <span class="switch-text"><?php _e( 'Auto detect dimensions (default: on)', 'mfbfw' ); ?></span>
     15                <div class="cf"></div>
     16                <p class="description">
     17                    <em><?php _e( 'Only works with <strong>Ajax</strong> and <strong>Inline</strong> content! Flash dimensions won\'t be autodetected so specify them below if necessary. If you want to insert several pieces of flash content with different dimensions you will have to use the <strong>Additional FancyBox Calls</strong> option.', 'mfbfw' ); ?></em>
     18                </p>
     19                <div class="line-spacer"></div>
     20                <label for="frameWidth">
     21                    <input type="text" name="mfbfw[frameWidth]" id="frameWidth"
     22                           value="<?php echo $settings['frameWidth']; ?>" size="4" maxlength="4"/>
     23                    <?php _e( 'Width for iframe and swf content. Also set for inline content if <em>autoDimensions</em> is disabled (default: 560)', 'mfbfw' ); ?>
     24                </label>
     25                <label for="frameHeight">
     26                    <input type="text" name="mfbfw[frameHeight]" id="frameHeight"
     27                           value="<?php echo $settings['frameHeight']; ?>" size="4" maxlength="4"/>
     28                    <?php _e( 'Height for iframe and swf content. Also set for inline content if <em>autoDimensions</em> is disabled (default: 340)', 'mfbfw' ); ?>
     29                </label>
     30            </fieldset>
     31        </td>
     32    </tr>
     33    <tr valign="top">
     34        <th scope="row"><?php _e( 'Load JavaScript in Footer', 'mfbfw' ); ?></th>
     35        <td>
     36            <fieldset>
     37                <input type="checkbox" class="onoffswitch-checkbox" name="mfbfw[loadAtFooter]"
     38                       id="loadAtFooter"<?php if ( isset( $settings['loadAtFooter'] ) && $settings['loadAtFooter'] ) {
     39                    echo ' checked="yes"';
     40                } ?> />
     41                <label for="loadAtFooter" class="onoffswitch-label"></label>
     42                <span class="switch-text"><?php _e( 'Loads JavaScript at the end of the blog\'s HTML (experimental) (default: off)', 'mfbfw' ); ?></span>
     43                <div class="cf"></div>
     44                <p class="description">
     45                    <em><?php _e( 'This option won\'t be recognized if you use <strong>Parallel Load</strong> plugin. In that case, you can do this from Parallel Load\'s options.', 'mfbfw' ); ?></em>
     46                </p>
     47            </fieldset>
     48        </td>
     49    </tr>
     50    <tr valign="top">
     51        <th scope="row"><?php _e( 'Callbacks', 'mfbfw' ); ?></th>
     52        <td>
     53            <fieldset>
     54                <input type="checkbox" class="onoffswitch-checkbox" name="mfbfw[callbackEnable]"
     55                       id="callbackEnable"<?php if ( isset( $settings['callbackEnable'] ) && $settings['callbackEnable'] ) {
     56                    echo ' checked="yes"';
     57                } ?> />
     58                <label for="callbackEnable" class="onoffswitch-label"></label>
     59                <span class="switch-text"><?php _e( 'Enable callbacks (default: off)', 'mfbfw' ); ?></span>
     60                <div class="cf"></div>
     61                <p class="description"><em><?php _e( 'Enabling this will show additional settings.', 'mfbfw' ); ?></em>
     62                </p>
     63                <div class="line-spacer"></div>
     64                <div id="callbackBlock">
     65                    <?php _e( 'Callback on <strong>Start</strong> event: Will be called right before attempting to load the content', 'mfbfw' ); ?>
     66                    <div class="line-spacer"></div>
     67                    <label for="callbackOnStart">
     68                        <div class="start-editing"><p><?php _e( 'Click to start editing', 'mfbfw' ); ?></p></div>
     69                        <textarea rows="10" cols="50" class="large-text code" name="mfbfw[callbackOnStart]"
     70                                  wrap="physical"
     71                                  id="callbackOnStart"><?php echo( $settings['callbackOnStart'] ); ?></textarea>
     72                    </label>
     73                    <?php _e( 'Callback on <strong>Cancel</strong> event: Will be called after loading is canceled', 'mfbfw' ); ?>
     74                    <div class="line-spacer"></div>
     75                    <label for="callbackOnCancel">
     76                        <div class="start-editing"><p><?php _e( 'Click to start editing', 'mfbfw' ); ?></p></div>
     77                        <textarea rows="10" cols="50" class="large-text code" name="mfbfw[callbackOnCancel]"
     78                                  wrap="physical"
     79                                  id="callbackOnCancel"><?php echo( $settings['callbackOnCancel'] ); ?></textarea>
     80                    </label>
     81                    <?php _e( 'Callback on <strong>Complete</strong> event: Will be called once the content is displayed', 'mfbfw' ); ?>
     82                    <div class="line-spacer"></div>
     83                    <label for="callbackOnComplete">
     84                        <div class="start-editing"><p><?php _e( 'Click to start editing', 'mfbfw' ); ?></p></div>
     85                        <textarea rows="10" cols="50" class="large-text code" name="mfbfw[callbackOnComplete]"
     86                                  wrap="physical"
     87                                  id="callbackOnComplete"><?php echo( $settings['callbackOnComplete'] ); ?></textarea>
     88                    </label>
     89                    <?php _e( 'Callback on <strong>CleanUp</strong> event: Will be called just before closing', 'mfbfw' ); ?>
     90                    <div class="line-spacer"></div>
     91                    <label for="callbackOnCleanup">
     92                        <div class="start-editing"><p><?php _e( 'Click to start editing', 'mfbfw' ); ?></p></div>
     93                        <textarea rows="10" cols="50" class="large-text code" name="mfbfw[callbackOnCleanup]"
     94                                  wrap="physical"
     95                                  id="callbackOnCleanup"><?php echo( $settings['callbackOnCleanup'] ); ?></textarea>
     96                    </label>
     97                    <?php _e( 'Callback on <strong>Closed</strong> event: Will be called once FancyBox is closed', 'mfbfw' ); ?>
     98                    <div class="line-spacer"></div>
     99                    <label for="callbackOnClosed">
     100                        <div class="start-editing"><p><?php _e( 'Click to start editing', 'mfbfw' ); ?></p></div>
     101                        <textarea rows="10" cols="50" class="large-text code" name="mfbfw[callbackOnClose]"
     102                                  wrap="physical"
     103                                  id="callbackOnClosed"><?php echo( $settings['callbackOnClose'] ); ?></textarea>
     104                    </label>
     105                    <p class="description"><strong><em><?php _e( 'Example:', 'mfbfw' ); ?></em></strong></p>
     106                    <p class="description"><em><code>function() { alert('Hello world!'); }</code></em></p>
     107                    <p class="description">
     108                        <em><?php _e( 'Leave empty any speciic callbacks you don\'t need to use.', 'mfbfw' ); ?></em>
     109                    </p>
     110                </div>
     111            </fieldset>
     112        </td>
     113    </tr>
     114    </tbody>
     115</table>
     116<h3><?php _e( 'Extra FancyBox Calls <span style="color:red">(advanced)</span>', 'mfbfw' ); ?></h3>
     117<p><?php _e( 'Here you can add as many additional calls to fancybox as you want, with different settings. For example, if you want to use fancybox with iframes or ajax on any specific link, you can configure those calls here without affecting the settings for images.', 'mfbfw' ); ?></p>
     118<p><?php _e( 'For information on the options available you can use here see <a href="http://fancyapps.com/fancybox/3/">FancyBox\'s API & Options page</a>.', 'mfbfw' ); ?></p>
     119<table class="form-table fancy-table" style="clear:none;">
     120    <tbody>
     121    <tr valign="top">
     122        <th scope="row"><?php _e( 'Additional FancyBox Calls', 'mfbfw' ); ?></th>
     123        <td>
     124            <fieldset>
     125                <input type="checkbox" class="onoffswitch-checkbox" name="mfbfw[extraCallsEnable]"
     126                       id="extraCallsEnable"<?php if ( isset( $settings['extraCallsEnable'] ) && $settings['extraCallsEnable'] ) {
     127                    echo ' checked="yes"';
     128                } ?> />
     129                <label for="extraCallsEnable" class="onoffswitch-label"></label>
     130                <span class="switch-text"><?php _e( 'Additional FancyBox Calls (default: off)', 'mfbfw' ); ?></span>
     131                <div class="cf"></div>
     132                <div class="line-spacer"></div>
     133                <div id="extraCallsBlock">
     134                    <label for="extraCalls">
     135                        <div class="start-editing"><p><?php _e( 'Click to start editing', 'mfbfw' ); ?></p></div>
     136                        <textarea rows="20" cols="50" class="large-text code" name="mfbfw[extraCallsData]"
     137                                  wrap="physical"
     138                                  id="extraCalls"><?php echo( $settings['extraCallsData'] ); ?></textarea>
     139                    </label>
     140                    <p class="description"><strong><em><?php _e( 'Example:', 'mfbfw' ); ?></em></strong></p><br/>
     141                    <p class="description"><em><code>
     142                                jQuery("#login a").fancybox({<br/>
     143                                &nbsp;&nbsp;'transitionIn': 'elastic',<br/>
     144                                &nbsp;&nbsp;'speedIn': 600,<br/>
     145                                &nbsp;&nbsp;'speedOut': 200,<br/>
     146                                &nbsp;&nbsp;'type': 'iframe'<br/>
     147                                });
     148                            </code></em></p>
     149                </div>
     150            </fieldset>
     151        </td>
     152    </tr>
     153    </tbody>
     154</table>
     155<h3><?php _e( 'Troubleshooting Settings', 'mfbfw' ); ?></h3>
     156<p>
     157    <span style="font-weight:bold;color:red;"><?php _e( 'Settings in this section should only be changed if you are having problems with the plugin!', 'mfbfw' ); ?></span>
     158</p>
     159<p><?php _e( 'If the plugin doesn\'t seem to work, first you should check for other plugins that may be conflicting with this one, especially other Lightbox, Slimbox, etc. Make sure all your plugins and WordPress itself are up to date (this plugin has only been tested in WordPress 2.7 and above).', 'mfbfw' ); ?></p>
     160<p><?php _e( 'Change them one at a time and test to see if they help. Remember that having a cache plugin may prevent changes from taking effect immidiately, so clear cache after saving changes here or deactivate cache until you finish editing these options.', 'mfbfw' ); ?></p>
     161<br/>
     162<table class="form-table fancy-table" style="clear:none;">
     163    <tbody>
     164    <tr valign="top">
     165        <th scope="row"><?php _e( 'Do not call jQuery', 'mfbfw' ); ?></th>
     166        <td>
     167            <fieldset>
     168                <input type="checkbox" class="onoffswitch-checkbox" name="mfbfw[nojQuery]"
     169                       id="nojQuery"<?php if ( isset( $settings['nojQuery'] ) && $settings['nojQuery'] ) {
     170                    echo ' checked="yes"';
     171                } ?> />
     172                <label for="nojQuery" class="onoffswitch-label"></label>
     173                <span class="switch-text"><?php _e( 'Skip jQuery call. Use this only if jQuery is being loaded twice (default: off)', 'mfbfw' ); ?></span>
     174                <div class="cf"></div>
     175            </fieldset>
     176        </td>
     177    </tr>
     178    </tbody>
     179</table>
     180<h3><?php _e( 'Uninstall', 'mfbfw' ); ?></h3>
     181<p><?php _e( 'Like many other plugins, FancyBox for WordPress stores its settings on your WordPress\' options database table. Actually, these settings are not using more than a couple of kilobytes of space, but if you want to completely uninstall this plugin, check the option below, then save changes, and <strong>when you deactivate the plugin</strong>, all its settings will be removed from the database.', 'mfbfw' ); ?></p>
     182<table class="form-table fancy-table" style="clear:none;">
     183    <tbody>
     184    <tr valign="top">
     185        <th scope="row"><?php _e( 'Remove settings', 'mfbfw' ); ?></th>
     186        <td>
     187            <fieldset>
     188                <input type="checkbox" class="onoffswitch-checkbox" name="mfbfw[uninstall]"
     189                       id="uninstall"<?php if ( isset( $settings['uninstall'] ) && $settings['uninstall'] ) {
     190                    echo ' checked="yes"';
     191                } ?> />
     192                <label for="uninstall" class="onoffswitch-label"></label>
     193                <span class="switch-text"><?php _e( 'Remove Settings when plugin is deactivated from the "Manage Plugins" page. (default: off)', 'mfbfw' ); ?></span>
     194                <div class="cf"></div>
     195            </fieldset>
     196        </td>
     197    </tr>
     198    </tbody>
     199</table>
  • fancybox-for-wordpress/trunk/lib/admin-tab-support.php

    r1083853 r1965336  
    1                 <h2><?php _e('Support', 'mfbfw'); ?></h2>
     1<h3><?php _e( 'Help with Fancybox' ); ?></h3>
     2<ul style="list-style-type:disc;padding-left:15px;">
     3    <li><?php _e( 'If you have problems or questions about FancyBox itself (and not this WordPress plugin), please start with these links: <a target="_blank" href="http://fancyapps.com/fancybox/3/">How-To</a> & <a target="_blank" href="http://fancyapps.com/fancybox/3/docs/">Documentation</a>.<br />If that does not help, go to <a target="_blank" href="http://groups.google.com/group/fancybox">the FancyBox Google Group</a>, use the <strong>Search</strong> option, and if necesary, post your question.', 'mfbfw' ); ?></li>
     4</ul>
    25
    3                 <h3><?php _e('Help with Fancybox'); ?></h3>
    4                 <ul style="list-style-type:disc;padding-left:15px;">
    5                     <li><?php _e('If you have problems or questions about FancyBox itself (and not this WordPress plugin), please start with these links: <a target="_blank" href="http://fancybox.net/howto">How-To</a> & <a target="_blank" href="http://fancybox.net/faq">FAQ</a>.<br />If that does not help, go to <a href="http://groups.google.com/group/fancybox">the FancyBox Google Group</a>, use the <strong>Search</strong> option, and if necesary, post your question.', 'mfbfw'); ?></li>
    6                 </ul>
     6<h3><?php _e( 'Help with Fancybox for WordPress plugin' ); ?></h3>
     7<ul style="list-style-type:disc;padding-left:15px;">
     8    <li><?php _e( 'Try to localize the problem (switch your theme and deactivate plugins until you find the source of the problem). You can also try the Troubleshooting settings of this plugin if necesary.', 'mfbfw' ); ?></li>
     9    <li><?php _e( "Try reverting the plugin's settings to their defaults with the button below.", 'mfbfw' ); ?></li>
     10    <li><?php _e( 'If you still can not get the plugin to work, <a target="_blank" href="http://wordpress.org/support/plugin/fancybox-for-wordpress#postform">write a post in the WordPress Support forums</a> explaining the problem or take a look and the <a target="_blank" href="http://wordpress.org/support/plugin/fancybox-for-wordpress">already posted messages</a>.', 'mfbfw' ); ?></li>
     11</ul>
    712
    8                 <h3><?php _e('Help with Fancybox for WordPress plugin'); ?></h3>
    9                 <ul style="list-style-type:disc;padding-left:15px;">
    10                     <li><?php _e('Try to localize the problem (switch your theme and deactivate plugins until you find the source of the problem). You can also try the Troubleshooting settings of this plugin if necesary.', 'mfbfw'); ?></li>
    11                     <li><?php _e("Try reverting the plugin's settings to their defaults with the button below.", 'mfbfw'); ?></li>
    12                     <li><?php _e('If you still can not get the plugin to work, <a target="_blank" href="http://wordpress.org/support/plugin/fancybox-for-wordpress#postform">write a post in the WordPress Support forums</a> explaining the problem or take a look and the <a target="_blank" href="http://wordpress.org/support/plugin/fancybox-for-wordpress">already posted messages</a>.', 'mfbfw'); ?></li>
    13                 </ul>
    14 
    15                 <p style="font-weight:bold;color:red"><span style="color:#333"><?php _e('IMPORTANT:'); ?></span> <?php _e('When posting your problem please provide a link to your blog and the page where the error is found, and all relevant information you can, especially your theme, plugins, etc.'); ?></p>
     13<p style="font-weight:bold;color:red"><span style="color:#333"><?php _e( 'IMPORTANT:' ); ?></span> <?php _e( 'When posting your problem please provide a link to your blog and the page where the error is found, and all relevant information you can, especially your theme, plugins, etc.' ); ?></p>
  • fancybox-for-wordpress/trunk/readme.txt

    r1960611 r1965336  
    33Tags: fancybox, lightbox, jquery, gallery, image, images, photo, photos, picture, pictures, zoom
    44Requires at least: 3.4
    5 Tested up to: 4.7
    6 Stable tag: trunk
     5Tested up to: 4.9
     6Stable tag: 3.1.0
    77License: GPL/MIT
    88
     
    3232== Changelog ==
    3333
    34 = 3.0.14 =
    35 * Minor fixes.
     34= 3.1.0 =
     35* Updated FancyBox library to the latest version
     36* Changed Admin UI
    3637
    3738= 3.0.12 =
Note: See TracChangeset for help on using the changeset viewer.