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(B!9Rq&LCqV=$P2yg#Q>ZPuvvLQqiVWpPI_;{`s^8c8S(hnqU(r02
zpIu5f>aOW_=@zNc^b4`!{5i~u{k-3LaDRu#hsm)%um|Y=LLo1=J9{HQn%M;zf?f${n#<9c;ZDMLLR
zPiEwRMzs?#G>i7Ru9`JD?N~u7RVOVY@52a&3@Gi}ZU8*!+&L{rNW=ePOWXh9<&AFxXbnRxhs)Cqr#=X1FKA(gqGptIb2NAYR+N
rApct%xmBUf3I4(4x78l?At%Vx1s3;-oHL@7pA0_}682{FktF&*WZ3vN
diff --git a/lang/bdp-kompass_de_DE.po b/lang/bdp-kompass_de_DE.po
index 3475c67..82c1ec4 100644
--- a/lang/bdp-kompass_de_DE.po
+++ b/lang/bdp-kompass_de_DE.po
@@ -1,3 +1,18 @@
+msgid "kompass"
+msgstr "kompass"
+
+msgid "SEO-Options"
+msgstr "Suchmaschinen-Einstellungen"
+
+msgid "Google Site verification"
+msgstr "Google Seiten-Verifikation"
+
+msgid "Bing Site verification"
+msgstr "Bing Seiten-Verifikation"
+
+msgid "Calendar Settings"
+msgstr "Kalender-Einstellungen"
+
msgid "Extended Security"
msgstr "Erweiterte Sicherheit"
diff --git a/modules/KompassSettings/Controllers/SettingsPage.php b/modules/KompassSettings/Controllers/SettingsPage.php
new file mode 100644
index 0000000..3566b5e
--- /dev/null
+++ b/modules/KompassSettings/Controllers/SettingsPage.php
@@ -0,0 +1,74 @@
+';
+ echo $showMessage;
+ echo '';
+ }
+ }
+
+ bdp_kompass_load_plugin_textdomain();
+
+ ?>
+
+
+
+ = __('kompass', BDP_LV_PLUGIN_SLUG); ?> - = __('Settings', BDP_LV_PLUGIN_SLUG); ?>
+
+ = kompass_settings_print_tab_header($tab); ?>
+
+
+ ';
+ do_settings_sections(BDP_LV_PLUGIN_SLUG . '-seo-settings');
+ submit_button();
+ echo '';
+ echo '';
+ break;
+ case 'tab2':
+ echo '';
+ break;
+ }
+ ?>
+
+
+ '.
+ '' .
+ __('Calendar Settings', BDP_LV_PLUGIN_SLUG) .
+ ''.
+ '' .
+ __('SEO', BDP_LV_PLUGIN_SLUG) .
+ ''.
+ '';
+ }
\ No newline at end of file
diff --git a/modules/LimitLoginAttempts/Views/text-element.php b/modules/LimitLoginAttempts/Views/text-element.php
deleted file mode 100644
index 2702e0c..0000000
--- a/modules/LimitLoginAttempts/Views/text-element.php
+++ /dev/null
@@ -1,7 +0,0 @@
-';
- if (defined('WP_DEBUG') && WP_DEBUG == true) {
- echo '
' . $settingName;
- }
-}
diff --git a/modules/LimitLoginAttempts/includes/gui_elements.php b/modules/LimitLoginAttempts/includes/gui_elements.php
index 39ccedd..e281d75 100644
--- a/modules/LimitLoginAttempts/includes/gui_elements.php
+++ b/modules/LimitLoginAttempts/includes/gui_elements.php
@@ -4,19 +4,7 @@ function custom_settings_section_callback() {
echo '';
}
-function _kompass_limit_logins_settings_callback(array $args) {
- $setting = get_option($args['setting'], null);
- if (null === $setting) {
- return;
- }
- $value = esc_attr($setting);
- if (isset($args['unit_division'])) {
- $value = (int)$value / (int)$args['unit_division'];
- }
-
- kompass_print_textbox($args['setting'], $value);
-}
function _kompass_limit_logins_settings_radio_callback(array $args)
{
@@ -35,6 +23,10 @@ add_settings_section(
BDP_LV_PLUGIN_SLUG . '-limit-login-attempts'
);
+
+
+
+
$settings_page = BDP_LV_PLUGIN_SLUG . '-limit-login-attempts';
@@ -45,7 +37,7 @@ add_settings_field(
'_kompass_limit_logins_settings_callback',
$settings_page,
'custom_settings_section',
- ['setting' => 'kompass_limit_login_allowed_retries']);
+ ['setting' => 'kompass_seo_google_verification']);
add_settings_field(
'kompass_lla_2',
@@ -110,3 +102,4 @@ add_settings_field(
$settings_page,
'custom_settings_section',
['setting' => 'kompass_limit_login_notify_email_after']);
+
diff --git a/modules/seo/Views/seo-form.php b/modules/seo/Views/seo-form.php
new file mode 100644
index 0000000..c9f5054
--- /dev/null
+++ b/modules/seo/Views/seo-form.php
@@ -0,0 +1,28 @@
+ 'kompass_seo_google_verification', 'style' => 'width: 500px']);
+
+
+add_settings_field(
+ 'kompass_seo_2',
+ __('Bing Site verification', BDP_LV_PLUGIN_SLUG),
+ '_kompass_limit_logins_settings_callback',
+ $seo_settings_page,
+ 'custom_settings_section',
+ ['setting' => 'kompass_seo_bing_verification', 'style' => 'width: 500px']);
\ No newline at end of file
diff --git a/modules/seo/classes/Seo.class.php b/modules/seo/classes/Seo.class.php
index 0997754..e83b48c 100644
--- a/modules/seo/classes/Seo.class.php
+++ b/modules/seo/classes/Seo.class.php
@@ -3,8 +3,34 @@
namespace Bdp\Modules\Seo;
class Seo
{
+ public static function importVerificationKeys() {
+ $aioseoSetting = get_option('aioseo_options', null);
+ if (null === $aioseoSetting) {
+ return;
+ }
+
+ if ('' !== $aioseoSetting && !is_object($aioseoSetting) && !is_array($aioseoSetting)){
+ $aioseoSetting = json_decode( $aioseoSetting );
+ }
+
+ if (!is_object($aioseoSetting) ||!isset($aioseoSetting->webmasterTools) ||!is_object($aioseoSetting->webmasterTools)) {
+ return;
+ }
+
+
+ $webmasterTools = $aioseoSetting->webmasterTools;
+ if ('' !== get_option('kompass_seo_google_verification', '')) {
+ update_option('kompass_seo_google_verification', $webmasterTools->google);
+ }
+
+ if ('' !== get_option('kompass_seo_bing_verification', '')) {
+ update_option('kompass_seo_bing_verification', $webmasterTools->bing);
+ }
+ }
+
public static function setup()
{
+
if (get_option('permalink_structure') === '') {
update_option('permalink_structure', '/%postname%/');
flush_rewrite_rules();
diff --git a/modules/seo/includes/meta.php b/modules/seo/includes/meta.php
new file mode 100644
index 0000000..0307483
--- /dev/null
+++ b/modules/seo/includes/meta.php
@@ -0,0 +1,12 @@
+' . "\n";
+ }
+
+ $bingVerification = get_option('kompass_seo_bing_verification', '');
+ if ('' !== $bingVerification) {
+ echo '' . "\n";
+ }
+}
\ No newline at end of file