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

Book/Chapter image field added.

This commit is contained in:
Cameron
2017-11-10 14:06:30 -08:00
parent 18b3825779
commit 2a37288dc7
3 changed files with 16 additions and 1 deletions

View File

@@ -536,6 +536,14 @@ class cpage_shortcodes extends e_shortcode
return $tp->toIcon($row['chapter_icon']);
}
function sc_chapter_image($parm=null)
{
$tp = e107::getParser();
$row = $this->getChapter();
return $tp->toImage($row['chapter_image'],$parm);
}
/**
* @example {CHAPTER_DESCRIPTION}
*/
@@ -576,6 +584,9 @@ class cpage_shortcodes extends e_shortcode
}
function sc_chapter_breadcrumb()
{
$tp = e107::getParser();