Upload folder via GUI - includes
This commit is contained in:
@@ -937,7 +937,7 @@ class WBF_Shortcodes {
|
||||
if (is_int($active_tab) && !in_array($active_tab, [1,2,3,4])) {
|
||||
$active_tab = $is_own ? 1 : 2;
|
||||
}
|
||||
if (!is_int($active_tab) && $active_tab !== $shop_tab_id && $active_tab !== 'mc' && $active_tab !== 'plugins') {
|
||||
if (!is_int($active_tab) && $active_tab !== $shop_tab_id && $active_tab !== 'mc' && $active_tab !== 'plugins' && $active_tab !== 'abos') {
|
||||
$active_tab = $is_own ? 1 : 2;
|
||||
}
|
||||
// Tab 1, 3, 4, "shop" und String-Tabs nur für eigenes Profil (außer Tab 2 = Aktivität)
|
||||
@@ -1041,6 +1041,9 @@ class WBF_Shortcodes {
|
||||
<a href="?forum_profile=<?php echo (int)$profile->id; ?>&ptab=4" class="wbf-pv-tab<?php echo $active_tab===4?' active':''; ?>"><i class="fas fa-lock"></i> Sicherheit</a>
|
||||
<?php if ($shop_active): ?>
|
||||
<a href="?forum_profile=<?php echo (int)$profile->id; ?>&ptab=shop" class="wbf-pv-tab<?php echo $active_tab==='shop'?' active':''; ?>"><i class="fas fa-shopping-cart"></i> Käufe</a>
|
||||
<?php if ($is_own): ?>
|
||||
<a href="?forum_profile=<?php echo (int)$profile->id; ?>&ptab=abos" class="wbf-pv-tab<?php echo $active_tab==='abos'?' active':''; ?>"><i class="fas fa-receipt"></i> Abonnements</a>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
<a href="?forum_profile=<?php echo (int)$profile->id; ?>&ptab=mc" class="wbf-pv-tab<?php echo $active_tab==='mc'?' active':''; ?>"><i class="fas fa-plug"></i> Verbindungen</a>
|
||||
<?php if ( function_exists('vmcp_bridge_is_available') && vmcp_bridge_is_available() ) : ?>
|
||||
@@ -1280,8 +1283,24 @@ class WBF_Shortcodes {
|
||||
<?php endif; ?>
|
||||
|
||||
<!-- ══════════════════════════════════════════════════
|
||||
TAB 1 — Profil bearbeiten + Weitere Profilangaben
|
||||
TAB ABOS — Abonnement-Verwaltung
|
||||
══════════════════════════════════════════════════ -->
|
||||
<?php if ($is_own && $active_tab === 'abos'): ?>
|
||||
<?php
|
||||
// MC-Namen ermitteln: verknüpfter Name (MC-Bridge) oder Forum-Username
|
||||
$abo_mc_name = '';
|
||||
if ($mc_enabled && class_exists('WBF_MC_Bridge')) {
|
||||
$abo_mc_name = WBF_MC_Bridge::get_mc_name($profile->id) ?: '';
|
||||
}
|
||||
if (empty($abo_mc_name)) $abo_mc_name = $profile->username;
|
||||
|
||||
if (class_exists('WBF_Abo')) {
|
||||
echo WBF_Abo::render_tab($abo_mc_name, $profile->id);
|
||||
} else {
|
||||
echo '<p class="wbf-notice">Abo-Modul nicht verfügbar.</p>';
|
||||
}
|
||||
?>
|
||||
<?php endif; ?>
|
||||
<?php if ($is_own && $active_tab === 1): ?>
|
||||
|
||||
<!-- Profil bearbeiten -->
|
||||
|
||||
Reference in New Issue
Block a user