mirror of
https://github.com/e107inc/e107.git
synced 2025-08-06 14:46:56 +02:00
Removed old bootstrap-editable folder. Added experimental front-end inline editing for shortcodes.
This commit is contained in:
21
page.php
21
page.php
@@ -578,7 +578,11 @@ class pageClass
|
||||
$this->authorized = 'nf';
|
||||
$this->template = e107::getCoreTemplate('page', 'default');
|
||||
// $this->batch = e107::getScBatch('page',null,'cpage')->setVars(new e_vars($ret))->setScVar('page', array()); ///Upgraded to setVars() array. (not using '$this->page')
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
$this->batch = e107::getScBatch('page',null,'cpage')->setVars($this->page)->wrapper('page/'.$this->templateID);
|
||||
|
||||
|
||||
@@ -608,9 +612,21 @@ class pageClass
|
||||
$this->template = e107::getCoreTemplate('page', 'default');
|
||||
$this->templateID = 'default';
|
||||
}
|
||||
|
||||
|
||||
$editable = array(
|
||||
'table' => 'page',
|
||||
'pid' => 'page_id',
|
||||
'perms' => '5',
|
||||
'shortcodes' => array(
|
||||
'cpagetitle' => array('field'=>'page_subtitle','type'=>'text', 'container'=>'span'),
|
||||
'cpagebody' => array('field'=>'page_text','type'=>'html', 'container'=>'div'),
|
||||
)
|
||||
);
|
||||
|
||||
|
||||
$this->batch = e107::getScBatch('page',null,'cpage');
|
||||
$this->batch->wrapper('page/'.$this->templateID );
|
||||
$this->batch->editable($editable);
|
||||
|
||||
$this->pageText = $this->page['page_text'];
|
||||
|
||||
@@ -774,6 +790,7 @@ class pageClass
|
||||
$extend->message = e107::getMessage()->render();
|
||||
$tp = e107::getParser();
|
||||
|
||||
|
||||
switch ($this->authorized)
|
||||
{
|
||||
case 'class':
|
||||
|
Reference in New Issue
Block a user