Joomla.it Forum
Joomla! 2.5 (versione con supporto terminato) => Joomla! 1.6/1.7/2.5 => I Template di Joomla 1.6/1.7/2.5 => : Walter Ego 26 Aug 2012, 08:57:18
-
Ciao,
è qualche giorno che ci sto provando ma non riesco proprio a capire.
Ho la necessità di cambiare il font del titolo all'interno del mod_feed di Joomla 2.5.6. per uniformarlo agli altri.
Ora non riesco proprio a capire quale è il css di riferimento da modificare.
Ho provato a leggere il codice della pagina default.php all'interno del modulo, ma non riesco a capire come attribuire il font che desidero.
Qualcuno sa come posso fare?
Grazie
-
Walter, dopo quasi 500 post dovresti sapere che un link al sito è necessario per chi non ha poteri soprannaturali. ;)
-
in realtà non ho un link disponibile...
sto cercando di impostare un font diverso da quello di default al modulo feed di joomla.
questo è il codice della pagina default del modulo ma le ho provate tutte:
<?php
/**
* @package Joomla.Site
* @subpackage mod_feed
* @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
// no direct access
defined('_JEXEC') or die;
?>
<?php
if ($feed != false)
{
//image handling
$iUrl = isset($feed->image->url) ? $feed->image->url : null;
$iTitle = isset($feed->image->title) ? $feed->image->title : null;
?>
<div style="direction: <?php echo $rssrtl ? 'rtl' :'ltr'; ?>; text-align: <?php echo $rssrtl ? 'right' :'left'; ?> ! important" class="feed<?php echo $moduleclass_sfx; ?>">
<?php
// feed description
if (!is_null($feed->title) && $params->get('rsstitle', 1)) {
?>
<h4>
<a href="<?php echo str_replace('&', '&', $feed->link); ?>" target="_blank">
<?php echo $feed->title; ?>[/url]
</h4>
<?php
}
// feed description
if ($params->get('rssdesc', 1)) {
?>
<?php echo $feed->description; ?>
<?php
}
// feed image
if ($params->get('rssimage', 1) && $iUrl) {
?>
<img src="<?php echo $iUrl; ?>" alt="<?php echo @$iTitle; ?>"/>
<?php
}
$actualItems = count($feed->items);
$setItems = $params->get('rssitems', 5);
if ($setItems > $actualItems) {
$totalItems = $actualItems;
} else {
$totalItems = $setItems;
}
?>
<ul class="newsfeed<?php echo $params->get('moduleclass_sfx'); ?>">
<?php
$words = $params->def('word_count', 0);
for ($j = 0; $j < $totalItems; $j ++)
{
$currItem = & $feed->items[$j];
// item title
?>
<li class="newsfeed-item">
<?php if (!is_null($currItem->get_link())) {
?>
<?php if (!is_null($feed->title) && $params->get('rsstitle', 1))
{ echo '<h5 class="feed-link">';}
else
{
echo '<h4 class="feed-link">';
}
?>
<a href="<?php echo $currItem->get_link(); ?>" target="_blank">
<?php echo $currItem->get_title(); ?>[/url]
<?php if (!is_null($feed->title) && $params->get('rsstitle', 1))
{ echo '</h5>';}
else
{ echo '</h4>';}
?>
<?php
}
// item description
if ($params->get('rssitemdesc', 1))
{
// item description
$text = $currItem->get_description();
$text = str_replace(''', "'", $text);
$text=strip_tags($text);
// word limit check
if ($words)
{
$texts = explode(' ', $text);
$count = count($texts);
if ($count > $words)
{
$text = '';
for ($i = 0; $i < $words; $i ++) {
$text .= ' '.$texts[$i];
}
$text .= '...';
}
}
?>
<p><?php echo $text; ?></p>
<?php
}
?>
</li>
<?php
}
?>
</ul>
</div>
<?php } ?>