Changeset 3247413
- Timestamp:
- 02/26/2025 09:06:54 PM (13 months ago)
- Location:
- searchwp-modal-search-form
- Files:
-
- 18 deleted
- 8 edited
- 7 copied
-
tags/0.5.5 (copied) (copied from searchwp-modal-search-form/trunk)
-
tags/0.5.5/README.md (deleted)
-
tags/0.5.5/assets/banner-1544x500.png (deleted)
-
tags/0.5.5/assets/banner-772x250.png (deleted)
-
tags/0.5.5/assets/bundler-build.js (deleted)
-
tags/0.5.5/assets/bundler-dev.js (deleted)
-
tags/0.5.5/assets/icon-128x128.png (deleted)
-
tags/0.5.5/assets/icon-256x256.png (deleted)
-
tags/0.5.5/assets/screenshot-1.png (deleted)
-
tags/0.5.5/assets/screenshot-2.png (deleted)
-
tags/0.5.5/assets/screenshot-3.png (deleted)
-
tags/0.5.5/assets/screenshot-4.png (deleted)
-
tags/0.5.5/assets/screenshot-5.png (deleted)
-
tags/0.5.5/assets/searchwp-modal-form-examples.gif (deleted)
-
tags/0.5.5/assets/src (deleted)
-
tags/0.5.5/includes/AdminMenu.php (modified) (1 diff)
-
tags/0.5.5/includes/Install.php (copied) (copied from searchwp-modal-search-form/trunk/includes/Install.php)
-
tags/0.5.5/includes/Menu.php (copied) (copied from searchwp-modal-search-form/trunk/includes/Menu.php)
-
tags/0.5.5/includes/Plugin.php (copied) (copied from searchwp-modal-search-form/trunk/includes/Plugin.php)
-
tags/0.5.5/includes/Settings.php (modified) (4 diffs)
-
tags/0.5.5/includes/Utils.php (modified) (2 diffs)
-
tags/0.5.5/languages/searchwp-modal-search-form.pot (copied) (copied from searchwp-modal-search-form/trunk/languages/searchwp-modal-search-form.pot)
-
tags/0.5.5/package-lock.json (deleted)
-
tags/0.5.5/package.json (deleted)
-
tags/0.5.5/readme.txt (copied) (copied from searchwp-modal-search-form/trunk/readme.txt) (2 diffs)
-
tags/0.5.5/rollup.config.js (deleted)
-
tags/0.5.5/searchwp-modal-form.php (copied) (copied from searchwp-modal-search-form/trunk/searchwp-modal-form.php) (2 diffs)
-
tags/0.5.5/webpack.config.js (deleted)
-
trunk/includes/AdminMenu.php (modified) (1 diff)
-
trunk/includes/Settings.php (modified) (4 diffs)
-
trunk/includes/Utils.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/searchwp-modal-form.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
searchwp-modal-search-form/tags/0.5.5/includes/AdminMenu.php
r2934767 r3247413 32 32 public function hooks() { 33 33 34 if ( Utils::is_searchwp_active() ) {34 if ( Utils::is_searchwp_active() || Utils::is_live_search_active() ) { 35 35 return; 36 36 } 37 37 38 if ( Utils::is_live_search_active() ) {39 $this->hooks_live_search_enabled();40 41 return;42 }43 44 38 $this->hooks_modal_form_standalone(); 45 }46 47 /**48 * Hooks when Live Ajax Search is enabled.49 *50 * @since 0.5.051 */52 private function hooks_live_search_enabled() {53 54 add_filter( 'searchwp_live_search_options_submenu_pages', [ $this, 'add_menus_live_search_enabled' ] );55 39 } 56 40 -
searchwp-modal-search-form/tags/0.5.5/includes/Settings.php
r2934767 r3247413 27 27 28 28 if ( Utils::is_searchwp_active() ) { 29 $this->hooks_searchwp_enabled(); 29 $this->hooks_searchwp_enabled(); 30 } elseif ( Utils::is_live_search_active() ) { 31 $this->hooks_live_search_enabled(); 30 32 } else { 31 33 $this->hooks_searchwp_disabled(); … … 91 93 92 94 /** 95 * Hooks if Live Search is enabled. 96 * 97 * @since 0.5.5 98 */ 99 private function hooks_live_search_enabled() { 100 101 add_filter( 'searchwp_live_search_settings_sub_header_items', [ $this, 'add_sub_header_items' ], 20 ); 102 add_action( 'searchwp_live_search_modal_form_render', [ $this, 'output' ] ); 103 add_filter( 'admin_footer_text', [ $this, 'admin_footer_rate_us_searchwp_disabled' ], 1, 2 ); 104 } 105 106 /** 107 * Add the Search Modal sub header item. 108 * 109 * @since 0.5.5 110 * 111 * @param array $items The sub header items. 112 * 113 * @return mixed 114 */ 115 public static function add_sub_header_items( $items ) { 116 117 $items['searchwp-live-search'][] = [ 118 'page' => 'searchwp-live-search', 119 'tab' => 'search-modal', 120 'label' => esc_html__( 'Search Modal', 'searchwp-modal-search-form' ), 121 ]; 122 123 return $items; 124 } 125 126 /** 93 127 * Hooks if SearchWP is disabled. 94 128 * … … 162 196 163 197 <?php $this->output_after_settings(); ?> 164 198 165 199 </div> 166 200 <?php … … 537 571 global $current_screen; 538 572 539 if ( empty( $current_screen->id ) || strpos( $current_screen->id, 'searchwp-modal-form' ) === false) {573 if ( ! Utils::is_settings_page() ) { 540 574 return $text; 541 575 } -
searchwp-modal-search-form/tags/0.5.5/includes/Utils.php
r2934767 r3247413 58 58 $page = isset( $_REQUEST['page'] ) ? sanitize_key( $_REQUEST['page'] ) : ''; 59 59 60 if ( ! in_array( $page, [ 'searchwp-modal-form', 'searchwp-forms' ], true ) ) {60 if ( ! in_array( $page, [ 'searchwp-modal-form', 'searchwp-forms', 'searchwp-live-search' ], true ) ) { 61 61 return false; 62 62 } … … 65 65 $view = isset( $_REQUEST['tab'] ) ? sanitize_key( $_REQUEST['tab'] ) : ''; 66 66 67 if ( $page === 'searchwp-forms'&& $view !== 'search-modal' ) {67 if ( in_array( $page, [ 'searchwp-forms', 'searchwp-live-search' ], true ) && $view !== 'search-modal' ) { 68 68 return false; 69 69 } -
searchwp-modal-search-form/tags/0.5.5/readme.txt
r3246706 r3247413 5 5 Tested up to: 6.5 6 6 Requires PHP: 7.0 7 Stable tag: 0.5. 47 Stable tag: 0.5.5 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 98 98 == Changelog == 99 99 100 *0.5.5* 101 - Fixes settings page appearance and menu structure when SearchWP Live Search is active. 102 100 103 *0.5.4* 101 104 - Fixes Settings link location in the plugins list when SearchWP is activated. -
searchwp-modal-search-form/tags/0.5.5/searchwp-modal-form.php
r3246706 r3247413 4 4 Plugin URI: https://searchwp.com/extensions/modal-form/ 5 5 Description: Lightweight and accessible search form 6 Version: 0.5. 46 Version: 0.5.5 7 7 Requires PHP: 5.6 8 8 Author: SearchWP, LLC … … 38 38 * @since 0.1 39 39 */ 40 define( 'SEARCHWP_MODAL_FORM_VERSION', '0.5. 4' );40 define( 'SEARCHWP_MODAL_FORM_VERSION', '0.5.5' ); 41 41 } 42 42 -
searchwp-modal-search-form/trunk/includes/AdminMenu.php
r2934767 r3247413 32 32 public function hooks() { 33 33 34 if ( Utils::is_searchwp_active() ) {34 if ( Utils::is_searchwp_active() || Utils::is_live_search_active() ) { 35 35 return; 36 36 } 37 37 38 if ( Utils::is_live_search_active() ) {39 $this->hooks_live_search_enabled();40 41 return;42 }43 44 38 $this->hooks_modal_form_standalone(); 45 }46 47 /**48 * Hooks when Live Ajax Search is enabled.49 *50 * @since 0.5.051 */52 private function hooks_live_search_enabled() {53 54 add_filter( 'searchwp_live_search_options_submenu_pages', [ $this, 'add_menus_live_search_enabled' ] );55 39 } 56 40 -
searchwp-modal-search-form/trunk/includes/Settings.php
r2934767 r3247413 27 27 28 28 if ( Utils::is_searchwp_active() ) { 29 $this->hooks_searchwp_enabled(); 29 $this->hooks_searchwp_enabled(); 30 } elseif ( Utils::is_live_search_active() ) { 31 $this->hooks_live_search_enabled(); 30 32 } else { 31 33 $this->hooks_searchwp_disabled(); … … 91 93 92 94 /** 95 * Hooks if Live Search is enabled. 96 * 97 * @since 0.5.5 98 */ 99 private function hooks_live_search_enabled() { 100 101 add_filter( 'searchwp_live_search_settings_sub_header_items', [ $this, 'add_sub_header_items' ], 20 ); 102 add_action( 'searchwp_live_search_modal_form_render', [ $this, 'output' ] ); 103 add_filter( 'admin_footer_text', [ $this, 'admin_footer_rate_us_searchwp_disabled' ], 1, 2 ); 104 } 105 106 /** 107 * Add the Search Modal sub header item. 108 * 109 * @since 0.5.5 110 * 111 * @param array $items The sub header items. 112 * 113 * @return mixed 114 */ 115 public static function add_sub_header_items( $items ) { 116 117 $items['searchwp-live-search'][] = [ 118 'page' => 'searchwp-live-search', 119 'tab' => 'search-modal', 120 'label' => esc_html__( 'Search Modal', 'searchwp-modal-search-form' ), 121 ]; 122 123 return $items; 124 } 125 126 /** 93 127 * Hooks if SearchWP is disabled. 94 128 * … … 162 196 163 197 <?php $this->output_after_settings(); ?> 164 198 165 199 </div> 166 200 <?php … … 537 571 global $current_screen; 538 572 539 if ( empty( $current_screen->id ) || strpos( $current_screen->id, 'searchwp-modal-form' ) === false) {573 if ( ! Utils::is_settings_page() ) { 540 574 return $text; 541 575 } -
searchwp-modal-search-form/trunk/includes/Utils.php
r2934767 r3247413 58 58 $page = isset( $_REQUEST['page'] ) ? sanitize_key( $_REQUEST['page'] ) : ''; 59 59 60 if ( ! in_array( $page, [ 'searchwp-modal-form', 'searchwp-forms' ], true ) ) {60 if ( ! in_array( $page, [ 'searchwp-modal-form', 'searchwp-forms', 'searchwp-live-search' ], true ) ) { 61 61 return false; 62 62 } … … 65 65 $view = isset( $_REQUEST['tab'] ) ? sanitize_key( $_REQUEST['tab'] ) : ''; 66 66 67 if ( $page === 'searchwp-forms'&& $view !== 'search-modal' ) {67 if ( in_array( $page, [ 'searchwp-forms', 'searchwp-live-search' ], true ) && $view !== 'search-modal' ) { 68 68 return false; 69 69 } -
searchwp-modal-search-form/trunk/readme.txt
r3246706 r3247413 5 5 Tested up to: 6.5 6 6 Requires PHP: 7.0 7 Stable tag: 0.5. 47 Stable tag: 0.5.5 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 98 98 == Changelog == 99 99 100 *0.5.5* 101 - Fixes settings page appearance and menu structure when SearchWP Live Search is active. 102 100 103 *0.5.4* 101 104 - Fixes Settings link location in the plugins list when SearchWP is activated. -
searchwp-modal-search-form/trunk/searchwp-modal-form.php
r3246706 r3247413 4 4 Plugin URI: https://searchwp.com/extensions/modal-form/ 5 5 Description: Lightweight and accessible search form 6 Version: 0.5. 46 Version: 0.5.5 7 7 Requires PHP: 5.6 8 8 Author: SearchWP, LLC … … 38 38 * @since 0.1 39 39 */ 40 define( 'SEARCHWP_MODAL_FORM_VERSION', '0.5. 4' );40 define( 'SEARCHWP_MODAL_FORM_VERSION', '0.5.5' ); 41 41 } 42 42
Note: See TracChangeset
for help on using the changeset viewer.