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:
@@ -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();
|
||||
|
@@ -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',
|
||||
|
Reference in New Issue
Block a user