Changeset 3112816
- Timestamp:
- 07/05/2024 03:03:36 AM (5 weeks ago)
- Location:
- nhrrob-options-table-manager
- Files:
-
- 14 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
nhrrob-options-table-manager/tags/1.0.3/assets/css/admin.css
r3107726 r3112816 2 2 @tailwind components; 3 3 @tailwind utilities; 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 -
nhrrob-options-table-manager/tags/1.0.3/assets/css/admin.out.css
r3110065 r3112816 621 621 } 622 622 623 .whitespace-normal {624 white-space: normal;625 }626 627 .whitespace-nowrap {628 white-space: nowrap;629 }630 631 623 .break-words { 632 624 overflow-wrap: break-word; … … 707 699 --tw-text-opacity: 1; 708 700 color: rgb(107 114 128 / var(--tw-text-opacity)); 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 709 827 } 710 828 -
nhrrob-options-table-manager/tags/1.0.3/assets/js/admin.js
r3107726 r3112816 1 (function ($){ 2 console.log('alright!!'); 3 4 $( document ).ready(function() { 5 let table = new DataTable('.nhrotm-options-table-manager .form-table'); 6 console.log(table); 1 (function ($) { 2 $(document).ready(function() { 3 let table = $('.nhrotm-options-table-manager .form-table').DataTable({ 4 "paging": true, // Enable pagination 5 "searching": true, // Enable search functionality 6 "ordering": true, // Enable column ordering 7 "info": true // Show table information (e.g., "Showing 1 to 10 of 20 entries") 8 }); 7 9 }); 8 10 })(jQuery); -
nhrrob-options-table-manager/tags/1.0.3/includes/Admin.php
r3110065 r3112816 40 40 41 41 if ($file == $nhrotm_plugin && current_user_can('manage_options')) { 42 $links[] = sprintf('<a href="%s">%s</a>', admin_url(" admin.php?page={$this->page_slug}"), __('Option Table', 'nhrrob-options-table-manager'));42 $links[] = sprintf('<a href="%s">%s</a>', admin_url(".php?page={$this->page_slug}"), __('Option Table', 'nhrrob-options-table-manager')); 43 43 } 44 44 -
nhrrob-options-table-manager/tags/1.0.3/includes/views/admin/settings/index.php
r3110065 r3112816 4 4 <h3 class="text-2xl mb-4"><?php echo esc_html(get_admin_page_title()); ?></h3> 5 5 6 <table class=" form-table min-w-full divide-y divide-gray-200 overflow-x-auto">6 <table class="form-table min-w-full divide-y divide-gray-200 overflow-x-auto"> 7 7 <thead class="bg-gray-50"> 8 8 <tr> … … 30 30 $disabled = true; 31 31 $class = 'all-options disabled'; 32 33 34 35 36 37 38 39 40 41 42 43 32 44 } 33 45 } else { … … 38 50 39 51 $name = esc_attr($option_name); 52 53 54 55 40 56 ?> 41 57 <tr> … … 79 95 // Display results 80 96 ?> 81 <h3 class="text-2xl mb-4"><?php esc_html_e( 'Prefix Count', 'nhrrob-options-table-manager'); ?></h3> 82 <?php 83 echo '<ul>'; 84 foreach ($prefix_counts as $prefix => $count) { 85 if( $count > 5 ){ 86 echo '<li>' . esc_html( $prefix ) . ': ' . esc_html( $count ) . '</li>'; 87 } 88 } 89 echo '</ul>'; 90 91 ?> 97 <div class="prefix-count-container"> 98 <h3 class="text-2xl mb-4"><?php esc_html_e( 'Prefix Count', 'nhrrob-options-table-manager'); ?></h3> 99 <ul class="prefix-count-list"> 100 <?php foreach ($prefix_counts as $prefix => $count) : ?> 101 <?php if ($count > 5) : ?> 102 <li class="prefix-count-item"> 103 <span class="prefix"><?php echo esc_html($prefix); ?></span> 104 <span class="count"><?php echo esc_html($count); ?></span> 105 </li> 106 <?php endif; ?> 107 <?php endforeach; ?> 108 </ul> 109 </div> 92 110 </div> -
nhrrob-options-table-manager/tags/1.0.3/nhrrob-options-table-manager.php
r3110065 r3112816 5 5 * Description: Clean DataTable view of wp-options table to make decisions and boost your site performance! 6 6 * Author: Nazmul Hasan Robin 7 * Version: 1.0.2 7 * Author URI: https://profiles.wordpress.org/nhrrob/ 8 * Version: 1.0.3 8 9 * Requires at least: 6.0 9 10 * Requires PHP: 7.4 … … 27 28 * @var string 28 29 */ 29 const nhrotm_version = '1.0. 2';30 const nhrotm_version = '1.0.'; 30 31 31 32 /** -
nhrrob-options-table-manager/tags/1.0.3/readme.txt
r3110065 r3112816 1 1 === NHR Options Table Manager === 2 2 Contributors: nhrrob 3 Tags: options table, options manager, options table analytics, wp options, wp optimization3 Tags: 4 4 Requires at least: 6.0 5 5 Tested up to: 6.5 6 6 Requires PHP: 7.4 7 Stable tag: 1.0. 27 Stable tag: 1.0. 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 12 12 13 13 == Description == 14 15 14 16 15 17 Are you fed up with the size of wp otions table? You are not alone! … … 61 63 == Changelog == 62 64 65 66 67 68 69 70 71 72 73 74 63 75 = 1.0.2 - 30/06/2024 = 64 76 - Added: Settings page link on plugins page. Props @himadree12 -
nhrrob-options-table-manager/trunk/assets/css/admin.css
r3107726 r3112816 2 2 @tailwind components; 3 3 @tailwind utilities; 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 -
nhrrob-options-table-manager/trunk/assets/css/admin.out.css
r3110065 r3112816 621 621 } 622 622 623 .whitespace-normal {624 white-space: normal;625 }626 627 .whitespace-nowrap {628 white-space: nowrap;629 }630 631 623 .break-words { 632 624 overflow-wrap: break-word; … … 707 699 --tw-text-opacity: 1; 708 700 color: rgb(107 114 128 / var(--tw-text-opacity)); 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 709 827 } 710 828 -
nhrrob-options-table-manager/trunk/assets/js/admin.js
r3107726 r3112816 1 (function ($){ 2 console.log('alright!!'); 3 4 $( document ).ready(function() { 5 let table = new DataTable('.nhrotm-options-table-manager .form-table'); 6 console.log(table); 1 (function ($) { 2 $(document).ready(function() { 3 let table = $('.nhrotm-options-table-manager .form-table').DataTable({ 4 "paging": true, // Enable pagination 5 "searching": true, // Enable search functionality 6 "ordering": true, // Enable column ordering 7 "info": true // Show table information (e.g., "Showing 1 to 10 of 20 entries") 8 }); 7 9 }); 8 10 })(jQuery); -
nhrrob-options-table-manager/trunk/includes/Admin.php
r3110065 r3112816 40 40 41 41 if ($file == $nhrotm_plugin && current_user_can('manage_options')) { 42 $links[] = sprintf('<a href="%s">%s</a>', admin_url(" admin.php?page={$this->page_slug}"), __('Option Table', 'nhrrob-options-table-manager'));42 $links[] = sprintf('<a href="%s">%s</a>', admin_url(".php?page={$this->page_slug}"), __('Option Table', 'nhrrob-options-table-manager')); 43 43 } 44 44 -
nhrrob-options-table-manager/trunk/includes/views/admin/settings/index.php
r3110065 r3112816 4 4 <h3 class="text-2xl mb-4"><?php echo esc_html(get_admin_page_title()); ?></h3> 5 5 6 <table class=" form-table min-w-full divide-y divide-gray-200 overflow-x-auto">6 <table class="form-table min-w-full divide-y divide-gray-200 overflow-x-auto"> 7 7 <thead class="bg-gray-50"> 8 8 <tr> … … 30 30 $disabled = true; 31 31 $class = 'all-options disabled'; 32 33 34 35 36 37 38 39 40 41 42 43 32 44 } 33 45 } else { … … 38 50 39 51 $name = esc_attr($option_name); 52 53 54 55 40 56 ?> 41 57 <tr> … … 79 95 // Display results 80 96 ?> 81 <h3 class="text-2xl mb-4"><?php esc_html_e( 'Prefix Count', 'nhrrob-options-table-manager'); ?></h3> 82 <?php 83 echo '<ul>'; 84 foreach ($prefix_counts as $prefix => $count) { 85 if( $count > 5 ){ 86 echo '<li>' . esc_html( $prefix ) . ': ' . esc_html( $count ) . '</li>'; 87 } 88 } 89 echo '</ul>'; 90 91 ?> 97 <div class="prefix-count-container"> 98 <h3 class="text-2xl mb-4"><?php esc_html_e( 'Prefix Count', 'nhrrob-options-table-manager'); ?></h3> 99 <ul class="prefix-count-list"> 100 <?php foreach ($prefix_counts as $prefix => $count) : ?> 101 <?php if ($count > 5) : ?> 102 <li class="prefix-count-item"> 103 <span class="prefix"><?php echo esc_html($prefix); ?></span> 104 <span class="count"><?php echo esc_html($count); ?></span> 105 </li> 106 <?php endif; ?> 107 <?php endforeach; ?> 108 </ul> 109 </div> 92 110 </div> -
nhrrob-options-table-manager/trunk/nhrrob-options-table-manager.php
r3110065 r3112816 5 5 * Description: Clean DataTable view of wp-options table to make decisions and boost your site performance! 6 6 * Author: Nazmul Hasan Robin 7 * Version: 1.0.2 7 * Author URI: https://profiles.wordpress.org/nhrrob/ 8 * Version: 1.0.3 8 9 * Requires at least: 6.0 9 10 * Requires PHP: 7.4 … … 27 28 * @var string 28 29 */ 29 const nhrotm_version = '1.0. 2';30 const nhrotm_version = '1.0.'; 30 31 31 32 /** -
nhrrob-options-table-manager/trunk/readme.txt
r3110065 r3112816 1 1 === NHR Options Table Manager === 2 2 Contributors: nhrrob 3 Tags: options table, options manager, options table analytics, wp options, wp optimization3 Tags: 4 4 Requires at least: 6.0 5 5 Tested up to: 6.5 6 6 Requires PHP: 7.4 7 Stable tag: 1.0. 27 Stable tag: 1.0. 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 12 12 13 13 == Description == 14 15 14 16 15 17 Are you fed up with the size of wp otions table? You are not alone! … … 61 63 == Changelog == 62 64 65 66 67 68 69 70 71 72 73 74 63 75 = 1.0.2 - 30/06/2024 = 64 76 - Added: Settings page link on plugins page. Props @himadree12
Note: See TracChangeset
for help on using the changeset viewer.