Grundfunktionalität zum Senden von E-Mails

This commit is contained in:
2024-03-24 19:52:32 +01:00
parent 5e766bc2e5
commit e9740e86b5
7 changed files with 221 additions and 11 deletions

View File

@ -30,7 +30,7 @@ function add_custom_admin_bar_item() {
'id' => 'kompass_gruppen',
'title' => '<span class="ab-icon dashicons-groups"></span>' .
'<span class="ab-label">' .__('Groups', BDP_LV_PLUGIN_SLUG) . '</span>',
'href' => 'admin.php?page=kompass-groups',
'href' => get_admin_url() . 'admin.php?page=kompass-groups',
];

View File

@ -25,16 +25,20 @@ foreach (glob($directoryPath . '*.php') as $file) {
require_once $file;
}
$modules = ['KompassSettings', 'LimitLoginAttempts', 'PasswordStrength', 'seo', 'Gruppen'];
$subdirs = ['includes', 'Controllers', 'Views', 'Requests', 'Actions'];
foreach ($modules as $curModule) {
foreach ($subdirs as $dir) {
$directoryPath = BDP_LV_PLUGIN_DIR . 'modules/' . $curModule . '/' . $dir . '/';
foreach (glob($directoryPath . '*.php') as $file) {
require_once $file;
}
}
foreach (scandir(BDP_LV_PLUGIN_DIR . 'modules/') as $curModule) {
if ($curModule != '.' && $curModule != '..' && is_dir(BDP_LV_PLUGIN_DIR . 'modules/' . $curModule))
{
if ($curModule == 'calendar') {
continue;
}
foreach ($subdirs as $dir) {
$directoryPath = BDP_LV_PLUGIN_DIR . 'modules/' . $curModule . '/' . $dir . '/';
foreach (glob($directoryPath . '*.php') as $file) {
require_once $file;
}
}
}
}