Ciao a tutti.
Sto usando il modulo News Pro GK4, per la presentazione degli articoli in Home Page. E' un modulo molto duttile e ben fatto, ma non riesco a risolvere un problema. Vorrei aumentare il margine tra i vari articoli, e cambiarne la larghezza, purtroppo con Firebug, se analizzo il pezzo che mi serve, mi da come css:
element.style {
clear:both;
width:25%;
}
e come html
<div style="width: 25%; clear: both;" class="nsp_art">
Ora ho spulciato i file php e html del modulo, ma non sono riuscito a trovare un granchè. L'unico riferimento che ho trovato all'ultimo è questo, risalente al file content.php dentro la cartella tmpl del modulo, che non sapendo cosa serve vi posto tutto.
<?php /** * Default template * @package Gavick News Show Pro GK4 * @Copyright (C) 2009-2010 Gavick.com * @ All rights reserved * @ Joomla! is Free Software * @ Released under GNU/GPL License :
http://www.gnu.org/copyleft/gpl.html * @version $Revision: 4.0.0 $ **/ // no direct access defined('_JEXEC') or die('Restricted access'); $news_amount = $this->content['news_amount']; if($this->config['links_position'] != 'bottom' && $this->config['news_short_pages'] > 0 && count($news_list_tab) > 0 && $this->config['news_full_pages'] > 0){ $links_width = $this->config['links_width']; $arts_width = 100 - $this->config['links_width']; }else{ $links_width = 100; $arts_width = 100; } ?> <?php if($news_amount > 0) : ?> <div class="nsp_main<?php if($this->config['autoanim'] == TRUE) echo ' autoanim'; ?><?php if($this->config['hover_anim'] == TRUE) echo ' hover'; ?>" id="nsp-<?php echo $this->config['module_id']; ?>" style="width:<?php echo $this->config['module_width']; ?>%;"> <?php if(($this->config['news_column'] * $this->config['news_rows']) > 0) : ?> <div class=
"nsp_arts<?php echo ' '.$this->config['links_position']; ?>" style="width:<?php echo $arts_width; ?>%;"> <?php if( count($news_html_tab) > ($this->config['news_column'] * $this->config['news_rows']) && $this->config['news_full_pages'] > 1 && $this->config['top_interface_style'] != 'none' ) : ?> <div class="nsp_top_interface"> <div> <?php if( $this->config['top_interface_style'] == 'pagination' || $this->config['top_interface_style'] == 'arrows_with_pagination' ) : ?> <ul class="pagination"> <?php for($i = 0; $i < ceil(count($news_html_tab) / ($this->config['news_column'] * $this->config['news_rows'])); $i++) : ?> <li><?php echo $i+1; ?></li> <?php endfor; ?> </ul> <?php endif; ?> <?php if( $this->config['top_interface_style'] == 'arrows' || $this->config['top_interface_style'] == 'arrows_with_pagination' || $this->config['top_interface_style'] == 'arrows_with_counter' ) : ?> <span class="prev"><?php echo JText::_('NSP_PREV'); ?></span> <span class="next"><?php echo JText::_('NSP_NEXT'); ?></span> <?php endif; ?> <?php if( $this->config['top_interface_style'] == 'counter' || $this->config['top_interface_style'] == 'arrows_with_counter' ) : ?> <span class="counter"><strong><?php echo JText::_('NSP_PAGE'); ?></strong><span></span></span> <?php endif; ?> </div> </div> <?php endif; ?> <?php for($i = 0; $i < count($news_html_tab); $i++) : ?> <?php $class = ''; $style = ''; if($i >= ($this->config['news_column'] * $this->config['news_rows'])) $class .= ' unvisible'; if(($i+1) % ($this->config['news_column']) == 1) $style .= 'clear:both;'; ?> <div class=
"nsp_art<?php echo $class; ?>" style="width:<?php echo 100 / $this->config['news_column']; ?>%;<?php echo $style; ?>"><div style="padding:<?php echo $this->config['art_padding']; ?>"><?php echo $news_html_tab[$i];?></div></div> <?php endfor; ?> </div> <?php endif; ?> <?php if($this->config['news_short_pages'] > 0 && count($news_list_tab) > 0 ) : ?> <div class="nsp_links_wrap<?php echo ' '.$this->config['links_position']; ?>" style="width:<?php echo $links_width-0.1; ?>%;"> <div class="nsp_links" style="margin:<?php echo $this->config["links_margin"]; ?>;"> <?php if(count($news_list_tab) > 0) : ?> <ul class="list"> <?php for($j = 0; $j < count($news_list_tab); $j++) : ?> <?php echo $news_list_tab[$j]; ?> <?php endfor; ?> </ul> <?php endif; ?> <?php if( count(($news_list_tab) > $this->config['links_amount']) && $this->config['news_short_pages'] > 1 && floor(count($news_list_tab) / $this->config['links_amount']) >= 1 && $this->config['bottom_interface_style'] != 'none' ) : ?> <div class="nsp_bottom_interface"> <div> <?php if( $this->config['bottom_interface_style'] == 'pagination' || $this->config['bottom_interface_style'] == 'arrows_with_pagination' ) : ?> <ul class="pagination"> <?php for($i = 0; $i < ceil(count($news_list_tab) / $this->config['links_amount']); $i++) : ?> <li><?php echo $i+1; ?></li> <?php endfor; ?> </ul> <?php endif; ?> <?php if( $this->config['bottom_interface_style'] == 'arrows' || $this->config['bottom_interface_style'] == 'arrows_with_pagination' || $this->config['bottom_interface_style'] == 'arrows_with_counter' ) : ?> <span class="prev"><?php echo JText::_('NSP_PREV'); ?></span> <span class="next"><?php echo JText::_('NSP_NEXT'); ?></span> <?php endif; ?> <?php if( $this->config['bottom_interface_style'] == 'counter' || $this->config['bottom_interface_style'] == 'arrows_with_counter' ) : ?> <span class="counter"><strong><?php echo JText::_('NSP_PAGE'); ?></strong><span></span></span> <?php endif; ?> </div> </div> <?php endif; ?> </div> </div> <?php endif; ?> </div> <?php else : ?> <p><?php echo JText::_('NSP_ERROR'); ?></p> <?php endif; ?>
Qualcuno di voi sa se sono sulla strada giusta?
Non conosco il php, c'è un modo per cambiare la larghezza e inserire il margine a quella classe?
Grazie e scusate per la lunghezza del post, ma ho provato a mettere tutto quello che potrebbe servirvi per aiutarmi, anche se non so se ho centrato le cose utili!!