Skip to content

Commit

Permalink
Add HREF placeholder
Browse files Browse the repository at this point in the history
missed a second appearance (where is this used anyway?), increase version
  • Loading branch information
instantflorian committed Oct 9, 2021
1 parent f1fda14 commit 58d6800
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 3 additions & 0 deletions wbce/modules/news_img/functions.inc.php
Expand Up @@ -1955,6 +1955,7 @@ function mod_nwi_replacements()
'IMAGE_URL', // URL of preview image without <img src>
'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
Expand Down Expand Up @@ -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);
}
Expand Down
6 changes: 5 additions & 1 deletion wbce/modules/news_img/info.php
Expand Up @@ -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
Expand Down

0 comments on commit 58d6800

Please sign in to comment.