summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2013-02-16 00:27:58 -0200
committerSilvio Rhatto <rhatto@riseup.net>2013-02-16 00:27:58 -0200
commita9462ba331c2b87de6987e61e7154f7624cdfd1b (patch)
tree5c2ea2e995812159e19ba830b0a9b6e878518dd8
parentd1eb7eecabb31d9da8d0e7a52ed814089fe8cb35 (diff)
downloadsaravea_theme-a9462ba331c2b87de6987e61e7154f7624cdfd1b.tar.gz
saravea_theme-a9462ba331c2b87de6987e61e7154f7624cdfd1b.tar.bz2
Forking into saravea_theme
-rw-r--r--languages/ca.php4
-rw-r--r--languages/en.php4
-rw-r--r--languages/es.php4
-rw-r--r--manifest.xml2
-rw-r--r--start.php30
-rw-r--r--views/default/css/elements/icons.php4
-rw-r--r--views/default/css/elements/layout.php2
-rw-r--r--views/default/css/elements/typography.php8
-rw-r--r--views/default/css/n1_theme/landing.php2
-rw-r--r--views/default/n1_theme/css.php2
-rw-r--r--views/default/n1_theme/header.php2
-rw-r--r--views/default/n1_theme/landing.php4
-rw-r--r--views/default/page/elements/shortcut_icon.php2
13 files changed, 35 insertions, 35 deletions
diff --git a/languages/ca.php b/languages/ca.php
index d175b2c..02ce50e 100644
--- a/languages/ca.php
+++ b/languages/ca.php
@@ -2,8 +2,8 @@
$catalan = array(
- 'n1_theme:landing:title' => '¡Xarxes socials del poble i per al poble!',
- 'n1_theme:landing:subtitle' => 'Perquè "les eines de l\'amo mai desmontaràn la casa de l\'amo"',
+ 'saravea_theme:landing:title' => '¡Xarxes socials del poble i per al poble!',
+ 'saravea_theme:landing:subtitle' => 'Perquè "les eines de l\'amo mai desmontaràn la casa de l\'amo"',
);
diff --git a/languages/en.php b/languages/en.php
index ad5de2f..796b857 100644
--- a/languages/en.php
+++ b/languages/en.php
@@ -2,8 +2,8 @@
$english = array(
- 'n1_theme:landing:title' => '¡Social networks by the people and for the people!',
- 'n1_theme:landing:subtitle' => 'Because "the master\'s tools will never dismantle the master\'s house"',
+ 'saravea_theme:landing:title' => '¡Social networks by the people and for the people!',
+ 'saravea_theme:landing:subtitle' => 'Because "the master\'s tools will never dismantle the master\'s house"',
);
diff --git a/languages/es.php b/languages/es.php
index fd23fb6..469e2c0 100644
--- a/languages/es.php
+++ b/languages/es.php
@@ -2,8 +2,8 @@
$spanish = array(
- 'n1_theme:landing:title' => '¡Redes sociales del pueblo y para el pueblo!',
- 'n1_theme:landing:subtitle' => 'Porque "las herramientas del amo nunca desmontarán la casa del amo"',
+ 'saravea_theme:landing:title' => '¡Redes sociales del pueblo y para el pueblo!',
+ 'saravea_theme:landing:subtitle' => 'Porque "las herramientas del amo nunca desmontarán la casa del amo"',
);
diff --git a/manifest.xml b/manifest.xml
index daf419d..684cebc 100644
--- a/manifest.xml
+++ b/manifest.xml
@@ -7,7 +7,7 @@
<description>
Modifies your Elgg site to look and behave very much like Facebook.
</description>
- <website>https://github.com/lorea/n1_theme</website>
+ <website>https://github.com/lorea/saravea_theme</website>
<copyright>(C) 2011 Lorea</copyright>
<license>GNU Public License version 2</license>
diff --git a/start.php b/start.php
index 65ea0e5..b745414 100644
--- a/start.php
+++ b/start.php
@@ -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;
}
}
diff --git a/views/default/css/elements/icons.php b/views/default/css/elements/icons.php
index 7b52309..d84c2c3 100644
--- a/views/default/css/elements/icons.php
+++ b/views/default/css/elements/icons.php
@@ -13,7 +13,7 @@
*************************************** */
.elgg-icon, .elgg-menu-item-logout a {
- background: transparent url(<?php echo elgg_get_site_url(); ?>mod/n1_theme/_graphics/elgg_sprites.png) no-repeat left;
+ background: transparent url(<?php echo elgg_get_site_url(); ?>mod/saravea_theme/_graphics/elgg_sprites.png) no-repeat left;
width: 16px;
height: 16px;
margin: 0 2px;
@@ -308,7 +308,7 @@
}
.elgg-ajax-loader {
- background: transparent url(<?php echo elgg_get_site_url(); ?>mod/n1_theme/_graphics/ajax-loader.gif) no-repeat center center;
+ background: transparent url(<?php echo elgg_get_site_url(); ?>mod/saravea_theme/_graphics/ajax-loader.gif) no-repeat center center;
min-height: 31px;
min-width: 31px;
}
diff --git a/views/default/css/elements/layout.php b/views/default/css/elements/layout.php
index 570f4f8..b8b20e5 100644
--- a/views/default/css/elements/layout.php
+++ b/views/default/css/elements/layout.php
@@ -76,7 +76,7 @@ body {
}
.elgg-page-header > .elgg-inner {
position: relative;
- background: transparent url(<?php echo elgg_get_site_url(); ?>mod/n1_theme/_graphics/n1_small.png) no-repeat 650px bottom;
+ background: transparent url(<?php echo elgg_get_site_url(); ?>mod/saravea_theme/_graphics/n1_small.png) no-repeat 650px bottom;
}
/***** LIQUID LAYOUT *******/
diff --git a/views/default/css/elements/typography.php b/views/default/css/elements/typography.php
index f6b8549..3d2a169 100644
--- a/views/default/css/elements/typography.php
+++ b/views/default/css/elements/typography.php
@@ -14,20 +14,20 @@
font-family: "Open Sans";
font-style: normal;
font-weight: 400;
- src: url("<?php echo elgg_get_site_url(); ?>/mod/n1_theme/vendors/opensans/OpenSans-Regular.ttf");
+ src: url("<?php echo elgg_get_site_url(); ?>/mod/saravea_theme/vendors/opensans/OpenSans-Regular.ttf");
}
@font-face {
font-family: "Open Sans";
font-style: bold;
- src: url("<?php echo elgg_get_site_url(); ?>/mod/n1_theme/vendors/opensans/OpenSans-Semibold.ttf");
+ src: url("<?php echo elgg_get_site_url(); ?>/mod/saravea_theme/vendors/opensans/OpenSans-Semibold.ttf");
font-weight: 600;
}
@font-face {
font-family: "Open Sans";
font-style: italic;
- src: url("<?php echo elgg_get_site_url(); ?>/mod/n1_theme/vendors/opensans/OpenSans-Italic.ttf");
+ src: url("<?php echo elgg_get_site_url(); ?>/mod/saravea_theme/vendors/opensans/OpenSans-Italic.ttf");
font-weight: 400;
}
@@ -93,7 +93,7 @@ blockquote {
line-height: 1.3em;
padding:10px 20px 10px 10px;
margin:5px 5px 15px 20px;
- background: #E6D37E url(<?php echo elgg_get_site_url(); ?>mod/n1_theme/_graphics/quotes.png) no-repeat right;
+ background: #E6D37E url(<?php echo elgg_get_site_url(); ?>mod/saravea_theme/_graphics/quotes.png) no-repeat right;
border:none;
box-shadow: 0px 1px 3px #666;
diff --git a/views/default/css/n1_theme/landing.php b/views/default/css/n1_theme/landing.php
index df5b0ab..4767e5d 100644
--- a/views/default/css/n1_theme/landing.php
+++ b/views/default/css/n1_theme/landing.php
@@ -1,6 +1,6 @@
#n1-landing {
height: 250px;
- background-image: url('<?php echo elgg_get_site_url(); ?>mod/n1_theme/_graphics/n1.png');
+ background-image: url('<?php echo elgg_get_site_url(); ?>mod/saravea_theme/_graphics/n1.png');
background-repeat: no-repeat;
display: table;
margin: 30px 0 50px auto;
diff --git a/views/default/n1_theme/css.php b/views/default/n1_theme/css.php
index aa1f677..92ba6f3 100644
--- a/views/default/n1_theme/css.php
+++ b/views/default/n1_theme/css.php
@@ -43,7 +43,7 @@
.elgg-access, .elgg-input-access > option {
padding-left: 19px;
- background-image: url('<?php echo elgg_get_site_url(); ?>mod/n1_theme/_graphics/privacy.png');
+ background-image: url('<?php echo elgg_get_site_url(); ?>mod/saravea_theme/_graphics/privacy.png');
background-repeat: no-repeat;
}
diff --git a/views/default/n1_theme/header.php b/views/default/n1_theme/header.php
index 5939df8..b9df3c2 100644
--- a/views/default/n1_theme/header.php
+++ b/views/default/n1_theme/header.php
@@ -6,6 +6,6 @@ $title = $vars['title'];
if ($context === 'main' && $title == elgg_echo('content:latest')) {
- echo elgg_view('n1_theme/landing');
+ echo elgg_view('saravea_theme/landing');
}
diff --git a/views/default/n1_theme/landing.php b/views/default/n1_theme/landing.php
index 132b275..3ffdd0f 100644
--- a/views/default/n1_theme/landing.php
+++ b/views/default/n1_theme/landing.php
@@ -2,8 +2,8 @@
elgg_load_css('n1:landing_page');
-$title = elgg_echo('n1_theme:landing:title');
-$subtitle = elgg_echo('n1_theme:landing:subtitle');
+$title = elgg_echo('saravea_theme:landing:title');
+$subtitle = elgg_echo('saravea_theme:landing:subtitle');
echo <<<HTML
<div id="n1-landing">
diff --git a/views/default/page/elements/shortcut_icon.php b/views/default/page/elements/shortcut_icon.php
index 7fd33f6..c629a40 100644
--- a/views/default/page/elements/shortcut_icon.php
+++ b/views/default/page/elements/shortcut_icon.php
@@ -3,4 +3,4 @@
* Displays the default shortcut icon
*/
?>
-<link rel="SHORTCUT ICON" href="<?php echo elgg_get_site_url(); ?>mod/n1_theme/_graphics/favicon.ico" />
+<link rel="SHORTCUT ICON" href="<?php echo elgg_get_site_url(); ?>mod/saravea_theme/_graphics/favicon.ico" />