Plugin Directory

Changeset 3110065

Timestamp:
06/30/2024 06:14:38 PM (5 weeks ago)
Author:
nhrrob
Message:

Update to version 1.0.2 from GitHub

Location:
nhrrob-options-table-manager
Files:
10 edited
1 copied

Legend:

Unmodified
Added
Removed
  • nhrrob-options-table-manager/tags/1.0.2/assets/css/admin.out.css

    r3107726 r3110065  
    602602}
    603603
    604 .w-full {
    605   width: 100%;
    606 }
    607 
    608604.min-w-full {
    609605  min-width: 100%;
    610 }
    611 
    612 .table-auto {
    613   table-layout: auto;
    614606}
    615607
     
    629621}
    630622
     623
     624
     625
     626
    631627.whitespace-nowrap {
    632628  white-space: nowrap;
    633629}
    634630
    635 .border {
    636   border-width: 1px;
     631.b {
     632  ;
    637633}
    638634
     
    652648}
    653649
     650
     651
     652
     653
     654
    654655.py-2 {
    655656  padding-top: 0.5rem;
     
    657658}
    658659
     660
     661
     662
     663
     664
     665
     666
     667
     668
     669
    659670.py-8 {
    660671  padding-top: 2rem;
     
    662673}
    663674
    664 .px-6 {
    665   padding-left: 1.5rem;
    666   padding-right: 1.5rem;
    667 }
    668 
    669 .py-3 {
    670   padding-top: 0.75rem;
    671   padding-bottom: 0.75rem;
    672 }
    673 
    674 .py-4 {
    675   padding-top: 1rem;
    676   padding-bottom: 1rem;
    677 }
    678 
    679675.text-left {
    680676  text-align: left;
     
    686682}
    687683
     684
     685
     686
     687
     688
    688689.text-xs {
    689690  font-size: 0.75rem;
    690691  line-height: 1rem;
    691 }
    692 
    693 .text-sm {
    694   font-size: 0.875rem;
    695   line-height: 1.25rem;
    696692}
    697693
  • nhrrob-options-table-manager/tags/1.0.2/includes/Admin.php

    r3107726 r3110065  
    66 * The admin class
    77 */
    8 class Admin {
     8class Admin {
    99
    1010    /**
     
    1212     */
    1313    function __construct() {
     14
     15
    1416        $this->dispatch_actions();
    1517        new Admin\Menu( );
     
    2224     */
    2325    public function dispatch_actions( ) {
    24         //
     26        add_filter('plugin_action_links', array($this, 'plugin_actions_links'), 10, 2);
     27    }
     28
     29    /**
     30     * Add settings page link on plugins page
     31     *
     32     * @param array $links
     33     * @param string $file
     34     *
     35     * @return array
     36     * @since 1.0.1
     37     */
     38    public function plugin_actions_links($links, $file) {
     39        $nhrotm_plugin = plugin_basename(NHROTM_FILE);
     40
     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'));
     43        }
     44
     45        return $links;
    2546    }
    2647}
  • nhrrob-options-table-manager/tags/1.0.2/includes/views/admin/settings/index.php

    r3107726 r3110065  
    4040        ?>
    4141            <tr>
    42                 <td class="px-6 py-4 whitespace-nowrap nowrap text-sm text-gray-500"><label for="<?php echo esc_attr( $name ); ?>"><?php echo esc_html($option_name); ?></label></td>
    43                 <td class="px-6 py-4 whitespace-nowrap nowrap text-sm text-gray-500">
     42                <td class="px-6 py-4 text-sm text-gray-500"><label for="<?php echo esc_attr( $name ); ?>"><?php echo esc_html($option_name); ?></label></td>
     43                <td class="px-6 py-4 text-sm text-gray-500">
    4444                    <?php if (str_contains($value, "\n")) : ?>
    4545                        <p class="<?php echo esc_attr( $class ); ?>" id="<?php echo esc_attr( $name ); ?>"><?php echo esc_textarea($value); ?></p>
     
    4848                    <?php endif; ?>
    4949                </td>
    50                 <td class="px-6 py-4 whitespace-nowrap nowrap text-sm text-gray-500"> Yes <?php //echo esc_html($option->autoload); ?> </td>
     50                <td class="px-6 py-4 text-sm text-gray-500"> Yes <?php //echo esc_html($option->autoload); ?> </td>
    5151            </tr>
    5252        <?php endforeach; ?>
  • nhrrob-options-table-manager/tags/1.0.2/nhrrob-options-table-manager.php

    r3107726 r3110065  
    55 * Description: Clean DataTable view of wp-options table to make decisions and boost your site performance!
    66 * Author: Nazmul Hasan Robin
    7  * Version: 1.0.1
     7 * Version: 1.0.
    88 * Requires at least: 6.0
    99 * Requires PHP: 7.4
     
    2727     * @var string
    2828     */
    29     const nhrotm_version = '1.0.1';
     29    const nhrotm_version = '1.0.';
    3030
    3131    /**
  • nhrrob-options-table-manager/tags/1.0.2/readme.txt

    r3107731 r3110065  
    55Tested up to: 6.5
    66Requires PHP: 7.4
    7 Stable tag: 1.0.1
     7Stable tag: 1.0.
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    6161== Changelog ==
    6262
     63
     64
     65
     66
     67
    6368= 1.0.1 - 26/06/2024 =
    6469- Prefix updated
  • nhrrob-options-table-manager/trunk/assets/css/admin.out.css

    r3107726 r3110065  
    602602}
    603603
    604 .w-full {
    605   width: 100%;
    606 }
    607 
    608604.min-w-full {
    609605  min-width: 100%;
    610 }
    611 
    612 .table-auto {
    613   table-layout: auto;
    614606}
    615607
     
    629621}
    630622
     623
     624
     625
     626
    631627.whitespace-nowrap {
    632628  white-space: nowrap;
    633629}
    634630
    635 .border {
    636   border-width: 1px;
     631.b {
     632  ;
    637633}
    638634
     
    652648}
    653649
     650
     651
     652
     653
     654
    654655.py-2 {
    655656  padding-top: 0.5rem;
     
    657658}
    658659
     660
     661
     662
     663
     664
     665
     666
     667
     668
     669
    659670.py-8 {
    660671  padding-top: 2rem;
     
    662673}
    663674
    664 .px-6 {
    665   padding-left: 1.5rem;
    666   padding-right: 1.5rem;
    667 }
    668 
    669 .py-3 {
    670   padding-top: 0.75rem;
    671   padding-bottom: 0.75rem;
    672 }
    673 
    674 .py-4 {
    675   padding-top: 1rem;
    676   padding-bottom: 1rem;
    677 }
    678 
    679675.text-left {
    680676  text-align: left;
     
    686682}
    687683
     684
     685
     686
     687
     688
    688689.text-xs {
    689690  font-size: 0.75rem;
    690691  line-height: 1rem;
    691 }
    692 
    693 .text-sm {
    694   font-size: 0.875rem;
    695   line-height: 1.25rem;
    696692}
    697693
  • nhrrob-options-table-manager/trunk/includes/Admin.php

    r3107726 r3110065  
    66 * The admin class
    77 */
    8 class Admin {
     8class Admin {
    99
    1010    /**
     
    1212     */
    1313    function __construct() {
     14
     15
    1416        $this->dispatch_actions();
    1517        new Admin\Menu( );
     
    2224     */
    2325    public function dispatch_actions( ) {
    24         //
     26        add_filter('plugin_action_links', array($this, 'plugin_actions_links'), 10, 2);
     27    }
     28
     29    /**
     30     * Add settings page link on plugins page
     31     *
     32     * @param array $links
     33     * @param string $file
     34     *
     35     * @return array
     36     * @since 1.0.1
     37     */
     38    public function plugin_actions_links($links, $file) {
     39        $nhrotm_plugin = plugin_basename(NHROTM_FILE);
     40
     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'));
     43        }
     44
     45        return $links;
    2546    }
    2647}
  • nhrrob-options-table-manager/trunk/includes/views/admin/settings/index.php

    r3107726 r3110065  
    4040        ?>
    4141            <tr>
    42                 <td class="px-6 py-4 whitespace-nowrap nowrap text-sm text-gray-500"><label for="<?php echo esc_attr( $name ); ?>"><?php echo esc_html($option_name); ?></label></td>
    43                 <td class="px-6 py-4 whitespace-nowrap nowrap text-sm text-gray-500">
     42                <td class="px-6 py-4 text-sm text-gray-500"><label for="<?php echo esc_attr( $name ); ?>"><?php echo esc_html($option_name); ?></label></td>
     43                <td class="px-6 py-4 text-sm text-gray-500">
    4444                    <?php if (str_contains($value, "\n")) : ?>
    4545                        <p class="<?php echo esc_attr( $class ); ?>" id="<?php echo esc_attr( $name ); ?>"><?php echo esc_textarea($value); ?></p>
     
    4848                    <?php endif; ?>
    4949                </td>
    50                 <td class="px-6 py-4 whitespace-nowrap nowrap text-sm text-gray-500"> Yes <?php //echo esc_html($option->autoload); ?> </td>
     50                <td class="px-6 py-4 text-sm text-gray-500"> Yes <?php //echo esc_html($option->autoload); ?> </td>
    5151            </tr>
    5252        <?php endforeach; ?>
  • nhrrob-options-table-manager/trunk/nhrrob-options-table-manager.php

    r3107726 r3110065  
    55 * Description: Clean DataTable view of wp-options table to make decisions and boost your site performance!
    66 * Author: Nazmul Hasan Robin
    7  * Version: 1.0.1
     7 * Version: 1.0.
    88 * Requires at least: 6.0
    99 * Requires PHP: 7.4
     
    2727     * @var string
    2828     */
    29     const nhrotm_version = '1.0.1';
     29    const nhrotm_version = '1.0.';
    3030
    3131    /**
  • nhrrob-options-table-manager/trunk/readme.txt

    r3107731 r3110065  
    55Tested up to: 6.5
    66Requires PHP: 7.4
    7 Stable tag: 1.0.1
     7Stable tag: 1.0.
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    6161== Changelog ==
    6262
     63
     64
     65
     66
     67
    6368= 1.0.1 - 26/06/2024 =
    6469- Prefix updated
Note: See TracChangeset for help on using the changeset viewer.