Enhanced Media Library - Version 2.1.3

Version Description

Release Date - December 17, 2015

Download this release

Release Info

Developer webbistro
Plugin Icon 128x128 Enhanced Media Library
Version 2.1.3
Comparing to
See all releases

Code changes from version 2.1.2 to 2.1.3

core/gallery.php CHANGED
@@ -9,16 +9,11 @@
9
  * @created 24/11/15
10
  */
11
 
12
- // Jetpack Carousel compatibility
13
- add_filter( 'jp_carousel_force_enable', function() {
14
- return true;
15
- });
16
-
17
  add_filter( 'post_gallery', 'wpuxss_eml_gallery_shortcode', 12, 3 );
18
 
19
- if( ! function_exists('wpuxss_eml_gallery_shortcode') ) {
20
 
21
- function wpuxss_eml_gallery_shortcode( $output, $attr, $instance ) {
22
 
23
  $post = get_post();
24
 
@@ -265,6 +260,26 @@ if( ! function_exists('wpuxss_eml_gallery_shortcode') ) {
265
 
266
 
267
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
268
  /**
269
  * wpuxss_eml_print_media_gallery_templates
270
  *
9
  * @created 24/11/15
10
  */
11
 
 
 
 
 
 
12
  add_filter( 'post_gallery', 'wpuxss_eml_gallery_shortcode', 12, 3 );
13
 
14
+ if ( ! function_exists( 'wpuxss_eml_gallery_shortcode' ) ) {
15
 
16
+ function wpuxss_eml_gallery_shortcode( $output, $attr, $instance = 0 ) {
17
 
18
  $post = get_post();
19
 
260
 
261
 
262
 
263
+ /**
264
+ * wpuxss_eml_jp_carousel_force_enable
265
+ *
266
+ * Ensure Jetpack Carousel compatibility
267
+ *
268
+ * @since 2.1
269
+ * @created 16/12/15
270
+ */
271
+
272
+ add_filter( 'jp_carousel_force_enable', 'wpuxss_eml_jp_carousel_force_enable' );
273
+
274
+ if ( ! function_exists( 'wpuxss_eml_jp_carousel_force_enable' ) ) {
275
+
276
+ function wpuxss_eml_jp_carousel_force_enable( $enabled ) {
277
+ return true;
278
+ }
279
+ }
280
+
281
+
282
+
283
  /**
284
  * wpuxss_eml_print_media_gallery_templates
285
  *
core/options-pages.php CHANGED
@@ -106,7 +106,7 @@ if( ! function_exists('wpuxss_eml_admin_menu') ) {
106
  __('MIME Types','eml'),
107
  __('MIME Types','eml'),
108
  'manage_options',
109
- 'eml-mimetype-options',
110
  'wpuxss_eml_print_mimetypes_options'
111
  );
112
 
@@ -478,12 +478,12 @@ if( ! function_exists('wpuxss_eml_get_settings') ) {
478
  * @created 28/09/13
479
  */
480
 
481
- if( ! function_exists('wpuxss_eml_print_taxonomies_options') ) {
482
 
483
  function wpuxss_eml_print_taxonomies_options() {
484
 
485
  if ( ! current_user_can( 'manage_options' ) )
486
- wp_die( __('You do not have sufficient permissions to access this page.','eml') );
487
 
488
  $wpuxss_eml_taxonomies = get_option( 'wpuxss_eml_taxonomies' );
489
  $taxonomies = get_taxonomies( array(),'names' );
@@ -757,11 +757,23 @@ if( ! function_exists('wpuxss_eml_print_taxonomies_options') ) {
757
  <td>
758
  <fieldset>
759
  <legend class="screen-reader-text"><span><?php _e('Force filters','eml'); ?></span></legend>
760
- <label for="wpuxss_eml_tax_options[force_filters]"><input name="wpuxss_eml_tax_options[force_filters]" type="hidden" value="0" /><input name="wpuxss_eml_tax_options[force_filters]" type="checkbox" value="1" <?php checked( true, $wpuxss_eml_tax_options['force_filters'], true ); ?> /> <?php _e('Show media filters for ANY Media Popup.','eml'); ?></label>
761
  <p class="description"><?php _e( 'May be useful for those who need forcing filters for third-party plugins or themes.', 'eml' ); ?></p>
762
  </fieldset>
763
  </td>
764
  </tr>
 
 
 
 
 
 
 
 
 
 
 
 
765
  </table>
766
 
767
  <?php submit_button(); ?>
@@ -921,7 +933,7 @@ if( ! function_exists('wpuxss_eml_print_mimetypes_options') ) {
921
  * @created 28/09/13
922
  */
923
 
924
- if( ! function_exists('wpuxss_eml_print_credits') ) {
925
 
926
  function wpuxss_eml_print_credits() {
927
 
106
  __('MIME Types','eml'),
107
  __('MIME Types','eml'),
108
  'manage_options',
109
+ 'eml-mimetypes-options',
110
  'wpuxss_eml_print_mimetypes_options'
111
  );
112
 
478
  * @created 28/09/13
479
  */
480
 
481
+ if ( ! function_exists( 'wpuxss_eml_print_taxonomies_options' ) ) {
482
 
483
  function wpuxss_eml_print_taxonomies_options() {
484
 
485
  if ( ! current_user_can( 'manage_options' ) )
486
+ wp_die( __( 'You do not have sufficient permissions to access this page.', 'eml' ) );
487
 
488
  $wpuxss_eml_taxonomies = get_option( 'wpuxss_eml_taxonomies' );
489
  $taxonomies = get_taxonomies( array(),'names' );
757
  <td>
758
  <fieldset>
759
  <legend class="screen-reader-text"><span><?php _e('Force filters','eml'); ?></span></legend>
760
+ <label for="wpuxss_eml_tax_options[force_filters]"><input name="wpuxss_eml_tax_options[force_filters]" type="hidden" value="0" /><input name="wpuxss_eml_tax_options[force_filters]" type="checkbox" value="1" <?php checked( true, $wpuxss_eml_tax_options['force_filters'], true ); ?> /> <?php _e('Show media filters for ANY Media Popup','eml'); ?></label>
761
  <p class="description"><?php _e( 'May be useful for those who need forcing filters for third-party plugins or themes.', 'eml' ); ?></p>
762
  </fieldset>
763
  </td>
764
  </tr>
765
+
766
+ <tr>
767
+ <th scope="row"><?php _e('Turn off enhanced gallery','eml'); ?></th>
768
+ <td>
769
+ <fieldset>
770
+ <legend class="screen-reader-text"><span><?php _e('Turn off enhanced gallery','eml'); ?></span></legend>
771
+ <label for="wpuxss_eml_tax_options[turn_off_gallery_shortcode]"><input name="wpuxss_eml_tax_options[turn_off_gallery_shortcode]" type="hidden" value="0" /><input name="wpuxss_eml_tax_options[turn_off_gallery_shortcode]" type="checkbox" value="1" <?php checked( true, $wpuxss_eml_tax_options['turn_off_gallery_shortcode'], true ); ?> /> <?php _e('Do not enhance WordPress native gallery shortcode','eml'); ?></label>
772
+ <p class="description"><?php _e( 'May be useful in case of incompatibility with other plugins or themes. Use the option if you think it breaks your galleries in any way.', 'eml' ); ?></p>
773
+ <p class="description"><?php _e( 'Please inform plugin authors about the issue. We would like to fix it!', 'eml' ); ?></p>
774
+ </fieldset>
775
+ </td>
776
+ </tr>
777
  </table>
778
 
779
  <?php submit_button(); ?>
933
  * @created 28/09/13
934
  */
935
 
936
+ if ( ! function_exists( 'wpuxss_eml_print_credits' ) ) {
937
 
938
  function wpuxss_eml_print_credits() {
939
 
enhanced-media-library.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Enhanced Media Library
4
  Depends: Toolbar Publish Button
5
  Plugin URI: http://wpUXsolutions.com
6
  Description: This plugin will be handy for those who need to manage a lot of media files.
7
- Version: 2.1.2
8
  Author: wpUXsolutions
9
  Author URI: http://wpUXsolutions.com
10
  Text Domain: eml
@@ -23,7 +23,7 @@ global $wp_version,
23
 
24
 
25
 
26
- $wpuxss_eml_version = '2.1.2';
27
 
28
 
29
 
@@ -66,6 +66,26 @@ if ( ! function_exists( 'wpuxss_get_eml_basename' ) ) {
66
 
67
 
68
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
69
  /**
70
  * Load plugin text domain
71
  *
@@ -91,10 +111,12 @@ if ( ! function_exists( 'wpuxss_eml_on_plugins_loaded' ) ) {
91
 
92
  include_once( 'core/mime-types.php' );
93
  include_once( 'core/taxonomies.php' );
94
- include_once( 'core/gallery.php' );
95
 
96
- if( is_admin() ) {
 
 
97
 
 
98
  include_once( 'core/options-pages.php' );
99
  }
100
 
@@ -384,14 +406,6 @@ if ( ! function_exists( 'wpuxss_eml_enqueue_media' ) ) {
384
  true
385
  );
386
 
387
- wp_enqueue_script(
388
- 'wpuxss-eml-media-editor-script',
389
- $wpuxss_eml_dir . 'js/eml-media-editor.js',
390
- array('media-editor','media-views'),
391
- $wpuxss_eml_version,
392
- true
393
- );
394
-
395
 
396
  // TODO:
397
  // wp_enqueue_script(
@@ -429,16 +443,37 @@ if ( ! function_exists( 'wpuxss_eml_enqueue_media' ) ) {
429
  $media_views_l10n
430
  );
431
 
432
- $media_editor_l10n = array(
433
- 'all_taxonomies' => $all_taxonomies_array,
434
- 'uploaded_to' => __( 'Uploaded to post #', 'eml' )
435
- );
436
 
437
- wp_localize_script(
438
- 'wpuxss-eml-media-editor-script',
439
- 'wpuxss_eml_media_editor_l10n',
440
- $media_editor_l10n
441
- );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
442
 
443
  // scripts for grid view :: /wp-admin/upload.php
444
  if ( isset( $current_screen ) && 'upload' === $current_screen->base && 'grid' === $media_library_mode ) {
@@ -554,7 +589,8 @@ if ( ! function_exists( 'wpuxss_eml_on_activation_update' ) ) {
554
  $wpuxss_eml_tax_options = array(
555
  'tax_archives' => 1,
556
  'edit_all_as_hierarchical' => 0,
557
- 'force_filters' => 0
 
558
  );
559
 
560
  $allowed_mimes = get_allowed_mime_types();
@@ -616,6 +652,14 @@ if ( ! function_exists( 'wpuxss_eml_on_activation_update' ) ) {
616
  update_option( 'wpuxss_eml_taxonomies', $wpuxss_eml_taxonomies );
617
  update_option( 'wpuxss_eml_tax_options', $wpuxss_eml_tax_options );
618
  }
 
 
 
 
 
 
 
 
619
  } // endif :: new and old versions are not the same
620
  }
621
  }
4
  Depends: Toolbar Publish Button
5
  Plugin URI: http://wpUXsolutions.com
6
  Description: This plugin will be handy for those who need to manage a lot of media files.
7
+ Version: 2.1.3
8
  Author: wpUXsolutions
9
  Author URI: http://wpUXsolutions.com
10
  Text Domain: eml
23
 
24
 
25
 
26
+ $wpuxss_eml_version = '2.1.3';
27
 
28
 
29
 
66
 
67
 
68
 
69
+ /**
70
+ * wpuxss_eml_use_enhanced_gallery_shortcode
71
+ *
72
+ * @since 2.1.3
73
+ * @created 16/12/15
74
+ */
75
+
76
+ if ( ! function_exists( 'wpuxss_eml_use_enhanced_gallery_shortcode' ) ) {
77
+
78
+ function wpuxss_eml_use_enhanced_gallery_shortcode() {
79
+
80
+ $wpuxss_eml_tax_options = get_option('wpuxss_eml_tax_options');
81
+ $use_gallery = isset( $wpuxss_eml_tax_options['turn_off_gallery_shortcode'] ) ? ! (bool)$wpuxss_eml_tax_options['turn_off_gallery_shortcode'] : true;
82
+
83
+ return $use_gallery;
84
+ }
85
+ }
86
+
87
+
88
+
89
  /**
90
  * Load plugin text domain
91
  *
111
 
112
  include_once( 'core/mime-types.php' );
113
  include_once( 'core/taxonomies.php' );
 
114
 
115
+ if ( wpuxss_eml_use_enhanced_gallery_shortcode() ) {
116
+ include_once( 'core/gallery.php' );
117
+ }
118
 
119
+ if ( is_admin() ) {
120
  include_once( 'core/options-pages.php' );
121
  }
122
 
406
  true
407
  );
408
 
 
 
 
 
 
 
 
 
409
 
410
  // TODO:
411
  // wp_enqueue_script(
443
  $media_views_l10n
444
  );
445
 
 
 
 
 
446
 
447
+ if ( wpuxss_eml_use_enhanced_gallery_shortcode() ) {
448
+
449
+ wp_enqueue_script(
450
+ 'wpuxss-eml-enhanced-gallery-script',
451
+ $wpuxss_eml_dir . 'js/eml-enhanced-gallery.js',
452
+ array('media-views'),
453
+ $wpuxss_eml_version,
454
+ true
455
+ );
456
+
457
+ wp_enqueue_script(
458
+ 'wpuxss-eml-media-editor-script',
459
+ $wpuxss_eml_dir . 'js/eml-media-editor.js',
460
+ array('media-editor','media-views', 'wpuxss-eml-enhanced-gallery-script'),
461
+ $wpuxss_eml_version,
462
+ true
463
+ );
464
+
465
+ $media_editor_l10n = array(
466
+ 'all_taxonomies' => $all_taxonomies_array,
467
+ 'uploaded_to' => __( 'Uploaded to post #', 'eml' )
468
+ );
469
+
470
+ wp_localize_script(
471
+ 'wpuxss-eml-media-editor-script',
472
+ 'wpuxss_eml_media_editor_l10n',
473
+ $media_editor_l10n
474
+ );
475
+ }
476
+
477
 
478
  // scripts for grid view :: /wp-admin/upload.php
479
  if ( isset( $current_screen ) && 'upload' === $current_screen->base && 'grid' === $media_library_mode ) {
589
  $wpuxss_eml_tax_options = array(
590
  'tax_archives' => 1,
591
  'edit_all_as_hierarchical' => 0,
592
+ 'force_filters' => 0,
593
+ 'turn_off_gallery_shortcode' => 0
594
  );
595
 
596
  $allowed_mimes = get_allowed_mime_types();
652
  update_option( 'wpuxss_eml_taxonomies', $wpuxss_eml_taxonomies );
653
  update_option( 'wpuxss_eml_tax_options', $wpuxss_eml_tax_options );
654
  }
655
+
656
+ if ( version_compare( $wpuxss_eml_old_version, '2.1.3', '<' ) ) {
657
+
658
+ $wpuxss_eml_tax_options = get_option('wpuxss_eml_tax_options');
659
+ $wpuxss_eml_tax_options['turn_off_gallery_shortcode'] = 0;
660
+
661
+ update_option( 'wpuxss_eml_tax_options', $wpuxss_eml_tax_options );
662
+ }
663
  } // endif :: new and old versions are not the same
664
  }
665
  }
js/eml-enhanced-gallery.js ADDED
@@ -0,0 +1,153 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ window.wp = window.wp || {};
2
+
3
+
4
+
5
+ window.emlIsGalleryFilterBased = function( attrs ) {
6
+
7
+ var filterBasedFields;
8
+
9
+ if ( _.isUndefined( attrs ) ) {
10
+ return false;
11
+ }
12
+
13
+ // because of 0 (unattached) value
14
+ if ( ! _.isUndefined( attrs.uploadedTo ) ) {
15
+ return true;
16
+ }
17
+
18
+ if ( _.filter( _.pick( attrs, 'monthnum', 'year' ), _.identity ).length == 2 ) {
19
+ filterBasedFields = _.omit( attrs, 'type', 'orderby', 'order', 'query', 'perPage', 'post__in', 'include', 'exclude', 'id', 'ids', 'columns', 'itemtag', 'icontag', 'captiontag', 'link', 'size', '_orderByField', '_orderbyRandom' );
20
+ }
21
+ else {
22
+ filterBasedFields = _.omit( attrs, 'type', 'orderby', 'order', 'query', 'perPage', 'post__in', 'include', 'exclude', 'id', 'ids', 'columns', 'itemtag', 'icontag', 'captiontag', 'link', 'size', '_orderByField', '_orderbyRandom', 'monthnum', 'year' );
23
+ }
24
+
25
+ // if any of these is set: %taxonomy_name%, monthnum, year
26
+ if ( _.filter( _.values( filterBasedFields ), _.identity ).length ) {
27
+ return true;
28
+ }
29
+
30
+ return false;
31
+ };
32
+
33
+
34
+
35
+ ( function( $, _ ) {
36
+
37
+ var media = wp.media,
38
+ original = {};
39
+
40
+ /**
41
+ * wp.media.view.MediaFrame.Post
42
+ *
43
+ */
44
+ original.MediaFrame = {
45
+
46
+ Post: {
47
+ galleryMenu: media.view.MediaFrame.Post.prototype.galleryMenu
48
+ }
49
+ };
50
+
51
+ _.extend( media.view.MediaFrame.Post.prototype, {
52
+
53
+ galleryMenu: function( view ) {
54
+
55
+ original.MediaFrame.Post.galleryMenu.apply( this, arguments );
56
+
57
+ var library = this.state().get('library'),
58
+ isFilterBased = emlIsGalleryFilterBased( library.props.toJSON() );
59
+
60
+
61
+ if ( isFilterBased ) {
62
+ view.hide( 'gallery-library' );
63
+ }
64
+ }
65
+ });
66
+
67
+
68
+
69
+ /**
70
+ * wp.media.view.Attachment.EditLibrary
71
+ *
72
+ */
73
+ _.extend( media.view.Attachment.EditLibrary.prototype, {
74
+
75
+ initialize: function() {
76
+
77
+ var state = this.controller.state(),
78
+ isFilterBased = emlIsGalleryFilterBased( state.get('library').props.toJSON() );
79
+
80
+
81
+ this.buttons.close = ( 'gallery-edit' == state.get('id') && isFilterBased ) ? false : true;
82
+ }
83
+ });
84
+
85
+
86
+
87
+ /**
88
+ * wp.media.view.Settings.Gallery
89
+ *
90
+ */
91
+ _.extend( media.view.Settings.Gallery.prototype.events, {
92
+ 'change ._orderbyRandom' : 'change_orderbyRandom',
93
+ });
94
+
95
+ _.extend( media.view.Settings.Gallery.prototype, {
96
+
97
+ template: media.template('eml-gallery-settings'),
98
+
99
+ change_orderbyRandom: function( event ) {
100
+
101
+ var content = this.controller.frame.content,
102
+ reverse = content.get().toolbar.get( 'reverse' );
103
+
104
+ reverse.model.set( 'disabled', $( event.target ).is(':checked') );
105
+ }
106
+ });
107
+
108
+
109
+
110
+ /**
111
+ * wp.media.controller.GalleryEdit
112
+ *
113
+ */
114
+ original.GalleryEdit = {
115
+
116
+ gallerySettings: media.controller.GalleryEdit.prototype.gallerySettings,
117
+ };
118
+
119
+ _.extend( media.controller.GalleryEdit.prototype, {
120
+
121
+ gallerySettings: function( browser ) {
122
+
123
+ original.GalleryEdit.gallerySettings.apply( this, arguments );
124
+
125
+ var library = this.get('library'),
126
+ reverse = browser.toolbar.get( 'reverse' );
127
+
128
+
129
+ reverse.model.set( 'disabled', 'rand' === library.props.get('orderby') );
130
+
131
+ reverse.options.click = function() {
132
+
133
+ switch( library.gallery.get( 'order' ) ) {
134
+ case 'ASC':
135
+ library.props.set( 'order', 'DESC' );
136
+ library.gallery.set( 'order', 'DESC' );
137
+ break;
138
+ case 'DESC':
139
+ library.props.set( 'order', 'ASC' );
140
+ library.gallery.set( 'order', 'ASC' );
141
+ break;
142
+ default:
143
+ library.props.set( 'order', 'DESC' );
144
+ library.gallery.set( 'order', 'DESC' );
145
+ }
146
+
147
+ library.reset( library.toArray().reverse() );
148
+ library.saveMenuOrder();
149
+ }
150
+ }
151
+ });
152
+
153
+ })( jQuery, _ );
js/eml-media-views.js CHANGED
@@ -14,36 +14,6 @@ window.eml = window.eml || { l10n: {} };
14
 
15
 
16
 
17
- window.emlIsGalleryFilterBased = function( attrs ) {
18
-
19
- var filterBasedFields;
20
-
21
- if ( _.isUndefined( attrs ) ) {
22
- return false;
23
- }
24
-
25
- // because of 0 (unattached) value
26
- if ( ! _.isUndefined( attrs.uploadedTo ) ) {
27
- return true;
28
- }
29
-
30
- if ( _.filter( _.pick( attrs, 'monthnum', 'year' ), _.identity ).length == 2 ) {
31
- filterBasedFields = _.omit( attrs, 'type', 'orderby', 'order', 'query', 'perPage', 'post__in', 'include', 'exclude', 'id', 'ids', 'columns', 'itemtag', 'icontag', 'captiontag', 'link', 'size', '_orderByField', '_orderbyRandom' );
32
- }
33
- else {
34
- filterBasedFields = _.omit( attrs, 'type', 'orderby', 'order', 'query', 'perPage', 'post__in', 'include', 'exclude', 'id', 'ids', 'columns', 'itemtag', 'icontag', 'captiontag', 'link', 'size', '_orderByField', '_orderbyRandom', 'monthnum', 'year' );
35
- }
36
-
37
- // if any of these is set: %taxonomy_name%, monthnum, year
38
- if ( _.filter( _.values( filterBasedFields ), _.identity ).length ) {
39
- return true;
40
- }
41
-
42
- return false;
43
- };
44
-
45
-
46
-
47
  /**
48
  * wp.media.controller.Library
49
  *
@@ -380,7 +350,6 @@ window.eml = window.eml || { l10n: {} };
380
 
381
  initialize: media.view.AttachmentsBrowser.prototype.initialize,
382
  createToolbar: media.view.AttachmentsBrowser.prototype.createToolbar,
383
- createSingle: media.view.AttachmentsBrowser.prototype.createSingle
384
  };
385
 
386
  _.extend( media.view.AttachmentsBrowser.prototype, {
@@ -463,15 +432,6 @@ window.eml = window.eml || { l10n: {} };
463
  }
464
  },
465
 
466
- createSingle: function() {
467
-
468
- var state = this.controller.state().get('id');
469
-
470
- if ( 'gallery-edit' != state && 'gallery' != state ) {
471
- original.AttachmentsBrowser.createSingle.apply( this, arguments );
472
- }
473
- },
474
-
475
  createToolbar: function() {
476
 
477
  var filters = this.options.filters,
@@ -609,7 +569,6 @@ window.eml = window.eml || { l10n: {} };
609
 
610
  Post: {
611
  activate: media.view.MediaFrame.Post.prototype.activate,
612
- galleryMenu: media.view.MediaFrame.Post.prototype.galleryMenu
613
  }
614
  };
615
 
@@ -622,105 +581,6 @@ window.eml = window.eml || { l10n: {} };
622
  var content = this.content.get();
623
 
624
  this.on( 'open', content.fixLayout, content );
625
- },
626
-
627
- galleryMenu: function( view ) {
628
-
629
- original.MediaFrame.Post.galleryMenu.apply( this, arguments );
630
-
631
- var library = this.state().get('library'),
632
- isFilterBased = emlIsGalleryFilterBased( library.props.toJSON() );
633
-
634
-
635
- if ( isFilterBased ) {
636
- view.hide( 'gallery-library' );
637
- }
638
- }
639
- });
640
-
641
-
642
-
643
- /**
644
- * wp.media.view.Attachment.EditLibrary
645
- *
646
- */
647
- _.extend( media.view.Attachment.EditLibrary.prototype, {
648
-
649
- initialize: function() {
650
-
651
- var state = this.controller.state(),
652
- isFilterBased = emlIsGalleryFilterBased( state.get('library').props.toJSON() );
653
-
654
-
655
- this.buttons.close = ( 'gallery-edit' == state.get('id') && isFilterBased ) ? false : true;
656
- }
657
- });
658
-
659
-
660
-
661
- /**
662
- * wp.media.view.Settings.Gallery
663
- *
664
- */
665
- _.extend( media.view.Settings.Gallery.prototype.events, {
666
- 'change ._orderbyRandom' : 'change_orderbyRandom',
667
- });
668
-
669
- _.extend( media.view.Settings.Gallery.prototype, {
670
-
671
- template: media.template('eml-gallery-settings'),
672
-
673
- change_orderbyRandom: function( event ) {
674
-
675
- var content = this.controller.frame.content,
676
- reverse = content.get().toolbar.get( 'reverse' );
677
-
678
- reverse.model.set( 'disabled', $( event.target ).is(':checked') );
679
- }
680
- });
681
-
682
-
683
-
684
- /**
685
- * wp.media.controller.GalleryEdit
686
- *
687
- */
688
- original.GalleryEdit = {
689
-
690
- gallerySettings: media.controller.GalleryEdit.prototype.gallerySettings,
691
- };
692
-
693
- _.extend( media.controller.GalleryEdit.prototype, {
694
-
695
- gallerySettings: function( browser ) {
696
-
697
- original.GalleryEdit.gallerySettings.apply( this, arguments );
698
-
699
- var library = this.get('library'),
700
- reverse = browser.toolbar.get( 'reverse' );
701
-
702
-
703
- reverse.model.set( 'disabled', 'rand' === library.props.get('orderby') );
704
-
705
- reverse.options.click = function() {
706
-
707
- switch( library.gallery.get( 'order' ) ) {
708
- case 'ASC':
709
- library.props.set( 'order', 'DESC' );
710
- library.gallery.set( 'order', 'DESC' );
711
- break;
712
- case 'DESC':
713
- library.props.set( 'order', 'ASC' );
714
- library.gallery.set( 'order', 'ASC' );
715
- break;
716
- default:
717
- library.props.set( 'order', 'DESC' );
718
- library.gallery.set( 'order', 'DESC' );
719
- }
720
-
721
- library.reset( library.toArray().reverse() );
722
- library.saveMenuOrder();
723
- }
724
  }
725
  });
726
 
14
 
15
 
16
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
17
  /**
18
  * wp.media.controller.Library
19
  *
350
 
351
  initialize: media.view.AttachmentsBrowser.prototype.initialize,
352
  createToolbar: media.view.AttachmentsBrowser.prototype.createToolbar,
 
353
  };
354
 
355
  _.extend( media.view.AttachmentsBrowser.prototype, {
432
  }
433
  },
434
 
 
 
 
 
 
 
 
 
 
435
  createToolbar: function() {
436
 
437
  var filters = this.options.filters,
569
 
570
  Post: {
571
  activate: media.view.MediaFrame.Post.prototype.activate,
 
572
  }
573
  };
574
 
581
  var content = this.content.get();
582
 
583
  this.on( 'open', content.fixLayout, content );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
584
  }
585
  });
586
 
languages/eml.pot CHANGED
@@ -4,7 +4,7 @@
4
  msgid ""
5
  msgstr ""
6
  "Project-Id-Version: Enhanced Media Library PRO\n"
7
- "POT-Creation-Date: 2015-12-15 03:20+0200\n"
8
  "Last-Translator: \n"
9
  "Language-Team: \n"
10
  "MIME-Version: 1.0\n"
@@ -36,7 +36,7 @@ msgid_plural "Unattached (%s)"
36
  msgstr[0] ""
37
  msgstr[1] ""
38
 
39
- #: core/class-eml-media-list-table.php:65 enhanced-media-library.php:431
40
  msgid "All Uncategorized"
41
  msgstr ""
42
 
@@ -52,7 +52,7 @@ msgstr[1] ""
52
  msgid "Filter"
53
  msgstr ""
54
 
55
- #: core/class-eml-media-list-table.php:90 enhanced-media-library.php:435
56
  msgid "Reset All Filters"
57
  msgstr ""
58
 
@@ -137,7 +137,7 @@ msgid "Media Library"
137
  msgstr ""
138
 
139
  #: core/eml-upload-4.1.php:73 core/eml-upload-4.1.php:248
140
- #: core/eml-upload-4.4.php:87 core/eml-upload-4.4.php:236
141
  msgctxt "file"
142
  msgid "Add New"
143
  msgstr ""
@@ -220,33 +220,33 @@ msgid ""
220
  "that will allow you to search for a post and attach the file."
221
  msgstr ""
222
 
223
- #: core/eml-upload-4.1.php:251 core/eml-upload-4.4.php:239
224
  #, php-format
225
  msgid "Search results for &#8220;%s&#8221;"
226
  msgstr ""
227
 
228
  #: core/eml-upload-4.1.php:257 core/eml-upload-4.1.php:282
229
- #: core/eml-upload-4.4.php:245 core/eml-upload-4.4.php:290
230
  msgid "Media attachment updated."
231
  msgstr ""
232
 
233
- #: core/eml-upload-4.1.php:262 core/eml-upload-4.4.php:250
234
  #, php-format
235
  msgid "Reattached %d attachment."
236
  msgid_plural "Reattached %d attachments."
237
  msgstr[0] ""
238
  msgstr[1] ""
239
 
240
- #: core/eml-upload-4.1.php:267 core/eml-upload-4.4.php:261
241
- #: core/eml-upload-4.4.php:291
242
  #, php-format
243
  msgid "Media attachment permanently deleted."
244
  msgid_plural "%d media attachments permanently deleted."
245
  msgstr[0] ""
246
  msgstr[1] ""
247
 
248
- #: core/eml-upload-4.1.php:272 core/eml-upload-4.4.php:271
249
- #: core/eml-upload-4.4.php:293
250
  #, php-format
251
  msgid "Media attachment moved to the trash."
252
  msgid_plural "%d media attachments moved to the trash."
@@ -254,12 +254,12 @@ msgstr[0] ""
254
  msgstr[1] ""
255
 
256
  #: core/eml-upload-4.1.php:273 core/eml-upload-4.1.php:285
257
- #: core/eml-upload-4.4.php:276 core/eml-upload-4.4.php:293
258
  msgid "Undo"
259
  msgstr ""
260
 
261
- #: core/eml-upload-4.1.php:278 core/eml-upload-4.4.php:282
262
- #: core/eml-upload-4.4.php:294
263
  #, php-format
264
  msgid "Media attachment restored from the trash."
265
  msgid_plural "%d media attachments restored from the trash."
@@ -270,7 +270,7 @@ msgstr[1] ""
270
  msgid "Media permanently deleted."
271
  msgstr ""
272
 
273
- #: core/eml-upload-4.1.php:284 core/eml-upload-4.4.php:292
274
  msgid "Error saving media attachment."
275
  msgstr ""
276
 
@@ -300,95 +300,95 @@ msgstr ""
300
  msgid "You are not allowed to delete this item."
301
  msgstr ""
302
 
303
- #: core/eml-upload-4.4.php:223
304
  msgid "Filter media items list"
305
  msgstr ""
306
 
307
- #: core/eml-upload-4.4.php:224
308
  msgid "Media items list navigation"
309
  msgstr ""
310
 
311
- #: core/eml-upload-4.4.php:225
312
  msgid "Media items list"
313
  msgstr ""
314
 
315
- #: core/eml-upload-4.4.php:255
316
  #, php-format
317
  msgid "Detached %d attachment."
318
  msgid_plural "Detached %d attachments."
319
  msgstr[0] ""
320
  msgstr[1] ""
321
 
322
- #: core/eml-upload-4.4.php:263
323
  #, php-format
324
  msgid "%d media attachment permanently deleted."
325
  msgid_plural "%d media attachments permanently deleted."
326
  msgstr[0] ""
327
  msgstr[1] ""
328
 
329
- #: core/eml-upload-4.4.php:273
330
  #, php-format
331
  msgid "%d media attachment moved to the trash."
332
  msgid_plural "%d media attachments moved to the trash."
333
  msgstr[0] ""
334
  msgstr[1] ""
335
 
336
- #: core/eml-upload-4.4.php:284
337
  #, php-format
338
  msgid "%d media attachment restored from the trash."
339
  msgid_plural "%d media attachments restored from the trash."
340
  msgstr[0] ""
341
  msgstr[1] ""
342
 
343
- #: core/gallery.php:280 pro/core/gallery.php:22
344
  msgid "Gallery Settings"
345
  msgstr ""
346
 
347
- #: core/gallery.php:283 pro/core/gallery.php:25
348
  msgid "Link To"
349
  msgstr ""
350
 
351
- #: core/gallery.php:293 pro/core/gallery.php:34
352
  msgid "Attachment Page"
353
  msgstr ""
354
 
355
- #: core/gallery.php:296 pro/core/gallery.php:37
356
  msgid "Media File"
357
  msgstr ""
358
 
359
- #: core/gallery.php:299 pro/core/gallery.php:40
360
  msgid "None"
361
  msgstr ""
362
 
363
- #: core/gallery.php:305 pro/core/gallery.php:46
364
  msgid "Columns"
365
  msgstr ""
366
 
367
- #: core/gallery.php:319
368
  msgid "Random Order"
369
  msgstr ""
370
 
371
- #: core/gallery.php:324 pro/core/gallery.php:102
372
  msgid "Size"
373
  msgstr ""
374
 
375
- #: core/gallery.php:334 pro/core/gallery.php:112
376
  msgid "Thumbnail"
377
  msgstr ""
378
 
379
- #: core/gallery.php:335 pro/core/gallery.php:113
380
  msgid "Medium"
381
  msgstr ""
382
 
383
- #: core/gallery.php:336 pro/core/gallery.php:114
384
  msgid "Large"
385
  msgstr ""
386
 
387
- #: core/gallery.php:337 pro/core/gallery.php:115
388
  msgid "Full Size"
389
  msgstr ""
390
 
391
- #: core/gallery.php:358 pro/core/gallery.php:134
392
  msgid "Based On"
393
  msgstr ""
394
 
@@ -418,7 +418,7 @@ msgstr ""
418
 
419
  #: core/options-pages.php:90 core/options-pages.php:561
420
  #: core/options-pages.php:583 core/options-pages.php:629
421
- #: core/options-pages.php:694 core/options-pages.php:984
422
  msgid "Settings"
423
  msgstr ""
424
 
@@ -428,7 +428,7 @@ msgid "Taxonomies"
428
  msgstr ""
429
 
430
  #: core/options-pages.php:106 core/options-pages.php:107
431
- #: core/options-pages.php:812
432
  msgid "MIME Types"
433
  msgstr ""
434
 
@@ -438,7 +438,7 @@ msgstr ""
438
  msgid "Edit"
439
  msgstr ""
440
 
441
- #: core/options-pages.php:144 pro/enhanced-media-library-pro.php:184
442
  msgid "Close"
443
  msgstr ""
444
 
@@ -520,7 +520,7 @@ msgid "Duplicate extensions or MIME types. Please chose other one."
520
  msgstr ""
521
 
522
  #: core/options-pages.php:189 core/options-pages.php:486
523
- #: core/options-pages.php:804
524
  msgid "You do not have sufficient permissions to access this page."
525
  msgstr ""
526
 
@@ -719,7 +719,7 @@ msgid "Force filters"
719
  msgstr ""
720
 
721
  #: core/options-pages.php:760
722
- msgid "Show media filters for ANY Media Popup."
723
  msgstr ""
724
 
725
  #: core/options-pages.php:761
@@ -728,45 +728,63 @@ msgid ""
728
  "themes."
729
  msgstr ""
730
 
731
- #: core/options-pages.php:813
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
732
  msgid "Add New MIME Type"
733
  msgstr ""
734
 
735
- #: core/options-pages.php:831 core/options-pages.php:886
736
  msgid "Extension"
737
  msgstr ""
738
 
739
- #: core/options-pages.php:832 core/options-pages.php:887
740
  msgid "MIME Type"
741
  msgstr ""
742
 
743
- #: core/options-pages.php:833 core/options-pages.php:888
744
  msgid "Singular Label"
745
  msgstr ""
746
 
747
- #: core/options-pages.php:834 core/options-pages.php:889
748
  msgid "Plural Label"
749
  msgstr ""
750
 
751
- #: core/options-pages.php:835 core/options-pages.php:865
752
- #: core/options-pages.php:878 core/options-pages.php:890
753
  msgid "Add Filter"
754
  msgstr ""
755
 
756
- #: core/options-pages.php:836 core/options-pages.php:866
757
- #: core/options-pages.php:879 core/options-pages.php:891
758
  msgid "Allow Upload"
759
  msgstr ""
760
 
761
- #: core/options-pages.php:880
762
  msgid "Delete MIME Type"
763
  msgstr ""
764
 
765
- #: core/options-pages.php:897
766
  msgid "Restore WordPress default MIME Types"
767
  msgstr ""
768
 
769
- #: core/options-pages.php:899 pro/enhanced-media-library-pro.php:183
770
  msgid "Save Changes"
771
  msgstr ""
772
 
@@ -775,19 +793,19 @@ msgid "Taxonomy settings saved."
775
  msgstr ""
776
 
777
  #: core/taxonomies.php:330 core/taxonomies.php:336
778
- #: enhanced-media-library.php:432
779
  msgid "Filter by "
780
  msgstr ""
781
 
782
- #: core/taxonomies.php:337 enhanced-media-library.php:433
783
  msgid "All "
784
  msgstr ""
785
 
786
- #: core/taxonomies.php:338 enhanced-media-library.php:434
787
  msgid "Not in "
788
  msgstr ""
789
 
790
- #: enhanced-media-library.php:446
791
  msgid "Uploaded to post #"
792
  msgstr ""
793
 
@@ -885,7 +903,7 @@ msgstr ""
885
  msgid "You license has been activated."
886
  msgstr ""
887
 
888
- #: pro/core/options-pages.php:130 pro/enhanced-media-library-pro.php:186
889
  msgid "Bulk Edit"
890
  msgstr ""
891
 
@@ -957,62 +975,64 @@ msgid ""
957
  "a license, you are welcome to <a href=\"%s\">purchase it</a>."
958
  msgstr ""
959
 
960
- #: pro/enhanced-media-library-pro.php:97 pro/enhanced-media-library-pro.php:109
 
961
  msgid "Expand Details"
962
  msgstr ""
963
 
964
- #: pro/enhanced-media-library-pro.php:98 pro/enhanced-media-library-pro.php:110
 
965
  msgid "Collapse Details"
966
  msgstr ""
967
 
968
- #: pro/enhanced-media-library-pro.php:101
969
  msgid "Validation Failed. One or more fields below are required."
970
  msgstr ""
971
 
972
- #: pro/enhanced-media-library-pro.php:108
973
  msgid "The changes you made will be lost if you navigate away from this page"
974
  msgstr ""
975
 
976
- #: pro/enhanced-media-library-pro.php:178
977
  msgid "ALL files belong to this item"
978
  msgstr ""
979
 
980
- #: pro/enhanced-media-library-pro.php:179
981
  msgid "SOME files belong to this item"
982
  msgstr ""
983
 
984
- #: pro/enhanced-media-library-pro.php:180
985
  msgid "NO files belong to this item"
986
  msgstr ""
987
 
988
- #: pro/enhanced-media-library-pro.php:181
989
  msgid "Changes saved."
990
  msgstr ""
991
 
992
- #: pro/enhanced-media-library-pro.php:182
993
  msgid "Something went wrong."
994
  msgstr ""
995
 
996
- #: pro/enhanced-media-library-pro.php:185
997
  msgid "Edit Media Files"
998
  msgstr ""
999
 
1000
- #: pro/enhanced-media-library-pro.php:199
1001
  msgid "Create a filter-based gallery"
1002
  msgstr ""
1003
 
1004
- #: pro/enhanced-media-library-pro.php:272
1005
  msgid ""
1006
  "Please deactivate and <strong>remove</strong> the old FREE version prior to "
1007
  "the <strong>Enhanced Media Library PRO</strong> activation. All your data "
1008
  "will remain intact."
1009
  msgstr ""
1010
 
1011
- #: pro/enhanced-media-library-pro.php:272
1012
  msgid "Return to Plugins"
1013
  msgstr ""
1014
 
1015
- #: pro/enhanced-media-library-pro.php:314
1016
  msgid ""
1017
  "Both FREE and PRO versions of the Enhanced Media Library are network active. "
1018
  "<strong>Enhanced Media Library PRO</strong> does not require free version to "
@@ -1020,14 +1040,14 @@ msgid ""
1020
  "plugin. All your data will remail intact."
1021
  msgstr ""
1022
 
1023
- #: pro/enhanced-media-library-pro.php:331
1024
  msgid ""
1025
  "<strong>Enhanced Media Library PRO</strong> does not require free version to "
1026
  "be active. Please deactivate and delete the free version of the plugin. All "
1027
  "your data will remain intact."
1028
  msgstr ""
1029
 
1030
- #: pro/enhanced-media-library-pro.php:347
1031
  msgid ""
1032
  "Both FREE and PRO versions of the Enhanced Media Library are active for this "
1033
  "site. <strong>Enhanced Media Library PRO</strong> does not require free "
4
  msgid ""
5
  msgstr ""
6
  "Project-Id-Version: Enhanced Media Library PRO\n"
7
+ "POT-Creation-Date: 2015-12-17 04:55+0200\n"
8
  "Last-Translator: \n"
9
  "Language-Team: \n"
10
  "MIME-Version: 1.0\n"
36
  msgstr[0] ""
37
  msgstr[1] ""
38
 
39
+ #: core/class-eml-media-list-table.php:65 enhanced-media-library.php:447
40
  msgid "All Uncategorized"
41
  msgstr ""
42
 
52
  msgid "Filter"
53
  msgstr ""
54
 
55
+ #: core/class-eml-media-list-table.php:90 enhanced-media-library.php:451
56
  msgid "Reset All Filters"
57
  msgstr ""
58
 
137
  msgstr ""
138
 
139
  #: core/eml-upload-4.1.php:73 core/eml-upload-4.1.php:248
140
+ #: core/eml-upload-4.4.php:87 core/eml-upload-4.4.php:238
141
  msgctxt "file"
142
  msgid "Add New"
143
  msgstr ""
220
  "that will allow you to search for a post and attach the file."
221
  msgstr ""
222
 
223
+ #: core/eml-upload-4.1.php:251 core/eml-upload-4.4.php:241
224
  #, php-format
225
  msgid "Search results for &#8220;%s&#8221;"
226
  msgstr ""
227
 
228
  #: core/eml-upload-4.1.php:257 core/eml-upload-4.1.php:282
229
+ #: core/eml-upload-4.4.php:247 core/eml-upload-4.4.php:292
230
  msgid "Media attachment updated."
231
  msgstr ""
232
 
233
+ #: core/eml-upload-4.1.php:262 core/eml-upload-4.4.php:252
234
  #, php-format
235
  msgid "Reattached %d attachment."
236
  msgid_plural "Reattached %d attachments."
237
  msgstr[0] ""
238
  msgstr[1] ""
239
 
240
+ #: core/eml-upload-4.1.php:267 core/eml-upload-4.4.php:263
241
+ #: core/eml-upload-4.4.php:293
242
  #, php-format
243
  msgid "Media attachment permanently deleted."
244
  msgid_plural "%d media attachments permanently deleted."
245
  msgstr[0] ""
246
  msgstr[1] ""
247
 
248
+ #: core/eml-upload-4.1.php:272 core/eml-upload-4.4.php:273
249
+ #: core/eml-upload-4.4.php:295
250
  #, php-format
251
  msgid "Media attachment moved to the trash."
252
  msgid_plural "%d media attachments moved to the trash."
254
  msgstr[1] ""
255
 
256
  #: core/eml-upload-4.1.php:273 core/eml-upload-4.1.php:285
257
+ #: core/eml-upload-4.4.php:278 core/eml-upload-4.4.php:295
258
  msgid "Undo"
259
  msgstr ""
260
 
261
+ #: core/eml-upload-4.1.php:278 core/eml-upload-4.4.php:284
262
+ #: core/eml-upload-4.4.php:296
263
  #, php-format
264
  msgid "Media attachment restored from the trash."
265
  msgid_plural "%d media attachments restored from the trash."
270
  msgid "Media permanently deleted."
271
  msgstr ""
272
 
273
+ #: core/eml-upload-4.1.php:284 core/eml-upload-4.4.php:294
274
  msgid "Error saving media attachment."
275
  msgstr ""
276
 
300
  msgid "You are not allowed to delete this item."
301
  msgstr ""
302
 
303
+ #: core/eml-upload-4.4.php:224
304
  msgid "Filter media items list"
305
  msgstr ""
306
 
307
+ #: core/eml-upload-4.4.php:225
308
  msgid "Media items list navigation"
309
  msgstr ""
310
 
311
+ #: core/eml-upload-4.4.php:226
312
  msgid "Media items list"
313
  msgstr ""
314
 
315
+ #: core/eml-upload-4.4.php:257
316
  #, php-format
317
  msgid "Detached %d attachment."
318
  msgid_plural "Detached %d attachments."
319
  msgstr[0] ""
320
  msgstr[1] ""
321
 
322
+ #: core/eml-upload-4.4.php:265
323
  #, php-format
324
  msgid "%d media attachment permanently deleted."
325
  msgid_plural "%d media attachments permanently deleted."
326
  msgstr[0] ""
327
  msgstr[1] ""
328
 
329
+ #: core/eml-upload-4.4.php:275
330
  #, php-format
331
  msgid "%d media attachment moved to the trash."
332
  msgid_plural "%d media attachments moved to the trash."
333
  msgstr[0] ""
334
  msgstr[1] ""
335
 
336
+ #: core/eml-upload-4.4.php:286
337
  #, php-format
338
  msgid "%d media attachment restored from the trash."
339
  msgid_plural "%d media attachments restored from the trash."
340
  msgstr[0] ""
341
  msgstr[1] ""
342
 
343
+ #: core/gallery.php:300 pro/core/gallery.php:22
344
  msgid "Gallery Settings"
345
  msgstr ""
346
 
347
+ #: core/gallery.php:303 pro/core/gallery.php:25
348
  msgid "Link To"
349
  msgstr ""
350
 
351
+ #: core/gallery.php:313 pro/core/gallery.php:34
352
  msgid "Attachment Page"
353
  msgstr ""
354
 
355
+ #: core/gallery.php:316 pro/core/gallery.php:37
356
  msgid "Media File"
357
  msgstr ""
358
 
359
+ #: core/gallery.php:319 pro/core/gallery.php:40
360
  msgid "None"
361
  msgstr ""
362
 
363
+ #: core/gallery.php:325 pro/core/gallery.php:46
364
  msgid "Columns"
365
  msgstr ""
366
 
367
+ #: core/gallery.php:339
368
  msgid "Random Order"
369
  msgstr ""
370
 
371
+ #: core/gallery.php:344 pro/core/gallery.php:102
372
  msgid "Size"
373
  msgstr ""
374
 
375
+ #: core/gallery.php:354 pro/core/gallery.php:112
376
  msgid "Thumbnail"
377
  msgstr ""
378
 
379
+ #: core/gallery.php:355 pro/core/gallery.php:113
380
  msgid "Medium"
381
  msgstr ""
382
 
383
+ #: core/gallery.php:356 pro/core/gallery.php:114
384
  msgid "Large"
385
  msgstr ""
386
 
387
+ #: core/gallery.php:357 pro/core/gallery.php:115
388
  msgid "Full Size"
389
  msgstr ""
390
 
391
+ #: core/gallery.php:378 pro/core/gallery.php:134
392
  msgid "Based On"
393
  msgstr ""
394
 
418
 
419
  #: core/options-pages.php:90 core/options-pages.php:561
420
  #: core/options-pages.php:583 core/options-pages.php:629
421
+ #: core/options-pages.php:694 core/options-pages.php:996
422
  msgid "Settings"
423
  msgstr ""
424
 
428
  msgstr ""
429
 
430
  #: core/options-pages.php:106 core/options-pages.php:107
431
+ #: core/options-pages.php:824
432
  msgid "MIME Types"
433
  msgstr ""
434
 
438
  msgid "Edit"
439
  msgstr ""
440
 
441
+ #: core/options-pages.php:144 pro/enhanced-media-library-pro.php:179
442
  msgid "Close"
443
  msgstr ""
444
 
520
  msgstr ""
521
 
522
  #: core/options-pages.php:189 core/options-pages.php:486
523
+ #: core/options-pages.php:816
524
  msgid "You do not have sufficient permissions to access this page."
525
  msgstr ""
526
 
719
  msgstr ""
720
 
721
  #: core/options-pages.php:760
722
+ msgid "Show media filters for ANY Media Popup"
723
  msgstr ""
724
 
725
  #: core/options-pages.php:761
728
  "themes."
729
  msgstr ""
730
 
731
+ #: core/options-pages.php:767 core/options-pages.php:770
732
+ msgid "Turn off enhanced gallery"
733
+ msgstr ""
734
+
735
+ #: core/options-pages.php:771
736
+ msgid "Do not enhance WordPress native gallery shortcode"
737
+ msgstr ""
738
+
739
+ #: core/options-pages.php:772
740
+ msgid ""
741
+ "May be useful in case of incompatibility with other plugins or themes. Use "
742
+ "the option if you think it breaks your galleries in any way."
743
+ msgstr ""
744
+
745
+ #: core/options-pages.php:773
746
+ msgid "Please inform plugin authors about the issue. We would like to fix it!"
747
+ msgstr ""
748
+
749
+ #: core/options-pages.php:825
750
  msgid "Add New MIME Type"
751
  msgstr ""
752
 
753
+ #: core/options-pages.php:843 core/options-pages.php:898
754
  msgid "Extension"
755
  msgstr ""
756
 
757
+ #: core/options-pages.php:844 core/options-pages.php:899
758
  msgid "MIME Type"
759
  msgstr ""
760
 
761
+ #: core/options-pages.php:845 core/options-pages.php:900
762
  msgid "Singular Label"
763
  msgstr ""
764
 
765
+ #: core/options-pages.php:846 core/options-pages.php:901
766
  msgid "Plural Label"
767
  msgstr ""
768
 
769
+ #: core/options-pages.php:847 core/options-pages.php:877
770
+ #: core/options-pages.php:890 core/options-pages.php:902
771
  msgid "Add Filter"
772
  msgstr ""
773
 
774
+ #: core/options-pages.php:848 core/options-pages.php:878
775
+ #: core/options-pages.php:891 core/options-pages.php:903
776
  msgid "Allow Upload"
777
  msgstr ""
778
 
779
+ #: core/options-pages.php:892
780
  msgid "Delete MIME Type"
781
  msgstr ""
782
 
783
+ #: core/options-pages.php:909
784
  msgid "Restore WordPress default MIME Types"
785
  msgstr ""
786
 
787
+ #: core/options-pages.php:911 pro/enhanced-media-library-pro.php:178
788
  msgid "Save Changes"
789
  msgstr ""
790
 
793
  msgstr ""
794
 
795
  #: core/taxonomies.php:330 core/taxonomies.php:336
796
+ #: enhanced-media-library.php:448
797
  msgid "Filter by "
798
  msgstr ""
799
 
800
+ #: core/taxonomies.php:337 enhanced-media-library.php:449
801
  msgid "All "
802
  msgstr ""
803
 
804
+ #: core/taxonomies.php:338 enhanced-media-library.php:450
805
  msgid "Not in "
806
  msgstr ""
807
 
808
+ #: enhanced-media-library.php:481
809
  msgid "Uploaded to post #"
810
  msgstr ""
811
 
903
  msgid "You license has been activated."
904
  msgstr ""
905
 
906
+ #: pro/core/options-pages.php:130 pro/enhanced-media-library-pro.php:181
907
  msgid "Bulk Edit"
908
  msgstr ""
909
 
975
  "a license, you are welcome to <a href=\"%s\">purchase it</a>."
976
  msgstr ""
977
 
978
+ #: pro/enhanced-media-library-pro.php:100
979
+ #: pro/enhanced-media-library-pro.php:112
980
  msgid "Expand Details"
981
  msgstr ""
982
 
983
+ #: pro/enhanced-media-library-pro.php:101
984
+ #: pro/enhanced-media-library-pro.php:113
985
  msgid "Collapse Details"
986
  msgstr ""
987
 
988
+ #: pro/enhanced-media-library-pro.php:104
989
  msgid "Validation Failed. One or more fields below are required."
990
  msgstr ""
991
 
992
+ #: pro/enhanced-media-library-pro.php:111
993
  msgid "The changes you made will be lost if you navigate away from this page"
994
  msgstr ""
995
 
996
+ #: pro/enhanced-media-library-pro.php:173
997
  msgid "ALL files belong to this item"
998
  msgstr ""
999
 
1000
+ #: pro/enhanced-media-library-pro.php:174
1001
  msgid "SOME files belong to this item"
1002
  msgstr ""
1003
 
1004
+ #: pro/enhanced-media-library-pro.php:175
1005
  msgid "NO files belong to this item"
1006
  msgstr ""
1007
 
1008
+ #: pro/enhanced-media-library-pro.php:176
1009
  msgid "Changes saved."
1010
  msgstr ""
1011
 
1012
+ #: pro/enhanced-media-library-pro.php:177
1013
  msgid "Something went wrong."
1014
  msgstr ""
1015
 
1016
+ #: pro/enhanced-media-library-pro.php:180
1017
  msgid "Edit Media Files"
1018
  msgstr ""
1019
 
1020
+ #: pro/enhanced-media-library-pro.php:205
1021
  msgid "Create a filter-based gallery"
1022
  msgstr ""
1023
 
1024
+ #: pro/enhanced-media-library-pro.php:279
1025
  msgid ""
1026
  "Please deactivate and <strong>remove</strong> the old FREE version prior to "
1027
  "the <strong>Enhanced Media Library PRO</strong> activation. All your data "
1028
  "will remain intact."
1029
  msgstr ""
1030
 
1031
+ #: pro/enhanced-media-library-pro.php:279
1032
  msgid "Return to Plugins"
1033
  msgstr ""
1034
 
1035
+ #: pro/enhanced-media-library-pro.php:321
1036
  msgid ""
1037
  "Both FREE and PRO versions of the Enhanced Media Library are network active. "
1038
  "<strong>Enhanced Media Library PRO</strong> does not require free version to "
1040
  "plugin. All your data will remail intact."
1041
  msgstr ""
1042
 
1043
+ #: pro/enhanced-media-library-pro.php:338
1044
  msgid ""
1045
  "<strong>Enhanced Media Library PRO</strong> does not require free version to "
1046
  "be active. Please deactivate and delete the free version of the plugin. All "
1047
  "your data will remain intact."
1048
  msgstr ""
1049
 
1050
+ #: pro/enhanced-media-library-pro.php:354
1051
  msgid ""
1052
  "Both FREE and PRO versions of the Enhanced Media Library are active for this "
1053
  "site. <strong>Enhanced Media Library PRO</strong> does not require free "
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: webbistro
3
  Tags: media library, media category, media categories, media management, media organizer, media gallery, gallery shortcode, media tag, media tags, media taxonomy, media taxonomies, media uploader, mime type, mime, mime types, file types, media types, media filter, attachment, gallery, image, images, media, ux, user experience, wp-admin, admin, taxonomy, taxonomies
4
  Requires at least: 4.0
5
  Tested up to: 4.4
6
- Stable tag: 2.1.2
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -134,6 +134,14 @@ If you believe that a third-party plugin should have filters in its Media Popup
134
 
135
  Right now it is possible via WP_Query ([example of the code](http://wordpress.org/support/topic/php-displaying-an-array-of-images-per-category-or-categories)). We are working on a gallery based on EML taxonomies.
136
 
 
 
 
 
 
 
 
 
137
  = Will I lose media categories I’ve created if I upgrade from free to PRO? =
138
 
139
  No, all your data will remain intact. Your created media categories and their ties with your images are stored in the database. When you deactivate and delete the free version and then upload and activate the PRO one nothing happens to the database.
@@ -164,6 +172,19 @@ No, all your data will remain intact. Your created media categories and their ti
164
 
165
  == Changelog ==
166
 
 
 
 
 
 
 
 
 
 
 
 
 
 
167
  = 2.1.2 =
168
  *Release Date - December 15, 2015*
169
 
3
  Tags: media library, media category, media categories, media management, media organizer, media gallery, gallery shortcode, media tag, media tags, media taxonomy, media taxonomies, media uploader, mime type, mime, mime types, file types, media types, media filter, attachment, gallery, image, images, media, ux, user experience, wp-admin, admin, taxonomy, taxonomies
4
  Requires at least: 4.0
5
  Tested up to: 4.4
6
+ Stable tag: 2.1.3
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
134
 
135
  Right now it is possible via WP_Query ([example of the code](http://wordpress.org/support/topic/php-displaying-an-array-of-images-per-category-or-categories)). We are working on a gallery based on EML taxonomies.
136
 
137
+ = My gallery behavior is strange | My ligthbox/carousel plugin no longer works =
138
+
139
+ The Enhanced Media Library enhances the WordPress gallery shortcode with the 'post_gallery' filter. It does this in the most gentle manner possible. It overrides the database query and leaves HTML/CSS code generating intact.
140
+
141
+ But many other plugins do the same. Since, currently in WordPress it is not possible to separate a pure database request and generating gallery's HTML/CSS, the plugin conflicts are inevitable.
142
+
143
+ The solution: please visit Media Settings > Taxonomies > Optons and set "Turn off enhanced gallery". This will deactivate the gallery feature only without deactivating all other plugin's functionality. Then please let us know what functionality was broken. We would like to find a solution!
144
+
145
  = Will I lose media categories I’ve created if I upgrade from free to PRO? =
146
 
147
  No, all your data will remain intact. Your created media categories and their ties with your images are stored in the database. When you deactivate and delete the free version and then upload and activate the PRO one nothing happens to the database.
172
 
173
  == Changelog ==
174
 
175
+ = 2.1.3 =
176
+ *Release Date - December 17, 2015*
177
+
178
+ = Bugfixes =
179
+ * Compatibility of the plugin's code with different PHP versions ensured
180
+ * "Warning: Missing argument 3 for wpuxss_eml_gallery_shortcode()" fixed
181
+ * The bug with unavailable image meta on Edit Gallery screen fixed
182
+
183
+ = Improvements =
184
+ * "Turn off enhanced gallery" option added. Allows to turn off the gallery shortcode enhancement without deactivating the whole plugin in case of incompatibility with other plugins or themes. Please inform plugin authors about the issue. We would like to fix it!
185
+
186
+
187
+ &nbsp;
188
  = 2.1.2 =
189
  *Release Date - December 15, 2015*
190