diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2014-03-15 14:53:42 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2014-03-15 14:53:42 -0300 |
commit | 1a4a96bd03e016e5d32a5c3050f40c1011a0f893 (patch) | |
tree | 5e78707ffd40968f15778cc345cbf27489423cf6 /mod/purity_theme/start.php | |
parent | e10b0bd1f9403d38568173d76a93f93a484d9646 (diff) | |
parent | 7f5de67cb46e028792e179a4f6314e13771086da (diff) | |
download | elgg-1a4a96bd03e016e5d32a5c3050f40c1011a0f893.tar.gz elgg-1a4a96bd03e016e5d32a5c3050f40c1011a0f893.tar.bz2 |
Merge commit '7f5de67cb46e028792e179a4f6314e13771086da' as 'mod/purity_theme'
Diffstat (limited to 'mod/purity_theme/start.php')
-rw-r--r-- | mod/purity_theme/start.php | 84 |
1 files changed, 84 insertions, 0 deletions
diff --git a/mod/purity_theme/start.php b/mod/purity_theme/start.php new file mode 100644 index 000000000..4d32d0a97 --- /dev/null +++ b/mod/purity_theme/start.php @@ -0,0 +1,84 @@ +<?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 |