mirror of
https://github.com/e107inc/e107.git
synced 2025-08-03 21:27:25 +02:00
admin -> custom pages GUI fix
This commit is contained in:
@@ -574,11 +574,14 @@ class page_admin_ui extends e_admin_ui
|
|||||||
|
|
||||||
$text .= "
|
$text .= "
|
||||||
<tr>
|
<tr>
|
||||||
<td>".CUSLAN_9."</td>
|
<td colspan='2'>
|
||||||
<td>
|
|
||||||
";
|
";
|
||||||
|
|
||||||
$text .= "<div id='tab-container' class='admintabs e-tabs'>";
|
$text .= "<div id='tab-container' class='admintabs e-tabs'>
|
||||||
|
<ul>
|
||||||
|
<li><a href='#cpage-body-container'>".CUSLAN_9."</a></li>
|
||||||
|
</ul>
|
||||||
|
<div id='cpage-body-container'>";
|
||||||
|
|
||||||
$data = $tp->toForm($data,FALSE,TRUE); // Make sure we convert HTML tags to entities
|
$data = $tp->toForm($data,FALSE,TRUE); // Make sure we convert HTML tags to entities
|
||||||
|
|
||||||
@@ -586,7 +589,7 @@ class page_admin_ui extends e_admin_ui
|
|||||||
|
|
||||||
// $text .= $this->bbareaMulti('data', $textareaValue, 'page','page','large');
|
// $text .= $this->bbareaMulti('data', $textareaValue, 'page','page','large');
|
||||||
$text .= $frm->bbarea('data', $textareaValue, 'page','page','large');
|
$text .= $frm->bbarea('data', $textareaValue, 'page','page','large');
|
||||||
$text .= "</div>";
|
$text .= "</div></div>";
|
||||||
|
|
||||||
// $text .= $frm->bbarea('data', $textareaValue, 'page','help','large');
|
// $text .= $frm->bbarea('data', $textareaValue, 'page','help','large');
|
||||||
|
|
||||||
@@ -615,7 +618,7 @@ class page_admin_ui extends e_admin_ui
|
|||||||
</fieldset>
|
</fieldset>
|
||||||
<fieldset id='core-cpage-create-options'>
|
<fieldset id='core-cpage-create-options'>
|
||||||
<legend>".LAN_OPTIONS."</legend>
|
<legend>".LAN_OPTIONS."</legend>
|
||||||
<table class='adminedit options'>
|
<table class='table adminform options'>
|
||||||
<colgroup>
|
<colgroup>
|
||||||
<col class='col-label' />
|
<col class='col-label' />
|
||||||
<col class='col-control' />
|
<col class='col-control' />
|
||||||
@@ -668,7 +671,14 @@ class page_admin_ui extends e_admin_ui
|
|||||||
|
|
||||||
|
|
||||||
//triggerHook
|
//triggerHook
|
||||||
$data = array('method'=>'form', 'table'=>'page', 'id'=>$id, 'plugin'=>'page', 'function'=>'createPage');
|
$data = array(
|
||||||
|
'method' =>'form',
|
||||||
|
'table' =>'page',
|
||||||
|
'id' => $id,
|
||||||
|
'plugin' => 'page',
|
||||||
|
'function' => 'createPage'
|
||||||
|
);
|
||||||
|
|
||||||
$hooks = $e_event->triggerHook($data);
|
$hooks = $e_event->triggerHook($data);
|
||||||
if(!empty($hooks))
|
if(!empty($hooks))
|
||||||
{
|
{
|
||||||
@@ -684,6 +694,7 @@ class page_admin_ui extends e_admin_ui
|
|||||||
<col class='col-control' />
|
<col class='col-control' />
|
||||||
</colgroup>
|
</colgroup>
|
||||||
<tbody>";
|
<tbody>";
|
||||||
|
|
||||||
foreach($hooks as $hook)
|
foreach($hooks as $hook)
|
||||||
{
|
{
|
||||||
if(!empty($hook))
|
if(!empty($hook))
|
||||||
|
Reference in New Issue
Block a user