Plugin Directory

Changeset 3153079


Ignore:
Timestamp:
09/17/2024 07:51:57 AM (18 months ago)
Author:
wpvncom
Message:

8.5.2

Location:
wp-extra/trunk
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • wp-extra/trunk/readme.txt

    r3148220 r3153079  
    44Tags: extra, functions, optimize, wpvnteam, security
    55Requires at least: 6.2
    6 Tested up to: 6.6.1
    7 Stable tag: 8.5.1
     6Tested up to: 6.6.2
     7Stable tag: 8.5.2
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    5252== Changelog ==
    5353
     54= 8.5.2 =
     55* [FIX] Settings UI
     56
    5457= 8.5.1 =
    5558* [FIX] Settings UI
  • wp-extra/trunk/src/Settings.php

    r3148220 r3153079  
    154154            'label' => __('Content')
    155155        ]);
    156         $section->add_option('select', [
     156        $section->add_option('choices', [
    157157            'name' => 'signature_pos',
    158158            'options' => [
     
    977977        $tab = $settings->add_tab('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" aria-hidden="true" focusable="false"><path d="M3.445 16.505a.75.75 0 001.06.05l5.005-4.55 4.024 3.521 4.716-4.715V14h1.5V8.25H14v1.5h3.19l-3.724 3.723L9.49 9.995l-5.995 5.45a.75.75 0 00-.05 1.06z"></path></svg>'.__('Optimize', 'wp-extra'));
    978978        $section = $tab->add_section('');
    979         $section->add_option('select', [
     979        $section->add_option('choices', [
    980980            'name' => 'to_home',
    981981            'options' => [
    982982                ''    => __('None'),
    983                 'home' => __('Home'),
     983                'home' => __('Homepage'),
    984984                'random' => __('Random Post')
    985985            ],
  • wp-extra/trunk/vendor/wordpressvn/wp-settings/CHANGELOG.md

    r3147758 r3153079  
    44
    55## Unreleased
     6
     7## 2.3.0 - 2024-09-12
     8
     9- [FIX] setting ui
    610
    711## 2.2.0 - 2024-09-05
  • wp-extra/trunk/vendor/wordpressvn/wp-settings/resources/js/wp-settings.js

    r3147758 r3153079  
    1717        if (typeof wp !== 'undefined' && typeof wp.a11y !== 'undefined') {
    1818            wp.a11y.speak(wp.i18n.__('The content has been copied to your clipboard'));
     19        }
     20    });
     21    $('input[type="checkbox"]').on('change', function() {
     22        var $span = $(this).closest('.components-form-toggle');
     23        if ($(this).is(':checked')) {
     24            $span.addClass('is-checked');
     25        } else {
     26            $span.removeClass('is-checked');
    1927        }
    2028    });
  • wp-extra/trunk/vendor/wordpressvn/wp-settings/src/Options/Checkbox.php

    r3148220 r3153079  
    33namespace WPVNTeam\WPSettings\Options;
    44
    5 use WPVNTeam\WPSettings\Enqueuer;
    6 
    75class Checkbox extends OptionAbstract
    86{
    97    public $view = 'checkbox';
    10 
    11     public function __construct($section, $args = [])
    12     {
    13         add_action('wp_settings_before_render_settings_page', [$this, 'enqueue']);
    14 
    15         parent::__construct($section, $args);
    16     }
    178
    189    public function get_value_attribute()
     
    2516        return parent::get_value_attribute();
    2617    }
    27    
    28     public function enqueue()
    29     {
    30         Enqueuer::add('wps-checkbox', function () {
    31             wp_enqueue_script('wp-settings');
    32             wp_add_inline_script('wp-settings', "
    33                 jQuery(function($) {
    34                     $('input[type=\"checkbox\"]').on('change', function() {
    35                         var \$span = $(this).closest('.components-form-toggle');
    36                         if ($(this).is(':checked')) {
    37                             \$span.addClass('is-checked');
    38                         } else {
    39                             \$span.removeClass('is-checked');
    40                         }
    41                     });
    42                 });
    43             ");
    44         });
    45     }
    4618}
  • wp-extra/trunk/vendor/wordpressvn/wp-settings/src/Options/CheckboxMultiple.php

    r3148220 r3153079  
    3030    public function enqueue()
    3131    {
    32         Enqueuer::add('wps-checkbox', function () {
     32        Enqueuer::add('wps-checkbox-multiple', function () {
    3333            wp_enqueue_script('wp-settings');
    3434            wp_add_inline_script('wp-settings', "
  • wp-extra/trunk/vendor/wordpressvn/wp-settings/src/WPSettings.php

    r3147758 r3153079  
    11<?php
    22
    3 /** v2.2.0 **/
     3/** v2.3.0 **/
    44
    55namespace WPVNTeam\WPSettings;
  • wp-extra/trunk/wp-extra.php

    r3148220 r3153079  
    44 * Plugin URI:          https://wordpress.org/plugins/wp-extra/
    55 * Description:         ❤ This is a simple and perfect tool to use as your website’s functionality plugin. Awesome !!!
    6  * Version:             8.5.1
     6 * Version:             8.5.2
    77 * Requires at least:   6.2
    88 * Requires PHP:        7.4
     
    1616defined('ABSPATH') || die;
    1717if ( ! defined( 'WPEX_VERSION' ) ) {
    18     define('WPEX_VERSION', '8.5.1');
     18    define('WPEX_VERSION', '8.5.2');
    1919}
    2020if ( ! defined( 'WPEX_BASE' ) ) {
Note: See TracChangeset for help on using the changeset viewer.