aboutsummaryrefslogtreecommitdiff
path: root/start.php
diff options
context:
space:
mode:
authorSem <sembrestels@riseup.net>2012-05-25 22:05:21 +0200
committerSem <sembrestels@riseup.net>2012-05-25 22:05:21 +0200
commit8ca38a323ad022f06a91d14d8fdc183e50392414 (patch)
tree05d185050dc41f2241b6e1c4e28c7926b87c62c2 /start.php
parent08f0e922a806a27ef4e3ca96b59ef4bbfb08fde5 (diff)
parent60df8b304bd70b5ddc79927abec1b1dc2eb706ee (diff)
downloadelgg-8ca38a323ad022f06a91d14d8fdc183e50392414.tar.gz
elgg-8ca38a323ad022f06a91d14d8fdc183e50392414.tar.bz2
Forking Lorea/purity_theme
Conflicts: graphics/elgg_sprites.png manifest.xml start.php views/default/css/elements/buttons.php views/default/css/elements/forms.php views/default/css/elements/helpers.php views/default/css/elements/layout.php views/default/css/elements/typography.php
Diffstat (limited to 'start.php')
-rw-r--r--start.php98
1 files changed, 84 insertions, 14 deletions
diff --git a/start.php b/start.php
index 5f9081675..4d32d0a97 100644
--- a/start.php
+++ b/start.php
@@ -1,14 +1,84 @@
-<?php
-
-elgg_register_event_handler('init', 'system', 'habitorio_theme_init');
-
-function habitorio_theme_init() {
- // Override Elgg logo item
- elgg_register_menu_item('topbar', array(
- 'name' => 'elgg_logo',
- 'text' => elgg_get_site_entity()->name,
- 'href' => elgg_get_site_url(),
- 'priority' => 0,
- ));
-
-}
+<?php
+
+function purity_theme_init() {
+ elgg_extend_view('page/elements/head', 'purity_theme/meta');
+ elgg_extend_view('css/elgg', 'purity_theme/css');
+ elgg_unregister_menu_item('topbar', 'elgg_logo');
+ if (elgg_is_active_plugin(CHAMELEONTHEMEENGINE)) {
+ if (!function_exists('chameleonPresets')) {
+
+ function chameleonPresets() {
+ $presets = array(
+ 'preset1' => array(
+ 'thumbnail' => 'purity_theme/graphics/preset1.png',
+ 'body_background_color' => 'ECECEC',
+ 'body_background_pattern' => 'eleven',
+ 'accent_color' => '1d1d1d',
+ 'logo_font' => 'poiret',
+ 'body_font' => 'nunito',
+ 'logo_color' => 'f34557'
+ ),
+ 'preset2' => array(
+ 'thumbnail' => 'purity_theme/graphics/preset2.png',
+ 'body_background_color' => 'a52a2a',
+ 'body_background_pattern' => 'twelve',
+ 'accent_color' => '216587',
+ 'logo_font' => 'oxygen',
+ 'body_font' => 'ubuntu',
+ 'logo_color' => '000000'
+ ),
+ 'preset3' => array(
+ 'thumbnail' => 'purity_theme/graphics/preset3.png',
+ 'body_background_color' => 'e8e8e8',
+ 'body_background_pattern' => 'twentyone',
+ 'accent_color' => '61871f',
+ 'logo_font' => 'oxygen',
+ 'body_font' => 'comfortaa',
+ 'logo_color' => '61871f'
+ ),
+ 'preset4' => array(
+ 'thumbnail' => 'purity_theme/graphics/preset4.png',
+ 'body_background_color' => '1e1436',
+ 'body_background_pattern' => 'four',
+ 'accent_color' => '000000',
+ 'logo_font' => 'lobster',
+ 'body_font' => 'oxygen',
+ 'logo_color' => '1e1436'
+ ),
+ 'preset5' => array(
+ 'thumbnail' => 'purity_theme/graphics/preset5.png',
+ 'body_background_color' => '163853',
+ 'body_background_pattern' => 'twentyfive',
+ 'accent_color' => '0F7516',
+ 'logo_font' => 'poiret',
+ 'body_font' => 'nunito',
+ 'logo_color' => 'ff0000'
+ ),
+ 'preset6' => array(
+ 'thumbnail' => 'purity_theme/graphics/preset6.png',
+ 'body_background_color' => 'e6e3de',
+ 'body_background_pattern' => 'fourteen',
+ 'accent_color' => 'ea7a3e',
+ 'logo_font' => 'nunito',
+ 'body_font' => 'poiret',
+ 'logo_color' => '4c4a47'
+ ),
+ 'preset7' => array(
+ 'thumbnail' => 'purity_theme/graphics/preset7.png',
+ 'body_background_color' => '000000',
+ 'body_background_pattern' => 'fifteen',
+ 'accent_color' => '1d1d1d',
+ 'logo_font' => 'comfortaa',
+ 'body_font' => 'nunito',
+ 'logo_color' => '72a32b'
+ )
+ );
+ return $presets;
+ }
+
+ }
+ }
+}
+
+elgg_register_event_handler('init', 'system', 'purity_theme_init');
+?> \ No newline at end of file