Changeset 3153079
- Timestamp:
- 09/17/2024 07:51:57 AM (18 months ago)
- Location:
- wp-extra/trunk
- Files:
-
- 8 edited
-
readme.txt (modified) (2 diffs)
-
src/Settings.php (modified) (2 diffs)
-
vendor/wordpressvn/wp-settings/CHANGELOG.md (modified) (1 diff)
-
vendor/wordpressvn/wp-settings/resources/js/wp-settings.js (modified) (1 diff)
-
vendor/wordpressvn/wp-settings/src/Options/Checkbox.php (modified) (2 diffs)
-
vendor/wordpressvn/wp-settings/src/Options/CheckboxMultiple.php (modified) (1 diff)
-
vendor/wordpressvn/wp-settings/src/WPSettings.php (modified) (1 diff)
-
wp-extra.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-extra/trunk/readme.txt
r3148220 r3153079 4 4 Tags: extra, functions, optimize, wpvnteam, security 5 5 Requires at least: 6.2 6 Tested up to: 6.6. 17 Stable tag: 8.5. 16 Tested up to: 6.6.2 7 Stable tag: 8.5.2 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 52 52 == Changelog == 53 53 54 = 8.5.2 = 55 * [FIX] Settings UI 56 54 57 = 8.5.1 = 55 58 * [FIX] Settings UI -
wp-extra/trunk/src/Settings.php
r3148220 r3153079 154 154 'label' => __('Content') 155 155 ]); 156 $section->add_option(' select', [156 $section->add_option('choices', [ 157 157 'name' => 'signature_pos', 158 158 'options' => [ … … 977 977 $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')); 978 978 $section = $tab->add_section(''); 979 $section->add_option(' select', [979 $section->add_option('choices', [ 980 980 'name' => 'to_home', 981 981 'options' => [ 982 982 '' => __('None'), 983 'home' => __('Home '),983 'home' => __('Homepage'), 984 984 'random' => __('Random Post') 985 985 ], -
wp-extra/trunk/vendor/wordpressvn/wp-settings/CHANGELOG.md
r3147758 r3153079 4 4 5 5 ## Unreleased 6 7 ## 2.3.0 - 2024-09-12 8 9 - [FIX] setting ui 6 10 7 11 ## 2.2.0 - 2024-09-05 -
wp-extra/trunk/vendor/wordpressvn/wp-settings/resources/js/wp-settings.js
r3147758 r3153079 17 17 if (typeof wp !== 'undefined' && typeof wp.a11y !== 'undefined') { 18 18 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'); 19 27 } 20 28 }); -
wp-extra/trunk/vendor/wordpressvn/wp-settings/src/Options/Checkbox.php
r3148220 r3153079 3 3 namespace WPVNTeam\WPSettings\Options; 4 4 5 use WPVNTeam\WPSettings\Enqueuer;6 7 5 class Checkbox extends OptionAbstract 8 6 { 9 7 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 }17 8 18 9 public function get_value_attribute() … … 25 16 return parent::get_value_attribute(); 26 17 } 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 }46 18 } -
wp-extra/trunk/vendor/wordpressvn/wp-settings/src/Options/CheckboxMultiple.php
r3148220 r3153079 30 30 public function enqueue() 31 31 { 32 Enqueuer::add('wps-checkbox ', function () {32 Enqueuer::add('wps-checkbox-multiple', function () { 33 33 wp_enqueue_script('wp-settings'); 34 34 wp_add_inline_script('wp-settings', " -
wp-extra/trunk/vendor/wordpressvn/wp-settings/src/WPSettings.php
r3147758 r3153079 1 1 <?php 2 2 3 /** v2. 2.0 **/3 /** v2.3.0 **/ 4 4 5 5 namespace WPVNTeam\WPSettings; -
wp-extra/trunk/wp-extra.php
r3148220 r3153079 4 4 * Plugin URI: https://wordpress.org/plugins/wp-extra/ 5 5 * Description: ❤ This is a simple and perfect tool to use as your website’s functionality plugin. Awesome !!! 6 * Version: 8.5. 16 * Version: 8.5.2 7 7 * Requires at least: 6.2 8 8 * Requires PHP: 7.4 … … 16 16 defined('ABSPATH') || die; 17 17 if ( ! defined( 'WPEX_VERSION' ) ) { 18 define('WPEX_VERSION', '8.5. 1');18 define('WPEX_VERSION', '8.5.2'); 19 19 } 20 20 if ( ! defined( 'WPEX_BASE' ) ) {
Note: See TracChangeset
for help on using the changeset viewer.