2013-05-01 01:51:00 -07:00
|
|
|
//<?
|
|
|
|
// * e107 website system Copyright (C) 2008-2013 e107 Inc (e107.org)
|
2013-03-02 17:59:32 +00:00
|
|
|
/**
|
|
|
|
* e107 pdf generation plugin
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
if (!plugInstalled('pdf'))
|
|
|
|
{
|
|
|
|
return;
|
|
|
|
}
|
2013-05-01 01:51:00 -07:00
|
|
|
$parms = explode("^",$parm);
|
2013-03-02 17:59:32 +00:00
|
|
|
|
|
|
|
if (defined("ICONPRINTPDF") && file_exists(THEME."images/".ICONPRINTPDF))
|
|
|
|
{
|
2013-05-01 01:51:00 -07:00
|
|
|
$icon = "<img src='".THEME_ABS."images/".ICONPRINTPDF."' style='border:0' alt='{$parms[0]}' title='{$parms[0]}' />";
|
2013-03-02 17:59:32 +00:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2013-05-01 01:51:00 -07:00
|
|
|
$icon = deftrue('e_BOOTSTRAP') ? "<i class='icon-book'></i>" : "<img src='".e_PLUGIN_ABS."pdf/images/pdf_16.png' style='border:0' alt='{$parms[0]}' title='{$parms[0]}' />";
|
2013-03-02 17:59:32 +00:00
|
|
|
}
|
2013-05-01 01:51:00 -07:00
|
|
|
|
|
|
|
return " <a href='".e_PLUGIN_ABS."pdf/pdf.php?{$parms[1]}'>".$icon."</a>";
|