From 75efcff5e18fce2d62a69228021d60684e0390c1 Mon Sep 17 00:00:00 2001 From: cash Date: Mon, 14 Feb 2011 01:30:46 +0000 Subject: Refs #2903 navigation updated for theme preview git-svn-id: http://code.elgg.org/elgg/trunk@8217 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/developers/start.php | 12 +++++- .../views/default/admin/developers/preview.php | 2 +- .../views/default/theme_preview/forms.php | 9 ++--- .../views/default/theme_preview/general.php | 9 ++--- .../views/default/theme_preview/grid.php | 7 +--- .../views/default/theme_preview/header.php | 43 ++++++++++++++++++++++ .../views/default/theme_preview/icons.php | 7 +--- mod/developers/views/default/theme_preview/nav.php | 7 +--- .../views/default/theme_preview/objects.php | 9 ++--- .../views/default/theme_preview/widgets.php | 10 +---- 10 files changed, 68 insertions(+), 47 deletions(-) create mode 100644 mod/developers/views/default/theme_preview/header.php (limited to 'mod') diff --git a/mod/developers/start.php b/mod/developers/start.php index 5763d5d34..e8e2b8506 100644 --- a/mod/developers/start.php +++ b/mod/developers/start.php @@ -34,8 +34,16 @@ function developers_theme_preview_controller($page) { $page[0] = 'index'; } + $pages = array('general', 'nav', 'forms', 'objects', 'grid', 'widgets', 'icons'); + + elgg_set_config('tp_ipsum', "Sed scelerisque sagittis lorem. Phasellus sodales. + Nulla urna justo, vehicula in, suscipit nec, molestie sed, tellus."); + $title = elgg_echo("theme_preview:{$page[0]}"); - $page = elgg_view("theme_preview/{$page[0]}"); + $page = elgg_view("theme_preview/{$page[0]}", array( + 'pages' => $pages, + 'page' => $page[0], + )); echo elgg_view_page($title, $page, 'theme_preview'); -} \ No newline at end of file +} diff --git a/mod/developers/views/default/admin/developers/preview.php b/mod/developers/views/default/admin/developers/preview.php index 59e403bf7..3d16e5a42 100644 --- a/mod/developers/views/default/admin/developers/preview.php +++ b/mod/developers/views/default/admin/developers/preview.php @@ -3,6 +3,6 @@ * CSS Preview */ -$url = elgg_get_site_url() . 'documentation/theming/preview/index.php'; +$url = elgg_get_site_url() . 'pg/theme_preview/'; ?> \ 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 index 90cc5dcc8..621f71b33 100644 --- a/mod/developers/views/default/theme_preview/forms.php +++ b/mod/developers/views/default/theme_preview/forms.php @@ -5,14 +5,11 @@ $url = current_page_url(); +$ipsum = elgg_get_config('tp_ipsum'); + ?>
-

- Index > -

- +

Form

diff --git a/mod/developers/views/default/theme_preview/general.php b/mod/developers/views/default/theme_preview/general.php index e64a60748..52400ab1d 100644 --- a/mod/developers/views/default/theme_preview/general.php +++ b/mod/developers/views/default/theme_preview/general.php @@ -3,15 +3,12 @@ * General CSS */ +$ipsum = elgg_get_config('tp_ipsum'); + ?>
-

- Index > -

-
- < previous  next > -
+

Headings

Level 1 heading

diff --git a/mod/developers/views/default/theme_preview/grid.php b/mod/developers/views/default/theme_preview/grid.php index 8e85d5c72..95e14cfd5 100644 --- a/mod/developers/views/default/theme_preview/grid.php +++ b/mod/developers/views/default/theme_preview/grid.php @@ -5,12 +5,7 @@ ?>
-

- Index > -

- +
-

- Index > -

-
- < previous  next > -
+

Icon Sprites

  • Settings
  • diff --git a/mod/developers/views/default/theme_preview/nav.php b/mod/developers/views/default/theme_preview/nav.php index 7fdf49a8e..4e6f4d3d6 100644 --- a/mod/developers/views/default/theme_preview/nav.php +++ b/mod/developers/views/default/theme_preview/nav.php @@ -11,12 +11,7 @@ elgg_push_breadcrumb('Third'); ?>
    -

    - Index > -

    - +

    Breadcrumbs

    diff --git a/mod/developers/views/default/theme_preview/objects.php b/mod/developers/views/default/theme_preview/objects.php index fc773afb9..d385fcdc0 100644 --- a/mod/developers/views/default/theme_preview/objects.php +++ b/mod/developers/views/default/theme_preview/objects.php @@ -5,15 +5,12 @@ $url = current_page_url(); +$ipsum = elgg_get_config('tp_ipsum'); + ?>
    -

    - Index > -

    - +

    Modules

    diff --git a/mod/developers/views/default/theme_preview/widgets.php b/mod/developers/views/default/theme_preview/widgets.php index 7f3fc938c..32ee487c8 100644 --- a/mod/developers/views/default/theme_preview/widgets.php +++ b/mod/developers/views/default/theme_preview/widgets.php @@ -10,8 +10,7 @@ elgg_register_plugin_hook_handler('view', 'widgets/friends/edit', 'css_widget_co elgg_register_plugin_hook_handler('permissions_check', 'all', 'css_permissions_override'); function css_widget_content() { - global $ipsum; - return $ipsum; + return elgg_get_config('tp_ipsum'); } function css_permissions_override() { @@ -21,12 +20,7 @@ function css_permissions_override() { ?>
    -

    - Index > -

    - +