Version Description
Download this release
Release Info
Developer | webbistro |
Plugin | Enhanced Media Library |
Version | 2.6.4 |
Comparing to | |
See all releases |
Code changes from version 2.6 to 2.6.4
- core/compatibility.php +31 -0
- core/options-pages.php +24 -30
- core/taxonomies.php +62 -44
- css/eml-admin-media-rtl.css +302 -0
- css/eml-admin-media.css +302 -0
- css/eml-admin-rtl.css +0 -306
- css/eml-admin.css +0 -306
- enhanced-media-library.php +221 -237
- languages/enhanced-media-library.pot +332 -33
- readme.txt +62 -71
core/compatibility.php
ADDED
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
if ( ! defined( 'ABSPATH' ) )
|
4 |
+
exit;
|
5 |
+
|
6 |
+
|
7 |
+
|
8 |
+
/**
|
9 |
+
* wpuxss_eml_elementor_scripts
|
10 |
+
* @TODO: temporary solution
|
11 |
+
*
|
12 |
+
* @since 2.5
|
13 |
+
* @created 28/01/18
|
14 |
+
*/
|
15 |
+
|
16 |
+
add_action( 'elementor/editor/after_enqueue_scripts', 'wpuxss_eml_elementor_scripts' );
|
17 |
+
|
18 |
+
if ( ! function_exists( 'wpuxss_eml_elementor_scripts' ) ) {
|
19 |
+
|
20 |
+
function wpuxss_eml_elementor_scripts() {
|
21 |
+
|
22 |
+
global $wpuxss_eml_dir;
|
23 |
+
|
24 |
+
|
25 |
+
wp_enqueue_style( 'common' );
|
26 |
+
wp_enqueue_style(
|
27 |
+
'wpuxss-eml-elementor-media-style',
|
28 |
+
$wpuxss_eml_dir . 'css/eml-admin-media.css'
|
29 |
+
);
|
30 |
+
}
|
31 |
+
}
|
core/options-pages.php
CHANGED
@@ -564,14 +564,13 @@ if ( ! function_exists( 'wpuxss_eml_medialibrary_options_page_scripts' ) ) {
|
|
564 |
|
565 |
function wpuxss_eml_medialibrary_options_page_scripts() {
|
566 |
|
567 |
-
global $
|
568 |
-
$wpuxss_eml_dir;
|
569 |
|
570 |
wp_enqueue_script(
|
571 |
'wpuxss-eml-medialibrary-options-script',
|
572 |
$wpuxss_eml_dir . 'js/eml-medialibrary-options.js',
|
573 |
array( 'jquery' ),
|
574 |
-
|
575 |
true
|
576 |
);
|
577 |
}
|
@@ -590,14 +589,13 @@ if ( ! function_exists( 'wpuxss_eml_taxonomies_options_page_scripts' ) ) {
|
|
590 |
|
591 |
function wpuxss_eml_taxonomies_options_page_scripts() {
|
592 |
|
593 |
-
global $
|
594 |
-
$wpuxss_eml_dir;
|
595 |
|
596 |
wp_enqueue_script(
|
597 |
'wpuxss-eml-taxonomies-options-script',
|
598 |
$wpuxss_eml_dir . 'js/eml-taxonomies-options.js',
|
599 |
array( 'jquery', 'underscore', 'wpuxss-eml-admin-script' ),
|
600 |
-
|
601 |
true
|
602 |
);
|
603 |
|
@@ -670,14 +668,13 @@ if ( ! function_exists( 'wpuxss_eml_mimetype_options_page_scripts' ) ) {
|
|
670 |
|
671 |
function wpuxss_eml_mimetype_options_page_scripts() {
|
672 |
|
673 |
-
global $
|
674 |
-
$wpuxss_eml_dir;
|
675 |
|
676 |
wp_enqueue_script(
|
677 |
'wpuxss-eml-mimetype-options-script',
|
678 |
$wpuxss_eml_dir . 'js/eml-mimetype-options.js',
|
679 |
array( 'jquery', 'underscore' ),
|
680 |
-
|
681 |
true
|
682 |
);
|
683 |
|
@@ -716,15 +713,14 @@ if ( ! function_exists( 'wpuxss_eml_options_page_scripts' ) ) {
|
|
716 |
|
717 |
function wpuxss_eml_options_page_scripts() {
|
718 |
|
719 |
-
global $
|
720 |
-
$wpuxss_eml_dir;
|
721 |
|
722 |
|
723 |
wp_enqueue_script(
|
724 |
'wpuxss-eml-options-script',
|
725 |
$wpuxss_eml_dir . 'js/eml-options.js',
|
726 |
array( 'jquery', 'underscore', 'wpuxss-eml-admin-script' ),
|
727 |
-
|
728 |
true
|
729 |
);
|
730 |
|
@@ -1013,7 +1009,7 @@ if ( ! function_exists( 'wpuxss_eml_print_network_settings' ) ) {
|
|
1013 |
|
1014 |
</table>
|
1015 |
|
1016 |
-
<?php submit_button( __( 'Save Changes' ), 'primary', '
|
1017 |
|
1018 |
</form>
|
1019 |
|
@@ -1027,12 +1023,13 @@ if ( ! function_exists( 'wpuxss_eml_print_network_settings' ) ) {
|
|
1027 |
|
1028 |
<div class="inside">
|
1029 |
|
1030 |
-
<?php
|
1031 |
$wpuxss_eml_taxonomies = array();
|
1032 |
|
1033 |
-
foreach(
|
|
|
|
|
1034 |
|
1035 |
-
switch_to_blog( $site->blog_id );
|
1036 |
$wpuxss_eml_taxonomies = array_merge( $wpuxss_eml_taxonomies, wpuxss_eml_get_eml_taxonomies() );
|
1037 |
|
1038 |
restore_current_blog();
|
@@ -1106,7 +1103,7 @@ if ( ! function_exists( 'wpuxss_eml_update_network_settings' ) ) {
|
|
1106 |
|
1107 |
function wpuxss_eml_update_network_settings() {
|
1108 |
|
1109 |
-
if ( ! isset($_POST['submit']) )
|
1110 |
return;
|
1111 |
|
1112 |
check_admin_referer( 'eml-network-settings-options' );
|
@@ -1351,28 +1348,25 @@ if ( ! function_exists( 'wpuxss_eml_settings_cleanup' ) ) {
|
|
1351 |
|
1352 |
if ( is_multisite() ) {
|
1353 |
|
1354 |
-
foreach( get_sites() as $
|
1355 |
|
1356 |
-
switch_to_blog( $
|
1357 |
|
1358 |
wpuxss_eml_term_relationship_cleanup();
|
1359 |
wpuxss_eml_options_cleanup();
|
1360 |
-
|
1361 |
|
1362 |
restore_current_blog();
|
1363 |
}
|
1364 |
-
|
1365 |
-
wpuxss_eml_common_options_cleanup();
|
1366 |
}
|
1367 |
else {
|
1368 |
|
1369 |
wpuxss_eml_term_relationship_cleanup();
|
1370 |
wpuxss_eml_options_cleanup();
|
1371 |
-
wpuxss_eml_common_options_cleanup();
|
1372 |
-
wpuxss_eml_transients_cleanup();
|
1373 |
}
|
1374 |
|
1375 |
-
|
|
|
1376 |
deactivate_plugins( wpuxss_get_eml_basename(), false, is_multisite() );
|
1377 |
|
1378 |
|
@@ -1477,7 +1471,8 @@ if ( ! function_exists( 'wpuxss_eml_options_cleanup' ) ) {
|
|
1477 |
'wpuxss_eml_tax_options',
|
1478 |
'wpuxss_eml_mimes_backup',
|
1479 |
'wpuxss_eml_mimes',
|
1480 |
-
'wpuxss_eml_backup'
|
|
|
1481 |
);
|
1482 |
|
1483 |
$options = apply_filters( 'wpuxss_eml_pro_add_options', $options );
|
@@ -2311,17 +2306,16 @@ if ( ! function_exists( 'wpuxss_eml_print_mimetypes_buttons' ) ) {
|
|
2311 |
if ( ! function_exists( 'wpuxss_eml_print_credits' ) ) {
|
2312 |
|
2313 |
function wpuxss_eml_print_credits() {
|
2314 |
-
|
2315 |
-
global $wpuxss_eml_version; ?>
|
2316 |
|
2317 |
<div class="postbox" id="wpuxss-credits">
|
2318 |
|
2319 |
-
<h3 class="hndle">Enhanced Media Library <?php echo
|
2320 |
|
2321 |
<div class="inside">
|
2322 |
|
2323 |
<h4><?php _e( 'Changelog', 'enhanced-media-library' ); ?></h4>
|
2324 |
-
<p><?php _e( 'What\'s new in', 'enhanced-media-library' ); ?> <a href="https://wordpress.org/plugins/enhanced-media-library/changelog/"><?php _e( 'version', 'enhanced-media-library' ); echo ' ' .
|
2325 |
|
2326 |
<h4>Enhanced Media Library PRO</h4>
|
2327 |
<p><?php _e( 'More features under the hood', 'enhanced-media-library' ); ?> <a href="https://wpuxsolutions.com/plugins/enhanced-media-library/">wpuxsolutions.com</a>.</p>
|
564 |
|
565 |
function wpuxss_eml_medialibrary_options_page_scripts() {
|
566 |
|
567 |
+
global $wpuxss_eml_dir;
|
|
|
568 |
|
569 |
wp_enqueue_script(
|
570 |
'wpuxss-eml-medialibrary-options-script',
|
571 |
$wpuxss_eml_dir . 'js/eml-medialibrary-options.js',
|
572 |
array( 'jquery' ),
|
573 |
+
EML_VERSION,
|
574 |
true
|
575 |
);
|
576 |
}
|
589 |
|
590 |
function wpuxss_eml_taxonomies_options_page_scripts() {
|
591 |
|
592 |
+
global $wpuxss_eml_dir;
|
|
|
593 |
|
594 |
wp_enqueue_script(
|
595 |
'wpuxss-eml-taxonomies-options-script',
|
596 |
$wpuxss_eml_dir . 'js/eml-taxonomies-options.js',
|
597 |
array( 'jquery', 'underscore', 'wpuxss-eml-admin-script' ),
|
598 |
+
EML_VERSION,
|
599 |
true
|
600 |
);
|
601 |
|
668 |
|
669 |
function wpuxss_eml_mimetype_options_page_scripts() {
|
670 |
|
671 |
+
global $wpuxss_eml_dir;
|
|
|
672 |
|
673 |
wp_enqueue_script(
|
674 |
'wpuxss-eml-mimetype-options-script',
|
675 |
$wpuxss_eml_dir . 'js/eml-mimetype-options.js',
|
676 |
array( 'jquery', 'underscore' ),
|
677 |
+
EML_VERSION,
|
678 |
true
|
679 |
);
|
680 |
|
713 |
|
714 |
function wpuxss_eml_options_page_scripts() {
|
715 |
|
716 |
+
global $wpuxss_eml_dir;
|
|
|
717 |
|
718 |
|
719 |
wp_enqueue_script(
|
720 |
'wpuxss-eml-options-script',
|
721 |
$wpuxss_eml_dir . 'js/eml-options.js',
|
722 |
array( 'jquery', 'underscore', 'wpuxss-eml-admin-script' ),
|
723 |
+
EML_VERSION,
|
724 |
true
|
725 |
);
|
726 |
|
1009 |
|
1010 |
</table>
|
1011 |
|
1012 |
+
<?php submit_button( __( 'Save Changes' ), 'primary', 'eml-submit-network-settings', true ); ?>
|
1013 |
|
1014 |
</form>
|
1015 |
|
1023 |
|
1024 |
<div class="inside">
|
1025 |
|
1026 |
+
<?php
|
1027 |
$wpuxss_eml_taxonomies = array();
|
1028 |
|
1029 |
+
foreach( get_sites( array( 'fields' => 'ids' ) ) as $site_id ) :
|
1030 |
+
|
1031 |
+
switch_to_blog( $site_id );
|
1032 |
|
|
|
1033 |
$wpuxss_eml_taxonomies = array_merge( $wpuxss_eml_taxonomies, wpuxss_eml_get_eml_taxonomies() );
|
1034 |
|
1035 |
restore_current_blog();
|
1103 |
|
1104 |
function wpuxss_eml_update_network_settings() {
|
1105 |
|
1106 |
+
if ( ! isset($_POST['eml-submit-network-settings']) )
|
1107 |
return;
|
1108 |
|
1109 |
check_admin_referer( 'eml-network-settings-options' );
|
1348 |
|
1349 |
if ( is_multisite() ) {
|
1350 |
|
1351 |
+
foreach( get_sites( array( 'fields' => 'ids' ) ) as $site_id ) {
|
1352 |
|
1353 |
+
switch_to_blog( $site_id );
|
1354 |
|
1355 |
wpuxss_eml_term_relationship_cleanup();
|
1356 |
wpuxss_eml_options_cleanup();
|
1357 |
+
deactivate_plugins( wpuxss_get_eml_basename() );
|
1358 |
|
1359 |
restore_current_blog();
|
1360 |
}
|
|
|
|
|
1361 |
}
|
1362 |
else {
|
1363 |
|
1364 |
wpuxss_eml_term_relationship_cleanup();
|
1365 |
wpuxss_eml_options_cleanup();
|
|
|
|
|
1366 |
}
|
1367 |
|
1368 |
+
wpuxss_eml_common_options_cleanup();
|
1369 |
+
wpuxss_eml_transients_cleanup();
|
1370 |
deactivate_plugins( wpuxss_get_eml_basename(), false, is_multisite() );
|
1371 |
|
1372 |
|
1471 |
'wpuxss_eml_tax_options',
|
1472 |
'wpuxss_eml_mimes_backup',
|
1473 |
'wpuxss_eml_mimes',
|
1474 |
+
'wpuxss_eml_backup',
|
1475 |
+
'wpuxss_eml_version'
|
1476 |
);
|
1477 |
|
1478 |
$options = apply_filters( 'wpuxss_eml_pro_add_options', $options );
|
2306 |
if ( ! function_exists( 'wpuxss_eml_print_credits' ) ) {
|
2307 |
|
2308 |
function wpuxss_eml_print_credits() {
|
2309 |
+
?>
|
|
|
2310 |
|
2311 |
<div class="postbox" id="wpuxss-credits">
|
2312 |
|
2313 |
+
<h3 class="hndle">Enhanced Media Library <?php echo EML_VERSION; ?></h3>
|
2314 |
|
2315 |
<div class="inside">
|
2316 |
|
2317 |
<h4><?php _e( 'Changelog', 'enhanced-media-library' ); ?></h4>
|
2318 |
+
<p><?php _e( 'What\'s new in', 'enhanced-media-library' ); ?> <a href="https://wordpress.org/plugins/enhanced-media-library/changelog/"><?php _e( 'version', 'enhanced-media-library' ); echo ' ' . EML_VERSION; ?></a>.</p>
|
2319 |
|
2320 |
<h4>Enhanced Media Library PRO</h4>
|
2321 |
<p><?php _e( 'More features under the hood', 'enhanced-media-library' ); ?> <a href="https://wpuxsolutions.com/plugins/enhanced-media-library/">wpuxsolutions.com</a>.</p>
|
core/taxonomies.php
CHANGED
@@ -495,8 +495,8 @@ if ( ! function_exists( 'wpuxss_eml_dropdown_cats' ) ) {
|
|
495 |
/**
|
496 |
* wpuxss_eml_parse_tax_query
|
497 |
*
|
498 |
-
* @since 2.
|
499 |
-
* @created
|
500 |
*/
|
501 |
|
502 |
add_action( 'parse_tax_query', 'wpuxss_eml_parse_tax_query' );
|
@@ -505,18 +505,63 @@ if ( ! function_exists( 'wpuxss_eml_parse_tax_query' ) ) {
|
|
505 |
|
506 |
function wpuxss_eml_parse_tax_query( $query ) {
|
507 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
508 |
global $current_screen;
|
509 |
|
510 |
|
511 |
-
if ( ! is_admin()
|
512 |
return;
|
513 |
}
|
514 |
|
515 |
|
516 |
-
|
|
|
|
|
517 |
|
|
|
|
|
|
|
518 |
|
519 |
-
|
|
|
|
|
|
|
520 |
return;
|
521 |
}
|
522 |
|
@@ -1334,6 +1379,7 @@ if ( ! function_exists( 'wpuxss_eml_the_posts' ) ) {
|
|
1334 |
* wpuxss_eml_pre_get_posts
|
1335 |
*
|
1336 |
* Taxonomy archive specific query (front-end)
|
|
|
1337 |
*
|
1338 |
* @since 1.0
|
1339 |
* @created 03/08/13
|
@@ -1361,6 +1407,7 @@ if ( ! function_exists('wpuxss_eml_pre_get_posts') ) {
|
|
1361 |
}
|
1362 |
|
1363 |
|
|
|
1364 |
if ( ! is_admin() ) {
|
1365 |
|
1366 |
$wpuxss_eml_tax_options = get_option('wpuxss_eml_tax_options');
|
@@ -1381,56 +1428,27 @@ if ( ! function_exists('wpuxss_eml_pre_get_posts') ) {
|
|
1381 |
}
|
1382 |
|
1383 |
|
|
|
1384 |
if ( 'attachment' !== $query->get('post_type') ) {
|
1385 |
return;
|
1386 |
}
|
1387 |
|
1388 |
|
1389 |
-
|
1390 |
-
|
1391 |
-
$wpuxss_eml_lib_options = get_option('wpuxss_eml_lib_options');
|
1392 |
-
|
1393 |
-
$query_orderby = $query->get('orderby');
|
1394 |
-
$query_order = $query->get('order');
|
1395 |
|
1396 |
-
|
1397 |
-
|
1398 |
-
|
1399 |
-
$query->set('orderby', $orderby );
|
1400 |
-
$query->set('order', $order );
|
1401 |
}
|
1402 |
|
1403 |
|
1404 |
-
|
1405 |
-
}
|
1406 |
-
|
1407 |
-
|
1408 |
-
|
1409 |
-
add_action( 'parse_tax_query', 'kia_no_child_terms' );
|
1410 |
-
|
1411 |
-
function kia_no_child_terms( $query ) {
|
1412 |
|
1413 |
-
|
1414 |
-
|
1415 |
-
}
|
1416 |
-
|
1417 |
-
|
1418 |
-
if ( ! is_admin() ) {
|
1419 |
-
|
1420 |
-
$wpuxss_eml_tax_options = get_option('wpuxss_eml_tax_options');
|
1421 |
-
|
1422 |
-
if ( (bool) $wpuxss_eml_tax_options['tax_archives'] ) {
|
1423 |
-
|
1424 |
-
$wpuxss_eml_lib_options = get_option('wpuxss_eml_lib_options');
|
1425 |
|
1426 |
-
|
1427 |
-
|
1428 |
-
if ( (bool) $params['assigned'] && (bool) $params['eml_media'] && is_tax( $taxonomy ) ) {
|
1429 |
-
|
1430 |
-
$query->tax_query->queries[0]['include_children'] = (bool) $wpuxss_eml_lib_options['include_children'];
|
1431 |
-
}
|
1432 |
-
}
|
1433 |
-
}
|
1434 |
}
|
1435 |
}
|
1436 |
|
495 |
/**
|
496 |
* wpuxss_eml_parse_tax_query
|
497 |
*
|
498 |
+
* @since 2.6.4
|
499 |
+
* @created 23/05/18
|
500 |
*/
|
501 |
|
502 |
add_action( 'parse_tax_query', 'wpuxss_eml_parse_tax_query' );
|
505 |
|
506 |
function wpuxss_eml_parse_tax_query( $query ) {
|
507 |
|
508 |
+
if ( ! $query->is_main_query() ) {
|
509 |
+
return;
|
510 |
+
}
|
511 |
+
|
512 |
+
|
513 |
+
$wpuxss_eml_tax_options = get_option( 'wpuxss_eml_tax_options', array() );
|
514 |
+
|
515 |
+
if ( (bool) $wpuxss_eml_tax_options['tax_archives'] ) {
|
516 |
+
|
517 |
+
$wpuxss_eml_lib_options = get_option( 'wpuxss_eml_lib_options', array() );
|
518 |
+
|
519 |
+
foreach ( get_option('wpuxss_eml_taxonomies', array() ) as $taxonomy => $params ) {
|
520 |
+
|
521 |
+
if ( (bool) $params['assigned'] && (bool) $params['eml_media'] && is_tax( $taxonomy ) ) {
|
522 |
+
|
523 |
+
$query->tax_query->queries[0]['include_children'] = (bool) $wpuxss_eml_lib_options['include_children'];
|
524 |
+
}
|
525 |
+
}
|
526 |
+
}
|
527 |
+
}
|
528 |
+
}
|
529 |
+
|
530 |
+
|
531 |
+
|
532 |
+
/**
|
533 |
+
* wpuxss_eml_backend_parse_tax_query
|
534 |
+
*
|
535 |
+
* @since 2.6.4
|
536 |
+
* @created 23/05/18
|
537 |
+
*/
|
538 |
+
|
539 |
+
add_action( 'parse_tax_query', 'wpuxss_eml_backend_parse_tax_query' );
|
540 |
+
|
541 |
+
if ( ! function_exists( 'wpuxss_eml_backend_parse_tax_query' ) ) {
|
542 |
+
|
543 |
+
function wpuxss_eml_backend_parse_tax_query( $query ) {
|
544 |
+
|
545 |
global $current_screen;
|
546 |
|
547 |
|
548 |
+
if ( ! is_admin() ) {
|
549 |
return;
|
550 |
}
|
551 |
|
552 |
|
553 |
+
if ( ! isset( $current_screen ) || 'upload' !== $current_screen->base ) {
|
554 |
+
return;
|
555 |
+
}
|
556 |
|
557 |
+
if ( ! $query->is_main_query() ) {
|
558 |
+
return;
|
559 |
+
}
|
560 |
|
561 |
+
|
562 |
+
$media_library_mode = get_user_option( 'media_library_mode' ) ? get_user_option( 'media_library_mode' ) : 'grid';
|
563 |
+
|
564 |
+
if ( 'list' !== $media_library_mode ) {
|
565 |
return;
|
566 |
}
|
567 |
|
1379 |
* wpuxss_eml_pre_get_posts
|
1380 |
*
|
1381 |
* Taxonomy archive specific query (front-end)
|
1382 |
+
* Ensure correct items order
|
1383 |
*
|
1384 |
* @since 1.0
|
1385 |
* @created 03/08/13
|
1407 |
}
|
1408 |
|
1409 |
|
1410 |
+
// front-end only
|
1411 |
if ( ! is_admin() ) {
|
1412 |
|
1413 |
$wpuxss_eml_tax_options = get_option('wpuxss_eml_tax_options');
|
1428 |
}
|
1429 |
|
1430 |
|
1431 |
+
// both front-end and back-end
|
1432 |
if ( 'attachment' !== $query->get('post_type') ) {
|
1433 |
return;
|
1434 |
}
|
1435 |
|
1436 |
|
1437 |
+
$query_orderby = $query->get('orderby');
|
1438 |
+
$query_order = $query->get('order');
|
|
|
|
|
|
|
|
|
1439 |
|
1440 |
+
if ( $query_orderby && $query_order ) {
|
1441 |
+
return;
|
|
|
|
|
|
|
1442 |
}
|
1443 |
|
1444 |
|
1445 |
+
$wpuxss_eml_lib_options = get_option( 'wpuxss_eml_lib_options', array() );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1446 |
|
1447 |
+
$orderby = ( 'menuOrder' === $wpuxss_eml_lib_options['media_orderby'] ) ? 'menu_order' : esc_attr( $wpuxss_eml_lib_options['media_orderby'] );
|
1448 |
+
$order = esc_attr( $wpuxss_eml_lib_options['media_order'] );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1449 |
|
1450 |
+
$query->set('orderby', $orderby );
|
1451 |
+
$query->set('order', $order );
|
|
|
|
|
|
|
|
|
|
|
|
|
1452 |
}
|
1453 |
}
|
1454 |
|
css/eml-admin-media-rtl.css
ADDED
@@ -0,0 +1,302 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
/* == Attachment Fields == */
|
3 |
+
|
4 |
+
body.eml-media-css .term-list {
|
5 |
+
background-color: #fff;
|
6 |
+
border: 1px solid #dfdfdf;
|
7 |
+
border-radius: 3px;
|
8 |
+
padding: 10px 10px 5px;
|
9 |
+
margin: 0 0 10px;
|
10 |
+
}
|
11 |
+
body.eml-media-css .term-list li {
|
12 |
+
line-height: 22px;
|
13 |
+
}
|
14 |
+
body.eml-media-css .term-list li input[type="checkbox"] {
|
15 |
+
margin: -4px 0 0 10px !important;
|
16 |
+
}
|
17 |
+
body.eml-media-css .term-list li input[type=checkbox]:indeterminate:before {
|
18 |
+
float: right;
|
19 |
+
display: inline-block;
|
20 |
+
vertical-align: middle;
|
21 |
+
width: 16px;
|
22 |
+
font: normal 21px/1 'dashicons';
|
23 |
+
speak: none;
|
24 |
+
-webkit-font-smoothing: antialiased;
|
25 |
+
-moz-osx-font-smoothing: grayscale;
|
26 |
+
|
27 |
+
content: '\f147';
|
28 |
+
margin: -3px -4px 0 0;
|
29 |
+
color: #CBCBCB;
|
30 |
+
}
|
31 |
+
body.eml-media-css .term-list .children {
|
32 |
+
margin: 5px 20px 0 0;
|
33 |
+
}
|
34 |
+
|
35 |
+
body.eml-media-css .compat-item .eml-tax-label {
|
36 |
+
width: 100%;
|
37 |
+
float: none;
|
38 |
+
text-align: right;
|
39 |
+
}
|
40 |
+
body.eml-media-css .compat-item .eml-tax-label span {
|
41 |
+
text-align: right;
|
42 |
+
}
|
43 |
+
body.eml-media-css .compat-item .eml-tax-field {
|
44 |
+
width: 100%;
|
45 |
+
float: none;
|
46 |
+
}
|
47 |
+
|
48 |
+
|
49 |
+
|
50 |
+
|
51 |
+
/* == Grid Mode == */
|
52 |
+
|
53 |
+
.media-frame.mode-eml-grid .attachments-browser .media-toolbar-secondary {
|
54 |
+
max-width: none;
|
55 |
+
}
|
56 |
+
|
57 |
+
.media-frame.mode-eml-grid .media-toolbar select {
|
58 |
+
margin: 8px 0 8px 10px;
|
59 |
+
}
|
60 |
+
|
61 |
+
.media-frame.mode-eml-grid.mode-edit .media-toolbar-secondary .media-button {
|
62 |
+
margin: 8px 0 8px 10px;
|
63 |
+
vertical-align: middle;
|
64 |
+
}
|
65 |
+
|
66 |
+
.media-frame.mode-eml-grid.mode-edit .media-toolbar-secondary .search {
|
67 |
+
margin: 8px 0 8px 0;
|
68 |
+
padding: 3px 5px;
|
69 |
+
max-width: 100%;
|
70 |
+
font-size: 16px;
|
71 |
+
font-weight: 300;
|
72 |
+
line-height: 1.5;
|
73 |
+
vertical-align: middle;
|
74 |
+
}
|
75 |
+
|
76 |
+
|
77 |
+
|
78 |
+
/* == EML Grid == */
|
79 |
+
|
80 |
+
body.upload-php.eml-grid #wpfooter {
|
81 |
+
display: none;
|
82 |
+
}
|
83 |
+
body.upload-php.eml-grid #wpbody {
|
84 |
+
position: fixed;
|
85 |
+
top: 32px;
|
86 |
+
bottom: 0;
|
87 |
+
right: 165px;
|
88 |
+
left: 0;
|
89 |
+
height: auto;
|
90 |
+
}
|
91 |
+
body.upload-php.eml-grid.folded #wpbody {
|
92 |
+
right: 40px;
|
93 |
+
}
|
94 |
+
@media only screen and (max-width: 960px) {
|
95 |
+
|
96 |
+
body.upload-php.eml-grid.auto-fold #wpbody {
|
97 |
+
right: 40px;
|
98 |
+
}
|
99 |
+
}
|
100 |
+
@media only screen and (max-width: 782px) {
|
101 |
+
|
102 |
+
body.upload-php.eml-grid #wpbody,
|
103 |
+
body.upload-php.eml-grid.folded #wpbody,
|
104 |
+
body.upload-php.eml-grid.auto-fold #wpbody {
|
105 |
+
right: 0;
|
106 |
+
top: 46px;
|
107 |
+
}
|
108 |
+
}
|
109 |
+
body.upload-php.eml-grid #wpbody-content {
|
110 |
+
padding: 0;
|
111 |
+
float: none;
|
112 |
+
height: 100%;
|
113 |
+
}
|
114 |
+
@media only screen and (max-width: 960px) {
|
115 |
+
|
116 |
+
body.upload-php.eml-grid #wpbody-content {
|
117 |
+
float: right;
|
118 |
+
}
|
119 |
+
}
|
120 |
+
body.upload-php.eml-grid #wpbody-content > .wrap {
|
121 |
+
position: absolute;
|
122 |
+
right: 15px;
|
123 |
+
top: 0;
|
124 |
+
left: 0;
|
125 |
+
bottom: 0;
|
126 |
+
}
|
127 |
+
body.upload-php.eml-grid #wpbody-content > #screen-meta-links,
|
128 |
+
body.upload-php.eml-grid #wpbody-content > #screen-meta {
|
129 |
+
position: relative;
|
130 |
+
z-index: 999;
|
131 |
+
}
|
132 |
+
|
133 |
+
|
134 |
+
.eml-grid .wrap .notice,
|
135 |
+
.eml-grid .wrap div.updated,
|
136 |
+
.eml-grid .wrap div.error {
|
137 |
+
z-index: 20;
|
138 |
+
position: relative;
|
139 |
+
}
|
140 |
+
.media-frame.mode-eml-grid {
|
141 |
+
top: 50px;
|
142 |
+
z-index: 10;
|
143 |
+
}
|
144 |
+
.media-frame.mode-eml-grid .media-frame-title,
|
145 |
+
.media-frame.mode-eml-grid .media-frame-menu,
|
146 |
+
.media-frame.mode-eml-grid .media-frame-toolbar {
|
147 |
+
display: none;
|
148 |
+
}
|
149 |
+
.media-frame.mode-eml-grid .media-frame-content {
|
150 |
+
top: 0;
|
151 |
+
bottom: 10px;
|
152 |
+
border: none;
|
153 |
+
background: none;
|
154 |
+
overflow: hidden;
|
155 |
+
}
|
156 |
+
.media-frame.mode-eml-grid .attachments-browser {
|
157 |
+
position: absolute;
|
158 |
+
right: 0;
|
159 |
+
top: 71px;
|
160 |
+
left: 0;
|
161 |
+
bottom: 0;
|
162 |
+
width: auto;
|
163 |
+
height: auto;
|
164 |
+
border: 1px solid #ddd;
|
165 |
+
border-left: 0;
|
166 |
+
background: #fff;
|
167 |
+
overflow: visible;
|
168 |
+
|
169 |
+
-webkit-transition: all 0.2s;
|
170 |
+
-moz-transition: all 0.2s;
|
171 |
+
-o-transition: all 0.2s;
|
172 |
+
-ms-transition: all 0.2s;
|
173 |
+
transition: all 0.2s;
|
174 |
+
}
|
175 |
+
.media-frame.mode-eml-grid .attachments-browser .media-toolbar {
|
176 |
+
right: -1px;
|
177 |
+
}
|
178 |
+
.media-frame.mode-eml-grid .attachments-browser .media-toolbar.wp-filter select {
|
179 |
+
font-size: 14px;
|
180 |
+
}
|
181 |
+
.media-frame.mode-eml-grid .attachments-browser .attachments,
|
182 |
+
.media-frame.mode-eml-grid .attachments-browser .uploader-inline {
|
183 |
+
top: 0;
|
184 |
+
}
|
185 |
+
.media-frame.mode-eml-grid .attachments-browser .attachments {
|
186 |
+
padding: 8px;
|
187 |
+
|
188 |
+
-webkit-transition: all 0.2s;
|
189 |
+
-moz-transition: all 0.2s;
|
190 |
+
-o-transition: all 0.2s;
|
191 |
+
-ms-transition: all 0.2s;
|
192 |
+
transition: all 0.2s;
|
193 |
+
}
|
194 |
+
.media-frame.mode-eml-grid .delete-attachment,
|
195 |
+
.media-frame.mode-eml-grid .trash-attachment,
|
196 |
+
.media-frame.mode-eml-grid .untrash-attachment {
|
197 |
+
color: #bc0b0b;
|
198 |
+
}
|
199 |
+
.media-frame.mode-eml-grid .delete-attachment:hover,
|
200 |
+
.media-frame.mode-eml-grid .delete-attachment:focus,
|
201 |
+
.media-frame.mode-eml-grid .trash-attachment:hover,
|
202 |
+
.media-frame.mode-eml-grid .trash-attachment:focus,
|
203 |
+
.media-frame.mode-eml-grid .untrash-attachment:hover,
|
204 |
+
.media-frame.mode-eml-grid .untrash-attachment:focus {
|
205 |
+
color: #ff0000;
|
206 |
+
}
|
207 |
+
.media-frame.mode-eml-grid .attachments-browser .uploader-inline {
|
208 |
+
position: absolute;
|
209 |
+
top: 10px;
|
210 |
+
left: 310px;
|
211 |
+
right: 10px;
|
212 |
+
bottom: auto;
|
213 |
+
padding: 0;
|
214 |
+
margin: 0;
|
215 |
+
border: 4px dashed #bbb;
|
216 |
+
background-color: #fff;
|
217 |
+
}
|
218 |
+
@media only screen and (max-width: 900px) {
|
219 |
+
|
220 |
+
.media-frame.mode-eml-grid .attachments-browser .uploader-inline {
|
221 |
+
left: 272px;
|
222 |
+
}
|
223 |
+
}
|
224 |
+
@media only screen and (max-width: 640px), screen and (max-height: 400px) {
|
225 |
+
|
226 |
+
.media-frame.mode-eml-grid .attachments-browser .uploader-inline {
|
227 |
+
left: 10px;
|
228 |
+
}
|
229 |
+
}
|
230 |
+
.media-frame.mode-eml-grid .uploader-inline-content {
|
231 |
+
position: static;
|
232 |
+
margin-top: 30px;
|
233 |
+
}
|
234 |
+
.media-frame.mode-eml-grid .attachments-browser .no-media {
|
235 |
+
text-align: center;
|
236 |
+
font-size: 20px;
|
237 |
+
line-height: 28px;
|
238 |
+
font-weight: 400;
|
239 |
+
padding: 40px 0 0;
|
240 |
+
margin: 0 0 0 300px;
|
241 |
+
color: #777;
|
242 |
+
}
|
243 |
+
|
244 |
+
|
245 |
+
|
246 |
+
/* == Media Popup Positions == */
|
247 |
+
|
248 |
+
body.eml-media-css .attachments-browser .media-toolbar {
|
249 |
+
height: auto;
|
250 |
+
}
|
251 |
+
|
252 |
+
body.eml-media-css .attachments-browser .media-toolbar-secondary {
|
253 |
+
max-width: none;
|
254 |
+
width: auto;
|
255 |
+
}
|
256 |
+
|
257 |
+
body.eml-media-css .media-modal-content .media-frame select.attachment-filters {
|
258 |
+
width: auto;
|
259 |
+
max-width: calc(48% - 12px);
|
260 |
+
margin-left: 10px;
|
261 |
+
vertical-align: middle;
|
262 |
+
line-height: 28px;
|
263 |
+
height: 28px;
|
264 |
+
}
|
265 |
+
|
266 |
+
body.eml-media-css .attachments-browser .media-toolbar-secondary > .media-button {
|
267 |
+
margin: 10px 0 0 10px;
|
268 |
+
}
|
269 |
+
|
270 |
+
body.eml-media-css .media-modal-content .attachments-browser .search {
|
271 |
+
width: auto;
|
272 |
+
vertical-align: middle;
|
273 |
+
padding: 6px 8px;
|
274 |
+
margin-top: 10px;
|
275 |
+
}
|
276 |
+
|
277 |
+
@media only screen and (max-width: 900px) {
|
278 |
+
|
279 |
+
body.eml-media-css .media-modal-content .attachments-browser .search {
|
280 |
+
float: none;
|
281 |
+
}
|
282 |
+
}
|
283 |
+
|
284 |
+
|
285 |
+
|
286 |
+
/* == Spinners == */
|
287 |
+
|
288 |
+
body.eml-media-css .media-frame .spinner {
|
289 |
+
margin-top: 0;
|
290 |
+
}
|
291 |
+
.media-frame .attachments-browser .media-toolbar .spinner {
|
292 |
+
float: none;
|
293 |
+
position: absolute;
|
294 |
+
}
|
295 |
+
.media-frame.mode-eml-grid .attachments-browser .media-toolbar .spinner {
|
296 |
+
top: 15px;
|
297 |
+
left: 5px;
|
298 |
+
}
|
299 |
+
.media-modal-content .media-frame .attachments-browser .media-toolbar .spinner {
|
300 |
+
left: 10px;
|
301 |
+
top: 14px;
|
302 |
+
}
|
css/eml-admin-media.css
ADDED
@@ -0,0 +1,302 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
/* == Attachment Fields == */
|
3 |
+
|
4 |
+
body.eml-media-css .term-list {
|
5 |
+
background-color: #fff;
|
6 |
+
border: 1px solid #dfdfdf;
|
7 |
+
border-radius: 3px;
|
8 |
+
padding: 10px 10px 5px;
|
9 |
+
margin: 0 0 10px;
|
10 |
+
}
|
11 |
+
body.eml-media-css .term-list li {
|
12 |
+
line-height: 22px;
|
13 |
+
}
|
14 |
+
body.eml-media-css .term-list li input[type="checkbox"] {
|
15 |
+
margin: -4px 10px 0 0 !important;
|
16 |
+
}
|
17 |
+
body.eml-media-css .term-list li input[type=checkbox]:indeterminate:before {
|
18 |
+
float: left;
|
19 |
+
display: inline-block;
|
20 |
+
vertical-align: middle;
|
21 |
+
width: 16px;
|
22 |
+
font: normal 21px/1 'dashicons';
|
23 |
+
speak: none;
|
24 |
+
-webkit-font-smoothing: antialiased;
|
25 |
+
-moz-osx-font-smoothing: grayscale;
|
26 |
+
|
27 |
+
content: '\f147';
|
28 |
+
margin: -3px 0 0 -4px;
|
29 |
+
color: #CBCBCB;
|
30 |
+
}
|
31 |
+
body.eml-media-css .term-list .children {
|
32 |
+
margin: 5px 0 0 20px;
|
33 |
+
}
|
34 |
+
|
35 |
+
body.eml-media-css .compat-item .eml-tax-label {
|
36 |
+
width: 100%;
|
37 |
+
float: none;
|
38 |
+
text-align: left;
|
39 |
+
}
|
40 |
+
body.eml-media-css .compat-item .eml-tax-label span {
|
41 |
+
text-align: left;
|
42 |
+
}
|
43 |
+
body.eml-media-css .compat-item .eml-tax-field {
|
44 |
+
width: 100%;
|
45 |
+
float: none;
|
46 |
+
}
|
47 |
+
|
48 |
+
|
49 |
+
|
50 |
+
|
51 |
+
/* == Grid Mode == */
|
52 |
+
|
53 |
+
.media-frame.mode-eml-grid .attachments-browser .media-toolbar-secondary {
|
54 |
+
max-width: none;
|
55 |
+
}
|
56 |
+
|
57 |
+
.media-frame.mode-eml-grid .media-toolbar select {
|
58 |
+
margin: 8px 10px 8px 0;
|
59 |
+
}
|
60 |
+
|
61 |
+
.media-frame.mode-eml-grid.mode-edit .media-toolbar-secondary .media-button {
|
62 |
+
margin: 8px 10px 8px 0;
|
63 |
+
vertical-align: middle;
|
64 |
+
}
|
65 |
+
|
66 |
+
.media-frame.mode-eml-grid.mode-edit .media-toolbar-secondary .search {
|
67 |
+
margin: 8px 0 8px 0;
|
68 |
+
padding: 3px 5px;
|
69 |
+
max-width: 100%;
|
70 |
+
font-size: 16px;
|
71 |
+
font-weight: 300;
|
72 |
+
line-height: 1.5;
|
73 |
+
vertical-align: middle;
|
74 |
+
}
|
75 |
+
|
76 |
+
|
77 |
+
|
78 |
+
/* == EML Grid == */
|
79 |
+
|
80 |
+
body.upload-php.eml-grid #wpfooter {
|
81 |
+
display: none;
|
82 |
+
}
|
83 |
+
body.upload-php.eml-grid #wpbody {
|
84 |
+
position: fixed;
|
85 |
+
top: 32px;
|
86 |
+
bottom: 0;
|
87 |
+
left: 165px;
|
88 |
+
right: 0;
|
89 |
+
height: auto;
|
90 |
+
}
|
91 |
+
body.upload-php.eml-grid.folded #wpbody {
|
92 |
+
left: 40px;
|
93 |
+
}
|
94 |
+
@media only screen and (max-width: 960px) {
|
95 |
+
|
96 |
+
body.upload-php.eml-grid.auto-fold #wpbody {
|
97 |
+
left: 40px;
|
98 |
+
}
|
99 |
+
}
|
100 |
+
@media only screen and (max-width: 782px) {
|
101 |
+
|
102 |
+
body.upload-php.eml-grid #wpbody,
|
103 |
+
body.upload-php.eml-grid.folded #wpbody,
|
104 |
+
body.upload-php.eml-grid.auto-fold #wpbody {
|
105 |
+
left: 0;
|
106 |
+
top: 46px;
|
107 |
+
}
|
108 |
+
}
|
109 |
+
body.upload-php.eml-grid #wpbody-content {
|
110 |
+
padding: 0;
|
111 |
+
float: none;
|
112 |
+
height: 100%;
|
113 |
+
}
|
114 |
+
@media only screen and (max-width: 960px) {
|
115 |
+
|
116 |
+
body.upload-php.eml-grid #wpbody-content {
|
117 |
+
float: left;
|
118 |
+
}
|
119 |
+
}
|
120 |
+
body.upload-php.eml-grid #wpbody-content > .wrap {
|
121 |
+
position: absolute;
|
122 |
+
left: 15px;
|
123 |
+
top: 0;
|
124 |
+
right: 0;
|
125 |
+
bottom: 0;
|
126 |
+
}
|
127 |
+
body.upload-php.eml-grid #wpbody-content > #screen-meta-links,
|
128 |
+
body.upload-php.eml-grid #wpbody-content > #screen-meta {
|
129 |
+
position: relative;
|
130 |
+
z-index: 999;
|
131 |
+
}
|
132 |
+
|
133 |
+
|
134 |
+
.eml-grid .wrap .notice,
|
135 |
+
.eml-grid .wrap div.updated,
|
136 |
+
.eml-grid .wrap div.error {
|
137 |
+
z-index: 20;
|
138 |
+
position: relative;
|
139 |
+
}
|
140 |
+
.media-frame.mode-eml-grid {
|
141 |
+
top: 50px;
|
142 |
+
z-index: 10;
|
143 |
+
}
|
144 |
+
.media-frame.mode-eml-grid .media-frame-title,
|
145 |
+
.media-frame.mode-eml-grid .media-frame-menu,
|
146 |
+
.media-frame.mode-eml-grid .media-frame-toolbar {
|
147 |
+
display: none;
|
148 |
+
}
|
149 |
+
.media-frame.mode-eml-grid .media-frame-content {
|
150 |
+
top: 0;
|
151 |
+
bottom: 10px;
|
152 |
+
border: none;
|
153 |
+
background: none;
|
154 |
+
overflow: hidden;
|
155 |
+
}
|
156 |
+
.media-frame.mode-eml-grid .attachments-browser {
|
157 |
+
position: absolute;
|
158 |
+
left: 0;
|
159 |
+
top: 71px;
|
160 |
+
right: 0;
|
161 |
+
bottom: 0;
|
162 |
+
width: auto;
|
163 |
+
height: auto;
|
164 |
+
border: 1px solid #ddd;
|
165 |
+
border-right: 0;
|
166 |
+
background: #fff;
|
167 |
+
overflow: visible;
|
168 |
+
|
169 |
+
-webkit-transition: all 0.2s;
|
170 |
+
-moz-transition: all 0.2s;
|
171 |
+
-o-transition: all 0.2s;
|
172 |
+
-ms-transition: all 0.2s;
|
173 |
+
transition: all 0.2s;
|
174 |
+
}
|
175 |
+
.media-frame.mode-eml-grid .attachments-browser .media-toolbar {
|
176 |
+
left: -1px;
|
177 |
+
}
|
178 |
+
.media-frame.mode-eml-grid .attachments-browser .media-toolbar.wp-filter select {
|
179 |
+
font-size: 14px;
|
180 |
+
}
|
181 |
+
.media-frame.mode-eml-grid .attachments-browser .attachments,
|
182 |
+
.media-frame.mode-eml-grid .attachments-browser .uploader-inline {
|
183 |
+
top: 0;
|
184 |
+
}
|
185 |
+
.media-frame.mode-eml-grid .attachments-browser .attachments {
|
186 |
+
padding: 8px;
|
187 |
+
|
188 |
+
-webkit-transition: all 0.2s;
|
189 |
+
-moz-transition: all 0.2s;
|
190 |
+
-o-transition: all 0.2s;
|
191 |
+
-ms-transition: all 0.2s;
|
192 |
+
transition: all 0.2s;
|
193 |
+
}
|
194 |
+
.media-frame.mode-eml-grid .delete-attachment,
|
195 |
+
.media-frame.mode-eml-grid .trash-attachment,
|
196 |
+
.media-frame.mode-eml-grid .untrash-attachment {
|
197 |
+
color: #bc0b0b;
|
198 |
+
}
|
199 |
+
.media-frame.mode-eml-grid .delete-attachment:hover,
|
200 |
+
.media-frame.mode-eml-grid .delete-attachment:focus,
|
201 |
+
.media-frame.mode-eml-grid .trash-attachment:hover,
|
202 |
+
.media-frame.mode-eml-grid .trash-attachment:focus,
|
203 |
+
.media-frame.mode-eml-grid .untrash-attachment:hover,
|
204 |
+
.media-frame.mode-eml-grid .untrash-attachment:focus {
|
205 |
+
color: #ff0000;
|
206 |
+
}
|
207 |
+
.media-frame.mode-eml-grid .attachments-browser .uploader-inline {
|
208 |
+
position: absolute;
|
209 |
+
top: 10px;
|
210 |
+
right: 310px;
|
211 |
+
left: 10px;
|
212 |
+
bottom: auto;
|
213 |
+
padding: 0;
|
214 |
+
margin: 0;
|
215 |
+
border: 4px dashed #bbb;
|
216 |
+
background-color: #fff;
|
217 |
+
}
|
218 |
+
@media only screen and (max-width: 900px) {
|
219 |
+
|
220 |
+
.media-frame.mode-eml-grid .attachments-browser .uploader-inline {
|
221 |
+
right: 272px;
|
222 |
+
}
|
223 |
+
}
|
224 |
+
@media only screen and (max-width: 640px), screen and (max-height: 400px) {
|
225 |
+
|
226 |
+
.media-frame.mode-eml-grid .attachments-browser .uploader-inline {
|
227 |
+
right: 10px;
|
228 |
+
}
|
229 |
+
}
|
230 |
+
.media-frame.mode-eml-grid .uploader-inline-content {
|
231 |
+
position: static;
|
232 |
+
margin-top: 30px;
|
233 |
+
}
|
234 |
+
.media-frame.mode-eml-grid .attachments-browser .no-media {
|
235 |
+
text-align: center;
|
236 |
+
font-size: 20px;
|
237 |
+
line-height: 28px;
|
238 |
+
font-weight: 400;
|
239 |
+
padding: 40px 0 0;
|
240 |
+
margin: 0 300px 0 0;
|
241 |
+
color: #777;
|
242 |
+
}
|
243 |
+
|
244 |
+
|
245 |
+
|
246 |
+
/* == Media Popup Positions == */
|
247 |
+
|
248 |
+
body.eml-media-css .attachments-browser .media-toolbar {
|
249 |
+
height: auto;
|
250 |
+
}
|
251 |
+
|
252 |
+
body.eml-media-css .attachments-browser .media-toolbar-secondary {
|
253 |
+
max-width: none;
|
254 |
+
width: auto;
|
255 |
+
}
|
256 |
+
|
257 |
+
body.eml-media-css .media-modal-content .media-frame select.attachment-filters {
|
258 |
+
width: auto;
|
259 |
+
max-width: calc(48% - 12px);
|
260 |
+
margin-right: 10px;
|
261 |
+
vertical-align: middle;
|
262 |
+
line-height: 28px;
|
263 |
+
height: 28px;
|
264 |
+
}
|
265 |
+
|
266 |
+
body.eml-media-css .attachments-browser .media-toolbar-secondary > .media-button {
|
267 |
+
margin: 10px 10px 0 0;
|
268 |
+
}
|
269 |
+
|
270 |
+
body.eml-media-css .media-modal-content .attachments-browser .search {
|
271 |
+
width: auto;
|
272 |
+
vertical-align: middle;
|
273 |
+
padding: 6px 8px;
|
274 |
+
margin-top: 10px;
|
275 |
+
}
|
276 |
+
|
277 |
+
@media only screen and (max-width: 900px) {
|
278 |
+
|
279 |
+
body.eml-media-css .media-modal-content .attachments-browser .search {
|
280 |
+
float: none;
|
281 |
+
}
|
282 |
+
}
|
283 |
+
|
284 |
+
|
285 |
+
|
286 |
+
/* == Spinners == */
|
287 |
+
|
288 |
+
body.eml-media-css .media-frame .spinner {
|
289 |
+
margin-top: 0;
|
290 |
+
}
|
291 |
+
.media-frame .attachments-browser .media-toolbar .spinner {
|
292 |
+
float: none;
|
293 |
+
position: absolute;
|
294 |
+
}
|
295 |
+
.media-frame.mode-eml-grid .attachments-browser .media-toolbar .spinner {
|
296 |
+
top: 15px;
|
297 |
+
right: 5px;
|
298 |
+
}
|
299 |
+
.media-modal-content .media-frame .attachments-browser .media-toolbar .spinner {
|
300 |
+
right: 10px;
|
301 |
+
top: 14px;
|
302 |
+
}
|
css/eml-admin-rtl.css
CHANGED
@@ -6,251 +6,6 @@
|
|
6 |
|
7 |
|
8 |
|
9 |
-
|
10 |
-
/* == Attachment Fields == */
|
11 |
-
|
12 |
-
body.eml-media-css .term-list {
|
13 |
-
background-color: #fff;
|
14 |
-
border: 1px solid #dfdfdf;
|
15 |
-
border-radius: 3px;
|
16 |
-
padding: 10px 10px 5px;
|
17 |
-
margin: 0 0 10px;
|
18 |
-
}
|
19 |
-
body.eml-media-css .term-list li {
|
20 |
-
line-height: 22px;
|
21 |
-
}
|
22 |
-
body.eml-media-css .term-list li input[type="checkbox"] {
|
23 |
-
margin: -4px 0 0 10px !important;
|
24 |
-
}
|
25 |
-
body.eml-media-css .term-list li input[type=checkbox]:indeterminate:before {
|
26 |
-
float: right;
|
27 |
-
display: inline-block;
|
28 |
-
vertical-align: middle;
|
29 |
-
width: 16px;
|
30 |
-
font: normal 21px/1 'dashicons';
|
31 |
-
speak: none;
|
32 |
-
-webkit-font-smoothing: antialiased;
|
33 |
-
-moz-osx-font-smoothing: grayscale;
|
34 |
-
|
35 |
-
content: '\f147';
|
36 |
-
margin: -3px -4px 0 0;
|
37 |
-
color: #CBCBCB;
|
38 |
-
}
|
39 |
-
body.eml-media-css .term-list .children {
|
40 |
-
margin: 5px 20px 0 0;
|
41 |
-
}
|
42 |
-
|
43 |
-
body.eml-media-css .compat-item .eml-tax-label {
|
44 |
-
width: 100%;
|
45 |
-
float: none;
|
46 |
-
text-align: right;
|
47 |
-
}
|
48 |
-
body.eml-media-css .compat-item .eml-tax-label span {
|
49 |
-
text-align: right;
|
50 |
-
}
|
51 |
-
body.eml-media-css .compat-item .eml-tax-field {
|
52 |
-
width: 100%;
|
53 |
-
float: none;
|
54 |
-
}
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
/* == Grid Mode == */
|
60 |
-
|
61 |
-
.media-frame.mode-eml-grid .attachments-browser .media-toolbar-secondary {
|
62 |
-
max-width: none;
|
63 |
-
}
|
64 |
-
|
65 |
-
.media-frame.mode-eml-grid .media-toolbar select {
|
66 |
-
margin: 8px 0 8px 10px;
|
67 |
-
}
|
68 |
-
|
69 |
-
.media-frame.mode-eml-grid.mode-edit .media-toolbar-secondary .media-button {
|
70 |
-
margin: 8px 0 8px 10px;
|
71 |
-
vertical-align: middle;
|
72 |
-
}
|
73 |
-
|
74 |
-
.media-frame.mode-eml-grid.mode-edit .media-toolbar-secondary .search {
|
75 |
-
margin: 8px 0 8px 0;
|
76 |
-
padding: 3px 5px;
|
77 |
-
max-width: 100%;
|
78 |
-
font-size: 16px;
|
79 |
-
font-weight: 300;
|
80 |
-
line-height: 1.5;
|
81 |
-
vertical-align: middle;
|
82 |
-
}
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
/* == EML Grid == */
|
87 |
-
|
88 |
-
body.upload-php.eml-grid #wpfooter {
|
89 |
-
display: none;
|
90 |
-
}
|
91 |
-
body.upload-php.eml-grid #wpbody {
|
92 |
-
position: fixed;
|
93 |
-
top: 32px;
|
94 |
-
bottom: 0;
|
95 |
-
right: 165px;
|
96 |
-
left: 0;
|
97 |
-
height: auto;
|
98 |
-
}
|
99 |
-
body.upload-php.eml-grid.folded #wpbody {
|
100 |
-
right: 40px;
|
101 |
-
}
|
102 |
-
@media only screen and (max-width: 960px) {
|
103 |
-
|
104 |
-
body.upload-php.eml-grid.auto-fold #wpbody {
|
105 |
-
right: 40px;
|
106 |
-
}
|
107 |
-
}
|
108 |
-
@media only screen and (max-width: 782px) {
|
109 |
-
|
110 |
-
body.upload-php.eml-grid #wpbody,
|
111 |
-
body.upload-php.eml-grid.folded #wpbody,
|
112 |
-
body.upload-php.eml-grid.auto-fold #wpbody {
|
113 |
-
right: 0;
|
114 |
-
top: 46px;
|
115 |
-
}
|
116 |
-
}
|
117 |
-
body.upload-php.eml-grid #wpbody-content {
|
118 |
-
padding: 0;
|
119 |
-
float: none;
|
120 |
-
height: 100%;
|
121 |
-
}
|
122 |
-
@media only screen and (max-width: 960px) {
|
123 |
-
|
124 |
-
body.upload-php.eml-grid #wpbody-content {
|
125 |
-
float: right;
|
126 |
-
}
|
127 |
-
}
|
128 |
-
body.upload-php.eml-grid #wpbody-content > .wrap {
|
129 |
-
position: absolute;
|
130 |
-
right: 15px;
|
131 |
-
top: 0;
|
132 |
-
left: 0;
|
133 |
-
bottom: 0;
|
134 |
-
}
|
135 |
-
body.upload-php.eml-grid #wpbody-content > #screen-meta-links,
|
136 |
-
body.upload-php.eml-grid #wpbody-content > #screen-meta {
|
137 |
-
position: relative;
|
138 |
-
z-index: 999;
|
139 |
-
}
|
140 |
-
|
141 |
-
|
142 |
-
.eml-grid .wrap .notice,
|
143 |
-
.eml-grid .wrap div.updated,
|
144 |
-
.eml-grid .wrap div.error {
|
145 |
-
z-index: 20;
|
146 |
-
position: relative;
|
147 |
-
}
|
148 |
-
.media-frame.mode-eml-grid {
|
149 |
-
top: 50px;
|
150 |
-
z-index: 10;
|
151 |
-
}
|
152 |
-
.media-frame.mode-eml-grid .media-frame-title,
|
153 |
-
.media-frame.mode-eml-grid .media-frame-menu,
|
154 |
-
.media-frame.mode-eml-grid .media-frame-toolbar {
|
155 |
-
display: none;
|
156 |
-
}
|
157 |
-
.media-frame.mode-eml-grid .media-frame-content {
|
158 |
-
top: 0;
|
159 |
-
bottom: 10px;
|
160 |
-
border: none;
|
161 |
-
background: none;
|
162 |
-
overflow: hidden;
|
163 |
-
}
|
164 |
-
.media-frame.mode-eml-grid .attachments-browser {
|
165 |
-
position: absolute;
|
166 |
-
right: 0;
|
167 |
-
top: 71px;
|
168 |
-
left: 0;
|
169 |
-
bottom: 0;
|
170 |
-
width: auto;
|
171 |
-
height: auto;
|
172 |
-
border: 1px solid #ddd;
|
173 |
-
border-left: 0;
|
174 |
-
background: #fff;
|
175 |
-
overflow: visible;
|
176 |
-
|
177 |
-
-webkit-transition: all 0.2s;
|
178 |
-
-moz-transition: all 0.2s;
|
179 |
-
-o-transition: all 0.2s;
|
180 |
-
-ms-transition: all 0.2s;
|
181 |
-
transition: all 0.2s;
|
182 |
-
}
|
183 |
-
.media-frame.mode-eml-grid .attachments-browser .media-toolbar {
|
184 |
-
right: -1px;
|
185 |
-
}
|
186 |
-
.media-frame.mode-eml-grid .attachments-browser .media-toolbar.wp-filter select {
|
187 |
-
font-size: 14px;
|
188 |
-
}
|
189 |
-
.media-frame.mode-eml-grid .attachments-browser .attachments,
|
190 |
-
.media-frame.mode-eml-grid .attachments-browser .uploader-inline {
|
191 |
-
top: 0;
|
192 |
-
}
|
193 |
-
.media-frame.mode-eml-grid .attachments-browser .attachments {
|
194 |
-
padding: 8px;
|
195 |
-
|
196 |
-
-webkit-transition: all 0.2s;
|
197 |
-
-moz-transition: all 0.2s;
|
198 |
-
-o-transition: all 0.2s;
|
199 |
-
-ms-transition: all 0.2s;
|
200 |
-
transition: all 0.2s;
|
201 |
-
}
|
202 |
-
.media-frame.mode-eml-grid .delete-attachment,
|
203 |
-
.media-frame.mode-eml-grid .trash-attachment,
|
204 |
-
.media-frame.mode-eml-grid .untrash-attachment {
|
205 |
-
color: #bc0b0b;
|
206 |
-
}
|
207 |
-
.media-frame.mode-eml-grid .delete-attachment:hover,
|
208 |
-
.media-frame.mode-eml-grid .delete-attachment:focus,
|
209 |
-
.media-frame.mode-eml-grid .trash-attachment:hover,
|
210 |
-
.media-frame.mode-eml-grid .trash-attachment:focus,
|
211 |
-
.media-frame.mode-eml-grid .untrash-attachment:hover,
|
212 |
-
.media-frame.mode-eml-grid .untrash-attachment:focus {
|
213 |
-
color: #ff0000;
|
214 |
-
}
|
215 |
-
.media-frame.mode-eml-grid .attachments-browser .uploader-inline {
|
216 |
-
position: absolute;
|
217 |
-
top: 10px;
|
218 |
-
left: 310px;
|
219 |
-
right: 10px;
|
220 |
-
bottom: auto;
|
221 |
-
padding: 0;
|
222 |
-
margin: 0;
|
223 |
-
border: 4px dashed #bbb;
|
224 |
-
background-color: #fff;
|
225 |
-
}
|
226 |
-
@media only screen and (max-width: 900px) {
|
227 |
-
|
228 |
-
.media-frame.mode-eml-grid .attachments-browser .uploader-inline {
|
229 |
-
left: 272px;
|
230 |
-
}
|
231 |
-
}
|
232 |
-
@media only screen and (max-width: 640px), screen and (max-height: 400px) {
|
233 |
-
|
234 |
-
.media-frame.mode-eml-grid .attachments-browser .uploader-inline {
|
235 |
-
left: 10px;
|
236 |
-
}
|
237 |
-
}
|
238 |
-
.media-frame.mode-eml-grid .uploader-inline-content {
|
239 |
-
position: static;
|
240 |
-
margin-top: 30px;
|
241 |
-
}
|
242 |
-
.media-frame.mode-eml-grid .attachments-browser .no-media {
|
243 |
-
text-align: center;
|
244 |
-
font-size: 20px;
|
245 |
-
line-height: 28px;
|
246 |
-
font-weight: 400;
|
247 |
-
padding: 40px 0 0;
|
248 |
-
margin: 0 0 0 300px;
|
249 |
-
color: #777;
|
250 |
-
}
|
251 |
-
|
252 |
-
|
253 |
-
|
254 |
/* == Single Attachment Inline Toolbar == */
|
255 |
|
256 |
.eml-attacment-inline-toolbar {
|
@@ -293,67 +48,6 @@ body.upload-php.eml-grid #wpbody-content > #screen-meta {
|
|
293 |
|
294 |
|
295 |
|
296 |
-
|
297 |
-
/* == Media Popup Positions == */
|
298 |
-
|
299 |
-
body.eml-media-css .attachments-browser .media-toolbar {
|
300 |
-
height: auto;
|
301 |
-
}
|
302 |
-
|
303 |
-
body.eml-media-css .attachments-browser .media-toolbar-secondary {
|
304 |
-
max-width: none;
|
305 |
-
width: auto;
|
306 |
-
}
|
307 |
-
|
308 |
-
body.eml-media-css .media-modal-content .media-frame select.attachment-filters {
|
309 |
-
width: auto;
|
310 |
-
max-width: calc(48% - 12px);
|
311 |
-
margin-left: 10px;
|
312 |
-
vertical-align: middle;
|
313 |
-
line-height: 28px;
|
314 |
-
height: 28px;
|
315 |
-
}
|
316 |
-
|
317 |
-
body.eml-media-css .attachments-browser .media-toolbar-secondary > .media-button {
|
318 |
-
margin: 10px 0 0 10px;
|
319 |
-
}
|
320 |
-
|
321 |
-
body.eml-media-css .media-modal-content .attachments-browser .search {
|
322 |
-
width: auto;
|
323 |
-
vertical-align: middle;
|
324 |
-
padding: 6px 8px;
|
325 |
-
margin-top: 10px;
|
326 |
-
}
|
327 |
-
|
328 |
-
@media only screen and (max-width: 900px) {
|
329 |
-
|
330 |
-
body.eml-media-css .media-modal-content .attachments-browser .search {
|
331 |
-
float: none;
|
332 |
-
}
|
333 |
-
}
|
334 |
-
|
335 |
-
|
336 |
-
|
337 |
-
/* == Spinners == */
|
338 |
-
|
339 |
-
body.eml-media-css .media-frame .spinner {
|
340 |
-
margin-top: 0;
|
341 |
-
}
|
342 |
-
.media-frame .attachments-browser .media-toolbar .spinner {
|
343 |
-
float: none;
|
344 |
-
position: absolute;
|
345 |
-
}
|
346 |
-
.media-frame.mode-eml-grid .attachments-browser .media-toolbar .spinner {
|
347 |
-
top: 15px;
|
348 |
-
left: 5px;
|
349 |
-
}
|
350 |
-
.media-modal-content .media-frame .attachments-browser .media-toolbar .spinner {
|
351 |
-
left: 10px;
|
352 |
-
top: 14px;
|
353 |
-
}
|
354 |
-
|
355 |
-
|
356 |
-
|
357 |
/* == Buttons Styles == */
|
358 |
|
359 |
.wpuxss-eml-button-remove {
|
6 |
|
7 |
|
8 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9 |
/* == Single Attachment Inline Toolbar == */
|
10 |
|
11 |
.eml-attacment-inline-toolbar {
|
48 |
|
49 |
|
50 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
51 |
/* == Buttons Styles == */
|
52 |
|
53 |
.wpuxss-eml-button-remove {
|
css/eml-admin.css
CHANGED
@@ -6,251 +6,6 @@
|
|
6 |
|
7 |
|
8 |
|
9 |
-
|
10 |
-
/* == Attachment Fields == */
|
11 |
-
|
12 |
-
body.eml-media-css .term-list {
|
13 |
-
background-color: #fff;
|
14 |
-
border: 1px solid #dfdfdf;
|
15 |
-
border-radius: 3px;
|
16 |
-
padding: 10px 10px 5px;
|
17 |
-
margin: 0 0 10px;
|
18 |
-
}
|
19 |
-
body.eml-media-css .term-list li {
|
20 |
-
line-height: 22px;
|
21 |
-
}
|
22 |
-
body.eml-media-css .term-list li input[type="checkbox"] {
|
23 |
-
margin: -4px 10px 0 0 !important;
|
24 |
-
}
|
25 |
-
body.eml-media-css .term-list li input[type=checkbox]:indeterminate:before {
|
26 |
-
float: left;
|
27 |
-
display: inline-block;
|
28 |
-
vertical-align: middle;
|
29 |
-
width: 16px;
|
30 |
-
font: normal 21px/1 'dashicons';
|
31 |
-
speak: none;
|
32 |
-
-webkit-font-smoothing: antialiased;
|
33 |
-
-moz-osx-font-smoothing: grayscale;
|
34 |
-
|
35 |
-
content: '\f147';
|
36 |
-
margin: -3px 0 0 -4px;
|
37 |
-
color: #CBCBCB;
|
38 |
-
}
|
39 |
-
body.eml-media-css .term-list .children {
|
40 |
-
margin: 5px 0 0 20px;
|
41 |
-
}
|
42 |
-
|
43 |
-
body.eml-media-css .compat-item .eml-tax-label {
|
44 |
-
width: 100%;
|
45 |
-
float: none;
|
46 |
-
text-align: left;
|
47 |
-
}
|
48 |
-
body.eml-media-css .compat-item .eml-tax-label span {
|
49 |
-
text-align: left;
|
50 |
-
}
|
51 |
-
body.eml-media-css .compat-item .eml-tax-field {
|
52 |
-
width: 100%;
|
53 |
-
float: none;
|
54 |
-
}
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
/* == Grid Mode == */
|
60 |
-
|
61 |
-
.media-frame.mode-eml-grid .attachments-browser .media-toolbar-secondary {
|
62 |
-
max-width: none;
|
63 |
-
}
|
64 |
-
|
65 |
-
.media-frame.mode-eml-grid .media-toolbar select {
|
66 |
-
margin: 8px 10px 8px 0;
|
67 |
-
}
|
68 |
-
|
69 |
-
.media-frame.mode-eml-grid.mode-edit .media-toolbar-secondary .media-button {
|
70 |
-
margin: 8px 10px 8px 0;
|
71 |
-
vertical-align: middle;
|
72 |
-
}
|
73 |
-
|
74 |
-
.media-frame.mode-eml-grid.mode-edit .media-toolbar-secondary .search {
|
75 |
-
margin: 8px 0 8px 0;
|
76 |
-
padding: 3px 5px;
|
77 |
-
max-width: 100%;
|
78 |
-
font-size: 16px;
|
79 |
-
font-weight: 300;
|
80 |
-
line-height: 1.5;
|
81 |
-
vertical-align: middle;
|
82 |
-
}
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
/* == EML Grid == */
|
87 |
-
|
88 |
-
body.upload-php.eml-grid #wpfooter {
|
89 |
-
display: none;
|
90 |
-
}
|
91 |
-
body.upload-php.eml-grid #wpbody {
|
92 |
-
position: fixed;
|
93 |
-
top: 32px;
|
94 |
-
bottom: 0;
|
95 |
-
left: 165px;
|
96 |
-
right: 0;
|
97 |
-
height: auto;
|
98 |
-
}
|
99 |
-
body.upload-php.eml-grid.folded #wpbody {
|
100 |
-
left: 40px;
|
101 |
-
}
|
102 |
-
@media only screen and (max-width: 960px) {
|
103 |
-
|
104 |
-
body.upload-php.eml-grid.auto-fold #wpbody {
|
105 |
-
left: 40px;
|
106 |
-
}
|
107 |
-
}
|
108 |
-
@media only screen and (max-width: 782px) {
|
109 |
-
|
110 |
-
body.upload-php.eml-grid #wpbody,
|
111 |
-
body.upload-php.eml-grid.folded #wpbody,
|
112 |
-
body.upload-php.eml-grid.auto-fold #wpbody {
|
113 |
-
left: 0;
|
114 |
-
top: 46px;
|
115 |
-
}
|
116 |
-
}
|
117 |
-
body.upload-php.eml-grid #wpbody-content {
|
118 |
-
padding: 0;
|
119 |
-
float: none;
|
120 |
-
height: 100%;
|
121 |
-
}
|
122 |
-
@media only screen and (max-width: 960px) {
|
123 |
-
|
124 |
-
body.upload-php.eml-grid #wpbody-content {
|
125 |
-
float: left;
|
126 |
-
}
|
127 |
-
}
|
128 |
-
body.upload-php.eml-grid #wpbody-content > .wrap {
|
129 |
-
position: absolute;
|
130 |
-
left: 15px;
|
131 |
-
top: 0;
|
132 |
-
right: 0;
|
133 |
-
bottom: 0;
|
134 |
-
}
|
135 |
-
body.upload-php.eml-grid #wpbody-content > #screen-meta-links,
|
136 |
-
body.upload-php.eml-grid #wpbody-content > #screen-meta {
|
137 |
-
position: relative;
|
138 |
-
z-index: 999;
|
139 |
-
}
|
140 |
-
|
141 |
-
|
142 |
-
.eml-grid .wrap .notice,
|
143 |
-
.eml-grid .wrap div.updated,
|
144 |
-
.eml-grid .wrap div.error {
|
145 |
-
z-index: 20;
|
146 |
-
position: relative;
|
147 |
-
}
|
148 |
-
.media-frame.mode-eml-grid {
|
149 |
-
top: 50px;
|
150 |
-
z-index: 10;
|
151 |
-
}
|
152 |
-
.media-frame.mode-eml-grid .media-frame-title,
|
153 |
-
.media-frame.mode-eml-grid .media-frame-menu,
|
154 |
-
.media-frame.mode-eml-grid .media-frame-toolbar {
|
155 |
-
display: none;
|
156 |
-
}
|
157 |
-
.media-frame.mode-eml-grid .media-frame-content {
|
158 |
-
top: 0;
|
159 |
-
bottom: 10px;
|
160 |
-
border: none;
|
161 |
-
background: none;
|
162 |
-
overflow: hidden;
|
163 |
-
}
|
164 |
-
.media-frame.mode-eml-grid .attachments-browser {
|
165 |
-
position: absolute;
|
166 |
-
left: 0;
|
167 |
-
top: 71px;
|
168 |
-
right: 0;
|
169 |
-
bottom: 0;
|
170 |
-
width: auto;
|
171 |
-
height: auto;
|
172 |
-
border: 1px solid #ddd;
|
173 |
-
border-right: 0;
|
174 |
-
background: #fff;
|
175 |
-
overflow: visible;
|
176 |
-
|
177 |
-
-webkit-transition: all 0.2s;
|
178 |
-
-moz-transition: all 0.2s;
|
179 |
-
-o-transition: all 0.2s;
|
180 |
-
-ms-transition: all 0.2s;
|
181 |
-
transition: all 0.2s;
|
182 |
-
}
|
183 |
-
.media-frame.mode-eml-grid .attachments-browser .media-toolbar {
|
184 |
-
left: -1px;
|
185 |
-
}
|
186 |
-
.media-frame.mode-eml-grid .attachments-browser .media-toolbar.wp-filter select {
|
187 |
-
font-size: 14px;
|
188 |
-
}
|
189 |
-
.media-frame.mode-eml-grid .attachments-browser .attachments,
|
190 |
-
.media-frame.mode-eml-grid .attachments-browser .uploader-inline {
|
191 |
-
top: 0;
|
192 |
-
}
|
193 |
-
.media-frame.mode-eml-grid .attachments-browser .attachments {
|
194 |
-
padding: 8px;
|
195 |
-
|
196 |
-
-webkit-transition: all 0.2s;
|
197 |
-
-moz-transition: all 0.2s;
|
198 |
-
-o-transition: all 0.2s;
|
199 |
-
-ms-transition: all 0.2s;
|
200 |
-
transition: all 0.2s;
|
201 |
-
}
|
202 |
-
.media-frame.mode-eml-grid .delete-attachment,
|
203 |
-
.media-frame.mode-eml-grid .trash-attachment,
|
204 |
-
.media-frame.mode-eml-grid .untrash-attachment {
|
205 |
-
color: #bc0b0b;
|
206 |
-
}
|
207 |
-
.media-frame.mode-eml-grid .delete-attachment:hover,
|
208 |
-
.media-frame.mode-eml-grid .delete-attachment:focus,
|
209 |
-
.media-frame.mode-eml-grid .trash-attachment:hover,
|
210 |
-
.media-frame.mode-eml-grid .trash-attachment:focus,
|
211 |
-
.media-frame.mode-eml-grid .untrash-attachment:hover,
|
212 |
-
.media-frame.mode-eml-grid .untrash-attachment:focus {
|
213 |
-
color: #ff0000;
|
214 |
-
}
|
215 |
-
.media-frame.mode-eml-grid .attachments-browser .uploader-inline {
|
216 |
-
position: absolute;
|
217 |
-
top: 10px;
|
218 |
-
right: 310px;
|
219 |
-
left: 10px;
|
220 |
-
bottom: auto;
|
221 |
-
padding: 0;
|
222 |
-
margin: 0;
|
223 |
-
border: 4px dashed #bbb;
|
224 |
-
background-color: #fff;
|
225 |
-
}
|
226 |
-
@media only screen and (max-width: 900px) {
|
227 |
-
|
228 |
-
.media-frame.mode-eml-grid .attachments-browser .uploader-inline {
|
229 |
-
right: 272px;
|
230 |
-
}
|
231 |
-
}
|
232 |
-
@media only screen and (max-width: 640px), screen and (max-height: 400px) {
|
233 |
-
|
234 |
-
.media-frame.mode-eml-grid .attachments-browser .uploader-inline {
|
235 |
-
right: 10px;
|
236 |
-
}
|
237 |
-
}
|
238 |
-
.media-frame.mode-eml-grid .uploader-inline-content {
|
239 |
-
position: static;
|
240 |
-
margin-top: 30px;
|
241 |
-
}
|
242 |
-
.media-frame.mode-eml-grid .attachments-browser .no-media {
|
243 |
-
text-align: center;
|
244 |
-
font-size: 20px;
|
245 |
-
line-height: 28px;
|
246 |
-
font-weight: 400;
|
247 |
-
padding: 40px 0 0;
|
248 |
-
margin: 0 300px 0 0;
|
249 |
-
color: #777;
|
250 |
-
}
|
251 |
-
|
252 |
-
|
253 |
-
|
254 |
/* == Single Attachment Inline Toolbar == */
|
255 |
|
256 |
.eml-attacment-inline-toolbar {
|
@@ -293,67 +48,6 @@ body.upload-php.eml-grid #wpbody-content > #screen-meta {
|
|
293 |
|
294 |
|
295 |
|
296 |
-
|
297 |
-
/* == Media Popup Positions == */
|
298 |
-
|
299 |
-
body.eml-media-css .attachments-browser .media-toolbar {
|
300 |
-
height: auto;
|
301 |
-
}
|
302 |
-
|
303 |
-
body.eml-media-css .attachments-browser .media-toolbar-secondary {
|
304 |
-
max-width: none;
|
305 |
-
width: auto;
|
306 |
-
}
|
307 |
-
|
308 |
-
body.eml-media-css .media-modal-content .media-frame select.attachment-filters {
|
309 |
-
width: auto;
|
310 |
-
max-width: calc(48% - 12px);
|
311 |
-
margin-right: 10px;
|
312 |
-
vertical-align: middle;
|
313 |
-
line-height: 28px;
|
314 |
-
height: 28px;
|
315 |
-
}
|
316 |
-
|
317 |
-
body.eml-media-css .attachments-browser .media-toolbar-secondary > .media-button {
|
318 |
-
margin: 10px 10px 0 0;
|
319 |
-
}
|
320 |
-
|
321 |
-
body.eml-media-css .media-modal-content .attachments-browser .search {
|
322 |
-
width: auto;
|
323 |
-
vertical-align: middle;
|
324 |
-
padding: 6px 8px;
|
325 |
-
margin-top: 10px;
|
326 |
-
}
|
327 |
-
|
328 |
-
@media only screen and (max-width: 900px) {
|
329 |
-
|
330 |
-
body.eml-media-css .media-modal-content .attachments-browser .search {
|
331 |
-
float: none;
|
332 |
-
}
|
333 |
-
}
|
334 |
-
|
335 |
-
|
336 |
-
|
337 |
-
/* == Spinners == */
|
338 |
-
|
339 |
-
body.eml-media-css .media-frame .spinner {
|
340 |
-
margin-top: 0;
|
341 |
-
}
|
342 |
-
.media-frame .attachments-browser .media-toolbar .spinner {
|
343 |
-
float: none;
|
344 |
-
position: absolute;
|
345 |
-
}
|
346 |
-
.media-frame.mode-eml-grid .attachments-browser .media-toolbar .spinner {
|
347 |
-
top: 15px;
|
348 |
-
right: 5px;
|
349 |
-
}
|
350 |
-
.media-modal-content .media-frame .attachments-browser .media-toolbar .spinner {
|
351 |
-
right: 10px;
|
352 |
-
top: 14px;
|
353 |
-
}
|
354 |
-
|
355 |
-
|
356 |
-
|
357 |
/* == Buttons Styles == */
|
358 |
|
359 |
.wpuxss-eml-button-remove {
|
6 |
|
7 |
|
8 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9 |
/* == Single Attachment Inline Toolbar == */
|
10 |
|
11 |
.eml-attacment-inline-toolbar {
|
48 |
|
49 |
|
50 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
51 |
/* == Buttons Styles == */
|
52 |
|
53 |
.wpuxss-eml-button-remove {
|
enhanced-media-library.php
CHANGED
@@ -3,14 +3,14 @@
|
|
3 |
Plugin Name: Enhanced Media Library
|
4 |
Plugin URI: http://wpUXsolutions.com
|
5 |
Description: This plugin will be handy for those who need to manage a lot of media files.
|
6 |
-
Version: 2.6
|
7 |
Author: wpUXsolutions
|
8 |
Author URI: http://wpUXsolutions.com
|
9 |
Text Domain: enhanced-media-library
|
10 |
Domain Path: /languages
|
11 |
License: GPL version 2 or later - http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
12 |
|
13 |
-
Copyright 2013-
|
14 |
*/
|
15 |
|
16 |
|
@@ -21,13 +21,12 @@ if ( ! defined( 'ABSPATH' ) )
|
|
21 |
|
22 |
|
23 |
global $wp_version,
|
24 |
-
$wpuxss_eml_version,
|
25 |
$wpuxss_eml_dir,
|
26 |
$wpuxss_eml_path;
|
27 |
|
28 |
|
29 |
|
30 |
-
|
31 |
|
32 |
|
33 |
|
@@ -91,31 +90,13 @@ if ( ! function_exists( 'wpuxss_eml_enhance_media_shortcodes' ) ) {
|
|
91 |
|
92 |
|
93 |
|
94 |
-
/**
|
95 |
-
* Load plugin text domain
|
96 |
-
*
|
97 |
-
* @since 2.0.4.7
|
98 |
-
* @created 18/07/15
|
99 |
-
*/
|
100 |
-
|
101 |
-
add_action( 'plugins_loaded', 'wpuxss_eml_on_plugins_loaded' );
|
102 |
-
|
103 |
-
if ( ! function_exists( 'wpuxss_eml_on_plugins_loaded' ) ) {
|
104 |
-
|
105 |
-
function wpuxss_eml_on_plugins_loaded() {
|
106 |
-
|
107 |
-
load_plugin_textdomain( 'enhanced-media-library', false, dirname( plugin_basename( __FILE__ ) ) . '/languages' );
|
108 |
-
}
|
109 |
-
}
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
/**
|
114 |
* Free functionality
|
115 |
*/
|
116 |
|
117 |
include_once( 'core/mime-types.php' );
|
118 |
include_once( 'core/taxonomies.php' );
|
|
|
119 |
|
120 |
if ( wpuxss_eml_enhance_media_shortcodes() ) {
|
121 |
include_once( 'core/medialist.php' );
|
@@ -125,53 +106,80 @@ if ( is_admin() ) {
|
|
125 |
include_once( 'core/options-pages.php' );
|
126 |
}
|
127 |
|
|
|
|
|
|
|
|
|
|
|
|
|
128 |
register_activation_hook( __FILE__, 'wpuxss_eml_on_activation' );
|
129 |
|
130 |
|
131 |
|
132 |
/**
|
133 |
-
*
|
134 |
*
|
135 |
-
* @since 1
|
136 |
-
* @created
|
137 |
*/
|
138 |
|
139 |
-
add_action( '
|
140 |
|
141 |
-
if ( ! function_exists( '
|
142 |
|
143 |
-
function
|
144 |
|
145 |
global $wpuxss_eml_dir,
|
146 |
-
$wpuxss_eml_path
|
147 |
-
$wpuxss_eml_version;
|
148 |
|
149 |
|
150 |
$wpuxss_eml_dir = plugin_dir_url( __FILE__ );
|
151 |
$wpuxss_eml_path = plugin_dir_path( __FILE__ );
|
152 |
|
153 |
|
154 |
-
|
|
|
155 |
|
156 |
-
if ( version_compare( $wpuxss_eml_version, $wpuxss_eml_old_version, '<>' ) ) {
|
157 |
|
158 |
-
|
|
|
159 |
|
160 |
-
|
161 |
-
|
162 |
-
}
|
163 |
}
|
164 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
165 |
|
|
|
|
|
|
|
166 |
$plugins = get_site_option( 'active_sitewide_plugins');
|
167 |
|
168 |
if ( is_multisite() && isset($plugins[wpuxss_get_eml_basename()]) ) {
|
169 |
|
170 |
-
|
171 |
-
|
172 |
-
foreach( $sites as $site ) {
|
173 |
|
174 |
-
switch_to_blog( $
|
175 |
wpuxss_eml_register_taxonomies();
|
176 |
restore_current_blog();
|
177 |
}
|
@@ -329,8 +337,7 @@ if ( ! function_exists( 'wpuxss_eml_admin_enqueue_scripts' ) ) {
|
|
329 |
|
330 |
function wpuxss_eml_admin_enqueue_scripts() {
|
331 |
|
332 |
-
global $
|
333 |
-
$wpuxss_eml_dir,
|
334 |
$current_screen;
|
335 |
|
336 |
|
@@ -344,11 +351,22 @@ if ( ! function_exists( 'wpuxss_eml_admin_enqueue_scripts' ) ) {
|
|
344 |
'wpuxss-eml-admin-custom-style',
|
345 |
$wpuxss_eml_dir . 'css/eml-admin.css',
|
346 |
false,
|
347 |
-
|
348 |
'all'
|
349 |
);
|
350 |
wp_style_add_data( 'wpuxss-eml-admin-custom-style', 'rtl', 'replace' );
|
351 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
352 |
wp_enqueue_style ( 'wp-jquery-ui-dialog' );
|
353 |
|
354 |
|
@@ -357,7 +375,7 @@ if ( ! function_exists( 'wpuxss_eml_admin_enqueue_scripts' ) ) {
|
|
357 |
'wpuxss-eml-admin-script',
|
358 |
$wpuxss_eml_dir . 'js/eml-admin.js',
|
359 |
array( 'jquery', 'jquery-ui-dialog' ),
|
360 |
-
|
361 |
true
|
362 |
);
|
363 |
|
@@ -369,7 +387,7 @@ if ( ! function_exists( 'wpuxss_eml_admin_enqueue_scripts' ) ) {
|
|
369 |
'wpuxss-eml-media-list-script',
|
370 |
$wpuxss_eml_dir . 'js/eml-media-list.js',
|
371 |
array('jquery'),
|
372 |
-
|
373 |
true
|
374 |
);
|
375 |
|
@@ -396,7 +414,7 @@ if ( ! function_exists( 'wpuxss_eml_admin_enqueue_scripts' ) ) {
|
|
396 |
'wpuxss-eml-media-grid-script',
|
397 |
$wpuxss_eml_dir . 'js/eml-media-grid.js',
|
398 |
array( 'wpuxss-eml-media-models-script', 'wpuxss-eml-media-views-script' ),
|
399 |
-
|
400 |
true
|
401 |
);
|
402 |
|
@@ -429,8 +447,7 @@ if ( ! function_exists( 'wpuxss_eml_enqueue_media' ) ) {
|
|
429 |
|
430 |
function wpuxss_eml_enqueue_media() {
|
431 |
|
432 |
-
global $
|
433 |
-
$wpuxss_eml_dir,
|
434 |
$wp_version,
|
435 |
$current_screen;
|
436 |
|
@@ -459,14 +476,16 @@ if ( ! function_exists( 'wpuxss_eml_enqueue_media' ) ) {
|
|
459 |
$terms_id_name_ready_for_script = wpuxss_eml_get_media_term_pairs( $terms, 'id=>name' );
|
460 |
|
461 |
|
462 |
-
$users = current_user_can( 'manage_options' ) ? get_users() : array();
|
463 |
$users_ready_for_script = array();
|
464 |
|
465 |
-
|
466 |
-
|
467 |
-
|
468 |
-
|
469 |
-
|
|
|
|
|
|
|
470 |
}
|
471 |
|
472 |
|
@@ -518,7 +537,7 @@ if ( ! function_exists( 'wpuxss_eml_enqueue_media' ) ) {
|
|
518 |
'wpuxss-eml-media-models-script',
|
519 |
$wpuxss_eml_dir . 'js/eml-media-models.js',
|
520 |
array('media-models'),
|
521 |
-
|
522 |
true
|
523 |
);
|
524 |
|
@@ -526,7 +545,7 @@ if ( ! function_exists( 'wpuxss_eml_enqueue_media' ) ) {
|
|
526 |
'wpuxss-eml-media-views-script',
|
527 |
$wpuxss_eml_dir . 'js/eml-media-views.js',
|
528 |
array('media-views'),
|
529 |
-
|
530 |
true
|
531 |
);
|
532 |
|
@@ -536,7 +555,7 @@ if ( ! function_exists( 'wpuxss_eml_enqueue_media' ) ) {
|
|
536 |
// 'wpuxss-eml-tags-box-script',
|
537 |
// '/wp-admin/js/tags-box.js',
|
538 |
// array(),
|
539 |
-
//
|
540 |
// true
|
541 |
// );
|
542 |
|
@@ -589,7 +608,7 @@ if ( ! function_exists( 'wpuxss_eml_enqueue_media' ) ) {
|
|
589 |
'wpuxss-eml-enhanced-medialist-script',
|
590 |
$wpuxss_eml_dir . 'js/eml-enhanced-medialist.js',
|
591 |
array('media-views'),
|
592 |
-
|
593 |
true
|
594 |
);
|
595 |
|
@@ -597,7 +616,7 @@ if ( ! function_exists( 'wpuxss_eml_enqueue_media' ) ) {
|
|
597 |
'wpuxss-eml-media-editor-script',
|
598 |
$wpuxss_eml_dir . 'js/eml-media-editor.js',
|
599 |
array('media-editor','media-views', 'wpuxss-eml-enhanced-medialist-script'),
|
600 |
-
|
601 |
true
|
602 |
);
|
603 |
|
@@ -626,13 +645,15 @@ if ( ! function_exists( 'wpuxss_eml_enqueue_media' ) ) {
|
|
626 |
|
627 |
if ( ! function_exists( 'wpuxss_eml_on_activation' ) ) {
|
628 |
|
629 |
-
function wpuxss_eml_on_activation(
|
630 |
|
631 |
-
|
|
|
|
|
632 |
|
633 |
-
foreach( get_sites() as $
|
634 |
|
635 |
-
switch_to_blog( $
|
636 |
wpuxss_eml_set_options();
|
637 |
restore_current_blog();
|
638 |
}
|
@@ -641,15 +662,11 @@ if ( ! function_exists( 'wpuxss_eml_on_activation' ) ) {
|
|
641 |
wpuxss_eml_set_options();
|
642 |
}
|
643 |
|
644 |
-
if ( is_multisite()
|
645 |
-
|
646 |
-
$wpuxss_eml_network_options = array(
|
647 |
-
'media_settings' => 1,
|
648 |
-
'utilities' => 1
|
649 |
-
);
|
650 |
-
|
651 |
-
update_site_option( 'wpuxss_eml_network_options', $wpuxss_eml_network_options );
|
652 |
}
|
|
|
|
|
653 |
}
|
654 |
}
|
655 |
|
@@ -666,186 +683,117 @@ if ( ! function_exists( 'wpuxss_eml_set_options' ) ) {
|
|
666 |
|
667 |
function wpuxss_eml_set_options() {
|
668 |
|
669 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
670 |
|
671 |
-
|
|
|
672 |
'assigned' => 1,
|
673 |
'eml_media' => 1,
|
674 |
-
'
|
675 |
-
|
676 |
-
'labels' => array(
|
677 |
-
'name' => __( 'Media Categories', 'enhanced-media-library' ),
|
678 |
-
'singular_name' => __( 'Media Category', 'enhanced-media-library' ),
|
679 |
-
'menu_name' => __( 'Media Categories', 'enhanced-media-library' ),
|
680 |
-
'all_items' => __( 'All Media Categories', 'enhanced-media-library' ),
|
681 |
-
'edit_item' => __( 'Edit Media Category', 'enhanced-media-library' ),
|
682 |
-
'view_item' => __( 'View Media Category', 'enhanced-media-library' ),
|
683 |
-
'update_item' => __( 'Update Media Category', 'enhanced-media-library' ),
|
684 |
-
'add_new_item' => __( 'Add New Media Category', 'enhanced-media-library' ),
|
685 |
-
'new_item_name' => __( 'New Media Category Name', 'enhanced-media-library' ),
|
686 |
-
'parent_item' => __( 'Parent Media Category', 'enhanced-media-library' ),
|
687 |
-
'parent_item_colon' => __( 'Parent Media Category:', 'enhanced-media-library' ),
|
688 |
-
'search_items' => __( 'Search Media Categories', 'enhanced-media-library' )
|
689 |
-
),
|
690 |
|
691 |
'hierarchical' => 1,
|
692 |
|
693 |
-
'show_admin_column' =>
|
694 |
-
'admin_filter' =>
|
695 |
-
'media_uploader_filter' =>
|
696 |
-
'media_popup_taxonomy_edit' =>
|
697 |
|
698 |
-
'show_in_nav_menus' =>
|
699 |
'sort' => 0,
|
700 |
'show_in_rest' => 0,
|
701 |
'rewrite' => array(
|
702 |
-
'slug' => 'media_category',
|
703 |
'with_front' => 1
|
704 |
)
|
705 |
);
|
706 |
|
707 |
-
|
708 |
-
|
709 |
-
|
710 |
-
|
711 |
-
|
712 |
-
|
713 |
-
'
|
714 |
-
'
|
715 |
-
'media_order' => 'DESC',
|
716 |
-
'natural_sort' => 0,
|
717 |
-
'force_filters' => 1, // since 2.5
|
718 |
-
'filters_to_show' => array( // since 2.5
|
719 |
-
'types',
|
720 |
-
'dates',
|
721 |
-
'taxonomies'
|
722 |
-
),
|
723 |
-
'show_count' => 1,
|
724 |
-
'include_children' => 1, // since 2.6
|
725 |
-
'grid_show_caption' => 0, // since 2.6
|
726 |
-
'grid_caption_type' => 'title', // since 2.6
|
727 |
-
'search_in' => array( // since 2.6
|
728 |
-
'titles',
|
729 |
-
'captions',
|
730 |
-
'descriptions'
|
731 |
-
)
|
732 |
);
|
733 |
|
734 |
-
update_option( 'wpuxss_eml_lib_options', $wpuxss_eml_lib_options );
|
735 |
-
}
|
736 |
-
|
737 |
-
if ( null === get_option( 'wpuxss_eml_tax_options', null ) ) {
|
738 |
|
739 |
-
$
|
740 |
-
'tax_archives' => 0, // since 2.6
|
741 |
-
'edit_all_as_hierarchical' => 0
|
742 |
-
);
|
743 |
-
|
744 |
-
update_option( 'wpuxss_eml_tax_options', $wpuxss_eml_tax_options );
|
745 |
-
}
|
746 |
|
747 |
-
|
748 |
-
|
749 |
-
|
750 |
-
$default_mimes = array();
|
751 |
-
|
752 |
-
foreach ( wp_get_mime_types() as $type => $mime ) {
|
753 |
-
|
754 |
-
$wpuxss_eml_mimes[$type] = $default_mimes[$type] = array(
|
755 |
-
'mime' => $mime,
|
756 |
-
'singular' => $mime,
|
757 |
-
'plural' => $mime,
|
758 |
-
'filter' => 0,
|
759 |
-
'upload' => isset($allowed_mimes[$type]) ? 1 : 0
|
760 |
-
);
|
761 |
-
}
|
762 |
-
|
763 |
-
$wpuxss_eml_mimes['pdf']['singular'] = 'PDF';
|
764 |
-
$wpuxss_eml_mimes['pdf']['plural'] = 'PDFs';
|
765 |
-
$wpuxss_eml_mimes['pdf']['filter'] = 1;
|
766 |
-
|
767 |
-
update_option( 'wpuxss_eml_mimes', $wpuxss_eml_mimes );
|
768 |
-
update_option( 'wpuxss_eml_mimes_backup', $default_mimes );
|
769 |
-
}
|
770 |
-
|
771 |
-
}
|
772 |
-
}
|
773 |
-
|
774 |
-
|
775 |
-
|
776 |
-
/**
|
777 |
-
* wpuxss_eml_on_update
|
778 |
-
*
|
779 |
-
* @since 2.2
|
780 |
-
* @created 12/03/16
|
781 |
-
*/
|
782 |
-
|
783 |
-
if ( ! function_exists( 'wpuxss_eml_on_update' ) ) {
|
784 |
-
|
785 |
-
function wpuxss_eml_on_update() {
|
786 |
-
|
787 |
-
$wpuxss_eml_taxonomies = get_option( 'wpuxss_eml_taxonomies', array() );
|
788 |
-
$wpuxss_eml_lib_options = get_option( 'wpuxss_eml_lib_options', array() );
|
789 |
-
$wpuxss_eml_tax_options = get_option( 'wpuxss_eml_tax_options', array() );
|
790 |
-
|
791 |
-
|
792 |
-
// per-taxonomy settings
|
793 |
-
$media_taxonomy_args_defaults = array(
|
794 |
-
'assigned' => 0,
|
795 |
-
'eml_media' => 1,
|
796 |
-
'media_only' => 0,
|
797 |
-
|
798 |
-
'hierarchical' => 1,
|
799 |
-
|
800 |
-
'show_admin_column' => 0,
|
801 |
-
'admin_filter' => 0,
|
802 |
-
'media_uploader_filter' => 0,
|
803 |
-
'media_popup_taxonomy_edit' => 0,
|
804 |
-
|
805 |
-
'show_in_nav_menus' => 0,
|
806 |
-
'sort' => 0,
|
807 |
-
'show_in_rest' => 0,
|
808 |
-
'rewrite' => array(
|
809 |
-
'with_front' => 1
|
810 |
-
)
|
811 |
-
);
|
812 |
-
|
813 |
-
$non_media_taxonomy_args_defaults = array(
|
814 |
-
'assigned' => 0,
|
815 |
-
'eml_media' => 0,
|
816 |
-
'media_only' => 0,
|
817 |
-
'admin_filter' => 0,
|
818 |
-
'media_uploader_filter' => 0,
|
819 |
-
'media_popup_taxonomy_edit' => 0,
|
820 |
-
'taxonomy_auto_assign' => 0
|
821 |
-
);
|
822 |
-
|
823 |
-
|
824 |
-
foreach( $wpuxss_eml_taxonomies as $taxonomy => $params ) {
|
825 |
-
|
826 |
-
if ( ! isset( $params['eml_media'] ) ) {
|
827 |
-
$wpuxss_eml_taxonomies[$taxonomy]['eml_media'] = 0;
|
828 |
-
}
|
829 |
|
830 |
-
|
831 |
|
832 |
-
|
833 |
-
|
834 |
|
835 |
-
|
836 |
-
|
|
|
837 |
}
|
838 |
-
}
|
839 |
|
840 |
-
|
841 |
|
842 |
-
|
843 |
-
|
|
|
844 |
}
|
845 |
}
|
846 |
|
|
|
|
|
847 |
|
848 |
-
// media library
|
849 |
$eml_lib_options_defaults = array(
|
850 |
'enhance_media_shortcodes' => isset( $wpuxss_eml_tax_options['enhance_media_shortcodes'] ) ? (bool) $wpuxss_eml_tax_options['enhance_media_shortcodes'] : ( isset( $wpuxss_eml_tax_options['enhance_gallery_shortcode'] ) ? (bool) $wpuxss_eml_tax_options['enhance_gallery_shortcode'] : 0 ),
|
851 |
'media_orderby' => isset( $wpuxss_eml_tax_options['media_orderby'] ) ? sanitize_text_field( $wpuxss_eml_tax_options['media_orderby'] ) : 'date',
|
@@ -871,8 +819,10 @@ if ( ! function_exists( 'wpuxss_eml_on_update' ) ) {
|
|
871 |
$wpuxss_eml_lib_options = array_intersect_key( $wpuxss_eml_lib_options, $eml_lib_options_defaults );
|
872 |
$wpuxss_eml_lib_options = array_merge( $eml_lib_options_defaults, $wpuxss_eml_lib_options );
|
873 |
|
|
|
|
|
874 |
|
875 |
-
//
|
876 |
$eml_tax_options_defaults = array(
|
877 |
'tax_archives' => 0, // since 2.6
|
878 |
'edit_all_as_hierarchical' => 0
|
@@ -881,27 +831,61 @@ if ( ! function_exists( 'wpuxss_eml_on_update' ) ) {
|
|
881 |
$wpuxss_eml_tax_options = array_intersect_key( $wpuxss_eml_tax_options, $eml_tax_options_defaults );
|
882 |
$wpuxss_eml_tax_options = array_merge( $eml_tax_options_defaults, $wpuxss_eml_tax_options );
|
883 |
|
884 |
-
|
885 |
-
update_option( 'wpuxss_eml_taxonomies', $wpuxss_eml_taxonomies );
|
886 |
-
update_option( 'wpuxss_eml_lib_options', $wpuxss_eml_lib_options );
|
887 |
update_option( 'wpuxss_eml_tax_options', $wpuxss_eml_tax_options );
|
888 |
|
889 |
|
890 |
-
|
|
|
|
|
|
|
|
|
891 |
|
892 |
-
|
893 |
|
894 |
-
|
895 |
-
|
896 |
-
|
897 |
-
|
|
|
|
|
|
|
|
|
898 |
|
899 |
-
$
|
900 |
-
$
|
|
|
901 |
|
902 |
-
|
|
|
903 |
}
|
904 |
}
|
905 |
}
|
906 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
907 |
?>
|
3 |
Plugin Name: Enhanced Media Library
|
4 |
Plugin URI: http://wpUXsolutions.com
|
5 |
Description: This plugin will be handy for those who need to manage a lot of media files.
|
6 |
+
Version: 2.6.4
|
7 |
Author: wpUXsolutions
|
8 |
Author URI: http://wpUXsolutions.com
|
9 |
Text Domain: enhanced-media-library
|
10 |
Domain Path: /languages
|
11 |
License: GPL version 2 or later - http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
12 |
|
13 |
+
Copyright 2013-2018 wpUXsolutions (email : wpUXsolutions@gmail.com)
|
14 |
*/
|
15 |
|
16 |
|
21 |
|
22 |
|
23 |
global $wp_version,
|
|
|
24 |
$wpuxss_eml_dir,
|
25 |
$wpuxss_eml_path;
|
26 |
|
27 |
|
28 |
|
29 |
+
if ( ! defined('EML_VERSION') ) define( 'EML_VERSION', '2.6.4' );
|
30 |
|
31 |
|
32 |
|
90 |
|
91 |
|
92 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
93 |
/**
|
94 |
* Free functionality
|
95 |
*/
|
96 |
|
97 |
include_once( 'core/mime-types.php' );
|
98 |
include_once( 'core/taxonomies.php' );
|
99 |
+
include_once( 'core/compatibility.php' );
|
100 |
|
101 |
if ( wpuxss_eml_enhance_media_shortcodes() ) {
|
102 |
include_once( 'core/medialist.php' );
|
106 |
include_once( 'core/options-pages.php' );
|
107 |
}
|
108 |
|
109 |
+
|
110 |
+
|
111 |
+
/**
|
112 |
+
* Activation hook
|
113 |
+
*/
|
114 |
+
|
115 |
register_activation_hook( __FILE__, 'wpuxss_eml_on_activation' );
|
116 |
|
117 |
|
118 |
|
119 |
/**
|
120 |
+
* wpuxss_eml_on_plugins_loaded
|
121 |
*
|
122 |
+
* @since 2.6.1
|
123 |
+
* @created 20/05/18
|
124 |
*/
|
125 |
|
126 |
+
add_action( 'plugins_loaded', 'wpuxss_eml_on_plugins_loaded' );
|
127 |
|
128 |
+
if ( ! function_exists( 'wpuxss_eml_on_plugins_loaded' ) ) {
|
129 |
|
130 |
+
function wpuxss_eml_on_plugins_loaded() {
|
131 |
|
132 |
global $wpuxss_eml_dir,
|
133 |
+
$wpuxss_eml_path;
|
|
|
134 |
|
135 |
|
136 |
$wpuxss_eml_dir = plugin_dir_url( __FILE__ );
|
137 |
$wpuxss_eml_path = plugin_dir_path( __FILE__ );
|
138 |
|
139 |
|
140 |
+
// textdomain
|
141 |
+
load_plugin_textdomain( 'enhanced-media-library', false, dirname( plugin_basename( __FILE__ ) ) . '/languages' );
|
142 |
|
|
|
143 |
|
144 |
+
// on update
|
145 |
+
$eml_current_version = get_site_option( 'wpuxss_eml_version' );
|
146 |
|
147 |
+
if ( false === $eml_current_version ) {
|
148 |
+
$eml_current_version = get_option( 'wpuxss_eml_version' );
|
|
|
149 |
}
|
150 |
|
151 |
+
if ( EML_VERSION !== $eml_current_version ) {
|
152 |
+
|
153 |
+
wpuxss_eml_on_activation();
|
154 |
+
update_site_option( 'wpuxss_eml_version', EML_VERSION );
|
155 |
+
delete_site_transient( 'eml_transient' );
|
156 |
+
}
|
157 |
+
}
|
158 |
+
}
|
159 |
+
|
160 |
+
|
161 |
+
|
162 |
+
/**
|
163 |
+
* wpuxss_eml_on_init
|
164 |
+
*
|
165 |
+
* @since 1.0
|
166 |
+
* @created 03/08/13
|
167 |
+
*/
|
168 |
+
|
169 |
+
add_action( 'init', 'wpuxss_eml_on_init', 12 );
|
170 |
+
|
171 |
+
if ( ! function_exists( 'wpuxss_eml_on_init' ) ) {
|
172 |
|
173 |
+
function wpuxss_eml_on_init() {
|
174 |
+
|
175 |
+
// register taxonomies
|
176 |
$plugins = get_site_option( 'active_sitewide_plugins');
|
177 |
|
178 |
if ( is_multisite() && isset($plugins[wpuxss_get_eml_basename()]) ) {
|
179 |
|
180 |
+
foreach( get_sites( array( 'fields' => 'ids' ) ) as $site_id ) {
|
|
|
|
|
181 |
|
182 |
+
switch_to_blog( $site_id );
|
183 |
wpuxss_eml_register_taxonomies();
|
184 |
restore_current_blog();
|
185 |
}
|
337 |
|
338 |
function wpuxss_eml_admin_enqueue_scripts() {
|
339 |
|
340 |
+
global $wpuxss_eml_dir,
|
|
|
341 |
$current_screen;
|
342 |
|
343 |
|
351 |
'wpuxss-eml-admin-custom-style',
|
352 |
$wpuxss_eml_dir . 'css/eml-admin.css',
|
353 |
false,
|
354 |
+
EML_VERSION,
|
355 |
'all'
|
356 |
);
|
357 |
wp_style_add_data( 'wpuxss-eml-admin-custom-style', 'rtl', 'replace' );
|
358 |
|
359 |
+
// media styles
|
360 |
+
wp_enqueue_style(
|
361 |
+
'wpuxss-eml-admin-media-style',
|
362 |
+
$wpuxss_eml_dir . 'css/eml-admin-media.css',
|
363 |
+
false,
|
364 |
+
EML_VERSION,
|
365 |
+
'all'
|
366 |
+
);
|
367 |
+
wp_style_add_data( 'wpuxss-eml-admin-media-style', 'rtl', 'replace' );
|
368 |
+
|
369 |
+
|
370 |
wp_enqueue_style ( 'wp-jquery-ui-dialog' );
|
371 |
|
372 |
|
375 |
'wpuxss-eml-admin-script',
|
376 |
$wpuxss_eml_dir . 'js/eml-admin.js',
|
377 |
array( 'jquery', 'jquery-ui-dialog' ),
|
378 |
+
EML_VERSION,
|
379 |
true
|
380 |
);
|
381 |
|
387 |
'wpuxss-eml-media-list-script',
|
388 |
$wpuxss_eml_dir . 'js/eml-media-list.js',
|
389 |
array('jquery'),
|
390 |
+
EML_VERSION,
|
391 |
true
|
392 |
);
|
393 |
|
414 |
'wpuxss-eml-media-grid-script',
|
415 |
$wpuxss_eml_dir . 'js/eml-media-grid.js',
|
416 |
array( 'wpuxss-eml-media-models-script', 'wpuxss-eml-media-views-script' ),
|
417 |
+
EML_VERSION,
|
418 |
true
|
419 |
);
|
420 |
|
447 |
|
448 |
function wpuxss_eml_enqueue_media() {
|
449 |
|
450 |
+
global $wpuxss_eml_dir,
|
|
|
451 |
$wp_version,
|
452 |
$current_screen;
|
453 |
|
476 |
$terms_id_name_ready_for_script = wpuxss_eml_get_media_term_pairs( $terms, 'id=>name' );
|
477 |
|
478 |
|
|
|
479 |
$users_ready_for_script = array();
|
480 |
|
481 |
+
if ( current_user_can( 'manage_options' ) && in_array( 'authors', $wpuxss_eml_lib_options['filters_to_show'] ) ) {
|
482 |
+
|
483 |
+
foreach( get_users( array( 'who' => 'authors' ) ) as $user ) {
|
484 |
+
$users_ready_for_script[] = array(
|
485 |
+
'user_id' => $user->ID,
|
486 |
+
'user_name' => $user->data->display_name
|
487 |
+
);
|
488 |
+
}
|
489 |
}
|
490 |
|
491 |
|
537 |
'wpuxss-eml-media-models-script',
|
538 |
$wpuxss_eml_dir . 'js/eml-media-models.js',
|
539 |
array('media-models'),
|
540 |
+
EML_VERSION,
|
541 |
true
|
542 |
);
|
543 |
|
545 |
'wpuxss-eml-media-views-script',
|
546 |
$wpuxss_eml_dir . 'js/eml-media-views.js',
|
547 |
array('media-views'),
|
548 |
+
EML_VERSION,
|
549 |
true
|
550 |
);
|
551 |
|
555 |
// 'wpuxss-eml-tags-box-script',
|
556 |
// '/wp-admin/js/tags-box.js',
|
557 |
// array(),
|
558 |
+
// EML_VERSION,
|
559 |
// true
|
560 |
// );
|
561 |
|
608 |
'wpuxss-eml-enhanced-medialist-script',
|
609 |
$wpuxss_eml_dir . 'js/eml-enhanced-medialist.js',
|
610 |
array('media-views'),
|
611 |
+
EML_VERSION,
|
612 |
true
|
613 |
);
|
614 |
|
616 |
'wpuxss-eml-media-editor-script',
|
617 |
$wpuxss_eml_dir . 'js/eml-media-editor.js',
|
618 |
array('media-editor','media-views', 'wpuxss-eml-enhanced-medialist-script'),
|
619 |
+
EML_VERSION,
|
620 |
true
|
621 |
);
|
622 |
|
645 |
|
646 |
if ( ! function_exists( 'wpuxss_eml_on_activation' ) ) {
|
647 |
|
648 |
+
function wpuxss_eml_on_activation() {
|
649 |
|
650 |
+
$plugins = get_site_option( 'active_sitewide_plugins');
|
651 |
+
|
652 |
+
if ( is_multisite() && isset($plugins[wpuxss_get_eml_basename()]) ) {
|
653 |
|
654 |
+
foreach( get_sites( array( 'fields' => 'ids' ) ) as $site_id ) {
|
655 |
|
656 |
+
switch_to_blog( $site_id );
|
657 |
wpuxss_eml_set_options();
|
658 |
restore_current_blog();
|
659 |
}
|
662 |
wpuxss_eml_set_options();
|
663 |
}
|
664 |
|
665 |
+
if ( is_multisite() ) {
|
666 |
+
wpuxss_eml_set_network_options();
|
|
|
|
|
|
|
|
|
|
|
|
|
667 |
}
|
668 |
+
|
669 |
+
do_action( 'wpuxss_eml_on_activation' );
|
670 |
}
|
671 |
}
|
672 |
|
683 |
|
684 |
function wpuxss_eml_set_options() {
|
685 |
|
686 |
+
$wpuxss_eml_taxonomies = get_option( 'wpuxss_eml_taxonomies' );
|
687 |
+
$wpuxss_eml_lib_options = get_option( 'wpuxss_eml_lib_options', array() );
|
688 |
+
$wpuxss_eml_tax_options = get_option( 'wpuxss_eml_tax_options', array() );
|
689 |
+
|
690 |
+
|
691 |
+
// taxonomies
|
692 |
+
if ( false === $wpuxss_eml_taxonomies ) {
|
693 |
+
|
694 |
+
$wpuxss_eml_taxonomies = array(
|
695 |
+
|
696 |
+
'media_category' => array(
|
697 |
+
'assigned' => 1,
|
698 |
+
'eml_media' => 1,
|
699 |
+
'public' => 1,
|
700 |
+
|
701 |
+
'labels' => array(
|
702 |
+
'name' => __( 'Media Categories', 'enhanced-media-library' ),
|
703 |
+
'singular_name' => __( 'Media Category', 'enhanced-media-library' ),
|
704 |
+
'menu_name' => __( 'Media Categories', 'enhanced-media-library' ),
|
705 |
+
'all_items' => __( 'All Media Categories', 'enhanced-media-library' ),
|
706 |
+
'edit_item' => __( 'Edit Media Category', 'enhanced-media-library' ),
|
707 |
+
'view_item' => __( 'View Media Category', 'enhanced-media-library' ),
|
708 |
+
'update_item' => __( 'Update Media Category', 'enhanced-media-library' ),
|
709 |
+
'add_new_item' => __( 'Add New Media Category', 'enhanced-media-library' ),
|
710 |
+
'new_item_name' => __( 'New Media Category Name', 'enhanced-media-library' ),
|
711 |
+
'parent_item' => __( 'Parent Media Category', 'enhanced-media-library' ),
|
712 |
+
'parent_item_colon' => __( 'Parent Media Category:', 'enhanced-media-library' ),
|
713 |
+
'search_items' => __( 'Search Media Categories', 'enhanced-media-library' )
|
714 |
+
),
|
715 |
+
|
716 |
+
'hierarchical' => 1,
|
717 |
+
|
718 |
+
'show_admin_column' => 1,
|
719 |
+
'admin_filter' => 1, // list view filter
|
720 |
+
'media_uploader_filter' => 1, // grid view filter
|
721 |
+
'media_popup_taxonomy_edit' => 1,
|
722 |
+
|
723 |
+
'show_in_nav_menus' => 1,
|
724 |
+
'sort' => 0,
|
725 |
+
'show_in_rest' => 0,
|
726 |
+
'rewrite' => array(
|
727 |
+
'slug' => 'media_category',
|
728 |
+
'with_front' => 1
|
729 |
+
)
|
730 |
+
)
|
731 |
+
);
|
732 |
+
}
|
733 |
+
|
734 |
+
// false !== $wpuxss_eml_taxonomies
|
735 |
+
else {
|
736 |
|
737 |
+
// per-taxonomy settings
|
738 |
+
$media_taxonomy_args_defaults = array(
|
739 |
'assigned' => 1,
|
740 |
'eml_media' => 1,
|
741 |
+
'media_only' => 0,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
742 |
|
743 |
'hierarchical' => 1,
|
744 |
|
745 |
+
'show_admin_column' => 0,
|
746 |
+
'admin_filter' => 0,
|
747 |
+
'media_uploader_filter' => 0,
|
748 |
+
'media_popup_taxonomy_edit' => 0,
|
749 |
|
750 |
+
'show_in_nav_menus' => 0,
|
751 |
'sort' => 0,
|
752 |
'show_in_rest' => 0,
|
753 |
'rewrite' => array(
|
|
|
754 |
'with_front' => 1
|
755 |
)
|
756 |
);
|
757 |
|
758 |
+
$non_media_taxonomy_args_defaults = array(
|
759 |
+
'assigned' => 0,
|
760 |
+
'eml_media' => 0,
|
761 |
+
'media_only' => 0,
|
762 |
+
'admin_filter' => 0,
|
763 |
+
'media_uploader_filter' => 0,
|
764 |
+
'media_popup_taxonomy_edit' => 0,
|
765 |
+
'taxonomy_auto_assign' => 0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
766 |
);
|
767 |
|
|
|
|
|
|
|
|
|
768 |
|
769 |
+
foreach( $wpuxss_eml_taxonomies as $taxonomy => $params ) {
|
|
|
|
|
|
|
|
|
|
|
|
|
770 |
|
771 |
+
if ( ! isset( $params['eml_media'] ) ) {
|
772 |
+
$wpuxss_eml_taxonomies[$taxonomy]['eml_media'] = 0;
|
773 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
774 |
|
775 |
+
if ( (bool) $wpuxss_eml_taxonomies[$taxonomy]['eml_media'] ) {
|
776 |
|
777 |
+
$wpuxss_eml_taxonomies[$taxonomy] = array_intersect_key( $params, $media_taxonomy_args_defaults);
|
778 |
+
$wpuxss_eml_taxonomies[$taxonomy] = array_merge( $media_taxonomy_args_defaults, $params );
|
779 |
|
780 |
+
if ( ! isset( $params['rewrite']['slug'] ) || empty( $params['rewrite']['slug'] ) ) {
|
781 |
+
$wpuxss_eml_taxonomies[$taxonomy]['rewrite']['slug'] = $taxonomy;
|
782 |
+
}
|
783 |
}
|
|
|
784 |
|
785 |
+
if ( ! (bool) $wpuxss_eml_taxonomies[$taxonomy]['eml_media'] ) {
|
786 |
|
787 |
+
$wpuxss_eml_taxonomies[$taxonomy] = array_intersect_key( $params, $non_media_taxonomy_args_defaults);
|
788 |
+
$wpuxss_eml_taxonomies[$taxonomy] = array_merge( $non_media_taxonomy_args_defaults, $params );
|
789 |
+
}
|
790 |
}
|
791 |
}
|
792 |
|
793 |
+
update_option( 'wpuxss_eml_taxonomies', $wpuxss_eml_taxonomies );
|
794 |
+
|
795 |
|
796 |
+
// media library options
|
797 |
$eml_lib_options_defaults = array(
|
798 |
'enhance_media_shortcodes' => isset( $wpuxss_eml_tax_options['enhance_media_shortcodes'] ) ? (bool) $wpuxss_eml_tax_options['enhance_media_shortcodes'] : ( isset( $wpuxss_eml_tax_options['enhance_gallery_shortcode'] ) ? (bool) $wpuxss_eml_tax_options['enhance_gallery_shortcode'] : 0 ),
|
799 |
'media_orderby' => isset( $wpuxss_eml_tax_options['media_orderby'] ) ? sanitize_text_field( $wpuxss_eml_tax_options['media_orderby'] ) : 'date',
|
819 |
$wpuxss_eml_lib_options = array_intersect_key( $wpuxss_eml_lib_options, $eml_lib_options_defaults );
|
820 |
$wpuxss_eml_lib_options = array_merge( $eml_lib_options_defaults, $wpuxss_eml_lib_options );
|
821 |
|
822 |
+
update_option( 'wpuxss_eml_lib_options', $wpuxss_eml_lib_options );
|
823 |
+
|
824 |
|
825 |
+
// taxonomy options
|
826 |
$eml_tax_options_defaults = array(
|
827 |
'tax_archives' => 0, // since 2.6
|
828 |
'edit_all_as_hierarchical' => 0
|
831 |
$wpuxss_eml_tax_options = array_intersect_key( $wpuxss_eml_tax_options, $eml_tax_options_defaults );
|
832 |
$wpuxss_eml_tax_options = array_merge( $eml_tax_options_defaults, $wpuxss_eml_tax_options );
|
833 |
|
|
|
|
|
|
|
834 |
update_option( 'wpuxss_eml_tax_options', $wpuxss_eml_tax_options );
|
835 |
|
836 |
|
837 |
+
// MIME types
|
838 |
+
if ( false === get_option( 'wpuxss_eml_mimes' ) ) {
|
839 |
+
|
840 |
+
$allowed_mimes = get_allowed_mime_types();
|
841 |
+
$default_mimes = array();
|
842 |
|
843 |
+
foreach ( wp_get_mime_types() as $type => $mime ) {
|
844 |
|
845 |
+
$wpuxss_eml_mimes[$type] = $default_mimes[$type] = array(
|
846 |
+
'mime' => $mime,
|
847 |
+
'singular' => $mime,
|
848 |
+
'plural' => $mime,
|
849 |
+
'filter' => 0,
|
850 |
+
'upload' => isset($allowed_mimes[$type]) ? 1 : 0
|
851 |
+
);
|
852 |
+
}
|
853 |
|
854 |
+
$wpuxss_eml_mimes['pdf']['singular'] = 'PDF';
|
855 |
+
$wpuxss_eml_mimes['pdf']['plural'] = 'PDFs';
|
856 |
+
$wpuxss_eml_mimes['pdf']['filter'] = 1;
|
857 |
|
858 |
+
update_option( 'wpuxss_eml_mimes', $wpuxss_eml_mimes );
|
859 |
+
update_option( 'wpuxss_eml_mimes_backup', $default_mimes );
|
860 |
}
|
861 |
}
|
862 |
}
|
863 |
|
864 |
+
|
865 |
+
|
866 |
+
/**
|
867 |
+
* wpuxss_eml_set_network_options
|
868 |
+
*
|
869 |
+
* @since 2.6.3
|
870 |
+
* @created 21/05/18
|
871 |
+
*/
|
872 |
+
|
873 |
+
if ( ! function_exists( 'wpuxss_eml_set_network_options' ) ) {
|
874 |
+
|
875 |
+
function wpuxss_eml_set_network_options() {
|
876 |
+
|
877 |
+
$wpuxss_eml_network_options = get_site_option( 'wpuxss_eml_network_options', array() );
|
878 |
+
|
879 |
+
$wpuxss_eml_network_options_defaults = array(
|
880 |
+
'media_settings' => 1,
|
881 |
+
'utilities' => 1
|
882 |
+
);
|
883 |
+
|
884 |
+
$wpuxss_eml_network_options = array_intersect_key( $wpuxss_eml_network_options, $wpuxss_eml_network_options_defaults );
|
885 |
+
$wpuxss_eml_network_options = array_merge( $wpuxss_eml_network_options_defaults, $wpuxss_eml_network_options );
|
886 |
+
|
887 |
+
update_site_option( 'wpuxss_eml_network_options', $wpuxss_eml_network_options );
|
888 |
+
}
|
889 |
+
}
|
890 |
+
|
891 |
?>
|
languages/enhanced-media-library.pot
CHANGED
@@ -3,7 +3,7 @@ msgid ""
|
|
3 |
msgstr ""
|
4 |
"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
|
5 |
"Project-Id-Version: Enhanced Media Library\n"
|
6 |
-
"POT-Creation-Date: 2018-05-18
|
7 |
"PO-Revision-Date: 2016-04-14 21:02+0300\n"
|
8 |
"Last-Translator: wpUXsolutions <wpUXsolutions@gmail.com>\n"
|
9 |
"Language-Team: wpUXsolutions <wpUXsolutions@gmail.com>\n"
|
@@ -53,6 +53,7 @@ msgstr ""
|
|
53 |
|
54 |
#: core/options-pages.php:116 core/options-pages.php:407
|
55 |
#: core/options-pages.php:1649 core/options-pages.php:1880
|
|
|
56 |
msgid "Media Taxonomies"
|
57 |
msgstr ""
|
58 |
|
@@ -61,7 +62,6 @@ msgstr ""
|
|
61 |
msgid "MIME Types"
|
62 |
msgstr ""
|
63 |
|
64 |
-
#. Plugin Name of the plugin/theme
|
65 |
#: core/options-pages.php:169 core/options-pages.php:170
|
66 |
#: core/options-pages.php:197 core/options-pages.php:198
|
67 |
msgid "Enhanced Media Library"
|
@@ -170,7 +170,7 @@ msgstr ""
|
|
170 |
msgid "Edit"
|
171 |
msgstr ""
|
172 |
|
173 |
-
#: core/options-pages.php:606
|
174 |
msgid "Close"
|
175 |
msgstr ""
|
176 |
|
@@ -206,12 +206,12 @@ msgstr ""
|
|
206 |
#: core/options-pages.php:613 core/options-pages.php:892
|
207 |
#: core/options-pages.php:1046 core/options-pages.php:1918
|
208 |
#: core/options-pages.php:1981 core/taxonomies.php:379
|
209 |
-
#: enhanced-media-library.php:
|
210 |
msgid "All"
|
211 |
msgstr ""
|
212 |
|
213 |
#: core/options-pages.php:614 core/options-pages.php:1925
|
214 |
-
#: core/options-pages.php:1988
|
215 |
msgid "Search"
|
216 |
msgstr ""
|
217 |
|
@@ -302,10 +302,11 @@ msgstr ""
|
|
302 |
|
303 |
#: core/options-pages.php:641 core/options-pages.php:646
|
304 |
#: core/options-pages.php:691 core/options-pages.php:737
|
|
|
305 |
msgid "Cancel"
|
306 |
msgstr ""
|
307 |
|
308 |
-
#: core/options-pages.php:643
|
309 |
msgid "Synchronize Now"
|
310 |
msgstr ""
|
311 |
|
@@ -545,7 +546,9 @@ msgstr ""
|
|
545 |
#: core/options-pages.php:1731 core/options-pages.php:1768
|
546 |
#: core/options-pages.php:1812 core/options-pages.php:2020
|
547 |
#: core/options-pages.php:2084 core/options-pages.php:2122
|
548 |
-
#: core/options-pages.php:2293
|
|
|
|
|
549 |
msgid "Save Changes"
|
550 |
msgstr ""
|
551 |
|
@@ -615,7 +618,7 @@ msgstr ""
|
|
615 |
msgid "Dates"
|
616 |
msgstr ""
|
617 |
|
618 |
-
#: core/options-pages.php:1648
|
619 |
msgid "Authors"
|
620 |
msgstr ""
|
621 |
|
@@ -641,7 +644,8 @@ msgstr ""
|
|
641 |
msgid "Show media items of child media categories as a result of filtering"
|
642 |
msgstr ""
|
643 |
|
644 |
-
#: core/options-pages.php:1687
|
|
|
645 |
msgid "Order"
|
646 |
msgstr ""
|
647 |
|
@@ -649,15 +653,18 @@ msgstr ""
|
|
649 |
msgid "Order media items by"
|
650 |
msgstr ""
|
651 |
|
652 |
-
#: core/options-pages.php:1699
|
|
|
653 |
msgid "Date"
|
654 |
msgstr ""
|
655 |
|
656 |
#: core/options-pages.php:1700 core/options-pages.php:1760
|
|
|
657 |
msgid "Title"
|
658 |
msgstr ""
|
659 |
|
660 |
-
#: core/options-pages.php:1701
|
|
|
661 |
msgid "Custom Order"
|
662 |
msgstr ""
|
663 |
|
@@ -674,11 +681,13 @@ msgstr ""
|
|
674 |
msgid "Sort order"
|
675 |
msgstr ""
|
676 |
|
677 |
-
#: core/options-pages.php:1712
|
|
|
678 |
msgid "Ascending"
|
679 |
msgstr ""
|
680 |
|
681 |
-
#: core/options-pages.php:1713
|
|
|
682 |
msgid "Descending"
|
683 |
msgstr ""
|
684 |
|
@@ -746,7 +755,7 @@ msgstr ""
|
|
746 |
msgid "Video playlist example:"
|
747 |
msgstr ""
|
748 |
|
749 |
-
#: core/options-pages.php:1795
|
750 |
msgid "Warning"
|
751 |
msgstr ""
|
752 |
|
@@ -991,11 +1000,11 @@ msgid "All Authors"
|
|
991 |
msgstr ""
|
992 |
|
993 |
#: core/taxonomies.php:372 core/taxonomies.php:378
|
994 |
-
#: enhanced-media-library.php:
|
995 |
msgid "Filter by"
|
996 |
msgstr ""
|
997 |
|
998 |
-
#: core/taxonomies.php:380 enhanced-media-library.php:
|
999 |
msgid "Not in a"
|
1000 |
msgstr ""
|
1001 |
|
@@ -1023,74 +1032,364 @@ msgstr ""
|
|
1023 |
msgid "Describe this media file…"
|
1024 |
msgstr ""
|
1025 |
|
1026 |
-
#: enhanced-media-library.php:
|
1027 |
msgid "All Uncategorized"
|
1028 |
msgstr ""
|
1029 |
|
1030 |
-
#: enhanced-media-library.php:
|
1031 |
msgid "Reset All Filters"
|
1032 |
msgstr ""
|
1033 |
|
1034 |
-
#: enhanced-media-library.php:
|
1035 |
msgid "author"
|
1036 |
msgstr ""
|
1037 |
|
1038 |
-
#: enhanced-media-library.php:
|
1039 |
msgid "authors"
|
1040 |
msgstr ""
|
1041 |
|
1042 |
-
#: enhanced-media-library.php:
|
1043 |
msgid "Uploaded to post #"
|
1044 |
msgstr ""
|
1045 |
|
1046 |
-
#: enhanced-media-library.php:
|
1047 |
msgid "Based On"
|
1048 |
msgstr ""
|
1049 |
|
1050 |
-
#: enhanced-media-library.php:
|
1051 |
msgid "Media Categories"
|
1052 |
msgstr ""
|
1053 |
|
1054 |
-
#: enhanced-media-library.php:
|
1055 |
msgid "Media Category"
|
1056 |
msgstr ""
|
1057 |
|
1058 |
-
#: enhanced-media-library.php:
|
1059 |
msgid "All Media Categories"
|
1060 |
msgstr ""
|
1061 |
|
1062 |
-
#: enhanced-media-library.php:
|
1063 |
msgid "Edit Media Category"
|
1064 |
msgstr ""
|
1065 |
|
1066 |
-
#: enhanced-media-library.php:
|
1067 |
msgid "View Media Category"
|
1068 |
msgstr ""
|
1069 |
|
1070 |
-
#: enhanced-media-library.php:
|
1071 |
msgid "Update Media Category"
|
1072 |
msgstr ""
|
1073 |
|
1074 |
-
#: enhanced-media-library.php:
|
1075 |
msgid "Add New Media Category"
|
1076 |
msgstr ""
|
1077 |
|
1078 |
-
#: enhanced-media-library.php:
|
1079 |
msgid "New Media Category Name"
|
1080 |
msgstr ""
|
1081 |
|
1082 |
-
#: enhanced-media-library.php:
|
1083 |
msgid "Parent Media Category"
|
1084 |
msgstr ""
|
1085 |
|
1086 |
-
#: enhanced-media-library.php:
|
1087 |
msgid "Parent Media Category:"
|
1088 |
msgstr ""
|
1089 |
|
1090 |
-
#: enhanced-media-library.php:
|
1091 |
msgid "Search Media Categories"
|
1092 |
msgstr ""
|
1093 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1094 |
#. Plugin URI of the plugin/theme
|
1095 |
#. Author URI of the plugin/theme
|
1096 |
msgid "http://wpUXsolutions.com"
|
3 |
msgstr ""
|
4 |
"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
|
5 |
"Project-Id-Version: Enhanced Media Library\n"
|
6 |
+
"POT-Creation-Date: 2018-05-18 22:41+0300\n"
|
7 |
"PO-Revision-Date: 2016-04-14 21:02+0300\n"
|
8 |
"Last-Translator: wpUXsolutions <wpUXsolutions@gmail.com>\n"
|
9 |
"Language-Team: wpUXsolutions <wpUXsolutions@gmail.com>\n"
|
53 |
|
54 |
#: core/options-pages.php:116 core/options-pages.php:407
|
55 |
#: core/options-pages.php:1649 core/options-pages.php:1880
|
56 |
+
#: pro/core/options-pages.php:300
|
57 |
msgid "Media Taxonomies"
|
58 |
msgstr ""
|
59 |
|
62 |
msgid "MIME Types"
|
63 |
msgstr ""
|
64 |
|
|
|
65 |
#: core/options-pages.php:169 core/options-pages.php:170
|
66 |
#: core/options-pages.php:197 core/options-pages.php:198
|
67 |
msgid "Enhanced Media Library"
|
170 |
msgid "Edit"
|
171 |
msgstr ""
|
172 |
|
173 |
+
#: core/options-pages.php:606 pro/enhanced-media-library-pro.php:125
|
174 |
msgid "Close"
|
175 |
msgstr ""
|
176 |
|
206 |
#: core/options-pages.php:613 core/options-pages.php:892
|
207 |
#: core/options-pages.php:1046 core/options-pages.php:1918
|
208 |
#: core/options-pages.php:1981 core/taxonomies.php:379
|
209 |
+
#: enhanced-media-library.php:580
|
210 |
msgid "All"
|
211 |
msgstr ""
|
212 |
|
213 |
#: core/options-pages.php:614 core/options-pages.php:1925
|
214 |
+
#: core/options-pages.php:1988 pro/core/options-pages.php:281
|
215 |
msgid "Search"
|
216 |
msgstr ""
|
217 |
|
302 |
|
303 |
#: core/options-pages.php:641 core/options-pages.php:646
|
304 |
#: core/options-pages.php:691 core/options-pages.php:737
|
305 |
+
#: pro/enhanced-media-library-pro.php:133
|
306 |
msgid "Cancel"
|
307 |
msgstr ""
|
308 |
|
309 |
+
#: core/options-pages.php:643 pro/core/options-pages.php:243
|
310 |
msgid "Synchronize Now"
|
311 |
msgstr ""
|
312 |
|
546 |
#: core/options-pages.php:1731 core/options-pages.php:1768
|
547 |
#: core/options-pages.php:1812 core/options-pages.php:2020
|
548 |
#: core/options-pages.php:2084 core/options-pages.php:2122
|
549 |
+
#: core/options-pages.php:2293 pro/core/options-pages.php:307
|
550 |
+
#: pro/core/options-pages.php:353 pro/core/options-pages.php:477
|
551 |
+
#: pro/enhanced-media-library-pro.php:124
|
552 |
msgid "Save Changes"
|
553 |
msgstr ""
|
554 |
|
618 |
msgid "Dates"
|
619 |
msgstr ""
|
620 |
|
621 |
+
#: core/options-pages.php:1648 pro/core/options-pages.php:299
|
622 |
msgid "Authors"
|
623 |
msgstr ""
|
624 |
|
644 |
msgid "Show media items of child media categories as a result of filtering"
|
645 |
msgstr ""
|
646 |
|
647 |
+
#: core/options-pages.php:1687 pro/core/medialist.php:43
|
648 |
+
#: pro/core/medialist.php:88
|
649 |
msgid "Order"
|
650 |
msgstr ""
|
651 |
|
653 |
msgid "Order media items by"
|
654 |
msgstr ""
|
655 |
|
656 |
+
#: core/options-pages.php:1699 pro/core/medialist.php:28
|
657 |
+
#: pro/core/medialist.php:73
|
658 |
msgid "Date"
|
659 |
msgstr ""
|
660 |
|
661 |
#: core/options-pages.php:1700 core/options-pages.php:1760
|
662 |
+
#: pro/core/medialist.php:31 pro/core/medialist.php:76
|
663 |
msgid "Title"
|
664 |
msgstr ""
|
665 |
|
666 |
+
#: core/options-pages.php:1701 pro/core/medialist.php:34
|
667 |
+
#: pro/core/medialist.php:79
|
668 |
msgid "Custom Order"
|
669 |
msgstr ""
|
670 |
|
681 |
msgid "Sort order"
|
682 |
msgstr ""
|
683 |
|
684 |
+
#: core/options-pages.php:1712 pro/core/medialist.php:47
|
685 |
+
#: pro/core/medialist.php:92
|
686 |
msgid "Ascending"
|
687 |
msgstr ""
|
688 |
|
689 |
+
#: core/options-pages.php:1713 pro/core/medialist.php:50
|
690 |
+
#: pro/core/medialist.php:95
|
691 |
msgid "Descending"
|
692 |
msgstr ""
|
693 |
|
755 |
msgid "Video playlist example:"
|
756 |
msgstr ""
|
757 |
|
758 |
+
#: core/options-pages.php:1795 pro/core/options-pages.php:246
|
759 |
msgid "Warning"
|
760 |
msgstr ""
|
761 |
|
1000 |
msgstr ""
|
1001 |
|
1002 |
#: core/taxonomies.php:372 core/taxonomies.php:378
|
1003 |
+
#: enhanced-media-library.php:579
|
1004 |
msgid "Filter by"
|
1005 |
msgstr ""
|
1006 |
|
1007 |
+
#: core/taxonomies.php:380 enhanced-media-library.php:581
|
1008 |
msgid "Not in a"
|
1009 |
msgstr ""
|
1010 |
|
1032 |
msgid "Describe this media file…"
|
1033 |
msgstr ""
|
1034 |
|
1035 |
+
#: enhanced-media-library.php:387 enhanced-media-library.php:578
|
1036 |
msgid "All Uncategorized"
|
1037 |
msgstr ""
|
1038 |
|
1039 |
+
#: enhanced-media-library.php:388 enhanced-media-library.php:582
|
1040 |
msgid "Reset All Filters"
|
1041 |
msgstr ""
|
1042 |
|
1043 |
+
#: enhanced-media-library.php:583
|
1044 |
msgid "author"
|
1045 |
msgstr ""
|
1046 |
|
1047 |
+
#: enhanced-media-library.php:584
|
1048 |
msgid "authors"
|
1049 |
msgstr ""
|
1050 |
|
1051 |
+
#: enhanced-media-library.php:614
|
1052 |
msgid "Uploaded to post #"
|
1053 |
msgstr ""
|
1054 |
|
1055 |
+
#: enhanced-media-library.php:615
|
1056 |
msgid "Based On"
|
1057 |
msgstr ""
|
1058 |
|
1059 |
+
#: enhanced-media-library.php:686 enhanced-media-library.php:688
|
1060 |
msgid "Media Categories"
|
1061 |
msgstr ""
|
1062 |
|
1063 |
+
#: enhanced-media-library.php:687
|
1064 |
msgid "Media Category"
|
1065 |
msgstr ""
|
1066 |
|
1067 |
+
#: enhanced-media-library.php:689
|
1068 |
msgid "All Media Categories"
|
1069 |
msgstr ""
|
1070 |
|
1071 |
+
#: enhanced-media-library.php:690
|
1072 |
msgid "Edit Media Category"
|
1073 |
msgstr ""
|
1074 |
|
1075 |
+
#: enhanced-media-library.php:691
|
1076 |
msgid "View Media Category"
|
1077 |
msgstr ""
|
1078 |
|
1079 |
+
#: enhanced-media-library.php:692
|
1080 |
msgid "Update Media Category"
|
1081 |
msgstr ""
|
1082 |
|
1083 |
+
#: enhanced-media-library.php:693
|
1084 |
msgid "Add New Media Category"
|
1085 |
msgstr ""
|
1086 |
|
1087 |
+
#: enhanced-media-library.php:694
|
1088 |
msgid "New Media Category Name"
|
1089 |
msgstr ""
|
1090 |
|
1091 |
+
#: enhanced-media-library.php:695
|
1092 |
msgid "Parent Media Category"
|
1093 |
msgstr ""
|
1094 |
|
1095 |
+
#: enhanced-media-library.php:696
|
1096 |
msgid "Parent Media Category:"
|
1097 |
msgstr ""
|
1098 |
|
1099 |
+
#: enhanced-media-library.php:697
|
1100 |
msgid "Search Media Categories"
|
1101 |
msgstr ""
|
1102 |
|
1103 |
+
#: pro/core/bulk-edit.php:51
|
1104 |
+
msgid "Attachments Details"
|
1105 |
+
msgstr ""
|
1106 |
+
|
1107 |
+
#: pro/core/bulk-edit.php:104
|
1108 |
+
msgid "Select All"
|
1109 |
+
msgstr ""
|
1110 |
+
|
1111 |
+
#: pro/core/bulk-edit.php:105
|
1112 |
+
msgid "Deselect All"
|
1113 |
+
msgstr ""
|
1114 |
+
|
1115 |
+
#: pro/core/bulk-edit.php:106 pro/core/bulk-edit.php:109
|
1116 |
+
msgid "Delete Selected"
|
1117 |
+
msgstr ""
|
1118 |
+
|
1119 |
+
#: pro/core/bulk-edit.php:107
|
1120 |
+
msgid "Trash Selected"
|
1121 |
+
msgstr ""
|
1122 |
+
|
1123 |
+
#: pro/core/bulk-edit.php:108
|
1124 |
+
msgid "Untrash Selected"
|
1125 |
+
msgstr ""
|
1126 |
+
|
1127 |
+
#: pro/core/bulk-edit.php:529 pro/core/options-pages.php:333
|
1128 |
+
#: pro/enhanced-media-library-pro.php:127
|
1129 |
+
msgid "Bulk Edit"
|
1130 |
+
msgstr ""
|
1131 |
+
|
1132 |
+
#: pro/core/medialist.php:24 pro/core/medialist.php:69
|
1133 |
+
msgid "Order By"
|
1134 |
+
msgstr ""
|
1135 |
+
|
1136 |
+
#: pro/core/medialist.php:37 pro/core/medialist.php:82
|
1137 |
+
msgid "Random"
|
1138 |
+
msgstr ""
|
1139 |
+
|
1140 |
+
#: pro/core/medialist.php:60 pro/core/medialist.php:101
|
1141 |
+
msgid "Limit"
|
1142 |
+
msgstr ""
|
1143 |
+
|
1144 |
+
#: pro/core/options-pages.php:107
|
1145 |
+
msgid "Your license has been network deactivated."
|
1146 |
+
msgstr ""
|
1147 |
+
|
1148 |
+
#: pro/core/options-pages.php:107
|
1149 |
+
msgid "Your license has been deactivated."
|
1150 |
+
msgstr ""
|
1151 |
+
|
1152 |
+
#: pro/core/options-pages.php:130
|
1153 |
+
msgid "Please check if your license key is correct and try again."
|
1154 |
+
msgstr ""
|
1155 |
+
|
1156 |
+
#: pro/core/options-pages.php:151
|
1157 |
+
#, php-format
|
1158 |
+
msgid ""
|
1159 |
+
"Activation failed with the error: %s. Please <a href=\"%s\">contact plugin "
|
1160 |
+
"authors</a>."
|
1161 |
+
msgstr ""
|
1162 |
+
|
1163 |
+
#: pro/core/options-pages.php:169
|
1164 |
+
#, php-format
|
1165 |
+
msgid ""
|
1166 |
+
"Your license key is incorrect or canceled. Please <a href=\"%s\">contact "
|
1167 |
+
"plugin authors</a>."
|
1168 |
+
msgstr ""
|
1169 |
+
|
1170 |
+
#: pro/core/options-pages.php:178
|
1171 |
+
msgid "Your license has been network activated."
|
1172 |
+
msgstr ""
|
1173 |
+
|
1174 |
+
#: pro/core/options-pages.php:178
|
1175 |
+
msgid "Your license has been activated."
|
1176 |
+
msgstr ""
|
1177 |
+
|
1178 |
+
#: pro/core/options-pages.php:239
|
1179 |
+
#, php-format
|
1180 |
+
msgid "Auto-assign media items to parent %s %s on upload"
|
1181 |
+
msgstr ""
|
1182 |
+
|
1183 |
+
#: pro/core/options-pages.php:249
|
1184 |
+
#, php-format
|
1185 |
+
msgid ""
|
1186 |
+
"As a result of clicking \"Synchronize Now\" all media items attached to a %s "
|
1187 |
+
"will be assigned to %s of their parent %s. Currently assigned %s will not be "
|
1188 |
+
"saved. Media items that are not attached to any %s will not be affected."
|
1189 |
+
msgstr ""
|
1190 |
+
|
1191 |
+
#: pro/core/options-pages.php:290 pro/core/options-pages.php:293
|
1192 |
+
msgid "Enable search in"
|
1193 |
+
msgstr ""
|
1194 |
+
|
1195 |
+
#: pro/core/options-pages.php:295
|
1196 |
+
msgid "Titles"
|
1197 |
+
msgstr ""
|
1198 |
+
|
1199 |
+
#: pro/core/options-pages.php:296
|
1200 |
+
msgid "Captions"
|
1201 |
+
msgstr ""
|
1202 |
+
|
1203 |
+
#: pro/core/options-pages.php:297
|
1204 |
+
msgid "Descriptions"
|
1205 |
+
msgstr ""
|
1206 |
+
|
1207 |
+
#: pro/core/options-pages.php:301
|
1208 |
+
msgid ""
|
1209 |
+
"Enhance default search in Media Library and Media Popups. By default, "
|
1210 |
+
"WordPress looks into filenames, titles, captions, and descriptions."
|
1211 |
+
msgstr ""
|
1212 |
+
|
1213 |
+
#: pro/core/options-pages.php:341 pro/core/options-pages.php:344
|
1214 |
+
msgid "Turn off 'Save Changes' button"
|
1215 |
+
msgstr ""
|
1216 |
+
|
1217 |
+
#: pro/core/options-pages.php:345
|
1218 |
+
msgid "Save changes on the fly"
|
1219 |
+
msgstr ""
|
1220 |
+
|
1221 |
+
#: pro/core/options-pages.php:346
|
1222 |
+
msgid ""
|
1223 |
+
"Any click on a taxonomy checkbox during media files bulk editing will lead "
|
1224 |
+
"to an <strong style=\"color:red\">immediate saving</strong> of the data. "
|
1225 |
+
"Please, be careful! You have much greater chance to <strong style=\"color:red"
|
1226 |
+
"\">accidentally perform wrong re-assigning</strong> of a lot of your media "
|
1227 |
+
"files / taxonomies with this option turned on."
|
1228 |
+
msgstr ""
|
1229 |
+
|
1230 |
+
#: pro/core/options-pages.php:347
|
1231 |
+
msgid "NOT recommended if you work with more than hundred files at a time."
|
1232 |
+
msgstr ""
|
1233 |
+
|
1234 |
+
#. Plugin Name of the plugin/theme
|
1235 |
+
#: pro/core/options-pages.php:384
|
1236 |
+
msgid "Enhanced Media Library PRO"
|
1237 |
+
msgstr ""
|
1238 |
+
|
1239 |
+
#: pro/core/options-pages.php:389
|
1240 |
+
msgid "Updates"
|
1241 |
+
msgstr ""
|
1242 |
+
|
1243 |
+
#: pro/core/options-pages.php:396
|
1244 |
+
msgid "to check if your license key is correct"
|
1245 |
+
msgstr ""
|
1246 |
+
|
1247 |
+
#: pro/core/options-pages.php:396 pro/core/update.php:226
|
1248 |
+
msgid "to check if an update is available"
|
1249 |
+
msgstr ""
|
1250 |
+
|
1251 |
+
#: pro/core/options-pages.php:400 pro/core/update.php:224
|
1252 |
+
#, php-format
|
1253 |
+
msgid ""
|
1254 |
+
"%s could not establish a secure connection %s. An error occurred: %s. Please "
|
1255 |
+
"<a href=\"%s\">contact plugin authors</a>."
|
1256 |
+
msgstr ""
|
1257 |
+
|
1258 |
+
#: pro/core/options-pages.php:423
|
1259 |
+
msgid "Your license is active!"
|
1260 |
+
msgstr ""
|
1261 |
+
|
1262 |
+
#: pro/core/options-pages.php:427
|
1263 |
+
msgid "Deactivate License"
|
1264 |
+
msgstr ""
|
1265 |
+
|
1266 |
+
#: pro/core/options-pages.php:432
|
1267 |
+
#, php-format
|
1268 |
+
msgid ""
|
1269 |
+
"To unlock updates please enter your license key below. You can get your "
|
1270 |
+
"license key in <a href=\"%s\">Your Account</a>. If you do not have a "
|
1271 |
+
"license, you are welcome to <a href=\"%s\">purchase it</a>."
|
1272 |
+
msgstr ""
|
1273 |
+
|
1274 |
+
#: pro/core/options-pages.php:439
|
1275 |
+
msgid "License Key"
|
1276 |
+
msgstr ""
|
1277 |
+
|
1278 |
+
#: pro/core/options-pages.php:442
|
1279 |
+
msgid "Activate License"
|
1280 |
+
msgstr ""
|
1281 |
+
|
1282 |
+
#: pro/core/options-pages.php:465 pro/core/options-pages.php:468
|
1283 |
+
msgid "Turn off SSL verification"
|
1284 |
+
msgstr ""
|
1285 |
+
|
1286 |
+
#: pro/core/options-pages.php:469
|
1287 |
+
msgid "Try this if you see the error message above."
|
1288 |
+
msgstr ""
|
1289 |
+
|
1290 |
+
#: pro/core/options-pages.php:471
|
1291 |
+
#, php-format
|
1292 |
+
msgid ""
|
1293 |
+
"This will turn off SSL verification for the update requests that %s sends to "
|
1294 |
+
"its server %s only."
|
1295 |
+
msgstr ""
|
1296 |
+
|
1297 |
+
#: pro/core/update.php:195
|
1298 |
+
#, php-format
|
1299 |
+
msgid "Auto-updates disabled for %s."
|
1300 |
+
msgstr ""
|
1301 |
+
|
1302 |
+
#: pro/core/update.php:203 pro/core/update.php:349
|
1303 |
+
#, php-format
|
1304 |
+
msgid ""
|
1305 |
+
"To unlock updates, please <a href=\"%s\">activate your license</a>. You can "
|
1306 |
+
"get your license key in <a href=\"%s\">Your Account</a>. If you do not have "
|
1307 |
+
"a license, you are welcome to <a href=\"%s\">purchase it</a>."
|
1308 |
+
msgstr ""
|
1309 |
+
|
1310 |
+
#: pro/core/update.php:280 pro/core/update.php:286 pro/core/update.php:292
|
1311 |
+
msgid ""
|
1312 |
+
"An unexpected error occurred. Something may be wrong with WordPress.org or "
|
1313 |
+
"this server’s configuration. If you continue to have problems, please "
|
1314 |
+
"try the <a href=\"https://wordpress.org/support/\">support forums</a>."
|
1315 |
+
msgstr ""
|
1316 |
+
|
1317 |
+
#: pro/core/update.php:280
|
1318 |
+
msgid ""
|
1319 |
+
"(WordPress could not establish a secure connection to WordPress.org. Please "
|
1320 |
+
"contact your server administrator.)"
|
1321 |
+
msgstr ""
|
1322 |
+
|
1323 |
+
#: pro/enhanced-media-library-pro.php:119
|
1324 |
+
msgid "ALL files belong to this item"
|
1325 |
+
msgstr ""
|
1326 |
+
|
1327 |
+
#: pro/enhanced-media-library-pro.php:120
|
1328 |
+
msgid "SOME files belong to this item"
|
1329 |
+
msgstr ""
|
1330 |
+
|
1331 |
+
#: pro/enhanced-media-library-pro.php:121
|
1332 |
+
msgid "NO files belong to this item"
|
1333 |
+
msgstr ""
|
1334 |
+
|
1335 |
+
#: pro/enhanced-media-library-pro.php:122
|
1336 |
+
msgid "Changes saved."
|
1337 |
+
msgstr ""
|
1338 |
+
|
1339 |
+
#: pro/enhanced-media-library-pro.php:123
|
1340 |
+
msgid "Something went wrong."
|
1341 |
+
msgstr ""
|
1342 |
+
|
1343 |
+
#: pro/enhanced-media-library-pro.php:126
|
1344 |
+
msgid "Edit Media Files"
|
1345 |
+
msgstr ""
|
1346 |
+
|
1347 |
+
#: pro/enhanced-media-library-pro.php:129
|
1348 |
+
msgid "Selecting"
|
1349 |
+
msgstr ""
|
1350 |
+
|
1351 |
+
#: pro/enhanced-media-library-pro.php:130
|
1352 |
+
msgid "Delete Selected Permanently"
|
1353 |
+
msgstr ""
|
1354 |
+
|
1355 |
+
#: pro/enhanced-media-library-pro.php:131
|
1356 |
+
msgid "You are about to permanently delete all selected items."
|
1357 |
+
msgstr ""
|
1358 |
+
|
1359 |
+
#: pro/enhanced-media-library-pro.php:132
|
1360 |
+
msgid "Delete"
|
1361 |
+
msgstr ""
|
1362 |
+
|
1363 |
+
#: pro/enhanced-media-library-pro.php:134
|
1364 |
+
msgid "Moving to Trash"
|
1365 |
+
msgstr ""
|
1366 |
+
|
1367 |
+
#: pro/enhanced-media-library-pro.php:135
|
1368 |
+
msgid "Restoring"
|
1369 |
+
msgstr ""
|
1370 |
+
|
1371 |
+
#: pro/enhanced-media-library-pro.php:136
|
1372 |
+
msgid "Deleting"
|
1373 |
+
msgstr ""
|
1374 |
+
|
1375 |
+
#: pro/enhanced-media-library-pro.php:160
|
1376 |
+
msgid "Create a filter-based gallery"
|
1377 |
+
msgstr ""
|
1378 |
+
|
1379 |
+
#: pro/enhanced-media-library-pro.php:161
|
1380 |
+
msgid "Create a filter-based playlist"
|
1381 |
+
msgstr ""
|
1382 |
+
|
1383 |
+
#: pro/enhanced-media-library-pro.php:162
|
1384 |
+
msgid "Create a filter-based video playlist"
|
1385 |
+
msgstr ""
|
1386 |
+
|
1387 |
+
#: pro/enhanced-media-library-pro.php:328
|
1388 |
+
msgid ""
|
1389 |
+
"Only one version of <strong>Enhanced Media Library</strong> should be active "
|
1390 |
+
"at a time."
|
1391 |
+
msgstr ""
|
1392 |
+
|
1393 |
#. Plugin URI of the plugin/theme
|
1394 |
#. Author URI of the plugin/theme
|
1395 |
msgid "http://wpUXsolutions.com"
|
readme.txt
CHANGED
@@ -3,24 +3,20 @@ Contributors: webbistro
|
|
3 |
Tags: media library, media category, media categories, 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.5
|
5 |
Tested up to: 4.9.6
|
6 |
-
Stable tag: 2.6
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
10 |
|
11 |
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
== Description ==
|
17 |
|
18 |
The plugin will be handy for those who need to manage a lot of media files.
|
19 |
|
20 |
|
21 |
-
|
22 |
|
23 |
-
|
24 |
|
25 |
**Various media categories.** With the plugin installed you immediately obtain Media Categories for categorizing and filtering media items in WordPress admin. This feature alone will save you hours of searching through a media library with even as few as 100 images.
|
26 |
|
@@ -35,50 +31,50 @@ You can also assign to the media library built-in WordPress taxonomies – Categ
|
|
35 |
**Order options.** With two options "Order media items by" (Date, Title, and Custom Order) and "Sort order" (Ascending and Descending) you can control media items order for all screens of the media library in WP admin. "Custom Order" allows to re-order media items within a category with drag and drop. This order will be used, in particular, for the gallery based on this category. "Natural sort order" option available for "Title" sort order will apply the human-friendly sort order to Media Library and Galleries. See `Settings > Media > Media Library`.
|
36 |
|
37 |
|
38 |
-
|
39 |
|
40 |
-
|
41 |
|
42 |
**Fully compatible with WordPress native shortcodes.** Media items categorizing can be useful for the front-end as well. To insert media galleries or audio / video playlists based on media categories you have to use the familiar format like `[gallery media_category="5" category="2" limit="10" monthnum="12" year="2015" orderby="title" order="DESC"]` or `[playlist media_category="5" category="2" limit="10" monthnum="12" year="2015" orderby="title" order="DESC"]`. The PRO version of the plugin allows to manage gallery or playlist shortcode without "coding" at all. Just choose the settings with the plugin's UI in the familiar edit popup and see your gallery / playlis live immediately in the post/page editor.
|
43 |
|
44 |
To turn on the feature set "Enhanced media shortcodes" option on `Settings > Media > Media Library > Media Shortcodes`. Please be advised that conflicts with other gallery plugins or themes are possible. Check your front-end and back-end gallery / playlist functionality after activating the feature.
|
45 |
|
46 |
|
47 |
-
|
48 |
|
49 |
-
|
50 |
|
51 |
Another feature of the plugin is the MIME Types control. You can add new MIME types, delete existing ones, and point what file types are allowed for uploading. Initially, the plugin shows up the WordPress default MIME Type settings and creates the backup of them. The column "Add Filter" allows to add a MIME Type to plugin's filters so that you will be able to filter your media items not only by categories but also by the file type. You can set any label you wish to see in a filter with columns "Singular Label" and "Plural Label".
|
52 |
|
53 |
|
54 |
-
|
55 |
|
56 |
If you need to move your media library to another website you should export and import WordPress content with WordPress built-in export/import. But to make the Enhanced Media Library work on the new site with the same settings you are provided with the export/import feature.
|
57 |
|
58 |
|
59 |
-
|
60 |
|
61 |
Network activate the plugin and choose which options will be available to your admins. In the PRO version, the license key should be activated once for the whole network.
|
62 |
|
63 |
|
64 |
-
|
65 |
|
66 |
We spend hours to make plugins features work as though they were native WordPress functionality. If you are a developer and looking for a solution totally compatible with WordPress core and, at the same point, really easy to deal with for your non-geeky customers, give it a try, you won't be disappointed.
|
67 |
|
68 |
|
69 |
-
|
70 |
|
71 |
Support is free for both versions of the plugin. "PRO"-users do not have priority. We do out best to respond in 24 hours if not sooner.
|
72 |
|
73 |
|
74 |
-
|
75 |
|
76 |
You can see the list of available translations and their progress on [wpUXsolutions.com](https://www.wpuxsolutions.com/l10n/projects/enhanced-media-library). Many thanks to all involved!
|
77 |
|
78 |
Assistance with translating is highly appreciated! If you'd like to be a translation editor or to suggest translations for your language please feel free to contribute to translation. All changes made are included to every new release of the plugin.
|
79 |
|
80 |
|
81 |
-
|
82 |
|
83 |
* Advanced Custom Fields
|
84 |
* WooCommerce
|
@@ -99,25 +95,25 @@ Assistance with translating is highly appreciated! If you'd like to be a transla
|
|
99 |
Please let us know if you find any issue with the plugins from the list above or others.
|
100 |
|
101 |
|
102 |
-
|
103 |
|
104 |
Please notice that you use Enhanced Media Library with other plugins which add media categories, media folders, or manage MIME Types at your own risk. We cannot guarantee their compatibility because of the different approach to the same functionality. We do not recommend using them at the same time with Enhanced Media Library. Please choose the one you prefer.
|
105 |
|
106 |
|
107 |
-
|
108 |
|
109 |
-
|
110 |
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
|
117 |
-
|
118 |
|
119 |
|
120 |
-
|
121 |
|
122 |
* [Where to Start?](https://wpuxsolutions.com/documents/enhanced-media-library/where-to-start)
|
123 |
* [Documentation](https://www.wpuxsolutions.com/documents/enhanced-media-library)
|
@@ -128,7 +124,7 @@ Please notice that you use Enhanced Media Library with other plugins which add m
|
|
128 |
|
129 |
|
130 |
|
131 |
-
|
132 |
|
133 |
1. Upload plugin folder to '/wp-content/plugins/' directory
|
134 |
|
@@ -140,13 +136,13 @@ Please notice that you use Enhanced Media Library with other plugins which add m
|
|
140 |
|
141 |
|
142 |
|
143 |
-
|
144 |
|
145 |
> [FAQs](https://www.wpuxsolutions.com/documents/enhanced-media-library/faqs/) | [Documentation](https://www.wpuxsolutions.com/documents/enhanced-media-library/)
|
146 |
|
147 |
|
148 |
|
149 |
-
|
150 |
|
151 |
1. Plugin Settings: WordPress General Media Settings
|
152 |
|
@@ -172,9 +168,23 @@ Please notice that you use Enhanced Media Library with other plugins which add m
|
|
172 |
|
173 |
|
174 |
|
175 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
176 |
|
177 |
-
|
178 |
*Release Date - May 18, 2018*
|
179 |
|
180 |
= New =
|
@@ -200,13 +210,11 @@ Please notice that you use Enhanced Media Library with other plugins which add m
|
|
200 |
* A lot of small bug fixed
|
201 |
|
202 |
|
203 |
-
|
204 |
-
= 2.5.1 (PRO only) =
|
205 |
* A bug causing "Test Error" on searching for update fixed
|
206 |
|
207 |
|
208 |
-
|
209 |
-
= 2.5 =
|
210 |
*Release Date - February 5, 2018*
|
211 |
|
212 |
= Improvements =
|
@@ -221,8 +229,7 @@ Please notice that you use Enhanced Media Library with other plugins which add m
|
|
221 |
* WordPress 4.9 compatibility ensured
|
222 |
|
223 |
|
224 |
-
|
225 |
-
= 2.4.5 =
|
226 |
*Release Date - June 8, 2017*
|
227 |
|
228 |
= Compatibility =
|
@@ -232,8 +239,7 @@ Please notice that you use Enhanced Media Library with other plugins which add m
|
|
232 |
* Media library grid view layout fixed (a bug since WP 4.7.4)
|
233 |
|
234 |
|
235 |
-
|
236 |
-
= 2.4.4 =
|
237 |
*Release Date - February 16, 2017*
|
238 |
|
239 |
= Bugfixes =
|
@@ -242,8 +248,7 @@ Please notice that you use Enhanced Media Library with other plugins which add m
|
|
242 |
* Minor bugs fixed
|
243 |
|
244 |
|
245 |
-
|
246 |
-
= 2.4.3 =
|
247 |
*Release Date - January 28, 2017*
|
248 |
|
249 |
= Improvements =
|
@@ -251,8 +256,7 @@ Please notice that you use Enhanced Media Library with other plugins which add m
|
|
251 |
* Minor bugs fixed
|
252 |
|
253 |
|
254 |
-
|
255 |
-
= 2.4.2 =
|
256 |
*Release Date - January 19, 2017*
|
257 |
|
258 |
= Bugfixes =
|
@@ -265,16 +269,14 @@ Please notice that you use Enhanced Media Library with other plugins which add m
|
|
265 |
* Notification added when the plugin cannot receive update information from our server (PRO only)
|
266 |
|
267 |
|
268 |
-
|
269 |
-
= 2.4.1 =
|
270 |
*Release Date - January 16, 2017*
|
271 |
|
272 |
= Bugfixes =
|
273 |
* A bug with saving taxonomy terms from post editor media popup fixed - [Support Ticket](https://wordpress.org/support/topic/category-filter-not-media-category-filter-stopped-working-again/)
|
274 |
|
275 |
|
276 |
-
|
277 |
-
= 2.4 =
|
278 |
*Release Date - January 13, 2017*
|
279 |
|
280 |
= Improvements =
|
@@ -282,8 +284,7 @@ Please notice that you use Enhanced Media Library with other plugins which add m
|
|
282 |
* RTL stylesheets added
|
283 |
|
284 |
|
285 |
-
|
286 |
-
= 2.3.6 =
|
287 |
*Release Date - December 16, 2016*
|
288 |
|
289 |
= Improvements =
|
@@ -293,8 +294,7 @@ Please notice that you use Enhanced Media Library with other plugins which add m
|
|
293 |
* Media Settings admin page improved to be more compatible with third-party plugins extending it as well
|
294 |
|
295 |
|
296 |
-
|
297 |
-
= 2.3.5 =
|
298 |
*Release Date - November 29, 2016*
|
299 |
|
300 |
= Improvements =
|
@@ -308,24 +308,21 @@ Please notice that you use Enhanced Media Library with other plugins which add m
|
|
308 |
* Few minor bugs fixed
|
309 |
|
310 |
|
311 |
-
|
312 |
-
= 2.3.4 =
|
313 |
*Release Date - November 19, 2016*
|
314 |
|
315 |
= Bugfixes =
|
316 |
* A bug of v2.3.2 and v2.3.3 with incorrect media filtering fixed
|
317 |
|
318 |
|
319 |
-
|
320 |
-
= 2.3.3 =
|
321 |
*Release Date - November 13, 2016*
|
322 |
|
323 |
= Bugfixes =
|
324 |
* A bug of v2.3.2 causing issues to some third-party plugins and Customizer fixed
|
325 |
|
326 |
|
327 |
-
|
328 |
-
= 2.3.2 =
|
329 |
*Release Date - November 11, 2016*
|
330 |
|
331 |
= Improvements =
|
@@ -339,8 +336,7 @@ Please notice that you use Enhanced Media Library with other plugins which add m
|
|
339 |
* Compatibility with the Jetpack Slideshow added
|
340 |
|
341 |
|
342 |
-
|
343 |
-
= 2.3.1 =
|
344 |
*Release Date - August 9, 2016*
|
345 |
|
346 |
= Bugfixes =
|
@@ -351,8 +347,7 @@ Please notice that you use Enhanced Media Library with other plugins which add m
|
|
351 |
* WordPress 4.6 compatibility ensured
|
352 |
|
353 |
|
354 |
-
|
355 |
-
= 2.3 =
|
356 |
*Release Date - June 27, 2016*
|
357 |
|
358 |
= Improvements =
|
@@ -368,8 +363,7 @@ Please notice that you use Enhanced Media Library with other plugins which add m
|
|
368 |
* Various minor bugs fixed
|
369 |
|
370 |
|
371 |
-
|
372 |
-
= 2.2.2 =
|
373 |
*Release Date - April 30, 2016*
|
374 |
|
375 |
= Improvements =
|
@@ -384,8 +378,7 @@ Please notice that you use Enhanced Media Library with other plugins which add m
|
|
384 |
* Performance: enhanced media library loading time reduced for about 40%
|
385 |
|
386 |
|
387 |
-
|
388 |
-
= 2.2.1 =
|
389 |
*Release Date - April 13, 2016*
|
390 |
|
391 |
= Improvements =
|
@@ -397,8 +390,7 @@ Please notice that you use Enhanced Media Library with other plugins which add m
|
|
397 |
* WordPress 4.5 compatibility ensured
|
398 |
|
399 |
|
400 |
-
|
401 |
-
= 2.2 =
|
402 |
*Release Date - March 19, 2016*
|
403 |
|
404 |
= New =
|
@@ -416,5 +408,4 @@ Please notice that you use Enhanced Media Library with other plugins which add m
|
|
416 |
* Custom order works now correctly on upload
|
417 |
|
418 |
|
419 |
-
|
420 |
-
= Previous releases... =
|
3 |
Tags: media library, media category, media categories, 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.5
|
5 |
Tested up to: 4.9.6
|
6 |
+
Stable tag: 2.6.4
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
10 |
|
11 |
|
12 |
+
## Description ##
|
|
|
|
|
|
|
|
|
13 |
|
14 |
The plugin will be handy for those who need to manage a lot of media files.
|
15 |
|
16 |
|
17 |
+
### Media Taxonomies ###
|
18 |
|
19 |
+
#### Categories and Tags for media items ####
|
20 |
|
21 |
**Various media categories.** With the plugin installed you immediately obtain Media Categories for categorizing and filtering media items in WordPress admin. This feature alone will save you hours of searching through a media library with even as few as 100 images.
|
22 |
|
31 |
**Order options.** With two options "Order media items by" (Date, Title, and Custom Order) and "Sort order" (Ascending and Descending) you can control media items order for all screens of the media library in WP admin. "Custom Order" allows to re-order media items within a category with drag and drop. This order will be used, in particular, for the gallery based on this category. "Natural sort order" option available for "Title" sort order will apply the human-friendly sort order to Media Library and Galleries. See `Settings > Media > Media Library`.
|
32 |
|
33 |
|
34 |
+
### Filter-Based Shortcodes ###
|
35 |
|
36 |
+
#### Image Gallery and Audio / Video Playlist ####
|
37 |
|
38 |
**Fully compatible with WordPress native shortcodes.** Media items categorizing can be useful for the front-end as well. To insert media galleries or audio / video playlists based on media categories you have to use the familiar format like `[gallery media_category="5" category="2" limit="10" monthnum="12" year="2015" orderby="title" order="DESC"]` or `[playlist media_category="5" category="2" limit="10" monthnum="12" year="2015" orderby="title" order="DESC"]`. The PRO version of the plugin allows to manage gallery or playlist shortcode without "coding" at all. Just choose the settings with the plugin's UI in the familiar edit popup and see your gallery / playlis live immediately in the post/page editor.
|
39 |
|
40 |
To turn on the feature set "Enhanced media shortcodes" option on `Settings > Media > Media Library > Media Shortcodes`. Please be advised that conflicts with other gallery plugins or themes are possible. Check your front-end and back-end gallery / playlist functionality after activating the feature.
|
41 |
|
42 |
|
43 |
+
### MIME Types ###
|
44 |
|
45 |
+
#### Media File Types ####
|
46 |
|
47 |
Another feature of the plugin is the MIME Types control. You can add new MIME types, delete existing ones, and point what file types are allowed for uploading. Initially, the plugin shows up the WordPress default MIME Type settings and creates the backup of them. The column "Add Filter" allows to add a MIME Type to plugin's filters so that you will be able to filter your media items not only by categories but also by the file type. You can set any label you wish to see in a filter with columns "Singular Label" and "Plural Label".
|
48 |
|
49 |
|
50 |
+
### Export / Import Plugin Settings ###
|
51 |
|
52 |
If you need to move your media library to another website you should export and import WordPress content with WordPress built-in export/import. But to make the Enhanced Media Library work on the new site with the same settings you are provided with the export/import feature.
|
53 |
|
54 |
|
55 |
+
### Multisite compatible ###
|
56 |
|
57 |
Network activate the plugin and choose which options will be available to your admins. In the PRO version, the license key should be activated once for the whole network.
|
58 |
|
59 |
|
60 |
+
### Easy to Use and WordPress Native Functionality Oriented Plugin ###
|
61 |
|
62 |
We spend hours to make plugins features work as though they were native WordPress functionality. If you are a developer and looking for a solution totally compatible with WordPress core and, at the same point, really easy to deal with for your non-geeky customers, give it a try, you won't be disappointed.
|
63 |
|
64 |
|
65 |
+
### Support ###
|
66 |
|
67 |
Support is free for both versions of the plugin. "PRO"-users do not have priority. We do out best to respond in 24 hours if not sooner.
|
68 |
|
69 |
|
70 |
+
### Available Languages ###
|
71 |
|
72 |
You can see the list of available translations and their progress on [wpUXsolutions.com](https://www.wpuxsolutions.com/l10n/projects/enhanced-media-library). Many thanks to all involved!
|
73 |
|
74 |
Assistance with translating is highly appreciated! If you'd like to be a translation editor or to suggest translations for your language please feel free to contribute to translation. All changes made are included to every new release of the plugin.
|
75 |
|
76 |
|
77 |
+
### Compatible with the Plugins: ###
|
78 |
|
79 |
* Advanced Custom Fields
|
80 |
* WooCommerce
|
95 |
Please let us know if you find any issue with the plugins from the list above or others.
|
96 |
|
97 |
|
98 |
+
### Incompatibility ###
|
99 |
|
100 |
Please notice that you use Enhanced Media Library with other plugins which add media categories, media folders, or manage MIME Types at your own risk. We cannot guarantee their compatibility because of the different approach to the same functionality. We do not recommend using them at the same time with Enhanced Media Library. Please choose the one you prefer.
|
101 |
|
102 |
|
103 |
+
### Enhanced Media Library PRO ###
|
104 |
|
105 |
+
Additional comfort and even more convenient way to organize WordPress media library:
|
106 |
|
107 |
+
* Categorize media items in bulk
|
108 |
+
* Assign media items to parent post categories automatically
|
109 |
+
* Enhance `[gallery]` and `[playlist]` shortcodes with just WordPress UI, no "coding"
|
110 |
+
* Search media items by category name in Media Library
|
111 |
+
* Customize default search according to your needs: include or exclude Titles, Captions, Descriptions, Authors, Media Taxonomies
|
112 |
|
113 |
+
[More on wpUXsolutions.com](https://www.wpuxsolutions.com/documents/enhanced-media-library/where-to-start#section2)
|
114 |
|
115 |
|
116 |
+
### Useful Links ###
|
117 |
|
118 |
* [Where to Start?](https://wpuxsolutions.com/documents/enhanced-media-library/where-to-start)
|
119 |
* [Documentation](https://www.wpuxsolutions.com/documents/enhanced-media-library)
|
124 |
|
125 |
|
126 |
|
127 |
+
## Installation ##
|
128 |
|
129 |
1. Upload plugin folder to '/wp-content/plugins/' directory
|
130 |
|
136 |
|
137 |
|
138 |
|
139 |
+
## Frequently Asked Questions ==
|
140 |
|
141 |
> [FAQs](https://www.wpuxsolutions.com/documents/enhanced-media-library/faqs/) | [Documentation](https://www.wpuxsolutions.com/documents/enhanced-media-library/)
|
142 |
|
143 |
|
144 |
|
145 |
+
## Screenshots ##
|
146 |
|
147 |
1. Plugin Settings: WordPress General Media Settings
|
148 |
|
168 |
|
169 |
|
170 |
|
171 |
+
## Changelog ##
|
172 |
+
|
173 |
+
### 2.6.4 ###
|
174 |
+
*Release Date - May 23, 2018*
|
175 |
+
*Addresses various issues of all previous 2.6.x versions*
|
176 |
+
|
177 |
+
= Bugfixes =
|
178 |
+
* Various multisite bugs fixed, including the user deletion bug
|
179 |
+
* A bug causing memory leak on websites with thousands of users fixed
|
180 |
+
* A few bugs causing admin crash in PHP less than 5.5 fixed
|
181 |
+
* PRO only: a few update issues fixed including persistent update message bug
|
182 |
+
|
183 |
+
= Improvements =
|
184 |
+
* Elementor CSS-compatibility added (a temporary solution, we are still working on the full compatibility)
|
185 |
+
|
186 |
|
187 |
+
### 2.6 ###
|
188 |
*Release Date - May 18, 2018*
|
189 |
|
190 |
= New =
|
210 |
* A lot of small bug fixed
|
211 |
|
212 |
|
213 |
+
### 2.5.1 (PRO only) ###
|
|
|
214 |
* A bug causing "Test Error" on searching for update fixed
|
215 |
|
216 |
|
217 |
+
### 2.5 ###
|
|
|
218 |
*Release Date - February 5, 2018*
|
219 |
|
220 |
= Improvements =
|
229 |
* WordPress 4.9 compatibility ensured
|
230 |
|
231 |
|
232 |
+
### 2.4.5 ###
|
|
|
233 |
*Release Date - June 8, 2017*
|
234 |
|
235 |
= Compatibility =
|
239 |
* Media library grid view layout fixed (a bug since WP 4.7.4)
|
240 |
|
241 |
|
242 |
+
### 2.4.4 ###
|
|
|
243 |
*Release Date - February 16, 2017*
|
244 |
|
245 |
= Bugfixes =
|
248 |
* Minor bugs fixed
|
249 |
|
250 |
|
251 |
+
### 2.4.3 ###
|
|
|
252 |
*Release Date - January 28, 2017*
|
253 |
|
254 |
= Improvements =
|
256 |
* Minor bugs fixed
|
257 |
|
258 |
|
259 |
+
### 2.4.2 ###
|
|
|
260 |
*Release Date - January 19, 2017*
|
261 |
|
262 |
= Bugfixes =
|
269 |
* Notification added when the plugin cannot receive update information from our server (PRO only)
|
270 |
|
271 |
|
272 |
+
### 2.4.1 ###
|
|
|
273 |
*Release Date - January 16, 2017*
|
274 |
|
275 |
= Bugfixes =
|
276 |
* A bug with saving taxonomy terms from post editor media popup fixed - [Support Ticket](https://wordpress.org/support/topic/category-filter-not-media-category-filter-stopped-working-again/)
|
277 |
|
278 |
|
279 |
+
### 2.4 ###
|
|
|
280 |
*Release Date - January 13, 2017*
|
281 |
|
282 |
= Improvements =
|
284 |
* RTL stylesheets added
|
285 |
|
286 |
|
287 |
+
### 2.3.6 ###
|
|
|
288 |
*Release Date - December 16, 2016*
|
289 |
|
290 |
= Improvements =
|
294 |
* Media Settings admin page improved to be more compatible with third-party plugins extending it as well
|
295 |
|
296 |
|
297 |
+
### 2.3.5 ###
|
|
|
298 |
*Release Date - November 29, 2016*
|
299 |
|
300 |
= Improvements =
|
308 |
* Few minor bugs fixed
|
309 |
|
310 |
|
311 |
+
### 2.3.4 ###
|
|
|
312 |
*Release Date - November 19, 2016*
|
313 |
|
314 |
= Bugfixes =
|
315 |
* A bug of v2.3.2 and v2.3.3 with incorrect media filtering fixed
|
316 |
|
317 |
|
318 |
+
### 2.3.3 ###
|
|
|
319 |
*Release Date - November 13, 2016*
|
320 |
|
321 |
= Bugfixes =
|
322 |
* A bug of v2.3.2 causing issues to some third-party plugins and Customizer fixed
|
323 |
|
324 |
|
325 |
+
### 2.3.2 ###
|
|
|
326 |
*Release Date - November 11, 2016*
|
327 |
|
328 |
= Improvements =
|
336 |
* Compatibility with the Jetpack Slideshow added
|
337 |
|
338 |
|
339 |
+
### 2.3.1 ###
|
|
|
340 |
*Release Date - August 9, 2016*
|
341 |
|
342 |
= Bugfixes =
|
347 |
* WordPress 4.6 compatibility ensured
|
348 |
|
349 |
|
350 |
+
### 2.3 ###
|
|
|
351 |
*Release Date - June 27, 2016*
|
352 |
|
353 |
= Improvements =
|
363 |
* Various minor bugs fixed
|
364 |
|
365 |
|
366 |
+
### 2.2.2 ###
|
|
|
367 |
*Release Date - April 30, 2016*
|
368 |
|
369 |
= Improvements =
|
378 |
* Performance: enhanced media library loading time reduced for about 40%
|
379 |
|
380 |
|
381 |
+
### 2.2.1 ###
|
|
|
382 |
*Release Date - April 13, 2016*
|
383 |
|
384 |
= Improvements =
|
390 |
* WordPress 4.5 compatibility ensured
|
391 |
|
392 |
|
393 |
+
### 2.2 ###
|
|
|
394 |
*Release Date - March 19, 2016*
|
395 |
|
396 |
= New =
|
408 |
* Custom order works now correctly on upload
|
409 |
|
410 |
|
411 |
+
### Previous releases... ###
|
|