diff --git a/e107_handlers/news_class.php b/e107_handlers/news_class.php index 7c1dc4f4c..e380aa5b5 100644 --- a/e107_handlers/news_class.php +++ b/e107_handlers/news_class.php @@ -995,6 +995,12 @@ class e_news_category_item extends e_front_model { return ''; } + + if($parm === 'raw') + { + return (string) $this->cat('news_count'); + } + return (string) e107::getParser()->toBadge( $this->cat('news_count')); } } diff --git a/e107_plugins/news/news_archive_menu.php b/e107_plugins/news/news_archive_menu.php index 49b98a8de..69e8e1660 100644 --- a/e107_plugins/news/news_archive_menu.php +++ b/e107_plugins/news/news_archive_menu.php @@ -85,7 +85,7 @@ $caption = !empty($parm['caption'][e_LANGUAGE]) ? $parm['caption'][e_LANGUAGE] : e107::plugLan('news'); -e107::getRender()->tablerender($caption, $text); +e107::getRender()->tablerender($caption, $text, 'news-archive-menu'); //e107::getDebug()->log($arr); diff --git a/thumb.php b/thumb.php index 017315663..5adf7566e 100644 --- a/thumb.php +++ b/thumb.php @@ -223,6 +223,11 @@ class e_thumbpage return true; } + if($this->_debug === true) + { + echo "File Not Found: ".$path; + } + $this->_placeholder = true; return true; @@ -232,6 +237,12 @@ class e_thumbpage function sendImage() { //global $bench; + if($this->_debug === true) + { + var_dump($this->_request); + // return false; + } + if($this->_placeholder == true) { @@ -244,11 +255,7 @@ class e_thumbpage return false; } - if($this->_debug === true) - { - var_dump($this->_request); - // return false; - } + if(!$this->_src_path) { @@ -470,6 +477,12 @@ class e_thumbpage // Display a placeholder image. function placeholder($parm) { + if($this->_debug === true) + { + echo "Placeholder activated"; + return null; + } + $getsize = isset($parm['size']) ? $parm['size'] : '100x100'; header('location: https://placehold.it/'.$getsize);