Plugin Directory

Changeset 3054358

Timestamp:
03/19/2024 11:03:44 AM (5 months ago)
Author:
itpathsolutions
Message:

1.0.1

  • New - Media table column sortable
  • New - Multiple media delete
  • Fix - Layout improve and fix changes
Location:
itpathsolutions-media-cleaner-and-database-optimizer
Files:
42 added
7 edited

Legend:

Unmodified
Added
Removed
  • itpathsolutions-media-cleaner-and-database-optimizer/trunk/README.txt

    r3040101 r3054358  
    55Tested up to: 6.4
    66Requires PHP: 7.4
    7 Stable tag: 1.0.0
     7Stable tag: 1.0.
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    5454== Changelog ==
    5555
     56
     57
     58
     59
     60
    5661= 1.0.0 =
    5762* Initial Release
     63
  • itpathsolutions-media-cleaner-and-database-optimizer/trunk/admin/css/aiowc-admin.css

    r3039192 r3054358  
    162162}
    163163
    164 #media_list_wrapper .delete-item-button, #media_list_wrapper .all_delete_media {
    165     border: none;
     164#media_list_wrapper .delete-item-button {
    166165    background: transparent;
    167     color: red;
    168     font-weight: 600;
    169     text-transform: uppercase;
     166    color: rgb(231, 50, 50);
     167    font-weight: 600;
     168    text-transform: uppercase;
     169    padding: 8px 8px;
     170    border-radius: 50%;
     171    display: inline-block;
     172    border: 2px solid rgb(231, 50, 50);
     173    transition: .3s;
     174}
     175#media_list_wrapper .delete-item-button:hover{
     176    background-color: rgb(231, 50, 50);
     177    transform: scale(1.2);
     178    transition: .3s;
     179    color: #fff;
     180}
     181#media_list_wrapper .all_delete_media {
     182    background: transparent;
     183    color: rgb(231, 50, 50);
     184    font-weight: 600;
     185    text-transform: uppercase;
     186    display: inline-block;
     187    transition: .3s;
     188}
     189 #media_list_wrapper .all_delete_media:hover {
     190    transform: scale(1.2);
     191    transition: .3s;
    170192}
    171193#media_list_wrapper ul.pagination, #media_list_wrapper ul.pagination li {
     
    197219    width:400px !important;
    198220}
     221
     222
     223
     224
     225
     226
     227
     228
  • itpathsolutions-media-cleaner-and-database-optimizer/trunk/admin/js/aiowc-admin.js

    r3039192 r3054358  
    321321        if(jQuery('#media_list').length){
    322322            new DataTable('#media_list', {
    323                 ordering: false
     323                ordering: true,
     324                columnDefs: [
     325                    { targets: [1,3,7], orderable: false }
     326                ]
    324327            });
    325328        }
     
    338341                        atLeastOneChecked = true;
    339342
    340                         if (checkedCount > 2) {
     343                        if (checkedCount > 2) {
    341344                            alert("You can delete a maximum of two images.");
    342345                            jQuery(this).prop("checked", false);
    343346                            return false;
    344                         }
     347                        }
    345348                    }
    346349                });
  • itpathsolutions-media-cleaner-and-database-optimizer/trunk/admin/partials/aiowc-admin-display.php

    r3039192 r3054358  
    3535                <div class="card h-md-100 ecommerce-card-min-width">
    3636                    <div class="card-header pb-0">
    37                         <h6 class="mb-0 mt-2 d-flex align-items-center"><?php esc_html_e('Plugins Details', 'aiowc'); ?></h6>
     37                        <h6 class="mb-0 mt-2 d-flex align-items-center"><?php esc_html_e('Plugins ', 'aiowc'); ?></h6>
    3838                    </div>
    3939                    <div class="card-body d-flex flex-column">
     
    4444                            <div class="col-auto d-flex align-items-center pe-3 plugin_chart_data">
    4545                                <span class="dot bg-primary color" data-color="#ff6e00" style="background-color: #ff6e00 !important;"></span>
    46                                 <span class="title"><?php esc_html_e('Inactive Plugin', 'aiowc'); ?>&nbsp;</span>
     46                                <span class="title"><?php esc_html_e('Inactive Plugin', 'aiowc'); ?>&nbsp;</span>
    4747                                <span class="d-none d-md-inline-block d-lg-none d-xxl-inline-block value"><?php echo esc_html($inactive_plugins_count); ?></span>
    4848                            </div>
    4949                            <div class="col-auto d-flex align-items-center pe-3 plugin_chart_data">
    5050                                <span class="dot bg-info color" data-color="#00a6ff" style="background-color: #00a6ff !important;"></span>
    51                                 <span class="title"><?php esc_html_e('Active Plugin', 'aiowc'); ?>&nbsp;</span>
     51                                <span class="title"><?php esc_html_e('Active Plugin', 'aiowc'); ?>&nbsp;</span>
    5252                                <span class="d-none d-md-inline-block d-lg-none d-xxl-inline-block value"><?php echo esc_html($activePlugins); ?></span>
    5353                            </div>                       
     
    5959                <div class="card h-md-100 ecommerce-card-min-width">
    6060                    <div class="card-header pb-0">
    61                         <h6 class="mb-0 mt-2 d-flex align-items-center"><?php esc_html_e('Media File Details', 'aiowc'); ?></h6>
     61                        <h6 class="mb-0 mt-2 d-flex align-items-center"><?php esc_html_e('Media File', 'aiowc'); ?></h6>
    6262                    </div>
    6363                    <div class="card-body d-flex flex-column">
     
    6868                            <div class="col-auto d-flex align-items-center pe-3 media_chart_data">
    6969                                <span class="dot bg-primary color" data-color="#523759" style="background-color: #523759 !important;"></span>
    70                                 <span class="title"><?php esc_html_e('Use Media File', 'aiowc'); ?>&nbsp;</span>
     70                                <span class="title"><?php esc_html_e(' Media File', 'aiowc'); ?>&nbsp;</span>
    7171                                <span class="d-none d-md-inline-block d-lg-none d-xxl-inline-block value"><?php echo esc_html($use_media_count); ?></span>
    7272                            </div>
    7373                            <div class="col-auto d-flex align-items-center pe-3 media_chart_data">
    7474                                <span class="dot bg-info color" data-color="#9c5435" style="background-color: #9c5435 !important;"></span>
    75                                 <span class="title"><?php esc_html_e('All Media File', 'aiowc'); ?>&nbsp;</span>
    76                                 <span class="d-none d-md-inline-block d-lg-none d-xxl-inline-block value"><?php echo esc_html(array_sum((array)$total_media_count)); ?></span>
     75                                <span class="title"><?php esc_html_e(' Media File', 'aiowc'); ?>&nbsp;</span>
     76                                <span class="d-none d-md-inline-block d-lg-none d-xxl-inline-block value"><?php echo esc_html(array_sum((array)$total_media_count)); ?></span>
    7777                            </div>                       
    7878                        </div>
     
    8383                <div class="card h-md-100 ecommerce-card-min-width">
    8484                    <div class="card-header pb-0">
    85                         <h6 class="mb-0 mt-2 d-flex align-items-center"><?php esc_html_e('Theme Details', 'aiowc'); ?></h6>
     85                        <h6 class="mb-0 mt-2 d-flex align-items-center"><?php esc_html_e('Theme ', 'aiowc'); ?></h6>
    8686                    </div>
    8787                    <div class="card-body d-flex flex-column">
     
    9292                            <div class="col-auto d-flex align-items-center pe-3 theme_chart_data">
    9393                                <span class="dot bg-primary color" data-color="#00203f" style="background-color: #00203f !important;"></span>
    94                                 <span class="title"><?php esc_html_e('Inactive Theme', 'aiowc'); ?>&nbsp;</span>
     94                                <span class="title"><?php esc_html_e('Inactive Theme', 'aiowc'); ?>&nbsp;</span>
    9595                                <span class="d-none d-md-inline-block d-lg-none d-xxl-inline-block value"><?php echo esc_html($inactive_themes_count); ?></span>
    9696                            </div>
    9797                            <div class="col-auto d-flex align-items-center pe-3 theme_chart_data">
    9898                                <span class="dot bg-info color" data-color="#adf0d1" style="background-color: #adf0d1 !important;"></span>
    99                                 <span class="title"><?php esc_html_e('Total Theme', 'aiowc'); ?>&nbsp;</span>
    100                                 <span class="d-none d-md-inline-block d-lg-none d-xxl-inline-block value"><?php echo esc_html($all_themes); ?></span>
     99                                <span class="title"><?php esc_html_e(' Theme', 'aiowc'); ?>&nbsp;</span>
     100                                <span class="d-none d-md-inline-block d-lg-none d-xxl-inline-block value"><?php echo esc_html($all_themes); ?></span>
    101101                            </div>                       
    102102                        </div>
     
    109109                <div class="card h-md-100 ecommerce-card-min-width">
    110110                    <div class="card-header pb-0">
    111                         <h6 class="mb-0 mt-2 d-flex align-items-center"><?php esc_html_e('Data Table Details', 'aiowc'); ?></h6>
     111                        <h6 class="mb-0 mt-2 d-flex align-items-center"><?php esc_html_e('Data', 'aiowc'); ?></h6>
    112112                    </div>
    113113                    <div class="card-body d-flex flex-column">
  • itpathsolutions-media-cleaner-and-database-optimizer/trunk/admin/partials/aiowc-admin-table-display.php

    r3039192 r3054358  
    8282        <div class="row mt-4">
    8383            <div class="d-flex justify-content-between align-items-center">
    84                 <h5><?php esc_html_e('All Database Details', 'aiowc');?></h5>
     84                <h5><?php esc_html_e('', 'aiowc');?></h5>
    8585                <div class="cleaner_optimize_wrapper">
    8686                    <div class="clean_table">
  • itpathsolutions-media-cleaner-and-database-optimizer/trunk/admin/partials/aiowc-media-display.php

    r3039192 r3054358  
    2727                              <thead class="bg-body-tertiary">
    2828                                <tr class="font-sans-serif">
    29                                     <th><a href="javascript:;" class="all_delete_media" style="display: none;"><?php esc_html_e('Delete','aiowc'); ?></a></th>
    30                                     <th class="text-900 fw-medium sort pe-1 align-middle"><?php esc_html_e('Image','aiowc'); ?></th>
    31                                     <th class="text-900 fw-medium sort pe-1 align-middle file_name_title"><?php esc_html_e('File Name','aiowc'); ?></th>
    32                                     <th class="text-900 fw-medium sort pe-1 align-middle"><?php esc_html_e('File Size','aiowc'); ?></th>
    33                                     <th class="text-900 fw-medium sort pe-1 align-middle"><?php esc_html_e('File Count','aiowc'); ?></th>
    34                                     <th class="text-900 fw-medium sort pe-1 align-middle img_size_list"><?php esc_html_e('Image List','aiowc'); ?></th>
     29                                    <th><a href="javascript:;" class="all_delete_media" style="display: none;"><svg xmlns="http://www.w3.org/2000/svg" width="25" height="25" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16" />
     30                                                </svg></a></th>
     31                                    <th class="text-900 fw-medium sort pe-1 align-middle sort-disabled"><?php esc_html_e('Media','aiowc'); ?></th>
     32                                    <th class="text-900 fw-medium sort pe-1 align-middle file_name_title"><?php esc_html_e('Media Name','aiowc'); ?></th>
     33                                    <th class="text-900 fw-medium sort pe-1 align-middle sort-disabled"><?php esc_html_e('Media Size','aiowc'); ?></th>
     34                                    <th class="text-900 fw-medium sort pe-1 align-middle"><?php esc_html_e('Media Count','aiowc'); ?></th>
     35                                    <th class="text-900 fw-medium sort pe-1 align-middle img_size_list"><?php esc_html_e('Media Size Lists','aiowc'); ?></th>
    3536                                    <th class="text-900 fw-medium sort pe-1 align-middle"><?php esc_html_e('Used In','aiowc'); ?></th>
    36                                     <th class="text-900 fw-medium sort pe-1 align-middle data-table-row-action"><?php esc_html_e('Action','aiowc'); ?></th>
     37                                    <th class="text-900 fw-medium sort pe-1 align-middle data-table-row-action"><?php esc_html_e('Action','aiowc'); ?></th>
    3738                                </tr>
    3839                              </thead>
     
    137138                                            </td>
    138139                                            <td class="align-middle title desc">
    139                                                 <a href="javascript:void(0)" class="delete-item-button" data-media_id="<?php echo esc_attr( $id ); ?>"><?php esc_html_e('Delete','aiowc'); ?></a>
     140                                                <a href="javascript:void(0)" class="delete-item-button" data-media_id="<?php echo esc_attr( $id ); ?>"><svg xmlns="http://www.w3.org/2000/svg" width="25" height="25" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16" />
     141                                                </svg></a>
    140142                                            </td>
    141143                                        </tr>
  • itpathsolutions-media-cleaner-and-database-optimizer/trunk/aiowc.php

    r3039205 r3054358  
    1717 * Plugin URI:        https://wordpress.org/plugins/itpathsolutions-media-cleaner-and-database-optimizer/
    1818 * Description:       The most powerful tool for clearing unused media from your website and optimizing your database to boost site performance.
    19  * Version:           1.0.0
     19 * Version:           1.0.
    2020 * Author:            IT Path Solutions
    2121 * Author URI:        https://www.itpathsolutions.com/
     
    3636 * Rename this for your plugin and update it as you release new versions.
    3737 */
    38 define( 'AIOWC_VERSION', '1.0.0' );
     38define( 'AIOWC_VERSION', '1.0.' );
    3939
    4040define( 'AIOWC_PLUGIN_BASENAME', basename( dirname( __FILE__ ) ) . '/' . basename( __FILE__ ) );
Note: See TracChangeset for help on using the changeset viewer.