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
--- /dev/null
+<?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>';
+.muamba-powered {
+ text-align: center;
+}
+
+.muamba-powered img {
+ padding: 10px 10px 10px 10px;
+}
* Requested item.
*/
function muamba_request($nid) {
+ // Sanitize
+ $nid = (int) $nid;
+
return t('You have requested an item');
}
'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;
+}
--- /dev/null
+<?php
+
+/**
+ * @file
+ * Misc theme functions.
+ */