1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-11 00:54:49 +02:00

News: {NEWS_VISIBILITY} shortcode added - returns text version of userclass for use in CSS class styling if needed.

This commit is contained in:
Cameron
2016-08-30 14:22:47 -07:00
parent bba40d458c
commit eecbfbd61d
3 changed files with 36 additions and 1 deletions

View File

@@ -1335,7 +1335,7 @@ class news_admin_ui extends e_admin_ui
if($mediaData = $this->processSubmittedMedia($row['submitnews_media']))
{
$data['news_body'] .= "\n\n".$mediaData;
$data['news_body'] .= "\n\n---\n\n".$mediaData;
}
if(e107::getPref('wysiwyg',false)!==false)
@@ -1343,6 +1343,7 @@ class news_admin_ui extends e_admin_ui
$data['news_body'] = nl2br($data['news_body']);
}
$data['news_author'] = $row['submitnews_user'];
$data['news_thumbnail'] = $row['submitnews_file']; // implode(",",$thumbs);
$data['news_sef'] = eHelper::dasherize($data['news_title']);