Changeset 893792
- Timestamp:
- 04/15/2014 07:21:32 PM (12 years ago)
- Location:
- easyrotator-for-wordpress
- Files:
-
- 3 edited
-
tags/1.0.2/css/easyrotator_admin.css (modified) (2 diffs)
-
trunk/easyrotator.php (modified) (15 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
easyrotator-for-wordpress/tags/1.0.2/css/easyrotator_admin.css
r585231 r893792 1 1 /* 2 Copyright 2011 DWUser.com.2 Copyright 2011-2014 DWUser.com. 3 3 Email contact: support ~attt~ dwuser.com 4 4 … … 98 98 background: transparent url('../img/admin_icons.png?ver=1') no-repeat scroll -6px -133px; 99 99 } 100 101 /* fs tinymce button for 3.9+ */ 102 #wp-fullscreen-buttons #wp_fs_easyrotator { 103 background: transparent url('../img/admin_icons.png?ver=1') no-repeat scroll -3px -163px; 104 } 105 #wp-fullscreen-buttons #wp_fs_easyrotator:hover { 106 background: transparent url('../img/admin_icons.png?ver=1') no-repeat scroll -3px -131px; 107 } 100 108 101 109 /* meta box title icon, more */ -
easyrotator-for-wordpress/trunk/easyrotator.php
r713155 r893792 4 4 Plugin URI: http://www.dwuser.com/easyrotator/wordpress/ 5 5 Description: Add professional, customizable photo sliders to your site in seconds. Powered by the EasyRotator application from DWUser.com. 6 Version: 1.0.1 06 Version: 1.0.11 7 7 Author: DWUser.com 8 8 Author URI: http://www.dwuser.com/ … … 11 11 12 12 /* 13 Copyright 2011-201 2DWUser.com.13 Copyright 2011-2014 DWUser.com. 14 14 Email contact: support {at] dwuser.com 15 15 … … 63 63 function EasyRotator() 64 64 { 65 global $wp_version; 65 66 // --- Initialization --- 66 67 … … 86 87 add_action( 'admin_footer' , array( $this, 'editor_easyrotator_manage_dialog' ) ); 87 88 add_action( 'admin_footer' , array( $this, 'admin_inline_help_content') ); 88 89 90 if (version_compare($wp_version, '3.8.99', '>')) 91 { 92 // Widget support in customizer on 3.9+ 93 add_action( 'customize_controls_print_styles' , array( $this, 'hook_admin_init' ) ); //customize_controls_print_styles 94 add_action( 'customize_controls_print_styles' , array( $this, 'hook_customizer_styles' ) ); 95 add_action( 'customize_controls_print_footer_scripts' , array( $this, 'editor_easyrotator_manage_dialog_customizer' ) ); 96 } 97 89 98 add_action( 'edit_form_advanced' , array( $this, 'editor_quicktags' ) ); 90 99 add_action( 'edit_page_form' , array( $this, 'editor_quicktags' ) ); … … 142 151 143 152 } 153 154 function hook_customizer_styles() 155 { 156 // This is for special customizer styles. Make sure that dialogs appear on top of preview (z-index=500000) 157 ?> 158 <style type="text/css"> 159 body .ui-front { 160 z-index: 500100 !important; 161 } 162 </style> 163 <?php 164 } 144 165 145 166 function hook_admin_menu() … … 879 900 } 880 901 881 902 903 // This is called when the customizer is being used 904 function editor_easyrotator_manage_dialog_customizer() 905 { 906 $this->editor_easyrotator_manage_dialog(true); // $isCustomizer=true 907 } 908 882 909 /** 883 910 * This method is used whenever on the admin post/page editor pages. Used to write out the manager dialog, 884 911 * which is launched via the tinymce button or the quicktag button. 885 912 **/ 886 function editor_easyrotator_manage_dialog() { //was editor_tinymce_plugin_dialog()913 function editor_easyrotator_manage_dialog($isCustomizer = false) { //was editor_tinymce_plugin_dialog() 887 914 global $erwp; 888 915 889 916 // Render only if post/page editing or widget mode on admin page 890 917 $pageName = basename( $_SERVER['PHP_SELF'] ); 891 if ( in_array( $pageName, array( 'post-new.php', 'page-new.php', 'post.php', 'page.php', 'widgets.php' ) ) ) { // TOASK: good check, esp widgets?892 918 if ( in_array( $pageName, array( 'post-new.php', 'page-new.php', 'post.php', 'page.php', 'widgets.php' ) ) || $isCustomizer ) { // TOASK: good check, esp widgets? 919 893 920 $engineURL = $this->url . 'engine/main.php'; 894 921 $apiInfo = $this->api_getInfo(); 895 $inWidgetMode = ($pageName == 'widgets.php' );896 922 $inWidgetMode = ($pageName == 'widgets.php' || $isCustomizer); 923 897 924 echo('<div style="display:none;"> 898 925 … … 945 972 easyrotator_fs_dialog_launch = function() 946 973 { 947 if (window[\'fullscreen\']) // just for safety 974 var fullscreen; 975 try { 976 fullscreen = window[\'fullscreen\'] || window.wp.editor.fullscreen; 977 } catch (e){} 978 if (fullscreen) // just for safety 948 979 { 949 980 // See if we\'re in Visual/tinyMCE or HTML mode in fullscreen; ref: wp-fullscreen.dev.js. 950 981 var s = fullscreen.settings; 951 if ( s.has_tinymce&& s.mode == \'tinymce\' )982 if ( (s.has_tinymce || s.hasTinymce) && s.mode == \'tinymce\' ) 952 983 { 953 984 easyrotator_tinymce_dialog_launch(); … … 998 1029 setTimeout(function(){ 999 1030 jQuery("#easyrotator_manage_dialog").dialog("close"); 1000 }, 100); 1031 }, 100); // TODO: May need to be increased if issues crop up 1001 1032 }; 1002 1033 }; … … 1295 1326 { 1296 1327 wrap.data('easyrotatorWidgetBoxInitialized', true); // set initialized flag 1297 1328 1298 1329 // Wire-up the widget form; wrap for persistent scope 1299 1330 (function(wrap){ … … 1328 1359 if (show) 1329 1360 { 1330 wrap.find('p.er_save_notification').slideDown(); 1331 wrap.find('hr.er_bottom_hr').hide(); 1361 if (<?php echo($isCustomizer ? 'false' : 'true'); ?>) // no notification on customizer page due to auto-save 1362 { 1363 wrap.find('p.er_save_notification').slideDown(); 1364 wrap.find('hr.er_bottom_hr').hide(); 1365 } 1332 1366 } 1333 1367 else … … 1342 1376 // Update the hidden field; load the name 1343 1377 pathField.val(path); 1378 <?php if ($isCustomizer) { ?> 1379 pathField.trigger('change'); // trigger the auto-save since this is a hidden field 1380 <?php } ?> 1344 1381 1345 1382 // Show save notification if changed … … 1463 1500 function editor_quicktags() 1464 1501 { 1465 global $erwp ;1502 global $erwp, $wp_version; 1466 1503 1467 1504 // Append the easyrotator button to the Quicktags section, making it look like the other buttons. 1505 $class = 'ed_button'; 1506 if (version_compare($wp_version, '3.8.99', '>')) 1507 $class .= ' button button-small'; 1468 1508 ?> 1469 1509 <script type="text/javascript"> … … 1477 1517 setTimeout(addButtonIfNeeded, tryInterval); // toolbar not ready; wait a tad 1478 1518 else 1479 $('#ed_toolbar').append('<input type="button" id="ed_easyrotator" class=" ed_button" onclick="easyrotator_quicktags_dialog_launch();" title="Insert rotator into post/page..." value="Insert EasyRotator" style="wascolor:#09F;" />');1519 $('#ed_toolbar').append('<input type="button" id="ed_easyrotator" class="<?php echo($class); ?>" onclick="easyrotator_quicktags_dialog_launch();" title="Insert rotator into post/page..." value="Insert EasyRotator" style="wascolor:#09F;" />'); 1480 1520 } 1481 1521 addButtonIfNeeded(); … … 1754 1794 1755 1795 // Finally, listen for exiting fullscreen view if applicable. Update only when hiding that, since we won't show the edit panel in fs. Ref: wp-fullscreen.dev.js 1756 if (window['fullscreen'] && fullscreen.pubsub && fullscreen.pubsub.subscribe) 1796 var fullscreen; 1797 try { 1798 fullscreen = window['fullscreen'] || window.wp.editor.fullscreen; 1799 }catch(e){} 1800 if (fullscreen && fullscreen.pubsub && fullscreen.pubsub.subscribe) 1757 1801 fullscreen.pubsub.subscribe('hide', function(){ 1758 1802 // Wait a second, for the other updates to occur … … 2050 2094 $instance['showTitle'] = $new_instance['showTitle'] == 'true' ? 'true' : 'false'; 2051 2095 $instance['path'] = strip_tags($new_instance['path']); 2052 2096 if (@$instance['form'] == '') // the customizer initially calls with an empty form; we need to add some fake content to force the display to work 2097 { 2098 ob_start(); 2099 $this->form($instance); 2100 $instance['form'] = ob_end_clean(); 2101 } 2102 2053 2103 if (false) // debug 2054 2104 { -
easyrotator-for-wordpress/trunk/readme.txt
r845451 r893792 4 4 Tags: rotator, slider, slide, slide show, slideshow, photos, photo, pictures, gallery, photo gallery, image gallery, images, image, media, video, audio, posts, pages, widget, plugin, seo, WordPress slider, templates, mobile, iPad, iPhone, touchscreen, jQuery, Adobe AIR, flash replacement 5 5 Requires at least: 2.8 6 Tested up to: 3. 8.17 Stable tag: 1.0.1 06 Tested up to: 3.9 RC2 7 Stable tag: 1.0.11 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 162 162 163 163 == Changelog == 164 = 1.0.11 = 165 * Compatibility Enhancement: Support for WordPress 3.9, including the theme customizer 166 164 167 = 1.0.10 = 165 168 * Compatibility Enhancement: Better Safari support on widget page (not WordPress-version specific); may avoid a "blocked click" click on some installation configurations.
Note: See TracChangeset
for help on using the changeset viewer.