]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Fixes #3394 added a landing page to theme preview and break out of iframe link
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>
Thu, 9 Jun 2011 22:54:09 +0000 (22:54 +0000)
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>
Thu, 9 Jun 2011 22:54:09 +0000 (22:54 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@9164 36083f99-b078-4883-b0ff-0f9b5a30f544

mod/developers/languages/en.php
mod/developers/views/default/theme_preview/general.php [new file with mode: 0644]

index 26deb5fcfc04a157c005d5a89050b71a2222858d..53a9cd686454e56c85736f4f0f687a962fbaf6af 100644 (file)
@@ -27,6 +27,8 @@ $english = array(
        'developers:debug:notice' => 'Notice',
 
        // theme preview
+       'theme_preview:general' => 'Introduction',
+       'theme_preview:breakout' => 'Break out of iframe',
        'theme_preview:buttons' => 'Buttons',
        'theme_preview:components' => 'Components',
        'theme_preview:forms' => 'Forms',
diff --git a/mod/developers/views/default/theme_preview/general.php b/mod/developers/views/default/theme_preview/general.php
new file mode 100644 (file)
index 0000000..1a0b54c
--- /dev/null
@@ -0,0 +1,22 @@
+<?php
+/**
+ * Quick introduction to the theme preview
+ *
+ * @todo links to resources?
+ */
+?>
+
+<p>This theme preview provides a visual catalog for many of the theming elements
+       that Elgg uses. The primary css selector is listed with each theme element.
+       The preview is divided into sections that are listed in the page menu
+       (usually in the sidebar but depends on your current theme).
+</p>
+<p>
+<?php
+       echo elgg_view('output/url', array(
+               'text' => elgg_echo('theme_preview:breakout'),
+               'href' => current_page_url(),
+               'target' => '_parent',
+       ));
+?>
+</p>