Я пытаюсь переопределить Joomla! модуль последних статей по умолчанию для отображения статей с:
- Имя автора
- Автор изображения
- Дата публикации статьи
- Ссылка имени автора на страницу контактов, связанную с автором
- Теги статьи
Это то, что я сейчас сделал в файле default.php в моем шаблоне переопределения:
<div class="blog-item-info-hp">
<div class="blog-item-author-main-hp">
<div class="blog-item-title-date-hp">
<?php echo JHtml::_('date', $item->publish_up, JText::_('d M Y')); ?>
</div>
<div class="blog-item-author-hp">
<div class="blog-author-name-hp"><a href="need PHP here to link author to the joomla contact page associated to the author"><?php echo $item->author; ?></a></div>
<div class="blog-author-image-hp"><a href="need PHP here to link author to the joomla contact page associated to the author"><img src="need PHP here to author's image" alt="need PHP here: image name" /></a></div>
</div>
</div>
<div class="blog-item-text-hp">
<div class="blog-item-title-text-hp"><a href="<?php echo $item->link; ?>"><?php echo $item->title; ?></a></div>
<div class="blog-item-title-subtext-hp">need PHP here to show article category</div>
<div class="blog-item-title-moreinfo-hp">need PHP here for first 140 characters of the article</div>
</div>
<div class="blog-item-tags-hp">
<div class="blog-orange-tag-hp"><a href="need PHP here to tag's link">need PHP here for tag's name</a></div>
<div class="blog-orange-tag-hp blog-purple-tag-hp"><a href="need PHP here to tag's link">need PHP here for tag's name</a></div>
</div>
</div>
Я написал в каждой части кода, что мне нужно, как PHP-код. Я надеюсь, что кто-то может мне помочь!
Заранее спасибо.