list_user_selectable_layouts(isset($prefs['site_theme']) ? $prefs['site_theme'] : '', isset($prefs['theme_option']) ? $prefs['theme_option'] : ''); $available_admin_layouts = TikiLib::lib('css')->list_user_selectable_layouts(isset($prefs['site_theme_admin']) ? $prefs['site_theme_admin'] : '', isset($prefs['theme_option_admin']) ? $prefs['theme_option_admin'] : ''); $listGroups = TikiLib::lib('user')->get_groups(); $groups[''] = tr('All'); foreach ($listGroups['data'] as $group) { $groups[$group['groupName']] = $group['groupName']; } unset($groups['Anonymous']); return [ 'site_closed' => [ 'name' => tra('Close site'), 'description' => tra('Use this setting to \"close\" the Tiki site (such as for maintenance). Users attempting to access the site will see only a log-in form. Only users with specific permission will be allowed to log in. Use the Message to display to specify the message that visitors will see when attempting to access your site.'), 'type' => 'flag', 'help' => 'Site-Access#Close_site', 'perspective' => false, 'tags' => ['basic'], 'default' => 'n', ], 'site_closed_title' => [ 'name' => tra('Title'), 'type' => 'text', 'perspective' => false, 'dependencies' => [ 'site_closed', ], 'default' => tra('Coming soon'), 'tags' => ['basic'], ], 'site_closed_msg' => [ 'name' => tra('Message'), 'type' => 'text', 'perspective' => false, 'dependencies' => [ 'site_closed', ], 'default' => tra('Site is closed for maintenance; please come back later.'), 'tags' => ['basic'], ], 'site_busy_title' => [ 'name' => tra('Site Busy Title'), 'type' => 'text', 'perspective' => false, 'dependencies' => [ 'use_load_threshold', ], 'default' => tra('Server too busy'), ], 'site_busy_msg' => [ 'name' => tra('Site Busy Message'), 'type' => 'text', 'perspective' => false, 'dependencies' => [ 'use_load_threshold', ], 'default' => tra('Server is currently too busy; please come back later.'), ], 'site_crumb_seper' => [ 'name' => tra('Locations (breadcrumbs)'), 'type' => 'text', 'hint' => tr('Examples: » / > : -> →'), 'size' => '5', 'default' => '»', ], 'site_nav_seper' => [ 'name' => tra('Choices'), 'type' => 'text', 'hint' => tr('Examples: | / ¦ :'), 'size' => '5', 'default' => '|', ], 'site_title_location' => [ 'name' => tra('Browser title position'), 'description' => tra('Position of the browser title in the full browser bar relative to the current page\'s descriptor.'), 'type' => 'list', 'options' => [ 'after' => tra('After current page\'s descriptor'), 'before' => tra('Before current page\'s descriptor'), 'none' => tra('No browser title, only current page\'s descriptor'), 'only' => tra('Only browser title, no current page\'s descriptor'), ], 'tags' => ['basic'], 'default' => 'before', ], 'site_title_breadcrumb' => [ 'name' => tra('Browser title display mode'), 'description' => tra('When breadcrumbs are used, method to display the browser title.'), 'type' => 'list', 'options' => [ 'invertfull' => tra('Most-specific first'), 'fulltrail' => tra('Least-specific first (site)'), 'pagetitle' => tra('Current only'), 'desc' => tra('Description'), ], 'tags' => ['advanced'], 'default' => 'invertfull', ], 'site_favicon_enable' => [ 'name' => tr('Favicons'), 'description' => tra('Custom favicon image files can be put in the /themes/(themename)/favicons directory, or the default Tiki favicons can be used.'), 'type' => 'flag', 'default' => 'y', 'help' => 'Favicon', ], 'site_terminal_active' => [ 'name' => tra('Site terminal'), 'description' => tra('Allows users to be directed to a specific perspective depending on the origin IP address. Can be used inside intranets to use different configurations for users depending on their departements or discriminate people in web contexts. Unspecified IPs will fall back to default behavior, including multi-domain handling. Manually selected perspectives take precedence over this.'), 'type' => 'flag', 'dependencies' => [ 'feature_perspective', ], 'default' => 'n', ], 'site_terminal_config' => [ 'name' => tra('Site terminal configuration'), 'description' => tra('Provides the mapping from subnets to perspective.'), 'type' => 'textarea', 'perspective' => false, 'size' => 10, 'hint' => tra('One per line. Network prefix in CIDR notation (address/mask size), separated by comma with the perspective ID.') . ' ' . tra('Example:') . ' 192.168.12.0/24,12', 'default' => '', ], 'site_google_analytics_account' => [ 'name' => tr('Google Analytics account number'), 'description' => tra('The account number for the site. The account number from Google is something like UA-XXXXXXX-YY.'), 'type' => 'text', 'size' => 15, 'default' => '', 'hint' => tr(' Enter only XXXXXXX-YY (without the UA)'), 'dependencies' => [ 'wikiplugin_googleanalytics', ], ], 'site_google_analytics_group_option' => [ 'name' => tr('Google Analytics Groups Option'), 'description' => tr('Define option for Google Analytics groups'), 'type' => 'list', 'tags' => ['advanced'], 'options' => [ '' => tr('None'), 'included' => tr('Included'), 'excluded' => tr('Excluded'), ], 'default' => '', 'dependencies' => [ 'wikiplugin_googleanalytics', ], ], 'site_google_analytics_groups' => [ 'name' => tra('Google Analytics Available Groups'), 'description' => tr('User groups for which Google Analytics will be available'), 'type' => 'multilist', 'tags' => ['advanced'], 'options' => $groups, 'default' => [''], 'dependencies' => [ 'site_google_analytics_group_option', 'wikiplugin_googleanalytics', ], ], 'site_google_analytics_gtag' => [ 'name' => tr('Google Global Site Tag Mode'), 'description' => tra('Use the newer Google Global Site Tag (gtag.js) as opposed to the previous ga.js.'), 'type' => 'flag', 'default' => 'y', 'dependencies' => [ 'site_google_analytics_account', ], ], 'site_google_credentials' => [ 'name' => tra('Google authentication credentials file'), 'description' => tr('Path to the Google Service Account credentials JSON file.'), 'type' => 'text', 'size' => 30, 'default' => '', 'warning' => 'Must be kept private and not accessible on the internet directly', ], 'site_mautic_enable' => [ 'name' => tra('Mautic Integration'), 'description' => tra('Enable the feature here but configure it elsewhere'), 'help' => 'Tiki-Mautic-Integration', 'type' => 'flag', 'keywords' => 'mautic integration analytics', 'default' => 'n', 'admin' => 'mautic', ], 'site_mautic_url' => [ 'name' => tra('Mautic URL'), 'help' => 'Mautic-Url', 'type' => 'flag', 'perspective' => false, 'default' => 'n', ], 'site_mautic_tracking_image' => [ 'name' => tra('Tracking Image'), 'help' => 'Mautic-Tracking-Image', 'type' => 'flag', 'perspective' => false, 'default' => 'n', ], 'site_mautic_logged_users' => [ 'name' => tra('Logged Users'), 'help' => 'Mautic-Logged-Users', 'type' => 'flag', 'perspective' => false, 'default' => 'n', ], 'site_mautic_tracking_script_location' => [ 'name' => tra('Tracking Script Location'), 'type' => 'radio', 'options' => [ 'head' => tra('Added in the
section of tiki pages.'), 'embed' => tra('Embed it within the footer are before tag.'), 'visitor' => tra('Visitor will not be tracked when rendering the page.'), ], 'help' => 'Tracking-Script-Location', 'description' => tra('Tracking Script Location.'), 'default' => 'embed', ], 'site_mautic_username' => [ 'name' => tra('Mautic Username'), 'type' => 'text', 'dependencies' => ['site_mautic_enable'], 'perspective' => false, 'default' => '', ], 'site_mautic_password' => [ 'name' => tra('Mautic Password'), 'type' => 'password', 'dependencies' => ['site_mautic_enable'], 'perspective' => false, 'default' => '', ], 'site_layout' => [ 'name' => tr('Site layout'), 'description' => tr('Changes the template for the overall site layout'), 'type' => 'list', 'default' => 'basic', 'help' => 'Site-Layout', 'tags' => ['advanced'], 'options' => $available_layouts, ], 'site_layout_admin' => [ 'name' => tr('Admin layout'), 'description' => tr('Specify which layout template to use for admin pages.'), 'type' => 'list', 'default' => 'basic', 'tags' => ['advanced'], 'options' => $available_admin_layouts, ], 'site_layout_per_object' => [ 'name' => tr('Enable layout per page, etc.'), 'description' => tr('Specify an alternate layout for a particular wiki page, etc.'), 'tags' => ['experimental'], 'type' => 'flag', 'default' => 'n', ], 'site_piwik_analytics_server_url' => [ 'name' => tr('Piwik server URL'), 'description' => tr('The URL to the Piwik server of this site') . '