3 Commits
1.2 ... 1.3

Author SHA1 Message Date
f4af6056ba wp-multi-search.php aktualisiert 2025-03-18 19:16:38 +00:00
afdf7f0c21 plugin-metadata.json aktualisiert 2025-03-18 16:14:35 +00:00
c172cde6f9 Dateien nach "/" hochladen 2025-03-18 16:14:21 +00:00
2 changed files with 350 additions and 325 deletions

24
plugin-metadata.json Normal file
View File

@ -0,0 +1,24 @@
{
"name": "WP-Multi Search",
"version": "1.2",
"download_url": "https://git.viper.ipv64.net/M_Viper/WP-Multi-Search/releases/download/v1.0/wp-multi-search.zip",
"requires": "6.7.2",
"tested": "6.7.2",
"requires_php": "7.4",
"last_updated": "2025-03-18 17:00:00",
"sections": {
"description": "Fügt eine Suchfunktion als Shortcode, Widget und Menüeintrag hinzu. (Shortcode: [custom_search])",
"changelog": "<h4>1.0</h4><ul><li>Erste Version des Plugins</li><li>Implementierung der Suchfunktion als Shortcode, Widget und Menüeintrag</li><li>Einstellungsseite für ShiftNav-Position hinzugefügt</li><li>Unterstützung für verschiedene Suchtypen: Alle Inhalte, Titel, Autoren</li></ul>"
},
"author": "M_Viper",
"author_homepage": "https://m-viper.de",
"homepage": "https://git.viper.ipv64.net/M_Viper/WP-Multi-Search",
"banners": {
"low": "https://m-viper.de/img/logo.png",
"high": "https://m-viper.de/img/logo.png"
},
"icons": {
"1x": "https://m-viper.de/img/logo.png",
"2x": "https://m-viper.de/img/logo.png"
}
}

View File

@ -2,8 +2,8 @@
/**
* Plugin Name: WP-Multi Search
* Plugin URI: https://git.viper.ipv64.net/M_Viper/WP-Multi-Search
* Description: Fügt eine Suchfunktion als Shortcode, Widget und Menüeintrag hinzu.(Shortcode: [display_search_form])
* Version: 1.2
* Description: Fügt eine Suchfunktion als Shortcode, Widget und Menüeintrag hinzu.(Shortcode: [custom_search])
* Version: 1.3
* Author: M_Viper
* Author URI: https://m-viper.de
* Requires at least: 6.7.2
@ -14,7 +14,7 @@
* Tags: search Autor-search
*/
if (!defined('ABSPATH')) {
if (!defined('ABSPATH')) {
exit; // Sicherheitsmaßnahme
}
@ -89,17 +89,18 @@ function csp_search_form() {
</label>
<label>
<input type="radio" name="search_type" value="title" <?php checked($search_type, 'title'); ?>>
<?php _e('Nur Titel', 'textdomain'); ?>
<?php _e('Titel', 'textdomain'); ?>
</label>
<label>
<input type="radio" name="search_type" value="guest_author" <?php checked($search_type, 'guest_author'); ?>>
<?php _e('Nur Gastautoren', 'textdomain'); ?>
<?php _e('Autoren', 'textdomain'); ?>
</label>
</div>
<div class="csp-search-fields">
<input type="text" name="s" placeholder="🔍 Suchbegriff eingeben" value="<?php echo esc_attr(get_search_query()); ?>">
<input type="submit" value="Suchen">
</div>
<input type="submit" value="Suchen">
</form>
<?php
return ob_get_clean();