示例#1
0
/**
 * This function does some admin actions, like register admin menus, extend the admin
 * css, etc. It is called by deyan start.php, and shouldn't be called again.
 *
 * @access private
 *
 * @return void
*/
function deyan_admin_init() {
	// Add admin menu item
	elgg_register_admin_menu_item('configure', 'icons', 'appearance');
	elgg_register_admin_menu_item('configure', 'theme', 'appearance');
	
	
	//customize admin css
	elgg_extend_view('css/admin', 'deyan/css/admin');
	
	$iconlib = deyan_get_iconlib();
	require_once deyan_get_iconlib_dir($iconlib) . 'preview.php';
}
示例#2
0
/**
 * Get the list of css files of the actual icon library
 *
 * @return array	An array containing the names of each css file.
*/
function deyan_get_iconlib_css($iconlib) {
	$dir = deyan_get_iconlib_dir($iconlib) . "css/";
	$icons = elgg_get_file_list($dir, '', '', '.php');
	
	foreach ($icons as $iconcss) {
		$iconcss = str_replace('.php', '', $iconcss);
		$iconcss = str_replace($dir, '', $iconcss);
		
		$css[] = $iconcss; 
		
	}
	 	
	 	
	return $css;
}