diff options
-rw-r--r-- | CREDITS.txt | 5 | ||||
-rw-r--r-- | images/capitalism-kills.orig.png | bin | 0 -> 23482 bytes | |||
-rw-r--r-- | images/capitalism-kills.png | bin | 0 -> 4974 bytes | |||
-rw-r--r-- | images/druplicon.png | bin | 0 -> 13927 bytes | |||
-rw-r--r-- | images/earth-recycle.orig.png | bin | 0 -> 172072 bytes | |||
-rw-r--r-- | images/earth-recycle.png | bin | 0 -> 25443 bytes | |||
-rw-r--r-- | images/money-back-sticker.orig.png | bin | 0 -> 129191 bytes | |||
-rw-r--r-- | images/money-back-sticker.png | bin | 0 -> 23603 bytes | |||
-rw-r--r-- | images/waiting.orig.png | bin | 0 -> 38325 bytes | |||
-rw-r--r-- | images/waiting.png | bin | 0 -> 7225 bytes | |||
-rw-r--r-- | muamba-powered.tpl.php | 46 | ||||
-rw-r--r-- | muamba.css | 7 | ||||
-rw-r--r-- | muamba.misc.inc | 3 | ||||
-rw-r--r-- | muamba.module | 33 | ||||
-rw-r--r-- | muamba.theme.inc | 6 |
15 files changed, 100 insertions, 0 deletions
diff --git a/CREDITS.txt b/CREDITS.txt index 6a501ac..5db5305 100644 --- a/CREDITS.txt +++ b/CREDITS.txt @@ -4,6 +4,11 @@ Credits Images ------ +https://drupal.org/node/9068 http://www.openclipart.org/detail/146119/cardboard-box-by-lekamie http://www.openclipart.org/detail/87799/download-package-by-kuba http://www.openclipart.org/detail/74179/community-by-russel +http://www.openclipart.org/detail/23920/sandglass-by-anonymous-23920 +http://www.openclipart.org/detail/103339/money-back-guarantee-sticker-by-vectorportal +http://www.openclipart.org/detail/152557/capitalism-kills-by-worker-152557 +http://www.openclipart.org/detail/2213/crystal-earth-recycle-by-kuba diff --git a/images/capitalism-kills.orig.png b/images/capitalism-kills.orig.png Binary files differnew file mode 100644 index 0000000..badf93b --- /dev/null +++ b/images/capitalism-kills.orig.png diff --git a/images/capitalism-kills.png b/images/capitalism-kills.png Binary files differnew file mode 100644 index 0000000..5492993 --- /dev/null +++ b/images/capitalism-kills.png diff --git a/images/druplicon.png b/images/druplicon.png Binary files differnew file mode 100644 index 0000000..765d7ab --- /dev/null +++ b/images/druplicon.png diff --git a/images/earth-recycle.orig.png b/images/earth-recycle.orig.png Binary files differnew file mode 100644 index 0000000..661fbe4 --- /dev/null +++ b/images/earth-recycle.orig.png diff --git a/images/earth-recycle.png b/images/earth-recycle.png Binary files differnew file mode 100644 index 0000000..fab563e --- /dev/null +++ b/images/earth-recycle.png diff --git a/images/money-back-sticker.orig.png b/images/money-back-sticker.orig.png Binary files differnew file mode 100644 index 0000000..be43ecd --- /dev/null +++ b/images/money-back-sticker.orig.png diff --git a/images/money-back-sticker.png b/images/money-back-sticker.png Binary files differnew file mode 100644 index 0000000..9d48891 --- /dev/null +++ b/images/money-back-sticker.png diff --git a/images/waiting.orig.png b/images/waiting.orig.png Binary files differnew file mode 100644 index 0000000..837f996 --- /dev/null +++ b/images/waiting.orig.png diff --git a/images/waiting.png b/images/waiting.png Binary files differnew file mode 100644 index 0000000..fa7e4cb --- /dev/null +++ b/images/waiting.png diff --git a/muamba-powered.tpl.php b/muamba-powered.tpl.php new file mode 100644 index 0000000..587bce5 --- /dev/null +++ b/muamba-powered.tpl.php @@ -0,0 +1,46 @@ +<?php + +/** + * @file + * Show muamba sponsors. + */ + +// Add javascript and CSS files +$path = drupal_get_path('module', 'muamba'); +drupal_add_css($path .'/muamba.css'); + +print '<div class="muamba-powered">'; + +print theme('image', + array( + 'path' => $path .'/images/money-back-sticker.png', + 'alt' => t('Money back guarantee'), + 'title' => t('Money back guarantee'), + ) +); + +print theme('image', + array( + 'path' => $path .'/images/druplicon.png', + 'alt' => t('Powered by Drupal'), + 'title' => t('Powered by Drupal'), + ) +); + +print theme('image', + array( + 'path' => $path .'/images/earth-recycle.png', + 'alt' => t('Saving resources'), + 'title' => t('Saving resources'), + ) +); + +print theme('image', + array( + 'path' => $path .'/images/capitalism-kills.png', + 'alt' => t('Capitalism kills'), + 'title' => t('Capitalism kills'), + ) +); + +print '</div>'; @@ -0,0 +1,7 @@ +.muamba-powered { + text-align: center; +} + +.muamba-powered img { + padding: 10px 10px 10px 10px; +} diff --git a/muamba.misc.inc b/muamba.misc.inc index 03fe8ed..4168464 100644 --- a/muamba.misc.inc +++ b/muamba.misc.inc @@ -12,5 +12,8 @@ * Requested item. */ function muamba_request($nid) { + // Sanitize + $nid = (int) $nid; + return t('You have requested an item'); } diff --git a/muamba.module b/muamba.module index 96882d6..1a94da2 100644 --- a/muamba.module +++ b/muamba.module @@ -68,5 +68,38 @@ function muamba_theme($existing, $type, $theme, $path) { 'template' => 'muamba-widget', 'variables' => array('nid' => NULL), ), + 'muamba_powered' => array( + 'template' => 'muamba-powered', + ), ); } + +/** + * Implements hook_block_info() + */ +function muamba_block_info() { + $blocks['muamba_powered'] = array( + 'info' => t('Muamba powered'), + 'cache' => DRUPAL_NO_CACHE, + 'status' => TRUE, + 'region' => 'footer', + ); + + return $blocks; +} + +/** + * Implements hook_block_view() + */ +function muamba_block_view($delta = '') { + $block = array(); + + switch ($delta) { + case 'muamba_powered': + $block['subject'] = t("You're welcome"); + $block['content'] = theme('muamba_powered'); + break; + + } + return $block; +} diff --git a/muamba.theme.inc b/muamba.theme.inc new file mode 100644 index 0000000..056632f --- /dev/null +++ b/muamba.theme.inc @@ -0,0 +1,6 @@ +<?php + +/** + * @file + * Misc theme functions. + */ |