<?php
/**
* @version 1.5.0
* @package JomWALLVideoList
* @author  AWDsolution.com. All rights reserved.
* @link http://www.AWDsolution.com
* @Copyrighted Commercial Software by  AWDsolution.com
* @license Proprietary (C) 2009 AWDsolution.com. All rights reserved.
*/

// no direct access
defined('_JEXEC') or die('Restricted access');
if(!defined('DS')){
define('DS',DIRECTORY_SEPARATOR);
}

error_reporting(0);
// Include the syndicate functions only once
require_once(JPATH_SITE . DS . 'components'.DS.'com_awdwall'. DS . 'helpers' . DS . 'user.php');
require_once (dirname(__FILE__).DS.'helper.php');

$list = AwdWallGroupsHelper::getList($params);
require(JModuleHelper::getLayoutPath('mod_awdwallgroups'));
Esempio n. 2
0
<?php // no direct access
defined('_JEXEC') or die('Restricted access');
$Itemid		= AwdWallGroupsHelper::getComItemId();
?>
<link rel="stylesheet" href="<?php echo JURI::base();?>modules/mod_awdwallgroups/css/style.css"  type="text/css" />

<div id="awdWallGroup">
<?php
$i=0;
 foreach($list as $item){
 if($i==0) {
 $style='style="display:block;"';
 } else {
 $style='style="display:none;"';
 }

 ?>
<div id="parentGroupDiv<?php echo $i; ?>" <?php echo $style; ?> >
	<div id="thumb" ><a href="<?php echo JRoute::_($item->link); ?>"  ><img src="<?php echo $item->thumb; ?>" /></a></div>
	<div id="title" style="text-align:center;"><a href="<?php echo  JRoute::_($item->link,false); ?>"  > <?php echo $item->title; ?></a></div>
	<div id="descr"><?php
	if(str_word_count($item->descr)>10){
	echo substr($item->descr,0,50).'...'; } else {
	echo $item->descr; } ?></div>
</div>
<?php $i++; } ?>
<div>
<?php $i=0;
foreach($list as $item1){
?>
<div id="thumbGroup"> <img src="<?php echo $item1->thumb; ?>"   onclick="activeGroupDiv('<?php echo $i; ?>')" height="30px" width="30px" /> </div>