Changeset 2809833
- Timestamp:
- 11/02/2022 11:36:37 AM (3 years ago)
- Location:
- bubuku-media-library
- Files:
-
- 13 added
- 16 edited
- 1 copied
-
assets/screenshot-4.png (added)
-
tags/1.0.3 (copied) (copied from bubuku-media-library/trunk)
-
tags/1.0.3/bubuku-media-library.php (modified) (1 diff)
-
tags/1.0.3/languages (added)
-
tags/1.0.3/languages/bubuku-media-library-es_ES.mo (added)
-
tags/1.0.3/languages/bubuku-media-library-es_ES.po (added)
-
tags/1.0.3/languages/bubuku-media-library-zh_TW.mo (added)
-
tags/1.0.3/languages/bubuku-media-library-zh_TW.po (added)
-
tags/1.0.3/readme.txt (modified) (3 diffs)
-
tags/1.0.3/src/BML_assets.php (modified) (1 diff)
-
tags/1.0.3/src/BML_bulk_action.php (added)
-
tags/1.0.3/src/BML_common.php (modified) (1 diff)
-
tags/1.0.3/src/BML_filter.php (modified) (4 diffs)
-
tags/1.0.3/src/BML_plugin.php (modified) (2 diffs)
-
tags/1.0.3/src/BML_restapi.php (modified) (1 diff)
-
tags/1.0.3/src/BML_view.php (modified) (4 diffs)
-
trunk/bubuku-media-library.php (modified) (1 diff)
-
trunk/languages (added)
-
trunk/languages/bubuku-media-library-es_ES.mo (added)
-
trunk/languages/bubuku-media-library-es_ES.po (added)
-
trunk/languages/bubuku-media-library-zh_TW.mo (added)
-
trunk/languages/bubuku-media-library-zh_TW.po (added)
-
trunk/readme.txt (modified) (3 diffs)
-
trunk/src/BML_assets.php (modified) (1 diff)
-
trunk/src/BML_bulk_action.php (added)
-
trunk/src/BML_common.php (modified) (1 diff)
-
trunk/src/BML_filter.php (modified) (4 diffs)
-
trunk/src/BML_plugin.php (modified) (2 diffs)
-
trunk/src/BML_restapi.php (modified) (1 diff)
-
trunk/src/BML_view.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
bubuku-media-library/tags/1.0.3/bubuku-media-library.php
r2786524 r2809833 5 5 * Requires at least: 5.2 6 6 * Requires PHP: 7.2 7 * Version: 1.0. 27 * Version: 1.0.3 8 8 * Author: Bubuku 9 9 * Author URI: https://www.bubuku.com/ 10 * Text Domain: b bkmedialibrary10 * Text Domain: bubuku-media-library 11 11 * Domain Path: /languages 12 12 * License: EUPL v1.2 -
bubuku-media-library/tags/1.0.3/readme.txt
r2786524 r2809833 3 3 Tags: images, media library, performance, Alt Text, seo 4 4 Requires at least: 5.2 5 Tested up to: 6. 0.26 Requires PHP: 7. 37 Stable tag: 1.0. 25 Tested up to: 6.1 6 Requires PHP: 7.2 7 Stable tag: 1.0.3 8 8 License: GPLv3 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 17 17 18 18 1. Green: Images 100K or less are assigned a good optimization status. 19 2. Orange: Images between 100K and 1Mare assigned a medium optimization status.20 3. Red: For images of 1Mor more, we assign a status of poor optimization.19 2. Orange: Images between 100K and 500k are assigned a medium optimization status. 20 3. Red: For images of 500k or more, we assign a status of poor optimization. 21 21 22 22 Thanks to this plugin, we can see if images need to be optimized and improve page load and SEO of images … … 30 30 2. Filter to better identify the images that have the alt text 31 31 3. Filter to identify images with larger or smaller sizes. 32 4. Bulk Action to calculate file size. 32 33 33 34 == Changelog == 35 = 1.0.3 = 36 * Add a Bulk Action to calculate file size in WordPress admin 37 * Improvements in measurement ranges 38 * fix: Internationalization Issues 39 34 40 = 1.0.2 = 35 41 * Rename variables -
bubuku-media-library/tags/1.0.3/src/BML_assets.php
r2786524 r2809833 30 30 BUBUKU_BML_PLUGIN_ASSETS_URL . '/css/admin.css', 31 31 false, 32 '1.0. 2'32 '1.0.3' 33 33 ); 34 34 -
bubuku-media-library/tags/1.0.3/src/BML_common.php
r2786524 r2809833 48 48 49 49 } else { 50 esc_html_e('This media is not supported.', 'b bkmedialibrary');50 esc_html_e('This media is not supported.', 'bubuku-media-library'); 51 51 } 52 52 -
bubuku-media-library/tags/1.0.3/src/BML_filter.php
r2786524 r2809833 41 41 } 42 42 43 echo '<select name="bk_filter_alt"><option value="All">'. esc_html__('All alt text', 'b bkmedialibrary' ) .'</option>';43 echo '<select name="bk_filter_alt"><option value="All">'. esc_html__('All alt text', 'bubuku-media-library' ) .'</option>'; 44 44 $aItems = array( 45 45 array( 46 46 'id' => '1', 47 'label' => esc_html__('Empty alt text', 'b bkmedialibrary' )47 'label' => esc_html__('Empty alt text', 'bubuku-media-library' ) 48 48 ), 49 49 array( 50 50 'id' => '2', 51 'label' => esc_html__('full alt text', 'b bkmedialibrary' )51 'label' => esc_html__('full alt text', 'bubuku-media-library' ) 52 52 ) 53 53 ); … … 68 68 } 69 69 70 echo '<select name="bk_filter_file_size"><option value="All">'. esc_html__('All file size', 'b bkmedialibrary' ) .'</option>';70 echo '<select name="bk_filter_file_size"><option value="All">'. esc_html__('All file size', 'bubuku-media-library' ) .'</option>'; 71 71 $aItems = array( 72 72 array( 73 73 'id' => '1', 74 'label' => esc_html__('Good file size', 'b bkmedialibrary' )74 'label' => esc_html__('Good file size', 'bubuku-media-library' ) 75 75 ), 76 76 array( 77 77 'id' => '2', 78 'label' => esc_html__('Medium file size', 'b bkmedialibrary' )78 'label' => esc_html__('Medium file size', 'bubuku-media-library' ) 79 79 ), 80 80 array( 81 81 'id' => '3', 82 'label' => esc_html__('High file size', 'b bkmedialibrary' )82 'label' => esc_html__('High file size', 'bubuku-media-library' ) 83 83 ) 84 84 ); … … 155 155 break; 156 156 case 2: 157 // medium -> 100.001k - 999.999K157 // medium -> 100.001k - 499.999K 158 158 $compare = array( 159 159 'key' => '_bkml_attachment_file_size', 160 'value' => array(100001, 999999),160 'value' => array(100001, 499999), 161 161 'type' => 'numeric', 162 162 'compare' => 'between', … … 164 164 break; 165 165 case 3: 166 // High -> >= 1M166 // High -> >= 500 167 167 $compare = array( 168 168 'key' => '_bkml_attachment_file_size', 169 'value' => 1000000,169 'value' => 500000, 170 170 'type' => 'numeric', 171 171 'compare' => '>=', -
bubuku-media-library/tags/1.0.3/src/BML_plugin.php
r2786524 r2809833 24 24 define( 'BUBUKU_BML_PLUGIN_ASSETS_URL', BUBUKU_BML_PLUGIN_URL . '/assets' ); 25 25 define( 'BUBUKU_BML_PLUGIN_ENDPOINTS_URL', 'bbk_medialibrary/v1' ); 26 define( 'BUBUKU_BML_PLUGIN_VERSION', '1.0. 2' );26 define( 'BUBUKU_BML_PLUGIN_VERSION', '1.0.3' ); 27 27 define( 'BUBUKU_BML_PLUGIN_NONCE', wp_create_nonce('media-library'. BUBUKU_BML_PLUGIN_VERSION) ); 28 28 29 load_plugin_textdomain( 'b bkmedialibrary', false, BUBUKU_BML_PLUGIN_BASE . '/languages' );29 load_plugin_textdomain( 'bubuku-media-library', false, BUBUKU_BML_PLUGIN_BASE . '/languages/' ); 30 30 31 31 new BML_assets(); … … 33 33 new BML_restapi(); 34 34 new BML_filter(); 35 new BML_bulk_action(); 35 36 } 36 37 -
bubuku-media-library/tags/1.0.3/src/BML_restapi.php
r2786524 r2809833 50 50 51 51 if ( BUBUKU_BML_PLUGIN_NONCE !== $nonce && empty($media_id)) { 52 wp_send_json_error( esc_html__('empty Media ID', 'b bkmedialibrary') );52 wp_send_json_error( esc_html__('empty Media ID', 'bubuku-media-library') ); 53 53 die(); 54 54 } -
bubuku-media-library/tags/1.0.3/src/BML_view.php
r2786524 r2809833 33 33 34 34 if ( !empty( $file_size ) ) { 35 if ( 100000 < $file_size && 1000000 > $file_size ) { 36 //mayor de 100k 35 if ( 100001 > $file_size) { 36 $file_size_style = 'bk_good'; 37 } else if ( 500001 > $file_size) { 37 38 $file_size_style = 'bk_medium'; 38 39 } else if ( 1000000 < $file_size ) { 40 //mayor de 1M 39 } else { 41 40 $file_size_style = 'bk_high'; 42 } else {43 $file_size_style = 'bk_good';44 41 } 45 42 … … 62 59 return '<p class="bk_file_size_item"> 63 60 '. $file_size_out .' 64 <small>'. esc_html__('In order to sort or filter by size, you need to calculate', 'b bkmedialibrary') .'</small>61 <small>'. esc_html__('In order to sort or filter by size, you need to calculate', 'bubuku-media-library') .'</small> 65 62 <button type="button" class="bk_btn js-calculate" data-id="'. $media_id .'"> 66 <span class="bk_txt button-primary">'. esc_html__('Calculate', 'b bkmedialibrary') .'</span>63 <span class="bk_txt button-primary">'. esc_html__('Calculate', 'bubuku-media-library') .'</span> 67 64 <span class="bk_loader"></span> 68 65 </button> … … 70 67 } 71 68 72 return esc_html__('error', 'b bkmedialibrary');69 return esc_html__('error', 'bubuku-media-library'); 73 70 } 74 71 … … 94 91 <p class="bk_alt '. esc_html( $alt_style ) .'"> 95 92 <span class="dashicons '. esc_html( $icon_style ) .'"></span> 96 '. esc_html__('Image alt text', 'b bkmedialibrary') .'93 '. esc_html__('Image alt text', 'bubuku-media-library') .' 97 94 </p> 98 95 </div>'; -
bubuku-media-library/trunk/bubuku-media-library.php
r2786524 r2809833 5 5 * Requires at least: 5.2 6 6 * Requires PHP: 7.2 7 * Version: 1.0. 27 * Version: 1.0.3 8 8 * Author: Bubuku 9 9 * Author URI: https://www.bubuku.com/ 10 * Text Domain: b bkmedialibrary10 * Text Domain: bubuku-media-library 11 11 * Domain Path: /languages 12 12 * License: EUPL v1.2 -
bubuku-media-library/trunk/readme.txt
r2786524 r2809833 3 3 Tags: images, media library, performance, Alt Text, seo 4 4 Requires at least: 5.2 5 Tested up to: 6. 0.26 Requires PHP: 7. 37 Stable tag: 1.0. 25 Tested up to: 6.1 6 Requires PHP: 7.2 7 Stable tag: 1.0.3 8 8 License: GPLv3 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 17 17 18 18 1. Green: Images 100K or less are assigned a good optimization status. 19 2. Orange: Images between 100K and 1Mare assigned a medium optimization status.20 3. Red: For images of 1Mor more, we assign a status of poor optimization.19 2. Orange: Images between 100K and 500k are assigned a medium optimization status. 20 3. Red: For images of 500k or more, we assign a status of poor optimization. 21 21 22 22 Thanks to this plugin, we can see if images need to be optimized and improve page load and SEO of images … … 30 30 2. Filter to better identify the images that have the alt text 31 31 3. Filter to identify images with larger or smaller sizes. 32 4. Bulk Action to calculate file size. 32 33 33 34 == Changelog == 35 = 1.0.3 = 36 * Add a Bulk Action to calculate file size in WordPress admin 37 * Improvements in measurement ranges 38 * fix: Internationalization Issues 39 34 40 = 1.0.2 = 35 41 * Rename variables -
bubuku-media-library/trunk/src/BML_assets.php
r2786524 r2809833 30 30 BUBUKU_BML_PLUGIN_ASSETS_URL . '/css/admin.css', 31 31 false, 32 '1.0. 2'32 '1.0.3' 33 33 ); 34 34 -
bubuku-media-library/trunk/src/BML_common.php
r2786524 r2809833 48 48 49 49 } else { 50 esc_html_e('This media is not supported.', 'b bkmedialibrary');50 esc_html_e('This media is not supported.', 'bubuku-media-library'); 51 51 } 52 52 -
bubuku-media-library/trunk/src/BML_filter.php
r2786524 r2809833 41 41 } 42 42 43 echo '<select name="bk_filter_alt"><option value="All">'. esc_html__('All alt text', 'b bkmedialibrary' ) .'</option>';43 echo '<select name="bk_filter_alt"><option value="All">'. esc_html__('All alt text', 'bubuku-media-library' ) .'</option>'; 44 44 $aItems = array( 45 45 array( 46 46 'id' => '1', 47 'label' => esc_html__('Empty alt text', 'b bkmedialibrary' )47 'label' => esc_html__('Empty alt text', 'bubuku-media-library' ) 48 48 ), 49 49 array( 50 50 'id' => '2', 51 'label' => esc_html__('full alt text', 'b bkmedialibrary' )51 'label' => esc_html__('full alt text', 'bubuku-media-library' ) 52 52 ) 53 53 ); … … 68 68 } 69 69 70 echo '<select name="bk_filter_file_size"><option value="All">'. esc_html__('All file size', 'b bkmedialibrary' ) .'</option>';70 echo '<select name="bk_filter_file_size"><option value="All">'. esc_html__('All file size', 'bubuku-media-library' ) .'</option>'; 71 71 $aItems = array( 72 72 array( 73 73 'id' => '1', 74 'label' => esc_html__('Good file size', 'b bkmedialibrary' )74 'label' => esc_html__('Good file size', 'bubuku-media-library' ) 75 75 ), 76 76 array( 77 77 'id' => '2', 78 'label' => esc_html__('Medium file size', 'b bkmedialibrary' )78 'label' => esc_html__('Medium file size', 'bubuku-media-library' ) 79 79 ), 80 80 array( 81 81 'id' => '3', 82 'label' => esc_html__('High file size', 'b bkmedialibrary' )82 'label' => esc_html__('High file size', 'bubuku-media-library' ) 83 83 ) 84 84 ); … … 155 155 break; 156 156 case 2: 157 // medium -> 100.001k - 999.999K157 // medium -> 100.001k - 499.999K 158 158 $compare = array( 159 159 'key' => '_bkml_attachment_file_size', 160 'value' => array(100001, 999999),160 'value' => array(100001, 499999), 161 161 'type' => 'numeric', 162 162 'compare' => 'between', … … 164 164 break; 165 165 case 3: 166 // High -> >= 1M166 // High -> >= 500 167 167 $compare = array( 168 168 'key' => '_bkml_attachment_file_size', 169 'value' => 1000000,169 'value' => 500000, 170 170 'type' => 'numeric', 171 171 'compare' => '>=', -
bubuku-media-library/trunk/src/BML_plugin.php
r2786524 r2809833 24 24 define( 'BUBUKU_BML_PLUGIN_ASSETS_URL', BUBUKU_BML_PLUGIN_URL . '/assets' ); 25 25 define( 'BUBUKU_BML_PLUGIN_ENDPOINTS_URL', 'bbk_medialibrary/v1' ); 26 define( 'BUBUKU_BML_PLUGIN_VERSION', '1.0. 2' );26 define( 'BUBUKU_BML_PLUGIN_VERSION', '1.0.3' ); 27 27 define( 'BUBUKU_BML_PLUGIN_NONCE', wp_create_nonce('media-library'. BUBUKU_BML_PLUGIN_VERSION) ); 28 28 29 load_plugin_textdomain( 'b bkmedialibrary', false, BUBUKU_BML_PLUGIN_BASE . '/languages' );29 load_plugin_textdomain( 'bubuku-media-library', false, BUBUKU_BML_PLUGIN_BASE . '/languages/' ); 30 30 31 31 new BML_assets(); … … 33 33 new BML_restapi(); 34 34 new BML_filter(); 35 new BML_bulk_action(); 35 36 } 36 37 -
bubuku-media-library/trunk/src/BML_restapi.php
r2786524 r2809833 50 50 51 51 if ( BUBUKU_BML_PLUGIN_NONCE !== $nonce && empty($media_id)) { 52 wp_send_json_error( esc_html__('empty Media ID', 'b bkmedialibrary') );52 wp_send_json_error( esc_html__('empty Media ID', 'bubuku-media-library') ); 53 53 die(); 54 54 } -
bubuku-media-library/trunk/src/BML_view.php
r2786524 r2809833 33 33 34 34 if ( !empty( $file_size ) ) { 35 if ( 100000 < $file_size && 1000000 > $file_size ) { 36 //mayor de 100k 35 if ( 100001 > $file_size) { 36 $file_size_style = 'bk_good'; 37 } else if ( 500001 > $file_size) { 37 38 $file_size_style = 'bk_medium'; 38 39 } else if ( 1000000 < $file_size ) { 40 //mayor de 1M 39 } else { 41 40 $file_size_style = 'bk_high'; 42 } else {43 $file_size_style = 'bk_good';44 41 } 45 42 … … 62 59 return '<p class="bk_file_size_item"> 63 60 '. $file_size_out .' 64 <small>'. esc_html__('In order to sort or filter by size, you need to calculate', 'b bkmedialibrary') .'</small>61 <small>'. esc_html__('In order to sort or filter by size, you need to calculate', 'bubuku-media-library') .'</small> 65 62 <button type="button" class="bk_btn js-calculate" data-id="'. $media_id .'"> 66 <span class="bk_txt button-primary">'. esc_html__('Calculate', 'b bkmedialibrary') .'</span>63 <span class="bk_txt button-primary">'. esc_html__('Calculate', 'bubuku-media-library') .'</span> 67 64 <span class="bk_loader"></span> 68 65 </button> … … 70 67 } 71 68 72 return esc_html__('error', 'b bkmedialibrary');69 return esc_html__('error', 'bubuku-media-library'); 73 70 } 74 71 … … 94 91 <p class="bk_alt '. esc_html( $alt_style ) .'"> 95 92 <span class="dashicons '. esc_html( $icon_style ) .'"></span> 96 '. esc_html__('Image alt text', 'b bkmedialibrary') .'93 '. esc_html__('Image alt text', 'bubuku-media-library') .' 97 94 </p> 98 95 </div>';
Note: See TracChangeset
for help on using the changeset viewer.