|
|
@@ -862,24 +862,21 @@ echo buildSettings(
|
|
|
array(
|
|
|
'title' => 'Homepage Settings',
|
|
|
'id' => 'homepage_settings',
|
|
|
- 'fields' => array(
|
|
|
- array(
|
|
|
- 'type' => 'header',
|
|
|
- 'label' => 'General',
|
|
|
- ),
|
|
|
- array(
|
|
|
- 'type' => $userSelectType,
|
|
|
- 'labelTranslate' => 'SHOW_HOMEPAGE',
|
|
|
- 'name' => 'homePageAuthNeeded',
|
|
|
- 'value' => HOMEPAGEAUTHNEEDED,
|
|
|
- 'options' => $userTypes,
|
|
|
- ),
|
|
|
+ 'tabs' => array(
|
|
|
array(
|
|
|
- 'type' => 'header',
|
|
|
- 'label' => 'Services',
|
|
|
+ 'title' => 'General',
|
|
|
+ 'id' => 'home_general',
|
|
|
+ 'image' => 'images/gear.png',
|
|
|
+ 'fields' => array(
|
|
|
+ array(
|
|
|
+ 'type' => $userSelectType,
|
|
|
+ 'labelTranslate' => 'SHOW_HOMEPAGE',
|
|
|
+ 'name' => 'homePageAuthNeeded',
|
|
|
+ 'value' => HOMEPAGEAUTHNEEDED,
|
|
|
+ 'options' => $userTypes,
|
|
|
+ ),
|
|
|
+ ),
|
|
|
),
|
|
|
- ),
|
|
|
- 'tabs' => array(
|
|
|
array(
|
|
|
'title' => 'Plex',
|
|
|
'id' => 'plex',
|
|
|
@@ -902,6 +899,13 @@ echo buildSettings(
|
|
|
'pattern' => '[a-zA-Z0-9]{20}',
|
|
|
'value' => PLEXTOKEN,
|
|
|
),
|
|
|
+ array(
|
|
|
+ 'type' => $userSelectType,
|
|
|
+ 'labelTranslate' => 'SHOW_ON_HOMEPAGE',
|
|
|
+ 'name' => 'plexHomeAuth',
|
|
|
+ 'value' => PLEXHOMEAUTH,
|
|
|
+ 'options' => $userTypes,
|
|
|
+ ),
|
|
|
array(
|
|
|
array(
|
|
|
'type' => 'checkbox',
|
|
|
@@ -928,13 +932,6 @@ echo buildSettings(
|
|
|
'value' => PLEXPLAYINGNOW,
|
|
|
),
|
|
|
),
|
|
|
- array(
|
|
|
- 'type' => $userSelectType,
|
|
|
- 'labelTranslate' => 'SHOW_ON_HOMEPAGE',
|
|
|
- 'name' => 'plexHomeAuth',
|
|
|
- 'value' => PLEXHOMEAUTH,
|
|
|
- 'options' => $userTypes,
|
|
|
- ),
|
|
|
),
|
|
|
),
|
|
|
array(
|
|
|
@@ -959,6 +956,13 @@ echo buildSettings(
|
|
|
'pattern' => '[a-zA-Z0-9]{32}',
|
|
|
'value' => EMBYTOKEN,
|
|
|
),
|
|
|
+ array(
|
|
|
+ 'type' => $userSelectType,
|
|
|
+ 'labelTranslate' => 'SHOW_ON_HOMEPAGE',
|
|
|
+ 'name' => 'embyHomeAuth',
|
|
|
+ 'value' => EMBYHOMEAUTH,
|
|
|
+ 'options' => $userTypes,
|
|
|
+ ),
|
|
|
array(
|
|
|
array(
|
|
|
'type' => 'checkbox',
|
|
|
@@ -985,13 +989,6 @@ echo buildSettings(
|
|
|
'value' => EMBYPLAYINGNOW,
|
|
|
),
|
|
|
),
|
|
|
- array(
|
|
|
- 'type' => $userSelectType,
|
|
|
- 'labelTranslate' => 'SHOW_ON_HOMEPAGE',
|
|
|
- 'name' => 'embyHomeAuth',
|
|
|
- 'value' => EMBYHOMEAUTH,
|
|
|
- 'options' => $userTypes,
|
|
|
- ),
|
|
|
),
|
|
|
),
|
|
|
array(
|
|
|
@@ -1268,7 +1265,7 @@ echo buildSettings(
|
|
|
array(
|
|
|
'title' => 'Advanced Settings',
|
|
|
'id' => 'advanced_settings',
|
|
|
- 'onready' => '$(\'.be-auth\').each(function() { $(this).parent().hide(); }); $(\'.be-auth-\'+$(\'#authBackend_id\').val()).each(function() { $(this).parent().show(); });',
|
|
|
+ 'onready' => '$(\'#authType_id\').trigger(\'change\')',
|
|
|
'tabs' => array(
|
|
|
array(
|
|
|
'title' => 'Backend Authentication',
|
|
|
@@ -1280,6 +1277,7 @@ echo buildSettings(
|
|
|
'labelTranslate' => 'AUTHTYPE',
|
|
|
'name' => 'authType',
|
|
|
'value' => AUTHTYPE,
|
|
|
+ 'onchange' => 'if (this.value == \'internal\') { $(\'.be-auth, #authBackend_id, #authBackendCreate_id\').parent().hide(); } else { $(\'#authBackend_id, #authBackendCreate_id\').trigger(\'change\').parent().show(); }',
|
|
|
'options' => array(
|
|
|
'Organizr' => 'internal',
|
|
|
'Organizr & Backend' => 'both',
|