1
0
mirror of https://github.com/e107inc/e107.git synced 2025-02-13 11:04:38 +01:00

21 lines
475 B
Python
Raw Normal View History

/*
2009-11-18 01:06:08 +00:00
* e107 website system Copyright (C) 2008-2009 e107 Inc (e107.org)
2010-02-10 18:18:01 +00:00
* $Id$
*/
2008-12-21 12:03:28 +00:00
if (!plugInstalled('pdf'))
{
return;
}
2006-12-02 04:36:16 +00:00
if (defined("ICONPRINTPDF") && file_exists(THEME."images/".ICONPRINTPDF))
{
$icon = THEME_ABS."images/".ICONPRINTPDF;
2006-12-02 04:36:16 +00:00
}
else
{
$icon = e_PLUGIN_ABS."pdf/images/pdf_16.png";
2006-12-02 04:36:16 +00:00
}
$parms = explode("^",$parm);
return " <a href='".e_PLUGIN_ABS."pdf/pdf.php?{$parms[1]}'><img src='".$icon."' style='border:0' alt='{$parms[0]}' title='{$parms[0]}' /></a>";