From d4139ca10963001c830a72c0f70f2c2dd8edec57 Mon Sep 17 00:00:00 2001 From: ewinslow Date: Sat, 23 Apr 2011 00:30:17 +0000 Subject: Fixes #3042: Theme preview navs now match css/elements/*. Also did a major cleanup of the presentation. git-svn-id: http://code.elgg.org/elgg/trunk@9019 36083f99-b078-4883-b0ff-0f9b5a30f544 --- .../theme_preview/navigation/breadcrumbs.php | 6 ++++++ .../default/theme_preview/navigation/default.php | 11 +++++++++++ .../default/theme_preview/navigation/extras.php | 18 ++++++++++++++++++ .../default/theme_preview/navigation/filter.php | 13 +++++++++++++ .../default/theme_preview/navigation/horizontal.php | 12 ++++++++++++ .../theme_preview/navigation/owner_block.php | 11 +++++++++++ .../views/default/theme_preview/navigation/page.php | 21 +++++++++++++++++++++ .../default/theme_preview/navigation/pagination.php | 8 ++++++++ .../views/default/theme_preview/navigation/site.php | 18 ++++++++++++++++++ .../views/default/theme_preview/navigation/tabs.php | 10 ++++++++++ 10 files changed, 128 insertions(+) create mode 100644 mod/developers/views/default/theme_preview/navigation/breadcrumbs.php create mode 100644 mod/developers/views/default/theme_preview/navigation/default.php create mode 100644 mod/developers/views/default/theme_preview/navigation/extras.php create mode 100644 mod/developers/views/default/theme_preview/navigation/filter.php create mode 100644 mod/developers/views/default/theme_preview/navigation/horizontal.php create mode 100644 mod/developers/views/default/theme_preview/navigation/owner_block.php create mode 100644 mod/developers/views/default/theme_preview/navigation/page.php create mode 100644 mod/developers/views/default/theme_preview/navigation/pagination.php create mode 100644 mod/developers/views/default/theme_preview/navigation/site.php create mode 100644 mod/developers/views/default/theme_preview/navigation/tabs.php (limited to 'mod/developers/views/default/theme_preview/navigation') diff --git a/mod/developers/views/default/theme_preview/navigation/breadcrumbs.php b/mod/developers/views/default/theme_preview/navigation/breadcrumbs.php new file mode 100644 index 000000000..eb3dd47a3 --- /dev/null +++ b/mod/developers/views/default/theme_preview/navigation/breadcrumbs.php @@ -0,0 +1,6 @@ +setSelected(true); + +echo elgg_view('navigation/menu/default', $params); diff --git a/mod/developers/views/default/theme_preview/navigation/extras.php b/mod/developers/views/default/theme_preview/navigation/extras.php new file mode 100644 index 000000000..6982cf57d --- /dev/null +++ b/mod/developers/views/default/theme_preview/navigation/extras.php @@ -0,0 +1,18 @@ + + +
+ +
\ No newline at end of file diff --git a/mod/developers/views/default/theme_preview/navigation/filter.php b/mod/developers/views/default/theme_preview/navigation/filter.php new file mode 100644 index 000000000..f27edf150 --- /dev/null +++ b/mod/developers/views/default/theme_preview/navigation/filter.php @@ -0,0 +1,13 @@ +setSelected(true); + +$params['name'] = 'filter'; + +echo elgg_view('navigation/menu/default', $params); diff --git a/mod/developers/views/default/theme_preview/navigation/horizontal.php b/mod/developers/views/default/theme_preview/navigation/horizontal.php new file mode 100644 index 000000000..69e75c063 --- /dev/null +++ b/mod/developers/views/default/theme_preview/navigation/horizontal.php @@ -0,0 +1,12 @@ +setSelected(true); +$params['class'] = 'elgg-menu-hz'; + +echo elgg_view('navigation/menu/default', $params); diff --git a/mod/developers/views/default/theme_preview/navigation/owner_block.php b/mod/developers/views/default/theme_preview/navigation/owner_block.php new file mode 100644 index 000000000..6bf79fe7e --- /dev/null +++ b/mod/developers/views/default/theme_preview/navigation/owner_block.php @@ -0,0 +1,11 @@ +setSelected(true); +$params['class'] = 'elgg-menu-owner-block'; + +echo elgg_view('navigation/menu/default', $params); \ No newline at end of file diff --git a/mod/developers/views/default/theme_preview/navigation/page.php b/mod/developers/views/default/theme_preview/navigation/page.php new file mode 100644 index 000000000..fb3f075dc --- /dev/null +++ b/mod/developers/views/default/theme_preview/navigation/page.php @@ -0,0 +1,21 @@ +setSelected(true); + +$m = new ElggMenuItem(10, "Child", "$url#"); +$m->setParent($params['menu']['default'][1]); +$params['menu']['default'][1]->addChild($m); +?> + +
+ +
\ No newline at end of file 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/navigation/site.php b/mod/developers/views/default/theme_preview/navigation/site.php new file mode 100644 index 000000000..df8dc1b70 --- /dev/null +++ b/mod/developers/views/default/theme_preview/navigation/site.php @@ -0,0 +1,18 @@ +setSelected(true); +?> + +
+
+ +
+
diff --git a/mod/developers/views/default/theme_preview/navigation/tabs.php b/mod/developers/views/default/theme_preview/navigation/tabs.php new file mode 100644 index 000000000..b2638bb37 --- /dev/null +++ b/mod/developers/views/default/theme_preview/navigation/tabs.php @@ -0,0 +1,10 @@ + array( + array('title' => 'First', 'url' => "$url#"), + array('title' => 'Second', 'url' => "$url#", 'selected' => true), + array('title' => 'Third', 'url' => "$url#"), + ) +); + +echo elgg_view('navigation/tabs', $params); \ No newline at end of file -- cgit v1.2.3