From 16c2ce8a5b51e7e69b1b98d03db9fa959f471f50 Mon Sep 17 00:00:00 2001 From: Cameron Date: Mon, 6 May 2013 21:30:58 -0700 Subject: [PATCH] Display prices only in the 'Find Themes' area. --- e107_handlers/theme_handler.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/e107_handlers/theme_handler.php b/e107_handlers/theme_handler.php index 50a1a1381..a59f45c32 100644 --- a/e107_handlers/theme_handler.php +++ b/e107_handlers/theme_handler.php @@ -947,7 +947,8 @@ class themeHandler $info_icon = "".E_32_CAT_ABOUT.""; // $preview_icon = "".E_32_SEARCH.""; $admin_icon = ($pref['admintheme'] != $theme['path'] ) ? "\n" : E_32_TRUE; - + $price = ''; + if(substr($theme['thumbnail'],0,4) == 'http') { $thumbPath = $theme['thumbnail']; @@ -984,7 +985,8 @@ class themeHandler } //XXX modal-Cache is currently enabled by default. Awaiting inclusion of data-cache feature. // See here: https://github.com/twitter/bootstrap/pull/4224 - + $price = ($theme['price'] > 0) ? " ".$theme['price']."" : "".Free.""; + } $preview_icon = "".E_32_SEARCH.""; @@ -1009,7 +1011,7 @@ class themeHandler // Choose a Theme to Install. - $price = ($theme['price'] > 0) ? " ".$theme['price']."" : "".Free.""; + if(!$mode)