PHP Code - Joomla! Forum - community, help and support
hello everybody
i got code of pdf com_content/helper/icon
is possible edit code , use components. or evntlist?
please me or if interested can work out.
thank you
i got code of pdf com_content/helper/icon
code: select all
function pdf($article, $params, $access, $attribs = array())
{
$url = 'index.php?view=article';
$url .= @$article->catslug ? '&catid='.$article->catslug : '';
$url .= '&id='.$article->slug.'&format=pdf';
$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 image, if non found default loaded
if ($params->get('show_icons')) {
$text = jhtml::_('image.site', 'pdf_button.png', '/images/m_images/', null, null, jtext::_('pdf'));
} else {
$text = jtext::_('pdf').' ';
}
$attribs['title'] = jtext::_( 'pdf' );
$attribs['onclick'] = "window.open(this.href,'win2','".$status."'); return false;";
$attribs['rel'] = 'nofollow';
return jhtml::_('link', jroute::_($url), $text, $attribs);
is possible edit code , use components. or evntlist?
please me or if interested can work out.
thank you
Comments
Post a Comment