aboutsummaryrefslogtreecommitdiff
path: root/mod/developers/views/default/theme_preview/icons.php
blob: 8178a9da7ea111dcde94d4671cabaf286708fc36 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<?php
/**
 * Icons CSS
 */

?>
<style>li {margin: 10px; float: left;} ul {background-color: #e0e0e0;}</style>
<div class="elgg-page mal">
	<?php echo elgg_view('theme_preview/header', $vars); ?>
	<h2>Icon Sprites</h2>
	<ul class="mbl clearfix">
	<?php 
		$icons = array(
			'settings' => 'Settings', 
			'friends' => 'Friends', 
			'help' => 'Help', 
			'delete' => 'Delete', 
			'thumbs-up' => 'Thumbs Up',
			'thumbs-up-alt' => 'Thumbs Up Alternate',
			'following' => 'Following', 
			'dragger' => 'Dragger', 
			'rss' => 'RSS', 
			'arrow-s' => 'Arrow S', 
			'hover-menu' => 'Hover Menu',
		);
		
		foreach ($icons as $icon_id => $icon_label) {
			echo "<li>" . elgg_view_icon($icon_id) . $icon_label . "</li>";
		}
	
	?>
	</ul>
	<h2>Ajax loader</h2>
	<div class="mbl">
		<?php echo elgg_view('graphics/ajax_loader', array('hidden' => false)); ?>
	</div>
	<h2>Avatars</h2>
	<div class="mbl">
		<?php
			$user = new ElggUser();
			$sizes = array('large', 'medium', 'small', 'tiny');
			echo '<table>';
			echo '<tr>';
			foreach ($sizes as $size) {
				echo "<td class=\"center\"><h4>$size</h4></td>";
			}
			echo '</tr>';
			echo '<tr>';
			foreach ($sizes as $size) {
				echo '<td class="phs">';
				echo elgg_view_entity_icon($user, $size, array('hover' => false));
				echo '</td>';
			}
			echo '</tr>';
			echo '</table>';
		?>
	</div>
</div>