Plugin Directory

Changeset 2056360


Ignore:
Timestamp:
03/24/2019 07:00:11 PM (7 years ago)
Author:
webstilo
Message:

Update <? to <?php

Location:
remove-media-library/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • remove-media-library/trunk/README.txt

    r2029349 r2056360  
    44Tags: media, files, remove, delete, bulk, images, trash, image, library, videos, video, documents, audios
    55Requires at least: 3.0.1
    6 Tested up to: 5.0.3
    7 Stable tag: 5.0.3
     6Tested up to: 5.1.1
     7Stable tag: 5.1.1
    88Requires PHP: 5.4
    99License: GPLv2 or later
  • remove-media-library/trunk/admin/partials/remove-media-library-admin-display.php

    r2029349 r2056360  
    3232            <h1><?php echo esc_html(get_admin_page_title()); ?></h1>
    3333            <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>';
    3535    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>';
    3636    ?>
     
    4141                        <DIV class="inside">
    4242                            <p>
    43                                 <? if (defined('MEDIA_TRASH') && MEDIA_TRASH){
     43                                <?php if (defined('MEDIA_TRASH') && MEDIA_TRASH){
    4444        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);
    4545        $button_label = esc_attr__('Disable Media Trash', $this->plugin_name);
     
    5858                                <input type="hidden" name="nonce" value="<?php echo $nonce; ?>" />
    5959                                <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">
    6363                            </form>
    6464                        </DIV>
     
    7979                                <fieldset>
    8080                                    <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);
    8383                   $count2 = $this->attachment_count('image', true); ?>
    8484                                    <div>
    8585                                        <label for="<?php echo $this->plugin_name; ?>-images">
    8686                                            <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
    8888                                                if($count1==0 && $count2==0) echo 'disabled' ;?>/>
    8989                                            <?php echo number_format_i18n( $count1, 0 ) . esc_attr__(' images (', $this->plugin_name) . number_format_i18n( $count2, 0 ) . esc_attr__(' orphans)', $this->plugin_name); ?>
     
    9292
    9393                                    <div>
    94                                         <? $count1 = $this->attachment_count('video', false);
     94                                        <?php $count1 = $this->attachment_count('video', false);
    9595                   $count2 = $this->attachment_count('video', true); ?>
    9696                                        <label for="<?php echo $this->plugin_name; ?>-videos">
    9797                                            <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
    9999                                                if($count1==0 && $count2==0) echo 'disabled' ;?>/>
    100100                                            <?php echo number_format_i18n( $count1, 0 ) . esc_attr__(' videos (', $this->plugin_name) . number_format_i18n( $count2, 0 ) . esc_attr__(' orphans)', $this->plugin_name); ?>
     
    103103
    104104                                    <div>
    105                                         <? $count1 = $this->attachment_count('application', false);
     105                                        <?php $count1 = $this->attachment_count('application', false);
    106106                   $count2 = $this->attachment_count('application', true); ?>
    107107                                        <label for="<?php echo $this->plugin_name; ?>-docs">
    108108                                            <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
    110110                                                if($count1==0 && $count2==0) echo 'disabled' ;?>/>
    111111                                            <?php echo number_format_i18n( $count1, 0 ) . esc_attr__(' documents (', $this->plugin_name) . number_format_i18n( $count2, 0 ) . esc_attr__(' orphans)', $this->plugin_name); ?>
     
    114114
    115115                                    <div>
    116                                         <? $count1 = $this->attachment_count('audio', false);
     116                                        <?php $count1 = $this->attachment_count('audio', false);
    117117                   $count2 = $this->attachment_count('audio', true); ?>
    118118                                        <label for="<?php echo $this->plugin_name; ?>-audios">
    119119                                            <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
    121121                                                if($count1==0 && $count2==0) echo 'disabled' ;?>/>
    122122                                            <?php echo number_format_i18n( $count1, 0 ) . esc_attr__(' audios (', $this->plugin_name) . number_format_i18n( $count2, 0 ) . esc_attr__(' orphans)', $this->plugin_name); ?>
     
    130130                            <div id="errorContainer1" class="errorContainer">
    131131                                <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);?>
    133133                                </p>
    134134                            </div>
     
    138138                                <fieldset>
    139139                                    <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>
    141141                                    </legend>
    142142                                    <label for="<?php echo $this->plugin_name; ?>-orphans1">
     
    158158                            <div id="errorContainer2" class="errorContainer">
    159159                                <p>
    160                                     <? esc_attr_e('Please select REMOVE action', $this->plugin_name);?>
     160                                    <?php esc_attr_e('Please select REMOVE action', $this->plugin_name);?>
    161161                                </p>
    162162                            </div>
     
    164164                            <p class="submit"><input type="submit" name="submit" id="submit"
    165165                                    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>
    167167
    168168                            <div id="errorContainer3" class="errorContainer">
    169169                                <p>
    170                                     <? esc_attr_e('Nothing to do', $this->plugin_name);?>
     170                                    <?php esc_attr_e('Nothing to do', $this->plugin_name);?>
    171171                                </p>
    172172                            </div>
     
    185185                    </div>
    186186                    <br />
    187                     <? $file = plugin_dir_path( __FILE__ ).'../result.log';
     187                    <?php $file = plugin_dir_path( __FILE__ ).'../result.log';
    188188    if (file_exists($file) && filesize($file) > 0){
    189189        echo  '<B>' . esc_attr__('LAST OUTPUT:', $this->plugin_name) . '</B>';
Note: See TracChangeset for help on using the changeset viewer.