Advertisement
Guest User

Untitled

a guest
Aug 10th, 2014
27
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. /**
  3.  * @package     Joomla.Site
  4.  * @subpackage  mod_custom
  5.  *
  6.  * @copyright   Copyright (C) 2005 - 2014 Open Source Matters, Inc. All rights reserved.
  7.  * @license     GNU General Public License version 2 or later; see LICENSE.txt
  8.  */
  9.  
  10. defined('_JEXEC') or die;
  11. $jinput = JFactory::getApplication()->input;
  12. $menuitemid = $jinput->get('id', null, 'INT');
  13. $db = JFactory::getDbo();    
  14. $query = $db->getQuery(true);
  15.  
  16. $query->select('note')
  17.       ->from($db->quoteName('#__modules'))
  18.       ->where($db->quoteName('published') . ' = '. (int)1 .
  19.       ' AND' . $db->quoteName('id') . ' = '. $db->quote($menuitemid));
  20.  
  21. $db->setQuery($query);    
  22. $note = $db->loadResult();
  23. var_dump($menuitemid);
  24. ?>
  25.  
  26.  
  27. <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;?> >
  28.     <?php echo $module->content;?>
  29. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement