aboutsummaryrefslogtreecommitdiff
path: root/mod/developers/views/default/theme_preview/general.php
blob: 7d98d4443c00099659fb2bb9507460b61cf64b11 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<?php
/**
 * Quick introduction to the theme sandbox
 *
 * @todo links to resources?
 */
?>

<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.";

	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>