From 1a4b66507a49c8885679b46b57adcab8761f1c27 Mon Sep 17 00:00:00 2001 From: Cameron Date: Thu, 26 Jan 2017 18:10:38 -0800 Subject: [PATCH] Debug styling fixes. --- e107_admin/admin.php | 3 ++- e107_handlers/db_debug_class.php | 1 + e107_plugins/featurebox/includes/item.php | 6 +++++- e107_web/css/backcompat.css | 6 +++++- e107_web/css/e107.css | 4 +++- 5 files changed, 16 insertions(+), 4 deletions(-) diff --git a/e107_admin/admin.php b/e107_admin/admin.php index 1bc77bad6..9818e8975 100644 --- a/e107_admin/admin.php +++ b/e107_admin/admin.php @@ -258,6 +258,7 @@ class admin_start if(!deftrue('e_DEBUG') && $checked === true) { + e107::getMessage()->addDebug("Skipping core update"); return null; } @@ -272,7 +273,7 @@ class admin_start require_once(e_ADMIN.'update_routines.php'); e107::getSession()->set('core-update-checked',true); - + e107::getMessage()->addDebug("Checking for core updates"); if(update_check() === true) { diff --git a/e107_handlers/db_debug_class.php b/e107_handlers/db_debug_class.php index 587c4d1c9..3b1b779fd 100644 --- a/e107_handlers/db_debug_class.php +++ b/e107_handlers/db_debug_class.php @@ -87,6 +87,7 @@ class e107_db_debug { if(!empty($str)) { e107::getRender()->setStyle('debug'); + echo $str; e107::getRender()->tablerender($title, $str); } } diff --git a/e107_plugins/featurebox/includes/item.php b/e107_plugins/featurebox/includes/item.php index 74d31fef8..51533b001 100644 --- a/e107_plugins/featurebox/includes/item.php +++ b/e107_plugins/featurebox/includes/item.php @@ -137,8 +137,12 @@ class plugin_featurebox_item extends e_model { return $video; } + + if(is_string($parm)) + { + parse_str($parm, $parm); + } - parse_str($parm, $parm); $tp = e107::getParser(); $imageSrc = ($parm != 'placeholder') ? $this->get('fb_image') : ""; diff --git a/e107_web/css/backcompat.css b/e107_web/css/backcompat.css index 3961a360e..cd0938736 100644 --- a/e107_web/css/backcompat.css +++ b/e107_web/css/backcompat.css @@ -54,4 +54,8 @@ ul.breadcrumb li span.divider { padding-left:5px; } padding-right: 10px; } -.form-control { max-width:100% } \ No newline at end of file +.form-control { max-width:100% } + +.e-debug .table-striped > tbody > tr:nth-of-type(2n+1) { + background-color: #f9f9f9; +} \ No newline at end of file diff --git a/e107_web/css/e107.css b/e107_web/css/e107.css index 3f9739d56..2767f7f21 100644 --- a/e107_web/css/e107.css +++ b/e107_web/css/e107.css @@ -332,4 +332,6 @@ img.e-emoticon { vertical-align:middle; border:0; width:24px } #uiAlert { z-index: 10001 } -#uiAlert .alert { z-index:10000; box-shadow:1px 4px 5px rgba(0,0,0,0.4) } \ No newline at end of file +#uiAlert .alert { z-index:10000; box-shadow:1px 4px 5px rgba(0,0,0,0.4) } + +div.e-debug { margin-top:50px; background-color: white } \ No newline at end of file