9 Commits
2.1 ... 2.2

Author SHA1 Message Date
Git Manager GUI
b3db0b99b7 Upload via Git Manager GUI 2026-04-10 08:17:58 +02:00
Git Manager GUI
0eaec091b4 Upload via Git Manager GUI 2026-04-10 08:17:52 +02:00
Git Manager GUI
3acc0e1c99 Upload via Git Manager GUI 2026-04-05 07:17:09 +02:00
Git Manager GUI
fb3b9fe5ec Upload via Git Manager GUI 2026-04-05 07:17:07 +02:00
Git Manager GUI
26cf58df55 Upload via Git Manager GUI 2026-04-05 07:17:05 +02:00
Git Manager GUI
3836f5a876 Upload via Git Manager GUI 2026-04-05 07:16:43 +02:00
Git Manager GUI
39786ab837 Upload via Git Manager GUI 2026-04-05 07:16:41 +02:00
Git Manager GUI
b78f0679bb Upload via Git Manager GUI 2026-04-05 07:16:38 +02:00
Git Manager GUI
44af7d4131 Upload via Git Manager GUI 2026-04-05 07:16:32 +02:00
9 changed files with 43 additions and 20 deletions

View File

@@ -6,7 +6,6 @@
<div class="faq-archive-container">
<header class="page-header">
<h1 class="page-title"><?php _e( 'Häufig gestellte Fragen (FAQ)', 'minecraft-modern-theme' ); ?></h1>
<p><?php _e( 'Wählen Sie eine Kategorie, um die passenden Fragen zu sehen.', 'minecraft-modern-theme' ); ?></p>
</header>

View File

@@ -5,7 +5,6 @@
<div class="team-archive-container">
<header class="page-header">
<h1 class="page-title">Unser Team</h1>
<p class="page-description">Lerne die Leute kennen, die diesen Server am Laufen halten.</p>
</header>

View File

@@ -8,11 +8,9 @@
<?php
if ( is_category() ) {
echo '<div class="archive-type-badge"><i class="fas fa-folder-open"></i> ' . __('Kategorie', 'minecraft-modern-theme') . '</div>';
the_archive_title( '<h1 class="archive-title">', '</h1>' );
the_archive_description( '<div class="archive-description">', '</div>' );
} elseif ( is_tag() ) {
echo '<div class="archive-type-badge"><i class="fas fa-hashtag"></i> ' . __('Tag', 'minecraft-modern-theme') . '</div>';
the_archive_title( '<h1 class="archive-title">', '</h1>' );
the_archive_description( '<div class="archive-description">', '</div>' );
} elseif ( is_author() ) {
$author = get_queried_object();
@@ -21,7 +19,6 @@
<div class="archive-author-header">
<?php echo get_avatar( $author->ID, 80, '', '', array('class' => 'archive-author-avatar') ); ?>
<div>
<h1 class="archive-title"><?php echo esc_html( $author->display_name ); ?></h1>
<?php if ( $author->description ) : ?>
<p class="archive-description"><?php echo esc_html( $author->description ); ?></p>
<?php endif; ?>
@@ -30,9 +27,7 @@
<?php
} elseif ( is_date() ) {
echo '<div class="archive-type-badge"><i class="fas fa-calendar"></i> ' . __('Archiv', 'minecraft-modern-theme') . '</div>';
the_archive_title( '<h1 class="archive-title">', '</h1>' );
} else {
the_archive_title( '<h1 class="archive-title">', '</h1>' );
the_archive_description( '<div class="archive-description">', '</div>' );
}
?>

View File

