Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * @package Joomla.Site
- * @subpackage mod_custom
- *
- * @copyright Copyright (C) 2005 - 2014 Open Source Matters, Inc. All rights reserved.
- * @license GNU General Public License version 2 or later; see LICENSE.txt
- */
- defined('_JEXEC') or die;
- $jinput = JFactory::getApplication()->input;
- $menuitemid = $jinput->get('id', null, 'INT');
- $db = JFactory::getDbo();
- $query = $db->getQuery(true);
- $query->select('note')
- ->from($db->quoteName('#__modules'))
- ->where($db->quoteName('published') . ' = '. (int)1 .
- ' AND' . $db->quoteName('id') . ' = '. $db->quote($menuitemid));
- $db->setQuery($query);
- $note = $db->loadResult();
- var_dump($menuitemid);
- ?>
- <div title="<?php echo $note ?>" class="custom<?php echo $moduleclass_sfx ?>" <?php if ($params->get('backgroundimage')) : ?> style="background-image:url(<?php echo $params->get('backgroundimage');?>)"<?php endif;?> >
- <?php echo $module->content;?>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement