mirror of
https://github.com/e107inc/e107.git
synced 2025-08-06 06:38:00 +02:00
Issue #5422 Schema now supported in page view template.
This commit is contained in:
15
page.php
15
page.php
@@ -933,10 +933,18 @@ class pageClass
|
|||||||
if(null === $vars)
|
if(null === $vars)
|
||||||
{
|
{
|
||||||
$ret = e107::getParser()->parseTemplate($template, true, $this->batch);
|
$ret = e107::getParser()->parseTemplate($template, true, $this->batch);
|
||||||
|
if(!empty($this->template['schema']))
|
||||||
|
{
|
||||||
|
$schema = e107::getParser()->parseSchemaTemplate($this->template['schema'], true, $this->batch);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$ret = e107::getParser()->simpleParse($template, $vars);
|
$ret = e107::getParser()->simpleParse($template, $vars);
|
||||||
|
if(!empty($this->template['schema']))
|
||||||
|
{
|
||||||
|
$schema = e107::getParser()->parseSchemaTemplate($this->template['schema'], true, $vars);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if($this->renderMode)
|
if($this->renderMode)
|
||||||
@@ -948,8 +956,11 @@ class pageClass
|
|||||||
$mode = vartrue($this->template['tableRender'], 'cpage-page-view');
|
$mode = vartrue($this->template['tableRender'], 'cpage-page-view');
|
||||||
}
|
}
|
||||||
|
|
||||||
// var_dump($this->batch->page_metadescr);
|
// v2.4 support for 'schema' template.
|
||||||
|
if(!empty($schema))
|
||||||
|
{
|
||||||
|
e107::schema($schema);
|
||||||
|
}
|
||||||
|
|
||||||
return array('caption'=>$this->page['page_title'], 'text'=>$ret, 'mode'=>$mode, 'title'=>$this->page['page_metadscr']);
|
return array('caption'=>$this->page['page_title'], 'text'=>$ret, 'mode'=>$mode, 'title'=>$this->page['page_metadscr']);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user