mirror of
https://github.com/e107inc/e107.git
synced 2025-08-09 16:17:14 +02:00
Issue #408 - bootstrap font/glyph support added. (replacing ICONMAIL and ICONPRINT)
This commit is contained in:
@@ -1,16 +1,27 @@
|
|||||||
|
//<?php
|
||||||
|
|
||||||
if (!check_class(varset($pref['email_item_class'],e_UC_MEMBER)))
|
if (!check_class(varset($pref['email_item_class'],e_UC_MEMBER)))
|
||||||
{
|
{
|
||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
|
|
||||||
if (defined("ICONMAIL") && file_exists(THEME."images/".ICONMAIL))
|
|
||||||
|
$parms = explode("^",$parm);
|
||||||
|
|
||||||
|
if(deftrue('BOOTSTRAP'))
|
||||||
|
{
|
||||||
|
$img = "<i class='icon-envelope'></i>";
|
||||||
|
}
|
||||||
|
elseif (defined("ICONMAIL") && file_exists(THEME."images/".ICONMAIL))
|
||||||
{
|
{
|
||||||
$icon = THEME_ABS."images/".ICONMAIL;
|
$icon = THEME_ABS."images/".ICONMAIL;
|
||||||
|
$img = "<img src='".$icon."' style='border:0' alt='{$parms[0]}' />";
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$icon = e_IMAGE_ABS."generic/email.png";
|
$icon = e_IMAGE_ABS."generic/email.png";
|
||||||
|
$img = "<img src='".$icon."' style='border:0' alt='{$parms[0]}' />";
|
||||||
}
|
}
|
||||||
$parms = explode("^",$parm);
|
|
||||||
// message^source^other_parms
|
// message^source^other_parms
|
||||||
return "<a href='".e_HTTP."email.php?{$parms[1]}'><img src='".$icon."' style='border:0' alt='{$parms[0]}' title='{$parms[0]}'/></a>";
|
return "<a href='".e_HTTP."email.php?{$parms[1]}' title=\"".$parms[0]."\" >".$img."</a>";
|
||||||
|
@@ -1,12 +1,23 @@
|
|||||||
|
//<?php
|
||||||
|
|
||||||
|
|
||||||
if (defined("ICONPRINT") && file_exists(THEME."images/".ICONPRINT))
|
$parms = explode("^",$parm);
|
||||||
|
|
||||||
|
if(deftrue('BOOTSTRAP'))
|
||||||
|
{
|
||||||
|
$img = "<i class='icon-print'></i>";
|
||||||
|
}
|
||||||
|
elseif (defined("ICONPRINT") && file_exists(THEME."images/".ICONPRINT))
|
||||||
{
|
{
|
||||||
$icon = THEME_ABS."images/".ICONPRINT;
|
$icon = THEME_ABS."images/".ICONPRINT;
|
||||||
|
$img = "<img src='".$icon."' style='border:0' alt='{$parms[0]}' />";
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$icon = e_IMAGE_ABS."generic/printer.png";
|
$icon = e_IMAGE_ABS."generic/printer.png";
|
||||||
|
$img = "<img src='".$icon."' style='border:0' alt='{$parms[0]}' />";
|
||||||
}
|
}
|
||||||
$parms = explode("^",$parm);
|
|
||||||
return "<a href='".e_HTTP."print.php?{$parms[1]}'><img src='".$icon."' style='border:0' alt='{$parms[0]}' title='{$parms[0]}' /></a>";
|
|
||||||
|
|
||||||
|
return "<a href='".e_HTTP."print.php?{$parms[1]}' title=\"".$parms[0]."\" >".$img."</a>";
|
Reference in New Issue
Block a user