From 58d6800e101e89bf247849f8c756d9d6fa922852 Mon Sep 17 00:00:00 2001 From: instantflorian Date: Sat, 9 Oct 2021 17:34:09 +0200 Subject: [PATCH] Add HREF placeholder missed a second appearance (where is this used anyway?), increase version --- wbce/modules/news_img/functions.inc.php | 3 +++ wbce/modules/news_img/info.php | 6 +++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/wbce/modules/news_img/functions.inc.php b/wbce/modules/news_img/functions.inc.php index 533faa6d4..078f2df23 100644 --- a/wbce/modules/news_img/functions.inc.php +++ b/wbce/modules/news_img/functions.inc.php @@ -1955,6 +1955,7 @@ function mod_nwi_replacements() 'IMAGE_URL', // URL of preview image without 'IMAGES', // gallery images 'LINK', // "read more" link + 'HREF', // link to post detail including href="" 'MODI_DATE', // post modification date 'MODI_TIME', // post modification time 'NEXT_LINK', // next link @@ -2264,9 +2265,11 @@ function mod_nwi_get_news_items($options=array()) // gallery images - wichtig für link "weiterlesen" SHOW_READ_MORE $images = mod_nwi_img_get_by_post($post['post_id'],false); $anz_post_img = count($images); + $post_href_link = 'href="'. $post['post_link'].'"'; // no "read more" link if no long content if ( (strlen($post['content_long']) < 9) && ($anz_post_img < 1)) { $post['post_link'] = '#" onclick="javascript:void(0);return false;" style="cursor:no-drop;'; + $post_href_link = ''; } $posts[] = mod_nwi_post_process($post, $post['section_id'], $users); } diff --git a/wbce/modules/news_img/info.php b/wbce/modules/news_img/info.php index d8604a832..fea4661f4 100644 --- a/wbce/modules/news_img/info.php +++ b/wbce/modules/news_img/info.php @@ -16,13 +16,17 @@ $module_directory = 'news_img'; $module_name = 'News with Images'; $module_function = 'page'; -$module_version = '5.0.10'; +$module_version = '5.0.11'; $module_platform = '1.4'; $module_author = 'Ryan Djurovich, Rob Smith, Silvia Reins, Martin Hecht, Florian Meerwinck, Bianka Martinovic'; $module_license = 'GNU General Public License'; $module_description = 'This page type is designed for making a news page with Images and Lightboxeffect.'; /** + * + * v5.0.11 - 2021-10-09 + * - Florian + * * added HREF placeholder * * v5.0.10 - 2021-10-02 * - Florian