Version Description
- make the modal-dialog more robust against css-overriding of other plugins
Download this release
Release Info
Developer | Volkmar Kantor |
Plugin | Crop-Thumbnails |
Version | 0.10.2 |
Comparing to | |
See all releases |
Code changes from version 0.10.1 to 0.10.2
- crop-thumbnails.php +3 -2
- css/options.css +12 -8
- functions/backendpreparer.php +1 -4
- readme.txt +3 -0
crop-thumbnails.php
CHANGED
@@ -4,8 +4,9 @@
|
|
4 |
* Plugin URI: http://wordpress.org/extend/plugins/crop-thumbnails/
|
5 |
* Author: Volkmar Kantor
|
6 |
* Author URI: http://www.totalmedial.de
|
7 |
-
* Version: 0.10.
|
8 |
* Description: Crop your thumbnails, the easy way.
|
|
|
9 |
*
|
10 |
* License: GPL v3
|
11 |
* Copyright 2012 Volkmar Kantor (email : info@totalmedial.de)
|
@@ -26,7 +27,7 @@
|
|
26 |
|
27 |
//cpt - stands for crop-post-thumbnail
|
28 |
define('CROP_THUMBS_LANG','cpt_lang');
|
29 |
-
define('CROP_THUMBS_VERSION','0.10.
|
30 |
|
31 |
function cpt_plugin_init() {
|
32 |
load_plugin_textdomain( CROP_THUMBS_LANG, false, dirname( plugin_basename( __FILE__ ) ) . '/lang/' );
|
4 |
* Plugin URI: http://wordpress.org/extend/plugins/crop-thumbnails/
|
5 |
* Author: Volkmar Kantor
|
6 |
* Author URI: http://www.totalmedial.de
|
7 |
+
* Version: 0.10.2
|
8 |
* Description: Crop your thumbnails, the easy way.
|
9 |
+
* Text Domain: crop-thumbnails
|
10 |
*
|
11 |
* License: GPL v3
|
12 |
* Copyright 2012 Volkmar Kantor (email : info@totalmedial.de)
|
27 |
|
28 |
//cpt - stands for crop-post-thumbnail
|
29 |
define('CROP_THUMBS_LANG','cpt_lang');
|
30 |
+
define('CROP_THUMBS_VERSION','0.10.2');
|
31 |
|
32 |
function cpt_plugin_init() {
|
33 |
load_plugin_textdomain( CROP_THUMBS_LANG, false, dirname( plugin_basename( __FILE__ ) ) . '/lang/' );
|
css/options.css
CHANGED
@@ -1,15 +1,19 @@
|
|
1 |
.cpt_settings_paypal { border:1px solid #298CBA; border-radius:3px; background-color:#f6f6f6; max-width:30em; padding:0 0.5em; margin:2em 0; text-align:center; }
|
2 |
.cpt_settings_submit { margin-top:2em; }
|
3 |
|
4 |
-
|
|
|
|
|
|
|
|
|
5 |
|
6 |
/*dialog headline*/
|
7 |
-
.cropThumbnailModal.ui-dialog .ui-dialog-title { font-size:13px; font-family:'Open Sans', sans-serif; margin: 0; padding:0 29px 0 10px; line-height: 29px; }
|
8 |
-
.cropThumbnailModal.ui-dialog .ui-dialog-titlebar { padding:0; border:0; height: 29px; border-bottom:1px solid #DFDFDF; border-radius: 0; }
|
9 |
-
.cropThumbnailModal.ui-dialog .ui-button.ui-dialog-titlebar-close { width: 29px; height: 29px; margin: 0; }
|
10 |
-
.cropThumbnailModal.ui-dialog .ui-button.ui-dialog-titlebar-close:before { line-height: 29px; }
|
11 |
-
.cropThumbnailModal.ui-dialog .ui-dialog-titlebar-close span { display: none; }
|
12 |
|
13 |
/*dialog content*/
|
14 |
-
.cropThumbnailModal.ui-dialog .ui-dialog-content { padding:0; overflow: hidden; }
|
15 |
-
.cropThumbnailModal.ui-dialog .ui-dialog-content iframe { width:100
|
1 |
.cpt_settings_paypal { border:1px solid #298CBA; border-radius:3px; background-color:#f6f6f6; max-width:30em; padding:0 0.5em; margin:2em 0; text-align:center; }
|
2 |
.cpt_settings_submit { margin-top:2em; }
|
3 |
|
4 |
+
|
5 |
+
/**** MODAL - DIALOG ****/
|
6 |
+
.cropThumbnailModal { z-index:999999999 !important; }
|
7 |
+
.cropThumbnailModalOverlay { z-index:999999998 !important; }
|
8 |
+
.cropThumbnailModal.ui-dialog { padding:0 !important; border-radius: 0 !important; border:0 !important; }
|
9 |
|
10 |
/*dialog headline*/
|
11 |
+
.cropThumbnailModal.ui-dialog .ui-dialog-title { font-size:13px !important; font-family:'Open Sans', sans-serif !important; margin: 0 !important; padding:0 29px 0 10px !important; line-height: 29px !important; width: 100% !important; box-sizing: border-box !important; }
|
12 |
+
.cropThumbnailModal.ui-dialog .ui-dialog-titlebar { padding:0 !important; border:0 !important; height: 29px !important; border-bottom:1px solid #DFDFDF !important; border-radius: 0 !important; }
|
13 |
+
.cropThumbnailModal.ui-dialog .ui-button.ui-dialog-titlebar-close { width: 29px !important; height: 29px !important; margin: 0 !important; top:0 !important; right:0 !important; }
|
14 |
+
.cropThumbnailModal.ui-dialog .ui-button.ui-dialog-titlebar-close:before { line-height: 29px !important; }
|
15 |
+
.cropThumbnailModal.ui-dialog .ui-dialog-titlebar-close span { display: none !important; }
|
16 |
|
17 |
/*dialog content*/
|
18 |
+
.cropThumbnailModal.ui-dialog .ui-dialog-content { padding:0 !important; overflow: hidden !important; }
|
19 |
+
.cropThumbnailModal.ui-dialog .ui-dialog-content iframe { width:100% !important; height: 100% !important; }
|
functions/backendpreparer.php
CHANGED
@@ -221,16 +221,13 @@ jQuery(document).ready(function($) {
|
|
221 |
},
|
222 |
open : function(event, ui) {
|
223 |
overlay = $('.ui-widget-overlay.ui-front');
|
|
|
224 |
overlay.click(function() {
|
225 |
content.dialog('close');
|
226 |
});
|
227 |
|
228 |
//add body class (disable the scrollbars)
|
229 |
$('body').addClass('modal-open');
|
230 |
-
|
231 |
-
//correct the z-index
|
232 |
-
$('.cropThumbnailModal').css('z-index','999999');
|
233 |
-
overlay.css('z-index','999998');
|
234 |
}
|
235 |
})
|
236 |
.dialog('open');
|
221 |
},
|
222 |
open : function(event, ui) {
|
223 |
overlay = $('.ui-widget-overlay.ui-front');
|
224 |
+
overlay.addClass('cropThumbnailModalOverlay');
|
225 |
overlay.click(function() {
|
226 |
content.dialog('close');
|
227 |
});
|
228 |
|
229 |
//add body class (disable the scrollbars)
|
230 |
$('body').addClass('modal-open');
|
|
|
|
|
|
|
|
|
231 |
}
|
232 |
})
|
233 |
.dialog('open');
|
readme.txt
CHANGED
@@ -93,6 +93,9 @@ If you fork and planning to publish the forked plugin, please contact me.
|
|
93 |
|
94 |
== Changelog ==
|
95 |
|
|
|
|
|
|
|
96 |
= 0.10.1 =
|
97 |
* small enhancement for developers: add the 'same_ratio_active' parameter in the ajax-request (https://wordpress.org/support/topic/return-same-ratio-daja-in-ajax-request)
|
98 |
|
93 |
|
94 |
== Changelog ==
|
95 |
|
96 |
+
= 0.10.2 =
|
97 |
+
* make the modal-dialog more robust against css-overriding of other plugins
|
98 |
+
|
99 |
= 0.10.1 =
|
100 |
* small enhancement for developers: add the 'same_ratio_active' parameter in the ajax-request (https://wordpress.org/support/topic/return-same-ratio-daja-in-ajax-request)
|
101 |
|