1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-09 08:06:38 +02:00

Issue #408 - bootstrap font/glyph support added. (replacing ICONMAIL and ICONPRINT)

This commit is contained in:
Cameron
2013-07-09 00:49:50 -07:00
parent cb69048fd0
commit 6babeb1ae5
2 changed files with 28 additions and 6 deletions

View File

@@ -1,16 +1,27 @@
//<?php
if (!check_class(varset($pref['email_item_class'],e_UC_MEMBER)))
{
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;
$img = "<img src='".$icon."' style='border:0' alt='{$parms[0]}' />";
}
else
{
$icon = e_IMAGE_ABS."generic/email.png";
$img = "<img src='".$icon."' style='border:0' alt='{$parms[0]}' />";
}
$parms = explode("^",$parm);
// 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>";

View File

@@ -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;
$img = "<img src='".$icon."' style='border:0' alt='{$parms[0]}' />";
}
else
{
$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>";