

<?php
/**
* @package Joomla! 1.5.x
* @author 2008 (c) Denys Nosov (aka Dutch)
* @author web-site: www.joomla-ua.org
* @copyright This module is licensed under a Creative Commons Attribution-Noncommercial-No Derivative Works 3.0 License.
**/
/*******************PARAMS****************/
/*
/* $params->get('moduleclass_sfx') - module class suffix
/*
/* $item->link - display link
/* $item->text - display title
/*
/* $item->image - display image
/*
/* $item->created - display date & time
/* $item->df_d - display day
/* $item->df_m - display mounth
/* $item->df_Y - display mounth
/*
/* $item->author - display author
/*
/* $item->introtext - display introtex
/* $item->readmore - display Read more...
/* $item->rmtext - display Read more... text
/*
/*****************************************/
// no direct access
defined('_JEXEC') or die('Restricted access');
?>
<div class="junewsultra<?php echo $params->get('moduleclass_sfx'); ?>">
<?php foreach ($list as $item) : ?>
<div class="junews<?php echo $params->get('moduleclass_sfx'); ?>">
<div class="latestnews_div<?php echo $params->get('moduleclass_sfx'); ?>">
<a href="<?php echo $item->link; ?>" class="latestnews<?php echo $params->get('moduleclass_sfx'); ?>">
<?php echo $item->text; ?></a></div>
<?php echo $item->image; ?>
<?php if (!$item->created == ""){ ?>
<div class="newsdate<?php echo $params->get('moduleclass_sfx'); ?>"><span class="small"><?php echo $item->created; ?> | <?php echo $item->author; ?></span></div>
<?php } ?>
<div class="newstext<?php echo $params->get('moduleclass_sfx'); ?>">
<?php echo $item->introtext; ?>
</div>
<div class="newsreadmore<?php echo $params->get('moduleclass_sfx'); ?>"><a href="<?php echo $item->readmore; ?>" class="readmore<?php echo $params->get('moduleclass_sfx'); ?>" title="<?php echo $item->text; ?>"><?php echo $item->rmtext; ?></a>
</div>
</div>
<?php endforeach; ?>
</div>



Можно ли сделать вывод первой новости в развернутом виде с картинкой, а все остальные только заголовок и дата?
Все таки не снимается вопрос, новости как отображались сразу со всех категорий, так отображаются. Я уже все настройки перепробовал.






function ParseContentByPlugins( $text, $type = 'content' ) {
global $_MAMBOTS;
if( VM_CONTENT_PLUGINS_ENABLE == '1') {
if( vmIsJoomla('1.0')) {
$_MAMBOTS->loadBotGroup( $type );
$row = new stdClass();
$row->text = $text;
$params = new mosParameters('');
$_MAMBOTS->trigger( 'onPrepareContent', array( &$row, &$params, 0 ), true );
$text = $row->text;
} elseif( vmIsJoomla('1.5')) {
$params =& $GLOBALS['mainframe']->getParams('com_content');
$dispatcher =& JDispatcher::getInstance();
JPluginHelper::importPlugin($type);
$row = new stdClass();
$row->text = $text;
$results = $dispatcher->trigger('onPrepareContent', array (&$row, & $params, 0 ));
$text = $row->text;
}
}
return $text;
}






Повернутись до JUNewsUltra — модуль новин
Зараз переглядають цей форум: Google [Bot], Yahoo [Bot] і 0 гостей