1
0
mirror of https://github.com/e107inc/e107.git synced 2025-02-13 19:15:19 +01:00
2013-03-02 17:59:32 +00:00

28 lines
606 B
Python

/*
* e107 website system Copyright (C) 2008-2013 e107 Inc (e107.org)
* $Id$
*/
/**
* e107 pdf generation plugin
*
* @package e107_plugins
* @subpackage pdf
* @version $Id$;
*/
if (!plugInstalled('pdf'))
{
return;
}
if (defined("ICONPRINTPDF") && file_exists(THEME."images/".ICONPRINTPDF))
{
$icon = THEME_ABS."images/".ICONPRINTPDF;
}
else
{
$icon = e_PLUGIN_ABS."pdf/images/pdf_16.png";
}
$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>";