diff --git a/assets/css/mic-admin.css b/assets/css/mic-admin.css
index 48e1bc5..0bb45f8 100644
--- a/assets/css/mic-admin.css
+++ b/assets/css/mic-admin.css
@@ -47,6 +47,21 @@
display: none;
}
+/* Add clearfix */
+
+.mic-editor-header:after {
+ visibility: hidden;
+ display: block;
+ font-size: 0;
+ content: " ";
+ clear: both;
+ height: 0;
+}
+
+.mic-editor-header { display: inline-block; }
+* html .mic-editor-header { height: 1%; }
+.mic-editor-header { display: block; }
+
.mic-editor-wrapper h2 .nav-tab {
font-size: 16px;
padding: 4px;
diff --git a/lib/ManualImageCropEditorWindow.php b/lib/ManualImageCropEditorWindow.php
index 812d8ce..9b60c01 100644
--- a/lib/ManualImageCropEditorWindow.php
+++ b/lib/ManualImageCropEditorWindow.php
@@ -27,59 +27,61 @@ public function renderWindow() {
$sizesSettings = MicSettingsPage::getSettings();
?>
-
-
-
-
-
+
+
+
+
+ __('Thumbnail'),
- 'medium' => __('Medium'),
- 'large' => __('Large'),
- 'full' => __('Full Size'),
- ) );
- $sizeLabels = apply_filters( 'image_size_names_choose', array() );
-
- foreach ($imageSizes as $s) {
- if ( ! isset($sizesSettings[$s]) ) {
- $sizesSettings[$s] = array('label' => '', 'quality' => 80, 'visibility' => 'visible');
- }
+ $sizeLabels = apply_filters( 'image_size_names_choose', array(
+ 'thumbnail' => __('Thumbnail'),
+ 'medium' => __('Medium'),
+ 'large' => __('Large'),
+ 'full' => __('Full Size'),
+ ) );
+ $sizeLabels = apply_filters( 'image_size_names_choose', array() );
+
+ foreach ($imageSizes as $s) {
+ if ( ! isset($sizesSettings[$s]) ) {
+ $sizesSettings[$s] = array('label' => '', 'quality' => 80, 'visibility' => 'visible');
+ }
- if ( $sizesSettings[$s]['visibility'] == 'hidden') {
- if ($editedSize == $s) {
- $editedSize = null;
+ if ( $sizesSettings[$s]['visibility'] == 'hidden') {
+ if ($editedSize == $s) {
+ $editedSize = null;
+ }
+ continue;
}
- continue;
- }
- if (isset($_wp_additional_image_sizes[$s])) {
- $cropMethod = $_wp_additional_image_sizes[$s]['crop'];
- } else {
- $cropMethod = get_option($s.'_crop');
- }
- if ($cropMethod == 0) {
- continue;
- }
+ if (isset($_wp_additional_image_sizes[$s])) {
+ $cropMethod = $_wp_additional_image_sizes[$s]['crop'];
+ } else {
+ $cropMethod = get_option($s.'_crop');
+ }
+ if ($cropMethod == 0) {
+ continue;
+ }
- if ( is_null($editedSize) ) {
- $editedSize = $s;
- }
+ if ( is_null($editedSize) ) {
+ $editedSize = $s;
+ }
- // Get user defined label for the size or just cleanup a bit
- $label = isset($sizeLabels[$s]) ? $sizeLabels[$s] : ucfirst( str_replace( '-', ' ', $s ) );
- $label = $sizesSettings[$s]['label'] ? $sizesSettings[$s]['label'] : $label;
- echo '' . $label . '';
- }
- ?>
-
+ // Get user defined label for the size or just cleanup a bit
+ $label = isset($sizeLabels[$s]) ? $sizeLabels[$s] : ucfirst( str_replace( '-', ' ', $s ) );
+ $label = $sizesSettings[$s]['label'] ? $sizesSettings[$s]['label'] : $label;
+ echo '' . $label . '';
+ }
+ ?>
+
+