From 4cac1871f1c83d1cb40134b511125987f92f2c46 Mon Sep 17 00:00:00 2001 From: Sem Date: Thu, 16 Aug 2012 14:46:11 +0200 Subject: Fixed theme preview. --- .../views/default/theme_preview/buttons.php | 41 ++++++ .../theme_preview/components/image_block.php | 6 + .../default/theme_preview/components/list.php | 19 +++ .../default/theme_preview/components/messages.php | 5 + .../default/theme_preview/components/table.php | 12 ++ .../views/default/theme_preview/forms.php | 138 +++++++++++++++++++++ .../views/default/theme_preview/icons.php | 10 ++ .../views/default/theme_preview/icons/avatars.php | 36 ++++++ .../views/default/theme_preview/icons/loader.php | 1 + .../views/default/theme_preview/icons/sprites.php | 61 +++++++++ .../views/default/theme_preview/modules.php | 6 + .../default/theme_preview/modules/modules.php | 23 ++++ .../default/theme_preview/modules/widgets.php | 64 ++++++++++ .../theme_preview/navigation/pagination.php | 8 ++ .../default/theme_preview/typography/headings.php | 6 + .../default/theme_preview/typography/misc.php | 16 +++ .../default/theme_preview/typography/paragraph.php | 19 +++ 17 files changed, 471 insertions(+) create mode 100644 mod/developers/views/default/theme_preview/buttons.php create mode 100644 mod/developers/views/default/theme_preview/components/image_block.php create mode 100644 mod/developers/views/default/theme_preview/components/list.php create mode 100644 mod/developers/views/default/theme_preview/components/messages.php create mode 100644 mod/developers/views/default/theme_preview/components/table.php create mode 100644 mod/developers/views/default/theme_preview/forms.php create mode 100644 mod/developers/views/default/theme_preview/icons.php create mode 100644 mod/developers/views/default/theme_preview/icons/avatars.php create mode 100644 mod/developers/views/default/theme_preview/icons/loader.php create mode 100644 mod/developers/views/default/theme_preview/icons/sprites.php create mode 100644 mod/developers/views/default/theme_preview/modules.php create mode 100644 mod/developers/views/default/theme_preview/modules/modules.php create mode 100644 mod/developers/views/default/theme_preview/modules/widgets.php create mode 100644 mod/developers/views/default/theme_preview/navigation/pagination.php create mode 100644 mod/developers/views/default/theme_preview/typography/headings.php create mode 100644 mod/developers/views/default/theme_preview/typography/misc.php create mode 100644 mod/developers/views/default/theme_preview/typography/paragraph.php (limited to 'mod') diff --git a/mod/developers/views/default/theme_preview/buttons.php b/mod/developers/views/default/theme_preview/buttons.php new file mode 100644 index 000000000..718d88617 --- /dev/null +++ b/mod/developers/views/default/theme_preview/buttons.php @@ -0,0 +1,41 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
DefaultDisabled (.elgg-state-disabled)
Base (.elgg-button)anchoranchor
Action (.elgg-button-action)anchoranchor
Cancel (.elgg-button-cancel)anchoranchor
Submit (.elgg-button-submit)anchoranchor
Special (.elgg-button-special)anchoranchor
Delete (.elgg-button-delete)anchoranchor
\ No newline at end of file diff --git a/mod/developers/views/default/theme_preview/components/image_block.php b/mod/developers/views/default/theme_preview/components/image_block.php new file mode 100644 index 000000000..0bb16428b --- /dev/null +++ b/mod/developers/views/default/theme_preview/components/image_block.php @@ -0,0 +1,6 @@ +title = "Object 1"; +$obj1->description = $ipsum; + +$obj2 = new ElggObject(); +$obj2->title = "Object 2"; +$obj2->description = $ipsum; + +$obj3 = new ElggObject(); +$obj3->title = "Object 3"; +$obj3->description = $ipsum; + +$obj4 = new ElggObject(); +$obj4->title = "Object 4"; +$obj4->description = $ipsum; + +echo elgg_view('page/components/list', array('items' => array($obj1, $obj2, $obj3, $obj4))); diff --git a/mod/developers/views/default/theme_preview/components/messages.php b/mod/developers/views/default/theme_preview/components/messages.php new file mode 100644 index 000000000..ac4d2bfd7 --- /dev/null +++ b/mod/developers/views/default/theme_preview/components/messages.php @@ -0,0 +1,5 @@ + diff --git a/mod/developers/views/default/theme_preview/components/table.php b/mod/developers/views/default/theme_preview/components/table.php new file mode 100644 index 000000000..8b8b13e76 --- /dev/null +++ b/mod/developers/views/default/theme_preview/components/table.php @@ -0,0 +1,12 @@ + +"; + for ($i = 1; $i < 5; $i++) { + echo ''; + for ($j = 1; $j < 3; $j++) { + echo ""; + } + echo ''; + } +?> +
column 1column 2
value $j
\ No newline at end of file diff --git a/mod/developers/views/default/theme_preview/forms.php b/mod/developers/views/default/theme_preview/forms.php new file mode 100644 index 000000000..ffb77f3a9 --- /dev/null +++ b/mod/developers/views/default/theme_preview/forms.php @@ -0,0 +1,138 @@ +
+
+ Fieldset Legend +
+ + 'f1', + 'id' => 'f1', + 'value' => 'input text', + )); + ?> +
+
+ + 'f2', + 'id' => 'f2', + 'value' => 'password', + )); + ?> +
+
+
+ 'f3', + 'id' => 'f3', + 'options' => array('a (.elgg-input-radio)' => 1, 'b (.elgg-input-radio)' => 2), + )); + ?> +
+
+
+ 'f4', + 'id' => 'f4', + 'options' => array('a (.elgg-input-checkbox)' => 1, 'b (.elgg-input-checkbox)' => 2), + )); + ?> +
+
+
+ 'f5', + 'id' => 'f5', + 'options' => array('option 1', 'option 2'), + )); + ?> +
+
+
+ 'f6', + 'id' => 'f6', + 'value' => ACCESS_PUBLIC, + )); + ?> +
+
+ + 'f7', + 'id' => 'f7', + )); + ?> +
+
+ + 'f8', + 'id' => 'f8', + 'value' => 'http://elgg.org/', + )); + ?> +
+
+ + 'f9', + 'id' => 'f9', + 'value' => 'one, two, three', + )); + ?> +
+
+ + 'f10', + 'id' => 'f10', + 'value' => 'noone@elgg.org', + )); + ?> +
+
+ + 'f11', + 'id' => 'f11', + 'match_on' => 'users', + )); + ?> +
+
+ + 'f12', + 'id' => 'f12', + 'value' => '2012-12-31', + )); + ?> +
+
+ + 'f13', + 'id' => 'f13', + )); + ?> +
+
+ + 'f15', + 'id' => 'f15', + 'value' => $ipsum, + )); + ?> +
+
+ + 'f14', + 'id' => 'f14', + 'value' => $ipsum, + )); + ?> +
+
+
\ No newline at end of file diff --git a/mod/developers/views/default/theme_preview/icons.php b/mod/developers/views/default/theme_preview/icons.php new file mode 100644 index 000000000..e1684c110 --- /dev/null +++ b/mod/developers/views/default/theme_preview/icons.php @@ -0,0 +1,10 @@ + + + + + $size"; + } + ?> + + + + '; + echo elgg_view_entity_icon($user, $size, array('use_hover' => false)); + echo ''; + } + ?> + + + + '; + echo elgg_view_entity_icon($group, $size, array('use_hover' => false)); + echo ''; + } + ?> + +
User
Group
diff --git a/mod/developers/views/default/theme_preview/icons/loader.php b/mod/developers/views/default/theme_preview/icons/loader.php new file mode 100644 index 000000000..e542da27c --- /dev/null +++ b/mod/developers/views/default/theme_preview/icons/loader.php @@ -0,0 +1 @@ + false)); ?> \ No newline at end of file diff --git a/mod/developers/views/default/theme_preview/icons/sprites.php b/mod/developers/views/default/theme_preview/icons/sprites.php new file mode 100644 index 000000000..134dd9aca --- /dev/null +++ b/mod/developers/views/default/theme_preview/icons/sprites.php @@ -0,0 +1,61 @@ + + + \ No newline at end of file diff --git a/mod/developers/views/default/theme_preview/modules.php b/mod/developers/views/default/theme_preview/modules.php new file mode 100644 index 000000000..3e0acb3a5 --- /dev/null +++ b/mod/developers/views/default/theme_preview/modules.php @@ -0,0 +1,6 @@ + +
+
+
+ +
+
+
+
+ +
+
+
\ No newline at end of file diff --git a/mod/developers/views/default/theme_preview/modules/widgets.php b/mod/developers/views/default/theme_preview/modules/widgets.php new file mode 100644 index 000000000..8c9fd6483 --- /dev/null +++ b/mod/developers/views/default/theme_preview/modules/widgets.php @@ -0,0 +1,64 @@ + +
+ +handler = 'friends'; + $obj->title = "Widget $i"; + $w[] = $obj; +} +$column1 = array($w[0], $w[1]); +$column2 = array($w[2], $w[3]); +$column3 = array($w[4], $w[5]); +$widgets = array(1 => $column1, 2 => $column2, 3 => $column3); +$num_columns = 3; +$widget_class = "elgg-col-1of{$num_columns}"; +for ($column_index = 1; $column_index <= $num_columns; $column_index++) { + $column_widgets = $widgets[$column_index]; + + echo "
"; + if (is_array($column_widgets) && sizeof($column_widgets) > 0) { + foreach ($column_widgets as $widget) { + echo elgg_view_entity($widget); + } + } + echo '
'; +} +?> +
+ diff --git a/mod/developers/views/default/theme_preview/navigation/pagination.php b/mod/developers/views/default/theme_preview/navigation/pagination.php new file mode 100644 index 000000000..90ae48edf --- /dev/null +++ b/mod/developers/views/default/theme_preview/navigation/pagination.php @@ -0,0 +1,8 @@ + 1000, + 'limit' => 10, + 'offset' => 230, +); + +echo elgg_view('navigation/pagination', $params); \ No newline at end of file diff --git a/mod/developers/views/default/theme_preview/typography/headings.php b/mod/developers/views/default/theme_preview/typography/headings.php new file mode 100644 index 000000000..1eb96c75c --- /dev/null +++ b/mod/developers/views/default/theme_preview/typography/headings.php @@ -0,0 +1,6 @@ +

