diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2013-02-16 00:27:58 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2013-02-16 00:27:58 -0200 |
commit | a9462ba331c2b87de6987e61e7154f7624cdfd1b (patch) | |
tree | 5c2ea2e995812159e19ba830b0a9b6e878518dd8 /start.php | |
parent | d1eb7eecabb31d9da8d0e7a52ed814089fe8cb35 (diff) | |
download | saravea_theme-a9462ba331c2b87de6987e61e7154f7624cdfd1b.tar.gz saravea_theme-a9462ba331c2b87de6987e61e7154f7624cdfd1b.tar.bz2 |
Forking into saravea_theme
Diffstat (limited to 'start.php')
-rw-r--r-- | start.php | 30 |
1 files changed, 15 insertions, 15 deletions
@@ -1,33 +1,33 @@ <?php
-elgg_register_event_handler('init', 'system', 'n1_theme_init');
+elgg_register_event_handler('init', 'system', 'saravea_theme_init');
-function n1_theme_init() {
+function saravea_theme_init() {
elgg_unregister_menu_item('topbar','elgg_logo');
$item = new ElggMenuItem('site_logo', elgg_get_site_entity()->name, elgg_get_site_url());
elgg_register_menu_item('topbar', $item);
- elgg_register_plugin_hook_handler('register', 'menu:topbar', 'n1_theme_topbar_menu');
+ elgg_register_plugin_hook_handler('register', 'menu:topbar', 'saravea_theme_topbar_menu');
- elgg_register_simplecache_view('n1_theme/landing');
- elgg_register_css('n1:landing_page', elgg_get_simplecache_url('css', 'n1_theme/landing'));
+ elgg_register_simplecache_view('saravea_theme/landing');
+ elgg_register_css('n1:landing_page', elgg_get_simplecache_url('css', 'saravea_theme/landing'));
- elgg_extend_view('css/elgg', 'n1_theme/css');
- elgg_extend_view('js/elgg', 'n1_theme/js');
- elgg_extend_view('page/elements/title', 'n1_theme/header', 0);
+ elgg_extend_view('css/elgg', 'saravea_theme/css');
+ elgg_extend_view('js/elgg', 'saravea_theme/js');
+ elgg_extend_view('page/elements/title', 'saravea_theme/header', 0);
// custom index widgets
foreach(array("custom_index", "edit_widgets", "index_2rbhh", "index_2rhhb",
"index", "index_2rbms", "index_2rmsb",
"index_1rsss", "index_2rbsm", "index_2rsmb") as $layout) {
- elgg_extend_view('page/layouts/'.$layout, 'n1_theme/landing', 0);
+ elgg_extend_view('page/layouts/'.$layout, 'saravea_theme/landing', 0);
}
if (elgg_is_active_plugin('pages')) {
// pages icon url override
- elgg_register_plugin_hook_handler('entity:icon:url', 'object', 'n1_theme_pages_icon_url_override');
+ elgg_register_plugin_hook_handler('entity:icon:url', 'object', 'saravea_theme_pages_icon_url_override');
}
}
-function n1_theme_topbar_menu($hook, $type, $returnvalue, $params){
+function saravea_theme_topbar_menu($hook, $type, $returnvalue, $params){
$user = elgg_get_logged_in_user_entity();
if (elgg_is_active_plugin('groups')) {
@@ -106,7 +106,7 @@ function n1_theme_topbar_menu($hook, $type, $returnvalue, $params){ *
* @return string Relative URL
*/
-function n1_theme_pages_icon_url_override($hook, $type, $returnvalue, $params) {
+function saravea_theme_pages_icon_url_override($hook, $type, $returnvalue, $params) {
$entity = $params['entity'];
if (elgg_instanceof($entity, 'object', 'page_top') ||
elgg_instanceof($entity, 'object', 'page')) {
@@ -120,13 +120,13 @@ function n1_theme_pages_icon_url_override($hook, $type, $returnvalue, $params) { switch ($params['size']) {
case 'topbar':
case 'tiny':
- return "mod/n1_theme/_graphics/icons/{$icon}_tiny.gif";
+ return "mod/saravea_theme/_graphics/icons/{$icon}_tiny.gif";
break;
case 'small':
- return "mod/n1_theme/_graphics/icons/{$icon}_small.gif";
+ return "mod/saravea_theme/_graphics/icons/{$icon}_small.gif";
break;
default:
- return "mod/n1_theme/_graphics/icons/{$icon}_lrg.gif";
+ return "mod/saravea_theme/_graphics/icons/{$icon}_lrg.gif";
break;
}
}
|