Fixing a small css issue in the user class.
[elgg.git] / units / templates / templates_preview.php
blob09cf5ef4d11f6579eb468e6aea826b3433d55cce
1 <?php
3 // Preview template
5 // Basic page elements
7 $name = "Basic page elements";
8 $heading1 = __gettext("Heading one"); // gettext variable
9 $heading2 = __gettext("Heading two"); // gettext variable
10 $bulletList = __gettext("A bullet list"); // gettext variable
11 $heading3 = __gettext("Heading three"); // gettext variable
12 $numberedList = __gettext("A numbered list"); // gettext variable
13 $body = <<< END
15 <img src="/_templates/leaves.jpg" width="300" height="225" alt="A test image" align="right" />
16 <h1>$heading1</h1>
17 <p>Paragraph text</p>
18 <h2>$heading2</h2>
19 <ul>
20 <li>$bulletList</li>
21 </ul>
22 <h3>$heading3</h3>
23 <ol>
24 <li>$numberedList</li>
25 </ol>
27 END;
29 $run_result .= templates_draw(array(
30 'context' => 'contentholder',
31 'title' => $name,
32 'body' => $body
36 // Form elements
38 $name = "Data input";
40 $body = templates_draw(array(
41 'context' => 'databox',
42 'name' => __gettext("Some text input"),
43 'column1' => display_input_field(array("blank","","text")),
44 'column2' => run("display:access_level_select",array("blank","PUBLIC"))
47 $body .= templates_draw(array(
48 'context' => 'databox1',
49 'name' => __gettext("Some longer text input"),
50 'column1' => display_input_field(array("blank","","longtext"))
53 $body .= templates_draw(array(
54 'context' => 'databoxvertical',
55 'name' => __gettext("Further text input"),
56 'contents' => display_input_field(array("blank","","longtext")) . "<br />" . display_input_field(array("blank","","text")) . "<br /><input type='button' value='Button' />"
60 $run_result .= templates_draw(array(
61 'context' => 'contentholder',
62 'title' => $name,
63 'body' => $body,
64 'submenu' => ''