From 6babeb1ae5b6f7c08305b02fa08949fe355f6fc2 Mon Sep 17 00:00:00 2001 From: Cameron Date: Tue, 9 Jul 2013 00:49:50 -0700 Subject: [PATCH] Issue #408 - bootstrap font/glyph support added. (replacing ICONMAIL and ICONPRINT) --- e107_core/shortcodes/single/email_item.sc | 17 ++++++++++++++--- e107_core/shortcodes/single/print_item.sc | 17 ++++++++++++++--- 2 files changed, 28 insertions(+), 6 deletions(-) diff --git a/e107_core/shortcodes/single/email_item.sc b/e107_core/shortcodes/single/email_item.sc index 52754bfd3..ed82b8f13 100644 --- a/e107_core/shortcodes/single/email_item.sc +++ b/e107_core/shortcodes/single/email_item.sc @@ -1,16 +1,27 @@ +//"; +} +elseif (defined("ICONMAIL") && file_exists(THEME."images/".ICONMAIL)) { $icon = THEME_ABS."images/".ICONMAIL; + $img = "{$parms[0]}"; } else { $icon = e_IMAGE_ABS."generic/email.png"; + $img = "{$parms[0]}"; } -$parms = explode("^",$parm); + // message^source^other_parms -return "{$parms[0]}"; +return "".$img.""; diff --git a/e107_core/shortcodes/single/print_item.sc b/e107_core/shortcodes/single/print_item.sc index ba4b4b307..80f03ad6b 100644 --- a/e107_core/shortcodes/single/print_item.sc +++ b/e107_core/shortcodes/single/print_item.sc @@ -1,12 +1,23 @@ +//"; +} +elseif (defined("ICONPRINT") && file_exists(THEME."images/".ICONPRINT)) { $icon = THEME_ABS."images/".ICONPRINT; + $img = "{$parms[0]}"; } else { $icon = e_IMAGE_ABS."generic/printer.png"; + $img = "{$parms[0]}"; } -$parms = explode("^",$parm); -return "{$parms[0]}"; \ No newline at end of file + + + +return "".$img.""; \ No newline at end of file