aboutsummaryrefslogtreecommitdiff
path: root/mod/developers/views/default/theme_preview/general.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/developers/views/default/theme_preview/general.php')
-rw-r--r--mod/developers/views/default/theme_preview/general.php93
1 files changed, 40 insertions, 53 deletions
diff --git a/mod/developers/views/default/theme_preview/general.php b/mod/developers/views/default/theme_preview/general.php
index bd11b35db..7d98d4443 100644
--- a/mod/developers/views/default/theme_preview/general.php
+++ b/mod/developers/views/default/theme_preview/general.php
@@ -1,59 +1,46 @@
<?php
/**
- * General CSS
+ * Quick introduction to the theme sandbox
+ *
+ * @todo links to resources?
*/
-
-$ipsum = elgg_view('developers/ipsum');
-
?>
-<div class="elgg-page mal">
- <?php echo elgg_view('theme_preview/header', $vars); ?>
- <h2>Headings</h2>
- <div class="mbl">
- <h1>Level 1 heading</h1>
- <h2>Level 2 heading</h2>
- <h3>Level 3 heading</h3>
- <h4>Level 4 heading</h4>
- <h5>Level 5 heading</h5>
- <h6>Level 6 heading</h6>
- </div>
- <h2>Paragraph</h2>
- <div class="mbl">
- <p>Lorem ipsum dolor sit amet, <a href="#" title="test link">test link</a>
- 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.</p>
+<p>This theme sandbox 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>
+<?php
+$simple_cache = elgg_get_config('simplecache_enabled');
+$system_cache = elgg_get_config('system_cache_enabled');
+
+if ($simple_cache || $system_cache) {
+ $advanced = elgg_view('output/url', array(
+ 'text' => 'Advanced Settings',
+ 'href' => 'admin/settings/advanced',
+ 'is_trusted' => true
+ ));
+ $developers = elgg_view('output/url', array(
+ 'text' => 'Developers\' Plugin Settings',
+ 'href' => 'admin/developers/settings',
+ 'is_trusted' => true
+ ));
+
+ $body = "Caches are enabled. Changes you make to CSS and views might not appear. It is
+ always recommended to disable caches while developing themes and plugins. To
+ disable caches, visit the $advanced or $developers pages.";
- <p>Lorem ipsum dolor sit amet, <em>emphasis</em>
- 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.</p>
- </div>
- <h2>Misc</h2>
- <p>
- I am <a href="?abc123">the a tag</a> example<br />
- I am <abbr title="test">the abbr tag</abbr> example<br />
- I am <acronym>the acronym tag</acronym> example<br />
- I am <b>the b tag</b> example<br />
- I am <code>the code tag</code> example<br />
- I am <del>the del tag</del> example<br />
- I am <em>the em tag</em> example<br />
- I am <i>the i tag</i> example<br />
- I am <strong>the strong tag</strong> example<br />
- </p>
- <blockquote><p>Paragraph inside Blockquote: <?php echo $ipsum; ?></p></blockquote>
- <pre><strong>Preformated:</strong>Testing one row
- and another</pre>
-</div>
+ echo elgg_view_module('info', 'Warning', $body);
+}
+?>
+<p>
+<?php
+ echo elgg_view('output/url', array(
+ 'text' => elgg_echo('theme_preview:breakout'),
+ 'href' => current_page_url(),
+ 'target' => '_parent',
+ 'is_trusted' => true,
+ ));
+?>
+</p>