Changeset 3065191
- Timestamp:
- 04/05/2024 05:28:13 AM (4 months ago)
- Location:
- itpathsolutions-media-cleaner-and-database-optimizer
- Files:
-
- 45 added
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
itpathsolutions-media-cleaner-and-database-optimizer/trunk/README.txt
r3054358 r3065191 3 3 Tags: delete, images, media, files, database, database optimizer, media cleaner 4 4 Requires at least: 6.2 5 Tested up to: 6. 45 Tested up to: 6. 6 6 Requires PHP: 7.4 7 Stable tag: 1.0. 17 Stable tag: 1.0. 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 21 21 == Features == 22 22 1. Media Cleaner 23 24 23 - View all media files utilized on your site. 25 24 - Easily clear unused media not associated with any posts or pages. … … 27 26 - Detect media usage across your website effortlessly. 28 27 - Save time by skipping the cleanup process for media files that are in use. 28 29 29 2. Database Cleaner 30 30 … … 52 52 3. You will find WP Optimizer in your WordPress admin screen. 53 53 54 55 56 57 58 59 60 54 61 == Changelog == 55 62 63 64 65 66 56 67 = 1.0.1 = 57 *New - Media table column sortable58 *New - Multiple media delete59 *Fix - Layout improve and fix changes68 New - Media table column sortable 69 New - Multiple media delete 70 Fix - Layout improve and fix changes 60 71 61 72 = 1.0.0 = 62 73 * Initial Release 63 -
itpathsolutions-media-cleaner-and-database-optimizer/trunk/admin/class-aiowc-admin.php
r3039192 r3065191 143 143 wp_enqueue_script( $this->plugin_name.'-chart', plugin_dir_url( __FILE__ ) . 'js/Chart.min.js', array(), '1.0.0',true); 144 144 145 wp_enqueue_script( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'js/aiowc-admin.js', array( ' jquery' ), $this->version, false );145 wp_enqueue_script( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'js/aiowc-admin.js', array( '' ), $this->version, false ); 146 146 147 147 wp_localize_script( $this->plugin_name, 'ajaxObj', array( 'ajaxurl' => admin_url('admin-ajax.php'))); -
itpathsolutions-media-cleaner-and-database-optimizer/trunk/admin/css/aiowc-admin.css
r3054358 r3065191 34 34 35 35 /*added by j dashboard*/ 36 .aiowc .card, #pluginChart,#themeChart, #allChart, #mediaChart {36 .aiowc .card, #pluginChart,#themeChart, #allChart, #mediaChart { 37 37 padding: 0; 38 38 } … … 53 53 54 54 .aiowc .dash-stats-list h4 { 55 color: # 696cff;55 color: #; 56 56 font-size: 21px; 57 57 font-weight: 700; … … 61 61 } 62 62 .aiowc .dash-stats-list p { 63 color: # 777;63 color: #; 64 64 font-size: 14px; 65 65 font-weight: 600; … … 88 88 transition: all .2s ease-in-out; 89 89 z-index: 1; 90 color: # c3c4ff;90 color: #; 91 91 } 92 92 … … 107 107 } 108 108 .clean_table .button-primary { 109 background: red;110 border: red;109 background: ; 110 border: ; 111 111 padding: 10px 40px; 112 112 font-weight: 500; 113 113 letter-spacing: 1px; 114 114 } 115 116 117 115 118 body.all-in-one-wp-optimizer_page_view-optimize { 116 119 background: #edf2f9; … … 118 121 119 122 .button-wiggle { 120 padding: 1 5px 45px;121 background: # 2271b1;123 padding: 15px; 124 background: #; 122 125 color: #fff; 123 126 border-radius: 40px; … … 130 133 } 131 134 .button-wiggle:hover { 132 background: var(--falcon-heading-color);135 background: ; 133 136 color: #fff; 134 137 text-decoration: none; … … 180 183 } 181 184 #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; 185 color: #fff; 186 font-weight: 600; 187 text-transform: uppercase; 188 display: block; 187 189 transition: .3s; 188 190 } … … 205 207 display: flex; 206 208 align-items: center; 209 207 210 } 208 211 #media_list_filter { 209 padding: 30px 15px 015px;212 padding: 15px; 210 213 } 211 214 #media_list_length { 212 padding: 15px 15px 0 15px; 215 padding: 15px 15px 10px 15px; 216 } 217 #media_list_filter input { 218 margin-left: 5px; 213 219 } 214 220 #clean_and_optimizer_wrapper .modal-dialog{ … … 227 233 max-width: 100px; 228 234 } 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 -
itpathsolutions-media-cleaner-and-database-optimizer/trunk/admin/js/aiowc-admin.js
r3054358 r3065191 109 109 110 110 /* 111 * Plugin Chart Detail 111 * Plugin Chart Detail 112 112 */ 113 if(jQuery('.plugin_chart_data, . theme_chart_data, .media_chart_data').length){113 if(jQuery('.plugin_chart_data, ._chart_data').length){ 114 114 115 115 // Plugin Chart … … 155 155 }); 156 156 }); 157 158 pieChart(theme_array, 'themeChart'); 157 pieChart(theme_array, 'themeChart'); 158 159 159 160 160 161 function pieChart(dynamicChartData, classname) { 161 162 var oilCanvas = document.getElementById(classname); 162 /*Chart.defaults.global.defaultFontFamily = "Lato";*/163 163 Chart.defaults.global.defaultFontSize = 14; 164 164 var oilData = { … … 211 211 function allChart(dynamicChartData, classname) { 212 212 var oilCanvas = document.getElementById(classname); 213 /*Chart.defaults.global.defaultFontFamily = "Lato";*/214 213 Chart.defaults.global.defaultFontSize = 14; 215 214 var oilData = { … … 236 235 }); 237 236 } 238 /*var table_array = [];239 jQuery('.table_list_data').each(function() {240 var label = jQuery(this).find('.title').text();241 var yValue = parseFloat(jQuery(this).find('.value').text());242 var color = generateRandomColor();243 if(yValue != 0){244 var rowData = {245 y: yValue,246 label: label,247 color: color248 };249 table_array.push(rowData);250 }251 252 });253 254 allChart(table_array);255 256 function allChart(values) {257 var allChart = new CanvasJS.Chart("allChart", {258 backgroundColor: "white",259 colorSet: "colorSet3",260 title: {261 fontFamily: "Verdana",262 fontSize: 25,263 fontWeight: "normal",264 },265 animationEnabled: true,266 legend: {267 verticalAlign: "bottom",268 horizontalAlign: "center"269 },270 theme: "theme2",271 data: [{272 indexLabelFontSize: 15,273 indexLabelFontFamily: "Monospace",274 indexLabelFontColor: "darkgrey",275 indexLabelLineColor: "darkgrey",276 indexLabelPlacement: "outside",277 type: "column",278 showInLegend: false,279 legendMarkerColor: "grey",280 dataPoints: values281 }]282 });283 allChart.render();284 }*/285 237 } 286 238 … … 389 341 390 342 } 343 344 345 391 346 }); 392 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 393 436 })( jQuery ); -
itpathsolutions-media-cleaner-and-database-optimizer/trunk/admin/partials/aiowc-admin-display.php
r3054358 r3065191 29 29 <div id="clean_and_optimizer_wrapper" class="aiowc"> 30 30 <div class="wrap"> 31 <h2><?php esc_html_e('Media Cleaner and Database Optimizer', 'aiowc'); ?></h2> 32 <p class="text-center"><a href="<?php echo esc_url(menu_page_url('view-optimize', false)); ?>" class="btn-start button-wiggle"><?php esc_html_e('Start Now', 'aiowc'); ?></a></p> 31 <div class="mailtitle"> 32 <h2><?php esc_html_e('Media Cleaner and Database Optimizer', 'aiowc'); ?></h2> 33 <a href="<?php echo esc_url(menu_page_url('view-optimize', false)); ?>" class="btn-start button-wiggle"><?php esc_html_e('Start Optimization', 'aiowc'); ?></a> 34 </div> 35 <?php 36 $wp_version = get_bloginfo('version'); 37 $php_version = phpversion();?> 38 <p class="php_version"><span>Wordpress Current Version: <strong><?php echo $wp_version;?></strong></span><span>PHP Current Version: <strong><?php echo $php_version;?></strong></span></p> 33 39 <div class="row g-4 mb-4"> 34 <div class="col-md- 4 col-xxl-4">40 <div class="col-md-"> 35 41 <div class="card h-md-100 ecommerce-card-min-width"> 36 42 <div class="card-header pb-0"> … … 43 49 <div class="row fs-10 fw-semi-bold text-500 g-0 pt-4 pie_chart"> 44 50 <div class="col-auto d-flex align-items-center pe-3 plugin_chart_data"> 45 <span class="dot bg-primary color" data-color="# ff6e00" style="background-color: #ff6e00 !important;"></span>51 <span class="dot bg-primary color" data-color="#0 !important;"></span> 46 52 <span class="title"><?php esc_html_e('Inactive Plugins', 'aiowc'); ?> </span> 47 53 <span class="d-none d-md-inline-block d-lg-none d-xxl-inline-block value"><?php echo esc_html($inactive_plugins_count); ?></span> … … 56 62 </div> 57 63 </div> 58 <div class="col-md- 4 col-xxl-4">64 <div class="col-md-"> 59 65 <div class="card h-md-100 ecommerce-card-min-width"> 60 66 <div class="card-header pb-0"> … … 68 74 <div class="col-auto d-flex align-items-center pe-3 media_chart_data"> 69 75 <span class="dot bg-primary color" data-color="#523759" style="background-color: #523759 !important;"></span> 70 <span class="title"><?php esc_html_e(' Occupied Media File', 'aiowc'); ?> </span>76 <span class="title"><?php esc_html_e('ed Media File', 'aiowc'); ?> </span> 71 77 <span class="d-none d-md-inline-block d-lg-none d-xxl-inline-block value"><?php echo esc_html($use_media_count); ?></span> 72 78 </div> 73 79 <div class="col-auto d-flex align-items-center pe-3 media_chart_data"> 74 80 <span class="dot bg-info color" data-color="#9c5435" style="background-color: #9c5435 !important;"></span> 75 <span class="title"><?php esc_html_e('Un occupied Media File', 'aiowc'); ?> </span>81 <span class="title"><?php esc_html_e('Uned Media File', 'aiowc'); ?> </span> 76 82 <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) - $use_media_count); ?></span> 77 83 </div> … … 80 86 </div> 81 87 </div> 82 <div class="col-md- 4 col-xxl-4">88 <div class="col-md-"> 83 89 <div class="card h-md-100 ecommerce-card-min-width"> 84 90 <div class="card-header pb-0"> … … 91 97 <div class="row fs-10 fw-semi-bold text-500 g-0 pt-4 pie_chart"> 92 98 <div class="col-auto d-flex align-items-center pe-3 theme_chart_data"> 93 <span class="dot bg-primary color" data-color="#00 203f" style="background-color: #00203f!important;"></span>99 <span class="dot bg-primary color" data-color="#00 !important;"></span> 94 100 <span class="title"><?php esc_html_e('Inactive Themes', 'aiowc'); ?> </span> 95 101 <span class="d-none d-md-inline-block d-lg-none d-xxl-inline-block value"><?php echo esc_html($inactive_themes_count); ?></span> 96 102 </div> 97 103 <div class="col-auto d-flex align-items-center pe-3 theme_chart_data"> 98 <span class="dot bg-info color" data-color="# adf0d1" style="background-color: #adf0d1!important;"></span>104 <span class="dot bg-info color" data-color="# !important;"></span> 99 105 <span class="title"><?php esc_html_e('Active Theme', 'aiowc'); ?> </span> 100 106 <span class="d-none d-md-inline-block d-lg-none d-xxl-inline-block value"><?php echo esc_html($all_themes - $inactive_themes_count); ?></span> 101 107 </div> 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 102 124 </div> 103 125 </div> -
itpathsolutions-media-cleaner-and-database-optimizer/trunk/admin/partials/aiowc-admin-table-display.php
r3054358 r3065191 24 24 <div id="clean_and_optimizer_wrapper" class="aiowc"> 25 25 <div class="wrap"> 26 <h1><?php esc_html_e('Database Optimizer', 'aiowc'); ?></h1> 27 26 <h1><?php esc_html_e('Advanced Database Optimizer', 'aiowc'); ?></h1> 28 27 <h2></h2> 29 28 <div class="row mt-4"> … … 89 88 <form method="post"> 90 89 <?php wp_nonce_field('aiowc_all_nonce','aiowc_all_nonce' ); ?> 91 <input type="hidden" name="type" value=" revision_cleaner_all"/>90 <input type="hidden" name="type" value="/> 92 91 <input type="submit" class="button-primary" value="<?php esc_attr_e('Delete All', 'aiowc'); ?>" /> 93 92 <div class="box" style="display: none;"> -
itpathsolutions-media-cleaner-and-database-optimizer/trunk/admin/partials/aiowc-media-display.php
r3054358 r3065191 3 3 <div id="clean_and_optimizer_wrapper" class="aiowc"> 4 4 <div class="wrap"> 5 <h1><?php esc_html_e(' Media Cleaner', 'aiowc'); ?></h1>5 <h1><?php esc_html_e('Media Cleaner', 'aiowc'); ?></h1> 6 6 <h2></h2> 7 7 -
itpathsolutions-media-cleaner-and-database-optimizer/trunk/aiowc.php
r3054358 r3065191 17 17 * Plugin URI: https://wordpress.org/plugins/itpathsolutions-media-cleaner-and-database-optimizer/ 18 18 * Description: The most powerful tool for clearing unused media from your website and optimizing your database to boost site performance. 19 * Version: 1.0. 119 * Version: 1.0. 20 20 * Author: IT Path Solutions 21 21 * Author URI: https://www.itpathsolutions.com/ … … 36 36 * Rename this for your plugin and update it as you release new versions. 37 37 */ 38 define( 'AIOWC_VERSION', '1.0. 1' );38 define( 'AIOWC_VERSION', '1.0.' ); 39 39 40 40 define( 'AIOWC_PLUGIN_BASENAME', basename( dirname( __FILE__ ) ) . '/' . basename( __FILE__ ) );
Note: See TracChangeset
for help on using the changeset viewer.