aboutsummaryrefslogtreecommitdiff
path: root/documentation/css/preview/objects.php
blob: d9bffaf9bde9d080ccccc7e5e3817c408ac666bc (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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<?php
/**
 * CSS Objects: list, module, image_block
 */

$title = 'CSS Objects';

require dirname(__FILE__) . '/head.php';

?>
<body>
	<div class="elgg-page mal">
		<h1 class="mbl"><a href="index.php">Index</a> > <?php echo $title; ?></h1>
		<h2>Modules</h2>
		<div class="mbl clearfix">
			<div class="elgg-col elgg-col-1of2">
				<div class="pam">
				<?php
					echo elgg_view('layout/objects/module', array(
						'title' => 'elgg-aside-module',
						'body' => $ipsum,
						'class' => 'elgg-aside-module',
					));
				?>
				<?php
					echo elgg_view('layout/objects/module', array(
						'title' => 'elgg-popup-module',
						'body' => $ipsum,
						'class' => 'elgg-popup-module',
					));
				?>
				</div>
			</div>
			<div class="elgg-col elgg-col-1of2">
				<div class="pam">
				<?php
					echo elgg_view('layout/objects/module', array(
						'title' => 'elgg-group-module',
						'body' => $ipsum,
						'class' => 'elgg-group-module',
					));
				?>
				</div>
				<div class="pam">
				<?php
					echo elgg_view('layout/objects/module', array(
						'title' => 'elgg-info-module',
						'body' => $ipsum,
						'class' => 'elgg-info-module',
					));
				?>
				</div>
			</div>
		</div>
		<h2>Image Block</h2>
		<div class="mbl clearfix">
		<?php
			$src = elgg_view('icon/user/default/small');
			$image = "<img src=\"$src\" />";
			echo elgg_view_image_block($image, $ipsum);
		?>
		</div>
		<h2>List</h2>
		<div class="mbl clearfix">
		<?php
			$obj1 = new ElggObject();
			$obj1->title = "Object 1";
			$obj1->description = $ipsum;
			$obj2 = new ElggObject();
			$obj2->title = "Object 2";
			$obj2->description = $ipsum;
			echo elgg_view('layout/objects/list', array('items' => array($obj1, $obj2)));
		?>
		</div>
	</div>
</body>
</html>