mirror of
https://github.com/e107inc/e107.git
synced 2025-07-28 18:30:53 +02:00
Missing page-subtitle field added.
This commit is contained in:
@@ -582,6 +582,8 @@ class page_admin_ui extends e_admin_ui
|
||||
'checkboxes' => array('title'=> '', 'type' => null, 'width' =>'3%', 'forced'=> TRUE, 'thclass'=>'center', 'class'=>'center'),
|
||||
'page_id' => array('title'=> LAN_ID, 'type' => 'text', 'tab' => 0, 'width'=>'5%', 'forced'=> TRUE, 'readParms'=>'link=sef&target=blank'),
|
||||
'page_title' => array('title'=> CUSLAN_2, 'tab' => 0, 'type' => 'text', 'data'=>'str', 'inline'=>true, 'width'=>'25%', 'writeParms'=>'size=block-level'),
|
||||
'page_subtitle' => array('title'=> CUSLAN_80, 'tab' => 0, 'type' => 'text', 'data'=>'str', 'inline'=>true, 'width'=>'25%', 'writeParms'=>'size=block-level'),
|
||||
|
||||
'page_chapter' => array('title'=> CUSLAN_63, 'tab' => 0, 'type' => 'dropdown', 'width' => '20%', 'filter' => true, 'batch'=>true, 'inline'=>true),
|
||||
|
||||
'page_template' => array('title'=> LAN_TEMPLATE, 'tab' => 0, 'type' => 'dropdown', 'width' => 'auto','filter' => true, 'batch'=>true, 'inline'=>true, 'writeParms'=>array()),
|
||||
|
@@ -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') : '';
|
||||
}
|
||||
|
||||
|
@@ -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 '',
|
||||
|
@@ -8,22 +8,18 @@
|
||||
*
|
||||
*/
|
||||
|
||||
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
|
||||
@@ -40,16 +36,16 @@ $sc_style['CPAGENAV|default']['post'] = '</div>';
|
||||
|
||||
// page body
|
||||
$PAGE_TEMPLATE['default']['body'] = '
|
||||
{CPAGEMESSAGE|default}
|
||||
{CPAGEMESSAGE}
|
||||
|
||||
{CPAGESUBTITLE|default}
|
||||
{CPAGESUBTITLE}
|
||||
<div class="clear"><!-- --></div>
|
||||
|
||||
{CPAGENAV|default}
|
||||
{CPAGEBODY|default}
|
||||
{CPAGENAV}
|
||||
{CPAGEBODY}
|
||||
|
||||
<div class="clear"><!-- --></div>
|
||||
{CPAGERATING|default}
|
||||
{CPAGERATING}
|
||||
{CPAGEEDIT}
|
||||
|
||||
|
||||
@@ -99,7 +95,6 @@ $sc_style['CPAGENAV|default']['post'] = '</div>';
|
||||
$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>';
|
||||
|
@@ -4542,7 +4542,7 @@ var_dump($select_options);*/
|
||||
|
||||
$tmp = $obj->compile($tags,$parm);
|
||||
|
||||
if(count($tmp))
|
||||
if(is_array($tmp) && count($tmp))
|
||||
{
|
||||
foreach($tmp as $val)
|
||||
{
|
||||
|
@@ -50,6 +50,7 @@ define("CUSLAN_76", "Menu with path #");
|
||||
define("CUSLAN_77", "deleted");
|
||||
define("CUSLAN_78", "Couldn't delete menu with path ");
|
||||
define("CUSLAN_79", "You must enter either a page title or a menu name.");
|
||||
define("CUSLAN_80", "Sub Title");
|
||||
|
||||
|
||||
// define("CUSLAN_54", "Meta Keywords"); //LAN_KEYWORDS
|
||||
|
Reference in New Issue
Block a user