Changeset 1965336
- Timestamp:
- 10/29/2018 07:13:43 PM (7 years ago)
- Location:
- fancybox-for-wordpress
- Files:
-
- 162 added
- 7 deleted
- 12 edited
-
tags/3.0.14 (added)
-
tags/3.0.14/admin.php (added)
-
tags/3.0.14/css (added)
-
tags/3.0.14/css/fancybox-admin.css (added)
-
tags/3.0.14/css/img (added)
-
tags/3.0.14/css/img/extra_donate.png (added)
-
tags/3.0.14/css/img/extra_twitter.png (added)
-
tags/3.0.14/css/img/ui-bg_flat_75_ffffff_40x100.png (added)
-
tags/3.0.14/css/img/ui-bg_glass_65_ffffff_1x400.png (added)
-
tags/3.0.14/css/img/ui-bg_glass_75_dadada_1x400.png (added)
-
tags/3.0.14/css/img/ui-bg_glass_75_e6e6e6_1x400.png (added)
-
tags/3.0.14/css/img/ui-bg_highlight-soft_75_cccccc_1x100.png (added)
-
tags/3.0.14/css/jquery-ui.css (added)
-
tags/3.0.14/fancybox (added)
-
tags/3.0.14/fancybox.php (added)
-
tags/3.0.14/fancybox/blank.gif (added)
-
tags/3.0.14/fancybox/fancy_close.png (added)
-
tags/3.0.14/fancybox/fancy_loading.png (added)
-
tags/3.0.14/fancybox/fancy_nav_left.png (added)
-
tags/3.0.14/fancybox/fancy_nav_right.png (added)
-
tags/3.0.14/fancybox/fancy_shadow_e.png (added)
-
tags/3.0.14/fancybox/fancy_shadow_n.png (added)
-
tags/3.0.14/fancybox/fancy_shadow_ne.png (added)
-
tags/3.0.14/fancybox/fancy_shadow_nw.png (added)
-
tags/3.0.14/fancybox/fancy_shadow_s.png (added)
-
tags/3.0.14/fancybox/fancy_shadow_se.png (added)
-
tags/3.0.14/fancybox/fancy_shadow_sw.png (added)
-
tags/3.0.14/fancybox/fancy_shadow_w.png (added)
-
tags/3.0.14/fancybox/fancy_title_left.png (added)
-
tags/3.0.14/fancybox/fancy_title_main.png (added)
-
tags/3.0.14/fancybox/fancy_title_over.png (added)
-
tags/3.0.14/fancybox/fancy_title_right.png (added)
-
tags/3.0.14/fancybox/fancybox-x.png (added)
-
tags/3.0.14/fancybox/fancybox-y.png (added)
-
tags/3.0.14/fancybox/fancybox.css (added)
-
tags/3.0.14/fancybox/fancybox.png (added)
-
tags/3.0.14/fancybox/jquery.fancybox.js (added)
-
tags/3.0.14/js (added)
-
tags/3.0.14/js/admin.js (added)
-
tags/3.0.14/js/jquery.easing.1.3.min.js (added)
-
tags/3.0.14/js/jquery.easing.min.js (added)
-
tags/3.0.14/js/jquery.mousewheel.3.0.4.pack.js (added)
-
tags/3.0.14/js/jquery.mousewheel.pack.js (added)
-
tags/3.0.14/languages (added)
-
tags/3.0.14/languages/mfbfw-es_ES.mo (added)
-
tags/3.0.14/languages/mfbfw-es_ES.po (added)
-
tags/3.0.14/languages/mfbfw-ja.po (added)
-
tags/3.0.14/languages/mfbfw-tr_TR.po (added)
-
tags/3.0.14/languages/mfbfw.pot (added)
-
tags/3.0.14/lib (added)
-
tags/3.0.14/lib/admin-head.php (added)
-
tags/3.0.14/lib/admin-tab-animations.php (added)
-
tags/3.0.14/lib/admin-tab-appearance.php (added)
-
tags/3.0.14/lib/admin-tab-behaviour.php (added)
-
tags/3.0.14/lib/admin-tab-calls.php (added)
-
tags/3.0.14/lib/admin-tab-galleries.php (added)
-
tags/3.0.14/lib/admin-tab-info.php (added)
-
tags/3.0.14/lib/admin-tab-other.php (added)
-
tags/3.0.14/lib/admin-tab-support.php (added)
-
tags/3.0.14/lib/admin-tab-troubleshooting.php (added)
-
tags/3.0.14/lib/admin-tab-uninstall.php (added)
-
tags/3.0.14/readme.txt (added)
-
tags/3.0.14/screenshot-1.png (added)
-
tags/3.0.14/screenshot-2.png (added)
-
tags/3.1.0 (added)
-
tags/3.1.0/admin.php (added)
-
tags/3.1.0/assets (added)
-
tags/3.1.0/assets/css (added)
-
tags/3.1.0/assets/css/fancybox-admin.css (added)
-
tags/3.1.0/assets/css/fancybox.css (added)
-
tags/3.1.0/assets/css/jquery-ui.css (added)
-
tags/3.1.0/assets/images (added)
-
tags/3.1.0/assets/images/blank.gif (added)
-
tags/3.1.0/assets/images/fancy_close.png (added)
-
tags/3.1.0/assets/images/fancy_loading.png (added)
-
tags/3.1.0/assets/images/fancy_nav_left.png (added)
-
tags/3.1.0/assets/images/fancy_nav_right.png (added)
-
tags/3.1.0/assets/images/fancy_shadow_e.png (added)
-
tags/3.1.0/assets/images/fancy_shadow_n.png (added)
-
tags/3.1.0/assets/images/fancy_shadow_ne.png (added)
-
tags/3.1.0/assets/images/fancy_shadow_nw.png (added)
-
tags/3.1.0/assets/images/fancy_shadow_s.png (added)
-
tags/3.1.0/assets/images/fancy_shadow_se.png (added)
-
tags/3.1.0/assets/images/fancy_shadow_sw.png (added)
-
tags/3.1.0/assets/images/fancy_shadow_w.png (added)
-
tags/3.1.0/assets/images/fancy_title_left.png (added)
-
tags/3.1.0/assets/images/fancy_title_main.png (added)
-
tags/3.1.0/assets/images/fancy_title_over.png (added)
-
tags/3.1.0/assets/images/fancy_title_right.png (added)
-
tags/3.1.0/assets/images/fancybox-x.png (added)
-
tags/3.1.0/assets/images/fancybox-y.png (added)
-
tags/3.1.0/assets/images/fancybox.png (added)
-
tags/3.1.0/assets/images/icon.jpg (added)
-
tags/3.1.0/assets/images/modula-300x300.jpg (added)
-
tags/3.1.0/assets/js (added)
-
tags/3.1.0/assets/js/admin.js (added)
-
tags/3.1.0/assets/js/jquery.fancybox.js (added)
-
tags/3.1.0/assets/js/rollback.js (added)
-
tags/3.1.0/fancybox.php (added)
-
tags/3.1.0/languages (added)
-
tags/3.1.0/languages/mfbfw-de_DE.mo (added)
-
tags/3.1.0/languages/mfbfw-es_ES.mo (added)
-
tags/3.1.0/languages/mfbfw-es_ES.po (added)
-
tags/3.1.0/languages/mfbfw-ja.mo (added)
-
tags/3.1.0/languages/mfbfw-ja.po (added)
-
tags/3.1.0/languages/mfbfw-pl_PL.mo (added)
-
tags/3.1.0/languages/mfbfw-pl_PL.po (added)
-
tags/3.1.0/languages/mfbfw-tr_TR.mo (added)
-
tags/3.1.0/languages/mfbfw-tr_TR.po (added)
-
tags/3.1.0/languages/mfbfw.pot (added)
-
tags/3.1.0/lib (added)
-
tags/3.1.0/lib/admin-head.php (added)
-
tags/3.1.0/lib/admin-tab-animations.php (added)
-
tags/3.1.0/lib/admin-tab-appearance.php (added)
-
tags/3.1.0/lib/admin-tab-behaviour.php (added)
-
tags/3.1.0/lib/admin-tab-galleries.php (added)
-
tags/3.1.0/lib/admin-tab-other.php (added)
-
tags/3.1.0/lib/admin-tab-support.php (added)
-
tags/3.1.0/lib/class-fbfw-plugin-rollback.php (added)
-
tags/3.1.0/lib/class-fbfw-rollback.php (added)
-
tags/3.1.0/readme.txt (added)
-
tags/3.1.0/screenshot-1.png (added)
-
tags/3.1.0/screenshot-2.png (added)
-
trunk/admin.php (modified) (1 diff)
-
trunk/assets (added)
-
trunk/assets/css (added)
-
trunk/assets/css/fancybox-admin.css (added)
-
trunk/assets/css/fancybox.css (added)
-
trunk/assets/css/jquery-ui.css (added)
-
trunk/assets/images (added)
-
trunk/assets/images/blank.gif (added)
-
trunk/assets/images/fancy_close.png (added)
-
trunk/assets/images/fancy_loading.png (added)
-
trunk/assets/images/fancy_nav_left.png (added)
-
trunk/assets/images/fancy_nav_right.png (added)
-
trunk/assets/images/fancy_shadow_e.png (added)
-
trunk/assets/images/fancy_shadow_n.png (added)
-
trunk/assets/images/fancy_shadow_ne.png (added)
-
trunk/assets/images/fancy_shadow_nw.png (added)
-
trunk/assets/images/fancy_shadow_s.png (added)
-
trunk/assets/images/fancy_shadow_se.png (added)
-
trunk/assets/images/fancy_shadow_sw.png (added)
-
trunk/assets/images/fancy_shadow_w.png (added)
-
trunk/assets/images/fancy_title_left.png (added)
-
trunk/assets/images/fancy_title_main.png (added)
-
trunk/assets/images/fancy_title_over.png (added)
-
trunk/assets/images/fancy_title_right.png (added)
-
trunk/assets/images/fancybox-x.png (added)
-
trunk/assets/images/fancybox-y.png (added)
-
trunk/assets/images/fancybox.png (added)
-
trunk/assets/images/icon.jpg (added)
-
trunk/assets/images/modula-300x300.jpg (added)
-
trunk/assets/js (added)
-
trunk/assets/js/admin.js (added)
-
trunk/assets/js/jquery.fancybox.js (added)
-
trunk/assets/js/rollback.js (added)
-
trunk/css (deleted)
-
trunk/fancybox (deleted)
-
trunk/fancybox.php (modified) (5 diffs)
-
trunk/js (deleted)
-
trunk/languages/mfbfw-de_DE.mo (added)
-
trunk/languages/mfbfw-es_ES.po (modified) (1 diff)
-
trunk/languages/mfbfw-ja.mo (added)
-
trunk/languages/mfbfw-pl_PL.mo (added)
-
trunk/languages/mfbfw-pl_PL.po (added)
-
trunk/languages/mfbfw-tr_TR.mo (added)
-
trunk/languages/mfbfw.pot (modified) (32 diffs)
-
trunk/lib/admin-head.php (modified) (1 diff)
-
trunk/lib/admin-tab-animations.php (modified) (1 diff)
-
trunk/lib/admin-tab-appearance.php (modified) (1 diff)
-
trunk/lib/admin-tab-behaviour.php (modified) (1 diff)
-
trunk/lib/admin-tab-calls.php (deleted)
-
trunk/lib/admin-tab-galleries.php (modified) (1 diff)
-
trunk/lib/admin-tab-info.php (deleted)
-
trunk/lib/admin-tab-other.php (modified) (1 diff)
-
trunk/lib/admin-tab-support.php (modified) (1 diff)
-
trunk/lib/admin-tab-troubleshooting.php (deleted)
-
trunk/lib/admin-tab-uninstall.php (deleted)
-
trunk/lib/class-fbfw-plugin-rollback.php (added)
-
trunk/lib/class-fbfw-rollback.php (added)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
fancybox-for-wordpress/trunk/admin.php
r1493816 r1965336 2 2 3 3 function mfbfw_options_page() { 4 5 4 require_once( FBFW_PATH . 'lib/admin-head.php' ); 6 5 7 6 ?> 8 7 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> 10 16 11 <div id="icon-plugins" class="icon32"></div><h2><?php printf( __('Fancybox for WordPress (version %s)', 'mfbfw'), FBFW_VERSION ); ?></h2>17 <br/> 12 18 13 <br />19 <form method="post" action="options.php" id="options"> 14 20 15 <form method="post" action="options.php" id="options">21 <?php settings_fields( 'mfbfw-options' ); ?> 16 22 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> 18 32 19 <div id="fbfwTabs"> 33 <div id="fbfw-appearance"> 34 <?php require_once( FBFW_PATH . 'lib/admin-tab-appearance.php' ); ?> 35 </div> 20 36 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> 33 40 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> 37 44 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> 41 48 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> 45 52 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> 49 56 50 <div id="fbfw-galleries"> 51 <?php require_once ( FBFW_PATH . 'lib/admin-tab-galleries.php' ); ?> 52 </div> 57 </div> 53 58 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> 57 63 58 <div id="fbfw-calls"> 59 <?php require_once ( FBFW_PATH . 'lib/admin-tab-calls.php' ); ?> 60 </div> 64 </form> 61 65 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> 65 73 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;"> 69 76 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> 73 78 74 </div>79 </div> 75 80 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> 79 88 80 </form> 89 <?php 81 90 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'; 89 93 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 } 91 99 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 } 93 106 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 } 95 136 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>'; 97 138 98 <?php 139 } 99 140 141 ?> 142 143 </a> 144 </div> 145 146 147 <?php 100 148 } 101 149 -
fancybox-for-wordpress/trunk/fancybox.php
r1960611 r1965336 1 1 <?php 2 2 3 /* 3 4 Plugin Name: FancyBox for WordPress 4 5 Plugin URI: https://wordpress.org/plugins/fancybox-for-wordpress/ 5 Description: Integrates FancyBox by Janis Skarnelisinto WordPress.6 Version: 3. 0.146 Description: Integrates <a href="http://fancyapps.com/fancybox/3/">FancyBox 3</a> into WordPress. 7 Version: 3.1.0 7 8 Author: Colorlib 8 Author URI: https://colorlib.com/ 9 Author URI: https://colorlib.com/wp/ 9 10 10 11 * FancyBox is Copyright (c) 2008 - 2010 Janis Skarnelis … … 13 14 * http://www.gnu.org/licenses/gpl.html 14 15 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 22 define( 'FBFW_VERSION', '3.1.0' ); 23 define( 'FBFW_PATH', plugin_dir_path( __FILE__ ) ); 24 define( 'FBFW_URL', plugin_dir_url( __FILE__ ) ); 25 define( 'FBFW_PLUGIN_BASE', plugin_basename( __FILE__ ) ); 26 define( 'FBFW_PREVIOUS_PLUGIN_VERSION', '3.0.14' ); 27 define( 'FBFW_FILE_', __FILE__ ); 28 define( '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 36 if ( 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 } 28 53 29 54 /** 30 55 * Store default settings in an array 31 56 */ 32 33 57 function mfbfw_defaults() { 34 58 35 $defaults_array = array( 36 59 $default_settings = array( 37 60 // 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', 53 75 // 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', 65 81 // 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' => '', 74 91 // 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' => '', 100 115 ); 101 116 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 } 121 119 122 120 /** 123 121 * If requested, when plugin is deactivated, remove settings 124 122 */ 125 126 function mfbfw_uninstall() { 127 $settings = get_option( 'mfbfw' ); 128 if ( isset($settings['uninstall']) && $settings['uninstall'] ) { 123 function mfbfw_deactivate() { 124 125 global $mfbfw; 126 127 if ( isset( $mfbfw['uninstall'] ) && $mfbfw['uninstall'] ) { 129 128 delete_option( 'mfbfw' ); 130 129 delete_option( 'mfbfw_active_version' ); 131 130 } 132 131 } 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 133 register_deactivation_hook( __FILE__, 'mfbfw_deactivate' ); 134 135 /** 136 * Load FancyBox JS with jQuery and 137 */ 138 function 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 180 add_action( 'wp_enqueue_scripts', 'mfbfw_enqueue_scripts' ); 181 182 /** 183 * Print inline styles and load FancyBox with the selected settings 184 */ 185 function 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 378 if ( 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 */ 387 function 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 394 add_action( 'init', 'mfbfw_textdomain' ); 395 396 397 /** 398 * Insert Rollback link for plugin in plugins page 399 */ 400 401 function 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 410 add_action( 'plugin_action_links_' . plugin_basename( __FILE__ ), 'extra_settings_links' ); 411 412 413 /** 414 * Register options 415 */ 416 function mfbfw_admin_options() { 142 417 143 418 $settings = get_option( 'mfbfw' ); 144 419 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' ) ) { 344 423 345 424 $defaults_array = mfbfw_defaults(); // Store defaults in an array 346 425 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' ) ); 348 427 die; 349 350 428 } 351 429 } 352 430 353 431 register_setting( 'mfbfw-options', 'mfbfw' ); 354 355 } 432 } 433 356 434 add_action( 'admin_init', 'mfbfw_admin_options' ); 357 435 358 359 360 436 /** 361 437 * Admin options page 362 438 */ 363 364 439 function mfbfw_admin_menu() { 365 440 … … 370 445 add_action( 'admin_print_styles-' . $mfbfwadmin, 'mfbfw_admin_styles' ); 371 446 add_action( 'admin_print_scripts-' . $mfbfwadmin, 'mfbfw_admin_scripts' ); 372 373 } 374 add_action('admin_menu', 'mfbfw_admin_menu'); 375 376 447 } 448 449 add_action( 'admin_menu', 'mfbfw_admin_menu' ); 377 450 378 451 /** 379 452 * Load Admin CSS & JS (called in mfbfw_admin_menu()) 380 453 */ 381 382 454 function 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 385 458 } 386 459 387 460 function 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 } 393 468 394 469 /** … … 396 471 */ 397 472 398 function mfbfw_plugin_action_links($links, $file) { 473 474 require FBFW_PATH . '/lib/class-fbfw-plugin-rollback.php'; 475 require FBFW_PATH . '/lib/class-fbfw-rollback.php'; 476 477 function mfbfw_plugin_action_links( 478 $links, 479 $file 480 ) { 399 481 400 482 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 ) { 404 488 $settings_link = '<a href="options-general.php?page=fancybox-for-wordpress">' . __( 'Settings', 'mfbfw' ) . '</a>'; 405 489 array_unshift( $links, $settings_link ); … … 407 491 408 492 return $links; 409 410 } 493 } 494 411 495 add_filter( 'plugin_action_links', 'mfbfw_plugin_action_links', 10, 2 ); 496 497 /* 498 * Transform from Hex to rgb or rgba 499 */ 500 501 function 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 */ 517 function 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 532 add_action( 'wp_ajax_mfbfw_activate_link', 'mfbfw_get_activate_link' ); 533 function 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 373 373 374 374 #: lib/admin-tab-behaviour.php:81 375 msgid " CyclicGalleries"375 msgid "Loop Galleries" 376 376 msgstr "Galerías Cíclicas" 377 377 378 378 #: lib/admin-tab-behaviour.php:87 379 379 msgid "" 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 " 381 381 "(default: off)" 382 382 msgstr "" -
fancybox-for-wordpress/trunk/languages/mfbfw.pot
r1084242 r1965336 14 14 "Language-Team: LANGUAGE <[email protected]>\n" 15 15 16 #: admin.php:11 16 #: admin.php:12 17 #, php-format 17 18 msgid "Fancybox for WordPress (version %s)" 18 19 msgstr "" 19 20 20 #: admin.php:22 21 msgid "Info" 22 msgstr "" 23 24 #: admin.php:23 21 #: admin.php:26 25 22 msgid "Appearance" 26 23 msgstr "" 27 24 28 #: admin.php:2 425 #: admin.php:27 29 26 msgid "Animations" 30 27 msgstr "" 31 28 32 #: admin.php:2 529 #: admin.php:28 33 30 msgid "Behaviour" 34 31 msgstr "" 35 32 36 #: admin.php:2 633 #: admin.php:29 37 34 msgid "Galleries" 38 35 msgstr "" 39 36 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 38 msgid "Misc." 39 msgstr "" 40 41 #: admin.php:31 53 42 msgid "Support" 54 43 msgstr "" 55 44 56 #: admin.php:31 lib/admin-tab-uninstall.php:1 57 msgid "Uninstall" 58 msgstr "" 59 60 #: admin.php:77 45 #: admin.php:62 61 46 msgid "Save Changes" 62 47 msgstr "" 63 48 64 #: admin.php: 8549 #: admin.php:71 65 50 msgid "Revert to defaults" 66 51 msgstr "" 67 52 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 54 msgid "Rollback version" 55 msgstr "" 56 57 #: fancybox.php:469 81 58 msgid "Settings" 82 59 msgstr "" … … 92 69 msgstr "" 93 70 94 #: lib/admin-tab-animations.php: 971 #: lib/admin-tab-animations.php:8 95 72 msgid "Zoom Options" 96 73 msgstr "" 97 74 98 #: lib/admin-tab-animations.php:1 575 #: lib/admin-tab-animations.php:16 99 76 msgid "Change content transparency during zoom animations (default: on)" 100 77 msgstr "" 101 78 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 80 msgid "Animation Type" 81 msgstr "" 82 83 #: lib/admin-tab-animations.php:33 84 msgid "Animation type when opening FancyBox. (default: fade)" 85 msgstr "" 86 87 #: lib/admin-tab-animations.php:45 88 msgid "Speed in miliseconds of the FancyBox opening animation (default: 500)" 89 msgstr "" 90 91 #: lib/admin-tab-animations.php:52 92 msgid "Animation between slides Options" 93 msgstr "" 94 95 #: lib/admin-tab-animations.php:63 96 msgid "Select Animation type for the slides(default: fade)" 97 msgstr "" 98 99 #: lib/admin-tab-animations.php:74 111 100 msgid "" 112 101 "Speed in miliseconds of the animation when navigating thorugh gallery items " … … 114 103 msgstr "" 115 104 116 #: lib/admin-tab-animations.php:59117 msgid "Transition Type"118 msgstr ""119 120 #: lib/admin-tab-animations.php:73121 msgid "Transition type when opening FancyBox. (default: fade)"122 msgstr ""123 124 #: lib/admin-tab-animations.php:86125 msgid "Transition type when closing FancyBox. (default: fade)"126 msgstr ""127 128 #: lib/admin-tab-animations.php:94129 msgid "Easing"130 msgstr ""131 132 #: lib/admin-tab-animations.php:100133 msgid "Activate easing (default: off)"134 msgstr ""135 136 #: lib/admin-tab-animations.php:103137 msgid "(Will load one additional javascript file, 8KB)"138 msgstr ""139 140 #: lib/admin-tab-animations.php:117141 msgid "Easing method when opening FancyBox. (default: easeOutBack)"142 msgstr ""143 144 #: lib/admin-tab-animations.php:120145 msgid "(Requires opening transition type to be set to elastic)"146 msgstr ""147 148 #: lib/admin-tab-animations.php:132149 msgid "Easing method when closing FancyBox. (default: easeInBack)"150 msgstr ""151 152 #: lib/admin-tab-animations.php:135153 msgid "(Requires closing transition type to be set to elastic)"154 msgstr ""155 156 #: lib/admin-tab-animations.php:147157 msgid ""158 "Easing method when navigating through gallery items. (default: "159 "easeInOutQuart)"160 msgstr ""161 162 #: lib/admin-tab-animations.php:150163 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 170 105 #: lib/admin-tab-appearance.php:1 171 106 msgid "Appearance Settings <span style=\"color:green\">(basic)</span>" … … 178 113 msgstr "" 179 114 180 #: lib/admin-tab-appearance.php:9 115 #: lib/admin-tab-appearance.php:8 116 msgid "Close Button" 117 msgstr "" 118 119 #: lib/admin-tab-appearance.php:17 120 msgid "Show Close button (default: on)" 121 msgstr "" 122 123 #: lib/admin-tab-appearance.php:24 124 msgid "Toolbar" 125 msgstr "" 126 127 #: lib/admin-tab-appearance.php:33 128 msgid "Show Toolbar (default: on)" 129 msgstr "" 130 131 #: lib/admin-tab-appearance.php:40 181 132 msgid "Border" 182 133 msgstr "" 183 134 184 #: lib/admin-tab-appearance.php: 15135 #: lib/admin-tab-appearance.php:48 185 136 msgid "Show Border (default: off)" 186 137 msgstr "" 187 138 188 #: lib/admin-tab-appearance.php: 22139 #: lib/admin-tab-appearance.php:55 189 140 msgid "HTML color of the border (default: #BBBBBB)" 190 141 msgstr "" 191 142 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 221 144 msgid "Padding" 222 145 msgstr "" 223 146 224 #: lib/admin-tab-appearance.php: 77147 #: lib/admin-tab-appearance.php:69 225 148 msgid "HTML color of the padding (default: #FFFFFF)" 226 149 msgstr "" 227 150 228 #: lib/admin-tab-appearance.php: 80151 #: lib/admin-tab-appearance.php:70 229 152 msgid "" 230 153 "(This should be left on #FFFFFF (white) if you want to display anything " … … 232 155 msgstr "" 233 156 234 #: lib/admin-tab-appearance.php: 84157 #: lib/admin-tab-appearance.php:78 235 158 msgid "Padding size in pixels (default: 10)" 236 159 msgstr "" 237 160 238 #: lib/admin-tab-appearance.php: 92161 #: lib/admin-tab-appearance.php:85 239 162 msgid "Overlay Options" 240 163 msgstr "" 241 164 242 #: lib/admin-tab-appearance.php:9 8165 #: lib/admin-tab-appearance.php:93 243 166 msgid "Add overlay (default: on)" 244 167 msgstr "" 245 168 246 #: lib/admin-tab-appearance.php:10 5169 #: lib/admin-tab-appearance.php:100 247 170 msgid "HTML color of the overlay (default: #666666)" 248 171 msgstr "" 249 172 250 #: lib/admin-tab-appearance.php:1 18173 #: lib/admin-tab-appearance.php:108 251 174 msgid "Opacity of overlay. 0 is transparent, 1 is opaque (default: 0.3)" 252 175 msgstr "" 253 176 254 #: lib/admin-tab-appearance.php:1 28177 #: lib/admin-tab-appearance.php:116 255 178 msgid "Title" 256 179 msgstr "" 257 180 258 #: lib/admin-tab-appearance.php:1 34181 #: lib/admin-tab-appearance.php:124 259 182 msgid "Show the title (default: on)" 260 183 msgstr "" 261 184 262 #: lib/admin-tab-appearance.php:141 185 #: lib/admin-tab-appearance.php:130 186 msgid "Title size (default: 14px)" 187 msgstr "" 188 189 #: lib/admin-tab-appearance.php:139 263 190 msgid "Inside (default)" 264 191 msgstr "" … … 268 195 msgstr "" 269 196 270 #: lib/admin-tab-appearance.php:15 1197 #: lib/admin-tab-appearance.php:153 271 198 msgid "Over" 272 199 msgstr "" 273 200 274 #: lib/admin-tab-appearance.php:1 58201 #: lib/admin-tab-appearance.php:162 275 202 msgid "Title text color (default: #333333)" 276 203 msgstr "" 277 204 278 #: lib/admin-tab-appearance.php:16 1205 #: lib/admin-tab-appearance.php:163 279 206 msgid "(Should contrast with the padding color set above)" 280 207 msgstr "" 281 208 282 #: lib/admin-tab-appearance.php:17 2209 #: lib/admin-tab-appearance.php:171 283 210 msgid "Navigation Arrows" 284 211 msgstr "" 285 212 286 #: lib/admin-tab-appearance.php:17 8213 #: lib/admin-tab-appearance.php:179 287 214 msgid "Show the navigation arrows (default: on)" 288 215 msgstr "" … … 292 219 msgstr "" 293 220 294 #: lib/admin-tab-behaviour.php: 3221 #: lib/admin-tab-behaviour.php:2 295 222 msgid "" 296 223 "The following settings should be left alone unless you know what you are " … … 298 225 msgstr "" 299 226 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 318 228 msgid "Close on Content Click" 319 229 msgstr "" 320 230 321 #: lib/admin-tab-behaviour.php: 43231 #: lib/admin-tab-behaviour.php:14 322 232 msgid "Close FancyBox by clicking on the image (default: off)" 323 233 msgstr "" 324 234 325 #: lib/admin-tab-behaviour.php: 46235 #: lib/admin-tab-behaviour.php:17 326 236 msgid "" 327 237 "(You may want to leave this off if you display iframed or inline content " … … 330 240 msgstr "" 331 241 332 #: lib/admin-tab-behaviour.php: 53242 #: lib/admin-tab-behaviour.php:24 333 243 msgid "Close on Overlay Click" 334 244 msgstr "" 335 245 336 #: lib/admin-tab-behaviour.php: 59246 #: lib/admin-tab-behaviour.php:32 337 247 msgid "Close FancyBox by clicking on the overlay sorrounding it (default: on)" 338 248 msgstr "" 339 249 340 #: lib/admin-tab-behaviour.php: 67341 msgid " Close with "Esc""342 msgstr "" 343 344 #: lib/admin-tab-behaviour.php: 73345 msgid " Close FancyBox when "Escape" key is pressed(default: on)"346 msgstr "" 347 348 #: lib/admin-tab-behaviour.php: 81349 msgid " CyclicGalleries"350 msgstr "" 351 352 #: lib/admin-tab-behaviour.php: 87353 msgid "" 354 "This will make galleries cyclic, allowing you to keep pressing next/back "250 #: lib/admin-tab-behaviour.php:39 251 msgid "Keyboard navigation;" 252 msgstr "" 253 254 #: lib/admin-tab-behaviour.php:47 255 msgid "Enable Keyboard Navigation (default: on)" 256 msgstr "" 257 258 #: lib/admin-tab-behaviour.php:54 259 msgid "Loop Galleries" 260 msgstr "" 261 262 #: lib/admin-tab-behaviour.php:62 263 msgid "" 264 "This will make galleries loop, allowing you to keep pressing next/back " 355 265 "(default: off)" 356 266 msgstr "" 357 267 358 #: lib/admin-tab-behaviour.php: 95268 #: lib/admin-tab-behaviour.php:69 359 269 msgid "Mouse Wheel Navigation" 360 270 msgstr "" 361 271 272 #: lib/admin-tab-behaviour.php:77 273 msgid "Lets visitors navigate galleries with the mouse wheel (default: off)" 274 msgstr "" 275 276 #: lib/admin-tab-behaviour.php:84 277 msgid "Woocommerce:" 278 msgstr "" 279 280 #: lib/admin-tab-behaviour.php:92 281 msgid "Disable on Woocommerce Shop page.( Default : off )" 282 msgstr "" 283 362 284 #: 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:" 285 msgid "Disable on Woocommerce products.( Default : off )" 398 286 msgstr "" 399 287 … … 402 290 msgstr "" 403 291 404 #: lib/admin-tab-galleries.php: 3292 #: lib/admin-tab-galleries.php:2 405 293 msgid "" 406 294 "Here you can choose if you want the plugin to group all images into a " … … 409 297 msgstr "" 410 298 411 #: lib/admin-tab-galleries.php: 9299 #: lib/admin-tab-galleries.php:11 412 300 msgid "Gallery Type" 413 301 msgstr "" 414 302 415 #: lib/admin-tab-galleries.php:1 5303 #: lib/admin-tab-galleries.php:16 416 304 msgid "Make a gallery for all images on the page (default)" 417 305 msgstr "" 418 306 419 #: lib/admin-tab-galleries.php:2 0307 #: lib/admin-tab-galleries.php:21 420 308 msgid "" 421 309 "Do not group images in gallery automatically (use this if you want to make " … … 423 311 msgstr "" 424 312 425 #: lib/admin-tab-galleries.php:2 5313 #: lib/admin-tab-galleries.php:26 426 314 msgid "" 427 315 "Make a gallery for each post (will only work if your theme uses <code>class=" … … 429 317 msgstr "" 430 318 431 #: lib/admin-tab-galleries.php:3 0319 #: lib/admin-tab-galleries.php:31 432 320 msgid "Use a custom expression to apply FancyBox" 321 msgstr "" 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 327 msgid "Click to start editing" 433 328 msgstr "" 434 329 … … 440 335 msgid "" 441 336 "· 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." 444 339 msgstr "" 445 340 … … 480 375 msgstr "" 481 376 482 #: lib/admin-tab-info.php:1483 msgid "Information"484 msgstr ""485 486 #: lib/admin-tab-info.php:3487 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é 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:5496 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:7503 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:9510 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 516 377 #: lib/admin-tab-other.php:1 517 378 msgid "Other Settings <span style=\"color:red\">(advanced)</span>" 518 379 msgstr "" 519 380 520 #: lib/admin-tab-other.php: 3381 #: lib/admin-tab-other.php:2 521 382 msgid "These are additional settings for advanced users." 522 383 msgstr "" 523 384 524 #: lib/admin-tab-other.php: 9385 #: lib/admin-tab-other.php:6 525 386 msgid "Dimensions" 526 387 msgstr "" 527 388 528 #: lib/admin-tab-other.php:1 5389 #: lib/admin-tab-other.php:14 529 390 msgid "Auto detect dimensions (default: on)" 530 391 msgstr "" 531 392 532 #: lib/admin-tab-other.php:1 8393 #: lib/admin-tab-other.php:17 533 394 msgid "" 534 395 "Only works with <strong>Ajax</strong> and <strong>Inline</strong> content! " … … 539 400 msgstr "" 540 401 541 #: lib/admin-tab-other.php:2 2402 #: lib/admin-tab-other.php:23 542 403 msgid "" 543 404 "Width for iframe and swf content. Also set for inline content if " … … 545 406 msgstr "" 546 407 547 #: lib/admin-tab-other.php:2 7408 #: lib/admin-tab-other.php:28 548 409 msgid "" 549 410 "Height for iframe and swf content. Also set for inline content if " … … 555 416 msgstr "" 556 417 557 #: lib/admin-tab-other.php:4 1418 #: lib/admin-tab-other.php:43 558 419 msgid "" 559 420 "Loads JavaScript at the end of the blog's HTML (experimental) (default: off)" 560 421 msgstr "" 561 422 562 #: lib/admin-tab-other.php:4 4423 #: lib/admin-tab-other.php:46 563 424 msgid "" 564 425 "This option won't be recognized if you use <strong>Parallel Load</strong> " … … 566 427 msgstr "" 567 428 568 #: lib/admin-tab-other.php:5 1429 #: lib/admin-tab-other.php:53 569 430 msgid "Callbacks" 570 431 msgstr "" 571 432 572 #: lib/admin-tab-other.php: 57433 #: lib/admin-tab-other.php:61 573 434 msgid "Enable callbacks (default: off)" 574 435 msgstr "" 575 436 576 #: lib/admin-tab-other.php:6 0437 #: lib/admin-tab-other.php:63 577 438 msgid "Enabling this will show additional settings." 578 439 msgstr "" 579 440 580 #: lib/admin-tab-other.php:6 5441 #: lib/admin-tab-other.php:67 581 442 msgid "" 582 443 "Callback on <strong>Start</strong> event: Will be called right before " … … 584 445 msgstr "" 585 446 586 #: lib/admin-tab-other.php:7 0447 #: lib/admin-tab-other.php:75 587 448 msgid "" 588 449 "Callback on <strong>Cancel</strong> event: Will be called after loading is " … … 590 451 msgstr "" 591 452 592 #: lib/admin-tab-other.php: 75453 #: lib/admin-tab-other.php:83 593 454 msgid "" 594 455 "Callback on <strong>Complete</strong> event: Will be called once the content " … … 596 457 msgstr "" 597 458 598 #: lib/admin-tab-other.php: 80459 #: lib/admin-tab-other.php:91 599 460 msgid "" 600 461 "Callback on <strong>CleanUp</strong> event: Will be called just before " … … 602 463 msgstr "" 603 464 604 #: lib/admin-tab-other.php: 85465 #: lib/admin-tab-other.php:99 605 466 msgid "" 606 467 "Callback on <strong>Closed</strong> event: Will be called once FancyBox is " … … 608 469 msgstr "" 609 470 610 #: lib/admin-tab-other.php:91 471 #: lib/admin-tab-other.php:107 lib/admin-tab-other.php:142 472 msgid "Example:" 473 msgstr "" 474 475 #: lib/admin-tab-other.php:110 611 476 msgid "Leave empty any speciic callbacks you don't need to use." 612 477 msgstr "" 613 478 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 480 msgid "Extra FancyBox Calls <span style=\"color:red\">(advanced)</span>" 481 msgstr "" 482 483 #: lib/admin-tab-other.php:119 484 msgid "" 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." 489 msgstr "" 490 491 #: lib/admin-tab-other.php:120 492 msgid "" 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>." 495 msgstr "" 496 497 #: lib/admin-tab-other.php:124 498 msgid "Additional FancyBox Calls" 499 msgstr "" 500 501 #: lib/admin-tab-other.php:132 502 msgid "Additional FancyBox Calls (default: off)" 503 msgstr "" 504 505 #: lib/admin-tab-other.php:157 666 506 msgid "Troubleshooting Settings" 667 507 msgstr "" 668 508 669 #: lib/admin-tab- troubleshooting.php:3509 #: lib/admin-tab-other.php:159 670 510 msgid "" 671 511 "Settings in this section should only be changed if you are having problems " … … 673 513 msgstr "" 674 514 675 #: lib/admin-tab- troubleshooting.php:5515 #: lib/admin-tab-other.php:161 676 516 msgid "" 677 517 "If the plugin doesn't seem to work, first you should check for other plugins " … … 681 521 msgstr "" 682 522 683 #: lib/admin-tab- troubleshooting.php:7523 #: lib/admin-tab-other.php:162 684 524 msgid "" 685 525 "Change them one at a time and test to see if they help. Remember that having " … … 689 529 msgstr "" 690 530 691 #: lib/admin-tab- troubleshooting.php:13531 #: lib/admin-tab-other.php:167 692 532 msgid "Do not call jQuery" 693 533 msgstr "" 694 534 695 #: lib/admin-tab- troubleshooting.php:19535 #: lib/admin-tab-other.php:175 696 536 msgid "" 697 537 "Skip jQuery call. Use this only if jQuery is being loaded twice (default: " … … 699 539 msgstr "" 700 540 701 #: lib/admin-tab-uninstall.php:3 541 #: lib/admin-tab-other.php:182 542 msgid "Uninstall" 543 msgstr "" 544 545 #: lib/admin-tab-other.php:183 702 546 msgid "" 703 547 "Like many other plugins, FancyBox for WordPress stores its settings on your " … … 709 553 msgstr "" 710 554 711 #: lib/admin-tab- uninstall.php:9555 #: lib/admin-tab-other.php:187 712 556 msgid "Remove settings" 713 557 msgstr "" 714 558 715 #: lib/admin-tab- uninstall.php:15559 #: lib/admin-tab-other.php:195 716 560 msgid "" 717 561 "Remove Settings when plugin is deactivated from the \"Manage Plugins\" page. " … … 719 563 msgstr "" 720 564 565 #: lib/admin-tab-support.php:1 566 msgid "Help with Fancybox" 567 msgstr "" 568 569 #: lib/admin-tab-support.php:3 570 msgid "" 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." 578 msgstr "" 579 580 #: lib/admin-tab-support.php:6 581 msgid "Help with Fancybox for WordPress plugin" 582 msgstr "" 583 584 #: lib/admin-tab-support.php:8 585 msgid "" 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." 589 msgstr "" 590 591 #: lib/admin-tab-support.php:9 592 msgid "" 593 "Try reverting the plugin's settings to their defaults with the button below." 594 msgstr "" 595 596 #: lib/admin-tab-support.php:10 597 msgid "" 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>." 603 msgstr "" 604 605 #: lib/admin-tab-support.php:13 606 msgid "IMPORTANT:" 607 msgstr "" 608 609 #: lib/admin-tab-support.php:13 610 msgid "" 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." 614 msgstr "" 615 616 #: lib/class-fbfw-plugin-rollback.php:41 617 msgid "Previous plugin version or plugin basename CONST aren't defined." 618 msgstr "" 619 620 #: lib/class-fbfw-plugin-rollback.php:58 lib/class-fbfw-rollback.php:157 621 msgid "Rollback to Previous Version" 622 msgstr "" 623 721 624 #. Plugin Name of the plugin/theme 722 625 msgid "FancyBox for WordPress" … … 724 627 725 628 #. Plugin URI of the plugin/theme 726 msgid "http s://wordpress.org/plugins/fancybox-for-wordpress/"629 msgid "http://plugins.josepardilla.com/fancybox-for-wordpress/" 727 630 msgstr "" 728 631 729 632 #. Description of the plugin/theme 730 633 msgid "" 731 "Integrates <a href=\"http://fancy box.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." 733 636 msgstr "" 734 637 … … 738 641 739 642 #. Author URI of the plugin/theme 740 msgid "http:// twitter.com/moskis"741 msgstr "" 643 msgid "http://josepardilla.com/" 644 msgstr "" -
fancybox-for-wordpress/trunk/lib/admin-head.php
r566930 r1965336 12 12 13 13 // Make selects data 14 $transitionTypeArray = array( 'fade', ' elastic','none' );14 $transitionTypeArray = array( 'fade', 'zoom', 'zoom-in-out' ,'none' ); 15 15 $overlayArray = array( 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1 ); 16 16 $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> 2 2 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> 4 4 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> 2 2 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> 4 4 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 "Esc"', '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 "Escape" 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']); 2 6 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 /> 4 17 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 /> 7 22 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 /> 12 27 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('· 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('· 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('· 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('· 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('· 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("fancybox").attr("rel","fancybox").getTitle();</code></em></p><br /> 47 <p class="description"><em><code>jQuery"a:has(img)[href$='.jpg']").addClass"fancybox").attr("rel","fancybox").getTitle();</code></em></p><br /><br /> 48 </div> 49 </fieldset> 50 </td> 51 </tr> 17 52 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('· 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('· 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('· 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('· 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('· 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("fancybox").attr("rel","fancybox").getTitle();</code></em></small><br /> 56 57 <small><em><code>jQuery"a:has(img)[href$='.jpg']").addClass"fancybox").attr("rel","fancybox").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 'transitionIn': 'elastic',<br/> 144 'speedIn': 600,<br/> 145 'speedOut': 200,<br/> 146 '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> 2 5 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> 7 12 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 3 3 Tags: fancybox, lightbox, jquery, gallery, image, images, photo, photos, picture, pictures, zoom 4 4 Requires at least: 3.4 5 Tested up to: 4. 76 Stable tag: trunk5 Tested up to: 4.9 6 Stable tag: 3.1.0 7 7 License: GPL/MIT 8 8 … … 32 32 == Changelog == 33 33 34 = 3.0.14 = 35 * Minor fixes. 34 = 3.1.0 = 35 * Updated FancyBox library to the latest version 36 * Changed Admin UI 36 37 37 38 = 3.0.12 =
Note: See TracChangeset
for help on using the changeset viewer.