diff options
author | Sem <sembrestels@riseup.net> | 2012-10-05 03:01:00 +0200 |
---|---|---|
committer | Sem <sembrestels@riseup.net> | 2012-10-05 03:01:00 +0200 |
commit | cf5fa50ee4b12413cfb5ab4e7ca9c7070a9463c2 (patch) | |
tree | 267278be347daa6abd9569b6b4930e49e28fa355 | |
parent | c3d5dfec626d2bb48edfe8fae79ff78d2ec64b0e (diff) | |
download | saravea_theme-cf5fa50ee4b12413cfb5ab4e7ca9c7070a9463c2.tar.gz saravea_theme-cf5fa50ee4b12413cfb5ab4e7ca9c7070a9463c2.tar.bz2 |
Updated pages and pads icons.
-rw-r--r-- | _graphics/icons/pad_lrg.gif | bin | 0 -> 2060 bytes | |||
-rw-r--r-- | _graphics/icons/pad_small.gif | bin | 0 -> 1246 bytes | |||
-rw-r--r-- | _graphics/icons/pad_tiny.gif | bin | 0 -> 1033 bytes | |||
-rw-r--r-- | _graphics/icons/pages_lrg.gif | bin | 0 -> 1162 bytes | |||
-rw-r--r-- | _graphics/icons/pages_small.gif | bin | 0 -> 708 bytes | |||
-rw-r--r-- | _graphics/icons/pages_tiny.gif | bin | 0 -> 581 bytes | |||
-rw-r--r-- | _graphics/pages_icons/pages_small.gif | bin | 1723 -> 0 bytes | |||
-rw-r--r-- | _graphics/pages_icons/pages_tiny.gif | bin | 1232 -> 0 bytes | |||
-rw-r--r-- | start.php | 32 |
9 files changed, 19 insertions, 13 deletions
diff --git a/_graphics/icons/pad_lrg.gif b/_graphics/icons/pad_lrg.gif Binary files differnew file mode 100644 index 0000000..213d9b0 --- /dev/null +++ b/_graphics/icons/pad_lrg.gif diff --git a/_graphics/icons/pad_small.gif b/_graphics/icons/pad_small.gif Binary files differnew file mode 100644 index 0000000..594a51b --- /dev/null +++ b/_graphics/icons/pad_small.gif diff --git a/_graphics/icons/pad_tiny.gif b/_graphics/icons/pad_tiny.gif Binary files differnew file mode 100644 index 0000000..29efe67 --- /dev/null +++ b/_graphics/icons/pad_tiny.gif diff --git a/_graphics/icons/pages_lrg.gif b/_graphics/icons/pages_lrg.gif Binary files differnew file mode 100644 index 0000000..838bdfd --- /dev/null +++ b/_graphics/icons/pages_lrg.gif diff --git a/_graphics/icons/pages_small.gif b/_graphics/icons/pages_small.gif Binary files differnew file mode 100644 index 0000000..58facea --- /dev/null +++ b/_graphics/icons/pages_small.gif diff --git a/_graphics/icons/pages_tiny.gif b/_graphics/icons/pages_tiny.gif Binary files differnew file mode 100644 index 0000000..216ef38 --- /dev/null +++ b/_graphics/icons/pages_tiny.gif diff --git a/_graphics/pages_icons/pages_small.gif b/_graphics/pages_icons/pages_small.gif Binary files differdeleted file mode 100644 index 902bff5..0000000 --- a/_graphics/pages_icons/pages_small.gif +++ /dev/null diff --git a/_graphics/pages_icons/pages_tiny.gif b/_graphics/pages_icons/pages_tiny.gif Binary files differdeleted file mode 100644 index f7349fa..0000000 --- a/_graphics/pages_icons/pages_tiny.gif +++ /dev/null @@ -32,7 +32,7 @@ function n1_theme_front_page($hook, $type, $returnvalue, $params) { }
/**
- * Override the default entity icon for pages
+ * Override the default entity icon for pages and pads
*
* @return string Relative URL
*/
@@ -40,17 +40,23 @@ function n1_theme_pages_icon_url_override($hook, $type, $returnvalue, $params) { $entity = $params['entity'];
if (elgg_instanceof($entity, 'object', 'page_top') ||
elgg_instanceof($entity, 'object', 'page')) {
- switch ($params['size']) {
- case 'topbar':
- case 'tiny':
- return 'mod/n1_theme/_graphics/pages_icons/pages_tiny.gif';
- break;
- case 'small':
- return 'mod/n1_theme/_graphics/pages_icons/pages_small.gif';
- break;
- default:
- return 'mod/pages/images/pages_lrg.gif';
- break;
- }
+ $icon = 'pages';
+ } elseif (elgg_instanceof($entity, 'object', 'etherpad') ||
+ elgg_instanceof($entity, 'object', 'subpad')) {
+ $icon = 'pad';
+ } else {
+ return false;
+ }
+ switch ($params['size']) {
+ case 'topbar':
+ case 'tiny':
+ return "mod/n1_theme/_graphics/icons/{$icon}_tiny.gif";
+ break;
+ case 'small':
+ return "mod/n1_theme/_graphics/icons/{$icon}_small.gif";
+ break;
+ default:
+ return "mod/n1_theme/_graphics/icons/{$icon}_lrg.gif";
+ break;
}
}
|