Grazie per l'aiuto, ma non sono molto esperto di "codice"...potresti aiutarmi dicedomi su che file agire e che modifiche apportare?
Ciao e Grazie
Marco
Vedo che in parte hai risolto di tuo levando le 3 icone .. che di fatto e' il metodo piu' veloce.
Se invece quelle 3 icone le vuoi a tutti i costi e sei costretto al titolo in 2 o piu' parole:
[metodo non ortodosso e probabilmente non il migliore, ma ho usato questo e funziona]
nel file:
/components/com_content/content.html.php
<?php
function show{
...
...
?>
<table cellspacing="0" class="contentpaneopen<?php echo $params->get( 'pageclass_sfx' ); ?>">
<tr>
<?php
// displays Item Title
HTML_content::Title( $row, $params, $access );
// displays PDF Icon
HTML_content::PdfIcon( $row, $params, $hide_js );
// displays Print Icon
mosHTML::PrintIcon( $row, $params, $hide_js, $print_link );
// displays Email Icon
HTML_content::EmailIcon( $row, $params, $hide_js );
?>
</tr>
</table>
...
...
nello stesso file
<?php
function PdfIcon( &$row, &$params, $hide_js ) {
global $mosConfig_live_site;
if ( $params->get( 'pdf' ) && !$params->get( 'popup' ) && !$hide_js ) {
$status = 'status=no,toolbar=no,scrollbars=yes,titlebar=no,menubar=no,resizable=yes,width=640,height=480,directories=no,location=no';
$link = $mosConfig_live_site. '/index2.php?option=com_content&do_pdf=1&id='. $row->id;
if ( $params->get( 'icons' ) ) {
$image = mosAdminMenus::ImageCheck( 'pdf_button.png', '/images/M_images/', NULL, NULL, _CMN_PDF, _CMN_PDF );
}
else {
$image = _CMN_PDF .' ';
}
?>
<td align="right" width="1px" style="border-bottom: 1px solid white">
<a href="<?php echo $link; ?>" target="_blank"
onclick="window.open('<?php echo $link; ?>','win2','<?php echo $status; ?>'); return false;" title="<?php echo _CMN_PDF;?>">
<?php echo $image; ?>
</a>
</td>
<?php
}
}
/**
* Writes Email icon
*/
function EmailIcon( &$row, &$params, $hide_js ) {
global $mosConfig_live_site, $Itemid, $task;
if ( $params->get( 'email' ) && !$params->get( 'popup' ) && !$hide_js ) {
$status = 'status=no,toolbar=no,scrollbars=yes,titlebar=no,menubar=no,resizable=yes,width=400,height=250,directories=no,location=no';
if ($task == 'view') {
$_Itemid = '&itemid='. $Itemid;
}
else {
$_Itemid = '';
}
$link = $mosConfig_live_site .'/index2.php?option=com_content&task=emailform&id='. $row->id . $_Itemid;
if ( $params->get( 'icons' ) ) {
$image = mosAdminMenus::ImageCheck( 'emailButton.png', '/images/M_images/', NULL, NULL, _CMN_EMAIL, _CMN_EMAIL );
}
else {
$image = ' '. _CMN_EMAIL;
}
?>
<td align="right" width="1px">
<a href="<?php echo $link; ?>" target="_blank"
onclick="window.open('<?php echo $link; ?>','win2','<?php echo $status; ?>'); return false;" title="<?php echo _CMN_EMAIL;?>">
<?php echo $image; ?>
</a>
</td>
<?php
}
}
ora andare in /include/joomla.php
e modificare
<?php
function PrintIcon( &$row, &$params, $hide_js, $link, $status=NULL ) {
if ( $params->get( 'print' ) && !$hide_js ) {
// use default settings if none declared
if ( !$status ) {
$status = 'status=no,toolbar=no,scrollbars=yes,titlebar=no,menubar=no,resizable=yes,width=640,height=480,directories=no,location=no';
}
// checks template image directory for image, if non found default are loaded
if ( $params->get( 'icons' ) ) {
$image = mosAdminMenus::ImageCheck( 'printButton.png', '/images/M_images/', NULL, NULL, _CMN_PRINT, _CMN_PRINT );
}
else {
$image = _ICON_SEP .' '. _CMN_PRINT. ' '. _ICON_SEP;
}
if ( $params->get( 'popup' ) && !$hide_js ) {
// Print Preview button - used when viewing page
?>
<script language="javascript" type="text/javascript">
<!--
document.write('<td align="right" width="100%" class="buttonheading">');
document.write('<a href="#" onclick="javascript:window.print(); return false;" title="<?php echo _CMN_PRINT;?>">');
document.write('<?php echo $image;?>');
document.write('</a>');
document.write('</td>');
//-->
</script>
<?php
}
else {
// Print Button - used in pop-up window
?>
<td align="right" width="1px" class="buttonheading">
<a href="<?php echo $link; ?>" target="_blank" onclick="window.open('<?php echo $link; ?>','win2','<?php echo $status; ?>'); return false;" title="<?php echo _CMN_PRINT;?>">
<?php echo $image;?></a>
</td>
<?php
}
}
}