Plugin Directory

Changeset 3058080

Timestamp:
03/25/2024 08:49:47 AM (4 months ago)
Author:
xlthlx
Message:

Version 1.0.4

Location:
site-toolkit
Files:
39 added
7 edited

Legend:

Unmodified
Added
Removed
  • site-toolkit/trunk/.wp-env.json

    r2993746 r3058080  
    1818    "WP_DEBUG_LOG": true,
    1919    "WP_DEBUG_DISPLAY": false,
    20     "SCRIPT_DEBUG": true
     20    "SCRIPT_DEBUG": true,
     21    "ALTERNATE_WP_CRON": true
    2122  }
    2223}
  • site-toolkit/trunk/composer.json

    r2993746 r3058080  
    1919    "wptrt/wpthemereview": "^0.2.1",
    2020    "php-parallel-lint/php-parallel-lint": "^1.3.2",
    21     "wp-cli/i18n-command": "^2.4.1",
     21    "wp-cli/i18n-command": "^2..1",
    2222    "wpreadme2markdown/wp2md": "^4.0.2"
    2323  },
  • site-toolkit/trunk/package.json

    r2942395 r3058080  
    11{
    22  "devDependencies": {
    3     "@wordpress/env": "^8.4.0"
     3    "@wordpress/env": "^.0"
    44  }
    55}
  • site-toolkit/trunk/phpcs.xml.dist

    r2845968 r3058080  
    11<?xml version="1.0"?>
    2 <ruleset name="WordPress Theme Coding Standards">
    3     <!-- See https://github.com/squizlabs/PHP_CodeSniffer/wiki/Annotated-ruleset.xml -->
    4     <!-- See https://github.com/WordPress/WordPress-Coding-Standards -->
    5     <!-- See https://github.com/WPTRT/WPThemeReview -->
    6     <!-- See https://github.com/PHPCompatibility/PHPCompatibilityWP -->
     2<ruleset name="WordPress Plugin Coding Standards">
    73
    8     <!-- Set a description for this ruleset. -->
    9     <description>A custom set of code standard rules to check for WordPress themes.</description>
     4    <description>A custom set of code standard rules to check for WordPress plugins.</description>
    105
     6
     7
     8
     9
    1110
    12     <!--
    13     #############################################################################
    14     COMMAND LINE ARGUMENTS
    15     https://github.com/squizlabs/PHP_CodeSniffer/wiki/Annotated-ruleset.xml
    16     #############################################################################
    17     -->
    18 
    19     <!-- Pass some flags to PHPCS:
    20          p flag: Show progress of the run.
    21          s flag: Show sniff codes in all reports.
    22     -->
    23     <arg value="ps"/>
    24 
    25     <!-- Strip the filepaths down to the relevant bit. -->
    26     <arg name="basepath" value="./"/>
    27 
    28     <!-- Check up to 8 files simultaneously. -->
    29     <arg name="parallel" value="8"/>
    30 
    31     <!-- Check PHP files only. JavaScript and CSS files are checked separately using the @wordpress/scripts package. -->
    32     <arg name="extensions" value="php"/>
    33 
    34     <!-- Check all files in this directory and the directories below it. -->
    35     <file>.</file>
    36 
    37     <!-- Exclude patterns. -->
    38     <exclude-pattern>/vendor/*</exclude-pattern>
    39     <exclude-pattern>/node_modules/*</exclude-pattern>
    40 
    41 
    42     <!--
    43     #############################################################################
    44     USE THE WordPress AND THE Theme Review RULESET
    45     #############################################################################
    46     -->
     11    <arg value="sp"/>
     12    <arg name="basepath" value="."/>
     13    <arg name="colors"/>
     14    <arg name="extensions" value="php"/>
     15    <arg name="parallel" value="50"/>
    4716
    4817    <rule ref="WordPress">
    49         <!-- This rule does not apply here since the _s prefix should be changed by the theme author. -->
    5018        <exclude name="WordPress.NamingConventions.PrefixAllGlobals.ShortPrefixPassed"/>
    5119    </rule>
    52     <rule ref="WPThemeReview"/>
    5320
    54     <!--
    55     #############################################################################
    56     SNIFF SPECIFIC CONFIGURATION
    57     #############################################################################
    58     -->
     21    <arg name="cache" value="./phpcs.cache"/>
    5922
    60     <!-- Verify that the text_domain is set to the desired text-domain.
    61          Multiple valid text domains can be provided as a comma-delimited list. -->
     23    <rule ref="WordPress-Docs"/>
     24
    6225    <rule ref="WordPress.WP.I18n">
    6326        <properties>
    64             <property name="text_domain" type="array" value="site-toolkit"/>
     27            <property name="text_domain" type="array" value=""/>
    6528        </properties>
    6629    </rule>
    6730
    68     <!-- Removes check for deregister jquery. -->
    69     <rule ref="WPThemeReview.CoreFunctionality.NoDeregisterCoreScript">
    70        <severity>0</severity>
    71      </rule>
    72 
    73     <!-- Allow for theme specific exceptions to the file name rules based
    74          on the theme hierarchy. -->
    75     <rule ref="WordPress.Files.FileName">
    76         <properties>
    77             <property name="is_theme" value="false"/>
    78         </properties>
    79     </rule>
    80 
    81     <!-- Set the minimum supported WP version. This is used by several sniffs.
    82          The minimum version set here should be in line with the minimum WP version
    83          as set in the "Requires at least" tag in the readme.txt file. -->
    8431    <config name="minimum_supported_wp_version" value="5.9"/>
    8532
    8633    <rule ref="WordPress.Arrays.MultipleStatementAlignment">
    8734        <properties>
    88             <!-- No need to adjust alignment of large arrays when the item with the largest key is removed. -->
    8935            <property name="exact" value="false"/>
    90             <!-- Don't align multi-line items if ALL items in the array are multi-line. -->
    9136            <property name="alignMultilineItems" value="!=100"/>
    92             <!-- Array assignment operator should always be on the same line as the array key. -->
    9337            <property name="ignoreNewlines" value="false"/>
    9438        </properties>
    9539    </rule>
    9640
    97     <!-- Verify that everything in the global namespace is prefixed with a theme specific prefix.
    98          Multiple valid prefixes can be provided as a comma-delimited list. -->
    99     <rule ref="WordPress.NamingConventions.PrefixAllGlobals">
    100         <properties>
    101             <property name="prefixes" type="array" value="_s" />
    102         </properties>
     41    <config name="testVersion" value="7.4-"/>
     42    <rule ref="PHPCompatibility">
     43        <exclude name="PHPCompatibility.PHP.NewConstants.t_finallyFound"/>
     44        <exclude name="PHPCompatibility.PHP.NewConstants.t_yieldFound"/>
     45        <exclude name="PHPCompatibility.PHP.NewConstants.t_ellipsisFound"/>
     46        <exclude name="PHPCompatibility.PHP.NewConstants.t_powFound"/>
     47        <exclude name="PHPCompatibility.PHP.NewConstants.t_pow_equalFound"/>
     48        <exclude name="PHPCompatibility.PHP.NewConstants.t_spaceshipFound"/>
     49        <exclude name="PHPCompatibility.PHP.NewConstants.t_coalesceFound"/>
     50        <exclude name="PHPCompatibility.PHP.NewConstants.t_coalesce_equalFound"/>
     51        <exclude name="PHPCompatibility.PHP.NewConstants.t_yield_fromFound"/>
     52        <exclude name="PHPCompatibility.PHP.NewConstants.t_traitFound"/>
     53        <exclude name="PHPCompatibility.Operators.NewOperators.t_coalesceFound"/>
     54        <exclude name="PHPCompatibility.FunctionUse.NewFunctions.array_columnFound"/>
    10355    </rule>
    10456
    105 
    106     <!--
    107     #############################################################################
    108     USE THE PHPCompatibility RULESET
    109     #############################################################################
    110     -->
    111 
    112     <config name="testVersion" value="7.4-"/>
    113     <rule ref="PHPCompatibilityWP"/>
    114 
    11557</ruleset>
  • site-toolkit/trunk/readme.txt

    r2993746 r3058080  
    44Tags: archives,columns,emoji,header,tools,widgets
    55Requires at least: 5.9
    6 Tested up to: 6.4
     6Tested up to: 6.
    77Requires PHP: 7.4
    8 Stable tag: 1.0.3
     8Stable tag: 1.0.
    99License: GPLv3 or later
    1010License URI: https://www.gnu.org/licenses/gpl-3.0.html
     
    7777== Changelog ==
    7878
     79
     80
     81
     82
    7983= 1.0.3 =
    8084* Tested up to 6.4
  • site-toolkit/trunk/site-toolkit.php

    r2993746 r3058080  
    1414 * Plugin URI:        https://wordpress.org/plugins/site-toolkit/
    1515 * Description:       Sets of tools for WordPress admin and frontend.
    16  * Version:           1.0.3
     16 * Version:           1.0.
    1717 * Requires at least: 5.9
    1818 * Requires PHP:      7.4
  • site-toolkit/trunk/toolkit/admin/class-site-toolkit-options-page.php

    r2993746 r3058080  
    181181                <p><strong><?php echo esc_html( $text ); ?></strong></p>
    182182                <button type="button" class="notice-dismiss">
    183                     <span class="screen-reader-text"><?php _e( 'Dismiss this notice.', 'site-toolkit' ); ?></span>
     183                    <span class="screen-reader-text"><?php _e( 'Dismiss this notice.', 'site-toolkit' ); ?></span>
    184184                </button>
    185185            </div>
     
    217217        <h2 class="nav-tab-wrapper">
    218218            <a href="?page=stk-settings&tab=general_options"
    219                class="nav-tab <?php echo 'general_options' === $active_tab ? 'nav-tab-active' : ''; ?>"><?php _e( 'Header', 'site-toolkit' ); ?></a>
     219               class="nav-tab <?php echo 'general_options' === $active_tab ? 'nav-tab-active' : ''; ?>"><?php _e( 'Header', 'site-toolkit' ); ?></a>
    220220            <a href="?page=stk-settings&tab=seo_options"
    221                class="nav-tab <?php echo 'seo_options' === $active_tab ? 'nav-tab-active' : ''; ?>"><?php _e( 'SEO', 'site-toolkit' ); ?></a>
     221               class="nav-tab <?php echo 'seo_options' === $active_tab ? 'nav-tab-active' : ''; ?>"><?php _e( 'SEO', 'site-toolkit' ); ?></a>
    222222            <a href="?page=stk-settings&tab=archives_options"
    223                class="nav-tab <?php echo 'archives_options' === $active_tab ? 'nav-tab-active' : ''; ?>"><?php _e( 'Archives', 'site-toolkit' ); ?></a>
     223               class="nav-tab <?php echo 'archives_options' === $active_tab ? 'nav-tab-active' : ''; ?>"><?php _e( 'Archives', 'site-toolkit' ); ?></a>
    224224            <a href="?page=stk-settings&tab=dashboard_options"
    225                class="nav-tab <?php echo 'dashboard_options' === $active_tab ? 'nav-tab-active' : ''; ?>"><?php _e( 'Dashboard', 'site-toolkit' ); ?></a>
     225               class="nav-tab <?php echo 'dashboard_options' === $active_tab ? 'nav-tab-active' : ''; ?>"><?php _e( 'Dashboard', 'site-toolkit' ); ?></a>
    226226            <a href="?page=stk-settings&tab=listing_options"
    227                class="nav-tab <?php echo 'listing_options' === $active_tab ? 'nav-tab-active' : ''; ?>"><?php _e( 'Listing', 'site-toolkit' ); ?></a>
     227               class="nav-tab <?php echo 'listing_options' === $active_tab ? 'nav-tab-active' : ''; ?>"><?php _e( 'Listing', 'site-toolkit' ); ?></a>
    228228            <a href="?page=stk-settings&tab=login_options"
    229                class="nav-tab <?php echo 'login_options' === $active_tab ? 'nav-tab-active' : ''; ?>"><?php _e( 'Login', 'site-toolkit' ); ?></a>
     229               class="nav-tab <?php echo 'login_options' === $active_tab ? 'nav-tab-active' : ''; ?>"><?php _e( 'Login', 'site-toolkit' ); ?></a>
    230230            <a href="?page=stk-settings&tab=uploads_options"
    231                class="nav-tab <?php echo 'uploads_options' === $active_tab ? 'nav-tab-active' : ''; ?>"><?php _e( 'Uploads', 'site-toolkit' ); ?></a>
     231               class="nav-tab <?php echo 'uploads_options' === $active_tab ? 'nav-tab-active' : ''; ?>"><?php _e( 'Uploads', 'site-toolkit' ); ?></a>
    232232
    233233        </h2>
     
    601601        <label>
    602602            <input name="<?php echo esc_attr( $group ) . '[' . esc_attr( $name ) . ']'; ?>" type="radio"
    603                    value="yes" <?php checked( 'yes', esc_attr( $this->options[ $name ] ) ); ?> /> <?php _e( 'Yes', 'site-toolkit' ); ?>
     603                   value="yes" <?php checked( 'yes', esc_attr( $this->options[ $name ] ) ); ?> /> <?php _e( 'Yes', 'site-toolkit' ); ?>
    604604        </label>
    605605        <label>
    606606            <input name="<?php echo esc_attr( $group ) . '[' . esc_attr( $name ) . ']'; ?>" type="radio"
    607                    value="no" <?php checked( 'no', esc_attr( $this->options[ $name ] ) ); ?> /> <?php _e( 'No', 'site-toolkit' ); ?>
     607                   value="no" <?php checked( 'no', esc_attr( $this->options[ $name ] ) ); ?> /> <?php _e( 'No', 'site-toolkit' ); ?>
    608608        </label>
    609609        <br/>
     
    705705
    706706        ?>
    707         <p><strong><?php _e( 'Context', 'site-toolkit' ); ?></strong>&nbsp;
     707        <p><strong><?php _e( 'Context', 'site-toolkit' ); ?></strong>&nbsp;
    708708            <label>
    709709                <input name="stk_dashboard[custom_widgets_context]" type="radio"
    710                        value="normal" <?php checked( 'normal', esc_attr( $this->options['custom_widgets_context'] ) ); ?> /> <?php _e( 'Normal', 'site-toolkit' ); ?>
     710                       value="normal" <?php checked( 'normal', esc_attr( $this->options['custom_widgets_context'] ) ); ?> /> <?php _e( 'Normal', 'site-toolkit' ); ?>
    711711            </label>
    712712            <label>
    713713                <input name="stk_dashboard[custom_widgets_context]" type="radio"
    714                        value="side" <?php checked( 'side', esc_attr( $this->options['custom_widgets_context'] ) ); ?> /> <?php _e( 'Side', 'site-toolkit' ); ?>
     714                       value="side" <?php checked( 'side', esc_attr( $this->options['custom_widgets_context'] ) ); ?> /> <?php _e( 'Side', 'site-toolkit' ); ?>
    715715            </label></p>
    716716        <p class="description">
    717             <small><?php _e( 'You can create a custom text Dashboard widget.', 'site-toolkit' ); ?></small>
     717            <small><?php _e( 'You can create a custom text Dashboard widget.', 'site-toolkit' ); ?></small>
    718718        </p>
    719719        <?php
     
    791791        ?>
    792792        <p>
    793             <strong><?php _e( 'Redirect author', 'site-toolkit' ); ?></strong><br/>
     793            <strong><?php _e( 'Redirect author', 'site-toolkit' ); ?></strong><br/>
    794794            <label>
    795795                <input name="stk_archives[redirect_author]" type="radio"
    796                        value="yes" <?php checked( 'yes', esc_attr( $this->options['redirect_author'] ) ); ?> /> <?php _e( 'Yes', 'site-toolkit' ); ?>
     796                       value="yes" <?php checked( 'yes', esc_attr( $this->options['redirect_author'] ) ); ?> /> <?php _e( 'Yes', 'site-toolkit' ); ?>
    797797            </label>
    798798            <label>
    799799                <input name="stk_archives[redirect_author]" type="radio"
    800                        value="no" <?php checked( 'no', esc_attr( $this->options['redirect_author'] ) ); ?> /> <?php _e( 'No', 'site-toolkit' ); ?>
     800                       value="no" <?php checked( 'no', esc_attr( $this->options['redirect_author'] ) ); ?> /> <?php _e( 'No', 'site-toolkit' ); ?>
    801801            </label>
    802802        </p>
    803803        <br/>
    804804        <p>
    805             <strong><?php _e( 'Redirect date', 'site-toolkit' ); ?></strong><br/>
     805            <strong><?php _e( 'Redirect date', 'site-toolkit' ); ?></strong><br/>
    806806            <label>
    807807                <input name="stk_archives[redirect_date]" type="radio"
    808                        value="yes" <?php checked( 'yes', esc_attr( $this->options['redirect_date'] ) ); ?> /> <?php _e( 'Yes', 'site-toolkit' ); ?>
     808                       value="yes" <?php checked( 'yes', esc_attr( $this->options['redirect_date'] ) ); ?> /> <?php _e( 'Yes', 'site-toolkit' ); ?>
    809809            </label>
    810810            <label>
    811811                <input name="stk_archives[redirect_date]" type="radio"
    812                        value="no" <?php checked( 'no', esc_attr( $this->options['redirect_date'] ) ); ?> /> <?php _e( 'No', 'site-toolkit' ); ?>
     812                       value="no" <?php checked( 'no', esc_attr( $this->options['redirect_date'] ) ); ?> /> <?php _e( 'No', 'site-toolkit' ); ?>
    813813            </label>
    814814        </p>
    815815        <br/>
    816816        <p>
    817             <strong><?php _e( 'Redirect tags', 'site-toolkit' ); ?></strong><br/>
     817            <strong><?php _e( 'Redirect tags', 'site-toolkit' ); ?></strong><br/>
    818818            <label>
    819819                <input name="stk_archives[redirect_tag]" type="radio"
    820                        value="yes" <?php checked( 'yes', esc_attr( $this->options['redirect_tag'] ) ); ?> /> <?php _e( 'Yes', 'site-toolkit' ); ?>
     820                       value="yes" <?php checked( 'yes', esc_attr( $this->options['redirect_tag'] ) ); ?> /> <?php _e( 'Yes', 'site-toolkit' ); ?>
    821821            </label>
    822822            <label>
    823823                <input name="stk_archives[redirect_tag]" type="radio"
    824                        value="no" <?php checked( 'no', esc_attr( $this->options['redirect_tag'] ) ); ?> /> <?php _e( 'No', 'site-toolkit' ); ?>
     824                       value="no" <?php checked( 'no', esc_attr( $this->options['redirect_tag'] ) ); ?> /> <?php _e( 'No', 'site-toolkit' ); ?>
    825825            </label>
    826826        </p>
    827827        <br/>
    828828        <p class="description">
    829             <small><?php _e( 'Redirects authors archive, dates archive, tags archive to the homepage.', 'site-toolkit' ); ?></small>
     829            <small><?php _e( 'Redirects authors archive, dates archive, tags archive to the homepage.', 'site-toolkit' ); ?></small>
    830830        </p>
    831831        <?php
     
    876876        echo '<p>';
    877877        if ( get_option( 'permalink_structure' ) ) {
    878             echo '<code>' . trailingslashit( home_url() ) . '</code> <input type="text" name="stk_login[stk_login]" value="' . esc_html( $this->options['stk_login'] ) . '">' . ( $this->stk_use_trailing_slashes() ? ' <code>/</code>' : '' );
     878            echo '<code>' . . '</code> <input type="text" name="stk_login[stk_login]" value="' . esc_html( $this->options['stk_login'] ) . '">' . ( $this->stk_use_trailing_slashes() ? ' <code>/</code>' : '' );
    879879        } else {
    880             echo '<code>' . trailingslashit( home_url() ) . '?</code> <input type="text" name="stk_login[stk_login]" value="' . esc_html( $this->options['stk_login'] ) . '">';
     880            echo '<code>' . ) ) . '?</code> <input type="text" name="stk_login[stk_login]" value="' . esc_html( $this->options['stk_login'] ) . '">';
    881881        }
    882882        echo '</p>';
     
    884884        <br/>
    885885        <p class="description">
    886             <small><?php _e( 'You can choose your own URL instead of using the default WordPress URL.', 'site-toolkit' ); ?></small>
     886            <small><?php _e( 'You can choose your own URL instead of using the default WordPress URL.', 'site-toolkit' ); ?></small>
    887887        </p>
    888888        <?php
Note: See TracChangeset for help on using the changeset viewer.