Level 1 heading

+

Level 2 heading

+

Level 3 heading

+

Level 4 heading

+
Level 5 heading
+
Level 6 heading
\ No newline at end of file diff --git a/mod/developers/views/default/theme_preview/typography/misc.php b/mod/developers/views/default/theme_preview/typography/misc.php new file mode 100644 index 000000000..93a279c36 --- /dev/null +++ b/mod/developers/views/default/theme_preview/typography/misc.php @@ -0,0 +1,16 @@ + +

Paragraph inside Blockquote:

+
+	Preformated:Testing one row
+	and another
+
diff --git a/mod/developers/views/default/theme_preview/typography/paragraph.php b/mod/developers/views/default/theme_preview/typography/paragraph.php new file mode 100644 index 000000000..54d548f46 --- /dev/null +++ b/mod/developers/views/default/theme_preview/typography/paragraph.php @@ -0,0 +1,19 @@ +

Lorem ipsum dolor sit amet, test link +adipiscing elit. Nullam dignissim convallis est. Quisque aliquam. Donec +faucibus. Nunc iaculis suscipit dui. Nam sit amet sem. Aliquam libero +nisi, imperdiet at, tincidunt nec, gravida vehicula, nisl. Praesent +mattis, massa quis luctus strong, turpis mi volutpat justo, eu +volutpat enim diam eget metus. Maecenas ornare tortor. Donec sed tellus +eget sapien fringilla nonummy. Mauris a ante. Suspendisse quam sem, +consequat at, commodo vitae, feugiat in, nunc. Morbi imperdiet augue +quis tellus.

+ +

Lorem ipsum dolor sit amet, emphasis consectetuer +adipiscing elit. Nullam dignissim convallis est. Quisque aliquam. Donec +faucibus. Nunc iaculis suscipit dui. Nam sit amet sem. Aliquam libero +nisi, imperdiet at, tincidunt nec, gravida vehicula, nisl. Praesent +mattis, massa quis luctus fermentum, turpis mi volutpat justo, eu +volutpat enim diam eget metus. Maecenas ornare tortor. Donec sed tellus +eget sapien fringilla nonummy. Mauris a ante. Suspendisse quam sem, +consequat at, commodo vitae, feugiat in, nunc. Morbi imperdiet augue +quis tellus.

\ No newline at end of file -- cgit v1.2.3