Changeset 2056360
- Timestamp:
- 03/24/2019 07:00:11 PM (7 years ago)
- Location:
- remove-media-library/trunk
- Files:
-
- 2 edited
-
README.txt (modified) (1 diff)
-
admin/partials/remove-media-library-admin-display.php (modified) (12 diffs)
Legend:
- Unmodified
- Added
- Removed
-
remove-media-library/trunk/README.txt
r2029349 r2056360 4 4 Tags: media, files, remove, delete, bulk, images, trash, image, library, videos, video, documents, audios 5 5 Requires at least: 3.0.1 6 Tested up to: 5. 0.37 Stable tag: 5. 0.36 Tested up to: 5.1.1 7 Stable tag: 5.1.1 8 8 Requires PHP: 5.4 9 9 License: GPLv2 or later -
remove-media-library/trunk/admin/partials/remove-media-library-admin-display.php
r2029349 r2056360 32 32 <h1><?php echo esc_html(get_admin_page_title()); ?></h1> 33 33 <H3> 34 <? echo esc_attr__('Removes files from WordPress Media Library fast and easy', $this->plugin_name) . '</H3>';34 <?php echo esc_attr__('Removes files from WordPress Media Library fast and easy', $this->plugin_name) . '</H3>'; 35 35 echo '<p><B>' . esc_attr__('CAUTION:', $this->plugin_name) . '</B> ' . esc_attr__('Orphan files are files not used on posts, pages nor WooCommerce products, BUT may be used in other parts of your website such as the site logo, widgets or sliders', $this->plugin_name). '</p>'; 36 36 ?> … … 41 41 <DIV class="inside"> 42 42 <p> 43 <? if (defined('MEDIA_TRASH') && MEDIA_TRASH){43 <?php if (defined('MEDIA_TRASH') && MEDIA_TRASH){ 44 44 echo esc_attr__('WP Media trash is', $this->plugin_name) . ' <B>' . esc_attr__('ENABLED', $this->plugin_name) . '</B>. ' . esc_attr__('Media files will go to the trash. If necessary, you can recover them from there.', $this->plugin_name); 45 45 $button_label = esc_attr__('Disable Media Trash', $this->plugin_name); … … 58 58 <input type="hidden" name="nonce" value="<?php echo $nonce; ?>" /> 59 59 <input type="hidden" id="<?php echo $this->plugin_name; ?>-action" 60 name="<?php echo $this->plugin_name; ?> [action]" value="<? echo $value; ?>" />61 62 <input type="submit" value="<? echo $button_label; ?>" class="button button-primary">60 name="<?php echo $this->plugin_name; ?> [action]" value="<?php echo $value; ?>" /> 61 62 <input type="submit" value="<?php echo $button_label; ?>" class="button button-primary"> 63 63 </form> 64 64 </DIV> … … 79 79 <fieldset> 80 80 <legend><span> 81 <? esc_attr_e('1- Select media type',$this->plugin_name); ?></span></legend>82 <? $count1 = $this->attachment_count('image', false);81 <?php esc_attr_e('1- Select media type',$this->plugin_name); ?></span></legend> 82 <?php $count1 = $this->attachment_count('image', false); 83 83 $count2 = $this->attachment_count('image', true); ?> 84 84 <div> 85 85 <label for="<?php echo $this->plugin_name; ?>-images"> 86 86 <input type="checkbox" id="<?php echo $this->plugin_name; ?>-images" 87 name="<?php echo $this->plugin_name; ?> [images]" value="1" <? 87 name="<?php echo $this->plugin_name; ?> [images]" value="1" <?php 88 88 if($count1==0 && $count2==0) echo 'disabled' ;?>/> 89 89 <?php echo number_format_i18n( $count1, 0 ) . esc_attr__(' images (', $this->plugin_name) . number_format_i18n( $count2, 0 ) . esc_attr__(' orphans)', $this->plugin_name); ?> … … 92 92 93 93 <div> 94 <? $count1 = $this->attachment_count('video', false);94 <?php $count1 = $this->attachment_count('video', false); 95 95 $count2 = $this->attachment_count('video', true); ?> 96 96 <label for="<?php echo $this->plugin_name; ?>-videos"> 97 97 <input type="checkbox" id="<?php echo $this->plugin_name; ?>-videos" 98 name="<?php echo $this->plugin_name; ?> [videos]" value="1" <? 98 name="<?php echo $this->plugin_name; ?> [videos]" value="1" <?php 99 99 if($count1==0 && $count2==0) echo 'disabled' ;?>/> 100 100 <?php echo number_format_i18n( $count1, 0 ) . esc_attr__(' videos (', $this->plugin_name) . number_format_i18n( $count2, 0 ) . esc_attr__(' orphans)', $this->plugin_name); ?> … … 103 103 104 104 <div> 105 <? $count1 = $this->attachment_count('application', false);105 <?php $count1 = $this->attachment_count('application', false); 106 106 $count2 = $this->attachment_count('application', true); ?> 107 107 <label for="<?php echo $this->plugin_name; ?>-docs"> 108 108 <input type="checkbox" id="<?php echo $this->plugin_name; ?>-docs" 109 name="<?php echo $this->plugin_name; ?> [docs]" value="1" <? 109 name="<?php echo $this->plugin_name; ?> [docs]" value="1" <?php 110 110 if($count1==0 && $count2==0) echo 'disabled' ;?>/> 111 111 <?php echo number_format_i18n( $count1, 0 ) . esc_attr__(' documents (', $this->plugin_name) . number_format_i18n( $count2, 0 ) . esc_attr__(' orphans)', $this->plugin_name); ?> … … 114 114 115 115 <div> 116 <? $count1 = $this->attachment_count('audio', false);116 <?php $count1 = $this->attachment_count('audio', false); 117 117 $count2 = $this->attachment_count('audio', true); ?> 118 118 <label for="<?php echo $this->plugin_name; ?>-audios"> 119 119 <input type="checkbox" id="<?php echo $this->plugin_name; ?>-audios" 120 name="<?php echo $this->plugin_name; ?> [audios]" value="1" <? 120 name="<?php echo $this->plugin_name; ?> [audios]" value="1" <?php 121 121 if($count1==0 && $count2==0) echo 'disabled' ;?>/> 122 122 <?php echo number_format_i18n( $count1, 0 ) . esc_attr__(' audios (', $this->plugin_name) . number_format_i18n( $count2, 0 ) . esc_attr__(' orphans)', $this->plugin_name); ?> … … 130 130 <div id="errorContainer1" class="errorContainer"> 131 131 <p> 132 <? esc_attr_e('Please select at least one media type', $this->plugin_name);?>132 <?php esc_attr_e('Please select at least one media type', $this->plugin_name);?> 133 133 </p> 134 134 </div> … … 138 138 <fieldset> 139 139 <legend><span> 140 <? esc_attr_e('2- Remove ALL or only ORPHANS?',$this->plugin_name);?></span>140 <?php esc_attr_e('2- Remove ALL or only ORPHANS?',$this->plugin_name);?></span> 141 141 </legend> 142 142 <label for="<?php echo $this->plugin_name; ?>-orphans1"> … … 158 158 <div id="errorContainer2" class="errorContainer"> 159 159 <p> 160 <? esc_attr_e('Please select REMOVE action', $this->plugin_name);?>160 <?php esc_attr_e('Please select REMOVE action', $this->plugin_name);?> 161 161 </p> 162 162 </div> … … 164 164 <p class="submit"><input type="submit" name="submit" id="submit" 165 165 class="button button-primary" 166 value="<? esc_attr_e('REMOVE SELECTED FILES!', $this->plugin_name)?>"></p>166 value="<?php esc_attr_e('REMOVE SELECTED FILES!', $this->plugin_name)?>"></p> 167 167 168 168 <div id="errorContainer3" class="errorContainer"> 169 169 <p> 170 <? esc_attr_e('Nothing to do', $this->plugin_name);?>170 <?php esc_attr_e('Nothing to do', $this->plugin_name);?> 171 171 </p> 172 172 </div> … … 185 185 </div> 186 186 <br /> 187 <? $file = plugin_dir_path( __FILE__ ).'../result.log';187 <?php $file = plugin_dir_path( __FILE__ ).'../result.log'; 188 188 if (file_exists($file) && filesize($file) > 0){ 189 189 echo '<B>' . esc_attr__('LAST OUTPUT:', $this->plugin_name) . '</B>';
Note: See TracChangeset
for help on using the changeset viewer.