0byt3m1n1
Path:
/
data
/
applications
/
aps
/
tikiwiki
/
14.1-0
/
standard
/
htdocs
/
lib
/
prefs
/
[
Home
]
File: available.php
<?php // (c) Copyright 2002-2015 by authors of the Tiki Wiki CMS Groupware Project // // All Rights Reserved. See copyright.txt for details and a complete list of authors. // Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details. // $Id: available.php 54411 2015-03-15 09:30:11Z gezzzan $ function prefs_available_list($partial = false) { global $tikilib; $themelib = TikiLib::lib('theme'); $map = array(); $themes = [ '' => tra('All'), 'default' => tr('Default Bootstrap'), ]; if (! $partial) { $languages = $tikilib->list_languages(false, null, true); foreach ( $languages as $lang ) { $map[ $lang['value'] ] = $lang['name']; } $themes = $themes + $themelib->list_themes_and_options(); unset($themes['custom_url']); //make sure Custom URL is removed from the list $themes = array_map('ucfirst', $themes); //make first character of array values uppercase } return array( 'available_languages' => array( 'name' => tra('Available languages'), 'description' => tra('By default, all languages supported by Tiki are available on multilingual sites. This option allows to limit the languages to a subset.'), 'filter' => 'lang', 'type' => 'multilist', 'dependencies' => array( 'feature_multilingual', 'restrict_language', ), 'tags' => array('basic'), 'options' => $map, 'default' => array(), ), 'available_themes' => array( 'name' => tra('Available themes'), 'description' => tra('Restrict available themes'), 'type' => 'multilist', 'options' => $themes, 'dependencies' => array( 'change_theme', ), 'default' => array(), ), ); }