1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-16 03:24:20 +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();

View File

@@ -418,6 +418,7 @@ CREATE TABLE page_chapters (
chapter_meta_keywords varchar(255) NOT NULL default '',
chapter_manager tinyint(3) unsigned NOT NULL default '254',
chapter_icon varchar(250) NOT NULL default '',
chapter_image varchar(250) NOT NULL default '',
chapter_order int(6) unsigned NOT NULL default '0',
chapter_template varchar(50) NOT NULL default '',
chapter_visibility tinyint(3) unsigned NOT NULL default '0',