1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-31 18:11:56 +02:00

Bugtracker #4507 - make shortcodes use ICONPRINT, ICONMAIL, plus some absolute path stuff

This commit is contained in:
e107steved
2008-09-04 20:07:34 +00:00
parent 276cf7e01c
commit a77df1a354
5 changed files with 65 additions and 49 deletions

View File

@@ -1,14 +1,19 @@
/*
* e107 website system (c) 2001-2008 Steve Dunstan (e107.org)
* $Id: pdf.sc,v 1.2 2008-09-04 20:07:34 e107steved Exp $
*/
if (defined("ICONPRINTPDF") && file_exists(THEME."images/".ICONPRINTPDF))
{
$icon = THEME."images/".ICONPRINTPDF;
$icon = THEME_ABS."images/".ICONPRINTPDF;
}
else
{
$icon = e_PLUGIN."pdf/images/pdf_16.png";
$icon = e_PLUGIN_ABS."pdf/images/pdf_16.png";
}
$parms = explode("^",$parm);
//core //return "<a href='".e_BASE."pdf.php?{$parms[1]}'><img src='".$icon."' style='border:0' alt='{$parms[0]}' title='{$parms[0]}' /></a>";
//plugin //return "<a href='".e_PLUGIN."pdf/pdf.php?{$parms[1]}'><img src='".$icon."' style='border:0' alt='{$parms[0]}' title='{$parms[0]}' /></a>";
return " <a href='".e_PLUGIN."pdf/pdf.php?{$parms[1]}'><img src='".$icon."' style='border:0' alt='{$parms[0]}' title='{$parms[0]}' /></a>";
return " <a href='".e_PLUGIN_ABS."pdf/pdf.php?{$parms[1]}'><img src='".$icon."' style='border:0' alt='{$parms[0]}' title='{$parms[0]}' /></a>";