Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
f4af6056ba | |||
afdf7f0c21 | |||
c172cde6f9 |
24
plugin-metadata.json
Normal file
24
plugin-metadata.json
Normal 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"
|
||||||
|
}
|
||||||
|
}
|
@ -2,8 +2,8 @@
|
|||||||
/**
|
/**
|
||||||
* Plugin Name: WP-Multi Search
|
* Plugin Name: WP-Multi Search
|
||||||
* Plugin URI: https://git.viper.ipv64.net/M_Viper/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])
|
* Description: Fügt eine Suchfunktion als Shortcode, Widget und Menüeintrag hinzu.(Shortcode: [custom_search])
|
||||||
* Version: 1.2
|
* Version: 1.3
|
||||||
* Author: M_Viper
|
* Author: M_Viper
|
||||||
* Author URI: https://m-viper.de
|
* Author URI: https://m-viper.de
|
||||||
* Requires at least: 6.7.2
|
* Requires at least: 6.7.2
|
||||||
@ -14,7 +14,7 @@
|
|||||||
* Tags: search Autor-search
|
* Tags: search Autor-search
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if (!defined('ABSPATH')) {
|
if (!defined('ABSPATH')) {
|
||||||
exit; // Sicherheitsmaßnahme
|
exit; // Sicherheitsmaßnahme
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -89,17 +89,18 @@ function csp_search_form() {
|
|||||||
</label>
|
</label>
|
||||||
<label>
|
<label>
|
||||||
<input type="radio" name="search_type" value="title" <?php checked($search_type, 'title'); ?>>
|
<input type="radio" name="search_type" value="title" <?php checked($search_type, 'title'); ?>>
|
||||||
<?php _e('Nur Titel', 'textdomain'); ?>
|
<?php _e('Titel', 'textdomain'); ?>
|
||||||
</label>
|
</label>
|
||||||
<label>
|
<label>
|
||||||
<input type="radio" name="search_type" value="guest_author" <?php checked($search_type, 'guest_author'); ?>>
|
<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>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="csp-search-fields">
|
<div class="csp-search-fields">
|
||||||
<input type="text" name="s" placeholder="🔍 Suchbegriff eingeben" value="<?php echo esc_attr(get_search_query()); ?>">
|
<input type="text" name="s" placeholder="🔍 Suchbegriff eingeben" value="<?php echo esc_attr(get_search_query()); ?>">
|
||||||
<input type="submit" value="Suchen">
|
|
||||||
</div>
|
</div>
|
||||||
|
<input type="submit" value="Suchen">
|
||||||
</form>
|
</form>
|
||||||
<?php
|
<?php
|
||||||
return ob_get_clean();
|
return ob_get_clean();
|
||||||
|
Reference in New Issue
Block a user