1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-13 10:04:35 +02:00

Missing page-subtitle field added.

This commit is contained in:
Cameron
2021-01-04 12:48:37 -08:00
parent 2c81d51dd9
commit f8f40a23fe
6 changed files with 68 additions and 69 deletions

View File

@@ -98,7 +98,7 @@ class cpage_shortcodes extends e_shortcode
function sc_cpagesubtitle()
{
$subtitle = varset($this->var['sub_title']);
$subtitle = varset($this->var['page_subtitle']);
return $subtitle ? e107::getParser()->toHTML($subtitle, true, 'TITLE') : '';
}

View File

@@ -378,6 +378,7 @@ CREATE TABLE online (
CREATE TABLE page (
page_id int(10) unsigned NOT NULL auto_increment,
page_title varchar(250) NOT NULL default '',
page_subtitle varchar(250) NOT NULL default '',
page_sef varchar (250) NOT NULL default '',
page_chapter int(10) unsigned NOT NULL default '0',
page_metakeys varchar (250) NOT NULL default '',

View File

@@ -7,60 +7,56 @@
* GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
*
*/
if (!defined('e107_INIT')) { exit; }
if(!defined('e107_INIT'))
{
exit;
}
$PAGE_WRAPPER = array();
global $sc_style;
$PAGE_WRAPPER['default']['CPAGESUBTITLE'] = '<h4>{---}</h4>';
$PAGE_WRAPPER['default']['CPAGEMESSAGE'] = '{---}<div class="clear"><!-- --></div>';
$PAGE_WRAPPER['default']['CPAGEAUTHOR'] = "{---}, ";
$PAGE_WRAPPER['default']['CPAGENAV'] = '<div class="f-right pull-right float-right col-md-3">{---}</div>';
$sc_style['CPAGEAUTHOR|default']['pre'] = '';
$sc_style['CPAGEAUTHOR|default']['post'] = ", ";
$sc_style['CPAGESUBTITLE|default']['pre'] = '<h2>';
$sc_style['CPAGESUBTITLE|default']['post'] = '</h2>';
$sc_style['CPAGEMESSAGE|default']['pre'] = '';
$sc_style['CPAGEMESSAGE|default']['post'] = '<div class="clear"><!-- --></div>';
$sc_style['CPAGENAV|default']['pre'] = '<div class="f-right pull-right float-right col-md-3">';
$sc_style['CPAGENAV|default']['post'] = '</div>';
#### default template - BC ####
// used only for parsing comment outside of the page tablerender-ed content
// leave empty if you integrate page comments inside the main page template
$PAGE_TEMPLATE['default']['page'] = '
// used only for parsing comment outside of the page tablerender-ed content
// leave empty if you integrate page comments inside the main page template
$PAGE_TEMPLATE['default']['page'] = '
{PAGE}
{PAGECOMMENTS}
';
// always used - it's inside the {PAGE} sc from 'page' template
$PAGE_TEMPLATE['default']['start'] = '<div id="{CPAGESEF}" class="cpage_body cpage-body">{CHAPTER_BREADCRUMB}';
// page body
$PAGE_TEMPLATE['default']['body'] = '
{CPAGEMESSAGE|default}
';
// always used - it's inside the {PAGE} sc from 'page' template
$PAGE_TEMPLATE['default']['start'] = '<div id="{CPAGESEF}" class="cpage_body cpage-body">{CHAPTER_BREADCRUMB}';
// page body
$PAGE_TEMPLATE['default']['body'] = '
{CPAGEMESSAGE}
{CPAGESUBTITLE|default}
{CPAGESUBTITLE}
<div class="clear"><!-- --></div>
{CPAGENAV|default}
{CPAGEBODY|default}
{CPAGENAV}
{CPAGEBODY}
<div class="clear"><!-- --></div>
{CPAGERATING|default}
{CPAGERATING}
{CPAGEEDIT}
';
// {CPAGEFIELD: name=image}
// {CPAGEFIELD: name=image}
$PAGE_WRAPPER['default']['CPAGEEDIT'] = "<div class='text-right'>{---}</div>";
$PAGE_WRAPPER['default']['CPAGEEDIT'] = "<div class='text-right'>{---}</div>";
// used only when password authorization is required
$PAGE_TEMPLATE['default']['authorize'] = '
// used only when password authorization is required
$PAGE_TEMPLATE['default']['authorize'] = '
<div class="cpage-restrict ">
{message}
{form_open}
@@ -78,53 +74,52 @@ $sc_style['CPAGENAV|default']['post'] = '</div>';
{form_close}
</div>
';
// used when access is denied (restriction by class)
$PAGE_TEMPLATE['default']['restricted'] = '
// used when access is denied (restriction by class)
$PAGE_TEMPLATE['default']['restricted'] = '
{text}
';
// used when page is not found
$PAGE_TEMPLATE['default']['notfound'] = '
// used when page is not found
$PAGE_TEMPLATE['default']['notfound'] = '
{text}
';
// always used
$PAGE_TEMPLATE['default']['end'] = '{CPAGERELATED: types=page,news}</div>';
// options per template - disable table render
// always used
$PAGE_TEMPLATE['default']['end'] = '{CPAGERELATED: types=page,news}</div>';
// options per template - disable table render
// $PAGE_TEMPLATE['default']['noTableRender'] = false; //XXX Deprecated
// define different tablerender mode here
$PAGE_TEMPLATE['default']['tableRender'] = 'cpage';
// define different tablerender mode here
$PAGE_TEMPLATE['default']['tableRender'] = 'cpage';
$PAGE_TEMPLATE['default']['related']['start'] = '{SETIMAGE: w=350&h=350&crop=1}<h2 class="caption">{LAN=LAN_RELATED}</h2><div class="row">';
$PAGE_TEMPLATE['default']['related']['item'] = '<div class="col-md-4"><a href="{RELATED_URL}">{RELATED_IMAGE}</a><h3><a href="{RELATED_URL}">{RELATED_TITLE}</a></h3></div>';
$PAGE_TEMPLATE['default']['related']['end'] = '</div>';
$PAGE_TEMPLATE['default']['related']['start'] = '{SETIMAGE: w=350&h=350&crop=1}<h2 class="caption">{LAN=LAN_RELATED}</h2><div class="row">';
$PAGE_TEMPLATE['default']['related']['item'] = '<div class="col-md-4"><a href="{RELATED_URL}">{RELATED_IMAGE}</a><h3><a href="{RELATED_URL}">{RELATED_TITLE}</a></h3></div>';
$PAGE_TEMPLATE['default']['related']['end'] = '</div>';
// $PAGE_TEMPLATE['default']['editor'] = '<ul class="fa-ul"><li><i class="fa fa-li fa-edit"></i> Level 1</li><li><i class="fa fa-li fa-cog"></i> Level 2</li></ul>';
// $PAGE_TEMPLATE['default']['editor'] = '<ul class="fa-ul"><li><i class="fa fa-li fa-edit"></i> Level 1</li><li><i class="fa fa-li fa-cog"></i> Level 2</li></ul>';
#### No table render example template ####
$PAGE_TEMPLATE['custom']['start'] = '<div id="{CPAGESEF}" class="cpage-body">';
$PAGE_TEMPLATE['custom']['body'] = '';
$PAGE_TEMPLATE['custom']['authorize'] = '
$PAGE_TEMPLATE['custom']['start'] = '<div id="{CPAGESEF}" class="cpage-body">';
$PAGE_TEMPLATE['custom']['body'] = '';
$PAGE_TEMPLATE['custom']['authorize'] = '
';
$PAGE_TEMPLATE['custom']['restricted'] = '
$PAGE_TEMPLATE['custom']['restricted'] = '
';
$PAGE_TEMPLATE['custom']['end'] = '</div>';
$PAGE_TEMPLATE['custom']['tableRender'] = '';
$PAGE_WRAPPER['profile']['CMENUIMAGE: template=profile'] = '<span class="page-profile-image pull-left col-xs-12 col-sm-4 col-md-4">{---}</span>';
$PAGE_TEMPLATE['profile'] = $PAGE_TEMPLATE['default'];
$PAGE_TEMPLATE['profile']['body'] = '
$PAGE_TEMPLATE['custom']['end'] = '</div>';
$PAGE_TEMPLATE['custom']['tableRender'] = '';
$PAGE_WRAPPER['profile']['CMENUIMAGE: template=profile'] = '<span class="page-profile-image pull-left col-xs-12 col-sm-4 col-md-4">{---}</span>';
$PAGE_TEMPLATE['profile'] = $PAGE_TEMPLATE['default'];
$PAGE_TEMPLATE['profile']['body'] = '
{CPAGEMESSAGE}
{CPAGESUBTITLE}
<div class="clear"><!-- --></div>