mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +09:00
Add new option for Network Permalink Structure
This commit is contained in:
@@ -80,7 +80,9 @@ class UM_Permalinks {
|
||||
}
|
||||
}else {
|
||||
|
||||
if( um_core_is_local() ){
|
||||
$network_permalink_structure = um_get_option("network_permalink_structure");
|
||||
|
||||
if( $network_permalink_structure == "sub-directory" ){
|
||||
|
||||
$page_url = 'http';
|
||||
|
||||
|
||||
+24
-7
@@ -1959,12 +1959,8 @@ $this->sections[] = array(
|
||||
*** @
|
||||
***/
|
||||
|
||||
$this->sections[] = array(
|
||||
|
||||
'icon' => 'um-faicon-wrench',
|
||||
'title' => __('Advanced','ultimatemember'),
|
||||
'fields' => array(
|
||||
|
||||
$arr_advanced_fields = array(
|
||||
|
||||
array(
|
||||
'id' => 'import_export',
|
||||
'type' => 'import_export',
|
||||
@@ -2101,6 +2097,27 @@ $this->sections[] = array(
|
||||
'off' => __('Off','ultimatemember'),
|
||||
),
|
||||
|
||||
)
|
||||
);
|
||||
|
||||
if( is_multisite() ){
|
||||
$arr_advanced_fields[] = array(
|
||||
'id' => 'network_permalink_structure',
|
||||
'type' => 'select',
|
||||
'select2' => array( 'allowClear' => 0, 'minimumResultsForSearch' => -1 ),
|
||||
'title' => __( 'Network Permalink Structure','ultimatemember' ),
|
||||
'desc' => __( 'Change this If you are having conflicts with profile links or redirections in a multisite setup.','ultimatemember' ),
|
||||
'default' => 'sub-domain',
|
||||
'options' => array(
|
||||
'sub-domain' => __('Sub-Domain','ultimatemember'),
|
||||
'sub-directory' => __('Sub-Directory','ultimatemember'),
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
$this->sections[] = array(
|
||||
|
||||
'icon' => 'um-faicon-wrench',
|
||||
'title' => __('Advanced','ultimatemember'),
|
||||
'fields' => $arr_advanced_fields
|
||||
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user