@@ -1353,6 +1353,9 @@ function mm_team_manager_page_html() {
<button type="submit" class="button button-primary button-large" style="width:100%;">Hinzufügen</button>
</div>
</form>
<button id="save-order-btn" class="button button-primary" style="margin-top:16px;float:right;">Reihenfolge speichern</button>
<div id="order-save-msg" style="margin-top:16px;float:left;color:green;display:none;">Reihenfolge gespeichert!</div>
<div style="clear:both;"></div>
</div>
<div class="card" style="background:#fff;padding:20px;">
@@ -1562,11 +1565,49 @@ function mm_team_manager_page_html() {
$('.sort-up').on('click', function() { var r = $(this).closest('tr'), p = r.prev('tr'); if (p.length) r.insertBefore(p); });
$('.sort-down').on('click', function() { var r = $(this).closest('tr'), n = r.next('tr'); if (n.length) r.insertAfter(n); });
// Reihenfolge speichern
$('#save-order-btn').on('click', function() {
var ids = [];
$('#team-list-body tr').each(function(){ ids.push($(this).data('id')); });
var btn = $(this);
btn.prop('disabled', true).text('Speichern...');
$('#order-save-msg').hide();
$.post(ajaxurl, {
action: 'mm_save_team_order',
ids: ids,
nonce: '<?php echo wp_create_nonce( 'mm_team_nonce' ); ?>'
}, function(r) {
btn.prop('disabled', false).text('Reihenfolge speichern');
if(r.success){
$('#order-save-msg').fadeIn().delay(1200).fadeOut();
} else {
alert('Fehler beim Speichern der Reihenfolge!');
}
});
});
});
</script>
<?php
}
// AJAX-Handler für Reihenfolge speichern
add_action( 'wp_ajax_mm_save_team_order', 'handle_mm_save_team_order' );
function handle_mm_save_team_order() {
check_ajax_referer( 'mm_team_nonce', 'nonce' );
if ( ! current_user_can( 'edit_posts' ) ) wp_send_json_error( 'Keine Berechtigung' );
if ( empty( $_POST['ids'] ) ) {
wp_send_json_error( 'Keine IDs' );
}
$ids = is_array($_POST['ids']) ? $_POST['ids'] : explode(',', $_POST['ids']);
$ids = array_map('intval', $ids);
$pos = 0;
foreach ( $ids as $id ) {
wp_update_post( array( 'ID' => $id, 'menu_order' => $pos ) );
$pos++;
}
wp_send_json_success();
}
add_action( 'wp_ajax_mm_add_team_member', 'handle_mm_add_member' );
function handle_mm_add_member() {

View File

@@ -6,7 +6,6 @@
<?php while ( have_posts() ) : the_post(); ?>
<article id="post-<?php the_ID(); ?>" <?php post_class('page-content'); ?>>
<div class="page-content-inner">
<h1 class="page-title"><?php the_title(); ?></h1>
<div class="page-entry">
<?php the_content(); ?>
</div>

View File

@@ -8,14 +8,6 @@
<div class="archive-type-badge">
<i class="fas fa-search"></i> <?php _e('Suchergebnisse', 'minecraft-modern-theme'); ?>
</div>
<h1 class="archive-title">
<?php
printf(
__('Ergebnisse für: <span class="search-query">%s</span>', 'minecraft-modern-theme'),
'<em>' . esc_html( get_search_query() ) . '</em>'
);
?>
</h1>
<?php global $wp_query; ?>
<p class="search-result-count">
<?php printf(

View File

@@ -5,7 +5,6 @@
<article id="post-<?php the_ID(); ?>" <?php post_class('post single-faq'); ?>>
<header class="entry-header">
<h1 class="entry-title"><?php the_title(); ?></h1>
<a href="<?php echo get_post_type_archive_link('faq'); ?>" class="back-to-faq">&larr; <?php _e( 'Zurück zur Übersicht', 'minecraft-modern-theme' ); ?></a>
</header>
<div class="entry-content">
@@ -16,4 +15,4 @@
</div>
</div>
<?php get_footer(); ?>
<?php get_footer(); ?>

View File

@@ -50,7 +50,6 @@ $layout_class = $has_sidebar
</nav>
<?php endif; ?>
<h1 class="post-title"><?php the_title(); ?></h1>
<div class="post-meta">
<span class="post-meta-item post-author">

View File

@@ -4,7 +4,7 @@ Theme URI: https://git.viper.ipv64.net/M_Viper/Minecraft-Modern-Theme
Author: M_Viper
Description: Ein modernes Gaming-Theme mit konfigurierbarem Header-Slider.
Author URI: https://M-Viper.de
Version: 2.1
Version: 2.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: minecraft-modern-theme