diff --git a/admin/qtx_admin_modules.php b/admin/qtx_admin_modules.php
index eae9ec15..44a41ab9 100644
--- a/admin/qtx_admin_modules.php
+++ b/admin/qtx_admin_modules.php
@@ -63,6 +63,8 @@ public static function check_module( $module_def, $func_is_active = 'is_plugin_a
break;
}
}
+ } else if ( is_bool( $integration_plugin ) ) {
+ $active = $integration_plugin;
} else {
$active = call_user_func( $func_is_active, $integration_plugin );
}
diff --git a/admin/qtx_admin_settings.php b/admin/qtx_admin_settings.php
index 7fe5fb39..1eed5255 100644
--- a/admin/qtx_admin_settings.php
+++ b/admin/qtx_admin_settings.php
@@ -244,6 +244,8 @@ private function add_configuration_inspector() {
}
private function add_sections( $nonce_action ) {
+ global $q_config;
+
$admin_sections = array();
$admin_sections['general'] = __( 'General', 'qtranslate' );
$admin_sections['advanced'] = __( 'Advanced', 'qtranslate' );
@@ -253,9 +255,14 @@ private function add_sections( $nonce_action ) {
$admin_sections[ $key ] = $value;
}
- $admin_sections['integration'] = __( 'Integration', 'qtranslate' );
- $admin_sections['import'] = __( 'Import', 'qtranslate' ) . '/' . __( 'Export', 'qtranslate' );
- $admin_sections['languages'] = __( 'Languages', 'qtranslate' );
+ $admin_sections['integration'] = __( 'Integration', 'qtranslate' );
+ $admin_sections['import'] = __( 'Import', 'qtranslate' ) . '/' . __( 'Export', 'qtranslate' );
+ $admin_sections['languages'] = __( 'Languages', 'qtranslate' );
+
+ if ( $q_config['slugs_enabled'] ) {
+ $admin_sections['slugs'] = __( 'Slugs', 'qtranslate' );
+ }
+
$admin_sections['troubleshooting'] = __( 'Troubleshooting', 'qtranslate' );
?>
@@ -272,6 +279,11 @@ private function add_sections( $nonce_action ) {
$this->add_general_section();
$this->add_advanced_section();
$this->add_integration_section();
+
+ if ( $q_config['slugs_enabled'] ) {
+ $this->add_slugs_section();
+ }
+
$this->add_troubleshooting_section();
// Allow to load additional services
do_action( 'qtranslate_configuration', $this->options_uri );
@@ -743,6 +755,19 @@ class="qtranxs_explanation">
+
|
|