[ticket/469] Add settings for displaying portal on all pages
B3P-469
This commit is contained in:
@@ -101,6 +101,11 @@ class portal_module
|
|||||||
'legend2' => 'ACP_PORTAL_COLUMN_WIDTH_SETTINGS',
|
'legend2' => 'ACP_PORTAL_COLUMN_WIDTH_SETTINGS',
|
||||||
'board3_left_column_width' => array('lang' => 'PORTAL_LEFT_COLUMN_WIDTH', 'validate' => 'int', 'type' => 'text:3:3', 'explain' => true),
|
'board3_left_column_width' => array('lang' => 'PORTAL_LEFT_COLUMN_WIDTH', 'validate' => 'int', 'type' => 'text:3:3', 'explain' => true),
|
||||||
'board3_right_column_width' => array('lang' => 'PORTAL_RIGHT_COLUMN_WIDTH', 'validate' => 'int', 'type' => 'text:3:3', 'explain' => true),
|
'board3_right_column_width' => array('lang' => 'PORTAL_RIGHT_COLUMN_WIDTH', 'validate' => 'int', 'type' => 'text:3:3', 'explain' => true),
|
||||||
|
|
||||||
|
'legend3' => 'ACP_PORTAL_SHOW_ALL',
|
||||||
|
'board3_show_all_pages' => array('lang' => 'ACP_PORTAL_SHOW_ALL', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true),
|
||||||
|
'board3_show_all_left' => array('lang' => 'PORTAL_SHOW_ALL_LEFT', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true),
|
||||||
|
'board3_show_all_right' => array('lang' => 'PORTAL_SHOW_ALL_RIGHT', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true),
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
28
migrations/v210_rc3.php
Normal file
28
migrations/v210_rc3.php
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
<?php
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @package Board3 Portal v2.1
|
||||||
|
* @copyright (c) 2015 Board3 Group ( www.board3.de )
|
||||||
|
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
namespace board3\portal\migrations;
|
||||||
|
|
||||||
|
class v210_rc3 extends \phpbb\db\migration\migration
|
||||||
|
{
|
||||||
|
static public function depends_on()
|
||||||
|
{
|
||||||
|
return array('\board3\portal\migrations\v210_rc2');
|
||||||
|
}
|
||||||
|
|
||||||
|
public function update_data()
|
||||||
|
{
|
||||||
|
return array(
|
||||||
|
array('config.update', array('board3_portal_version', '2.1.0-rc3')),
|
||||||
|
array('config.add', array('board3_show_all_pages', false)),
|
||||||
|
array('config.add', array('board3_show_all_left', false)),
|
||||||
|
array('config.add', array('board3_show_all_right', false)),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user