mirror of
https://github.com/e107inc/e107.git
synced 2025-08-17 03:54:09 +02:00
Fixed conflict between page shortcodes and page plugin shortcodes. Book and Chapter listings improved and page_navigation_menu improved.
This commit is contained in:
@@ -15,11 +15,12 @@ if (!defined('e107_INIT')) { exit; }
|
||||
*
|
||||
* Shortcodes for custom page display
|
||||
*/
|
||||
class page_shortcodes extends e_shortcode
|
||||
class cpage_shortcodes extends e_shortcode
|
||||
{
|
||||
// var $var; // parsed DB values
|
||||
|
||||
function sc_cpagetitle()
|
||||
{
|
||||
function sc_cpagetitle($parm='')
|
||||
{
|
||||
return e107::getParser()->toHTML($this->getParserVars()->title, true, 'TITLE');
|
||||
}
|
||||
|
||||
@@ -30,7 +31,7 @@ class page_shortcodes extends e_shortcode
|
||||
}
|
||||
|
||||
|
||||
function sc_cpagebody()
|
||||
function sc_cpagebody($parm='')
|
||||
{
|
||||
// already parsed
|
||||
return $this->getParserVars()->text;
|
||||
|
@@ -110,7 +110,7 @@ $sc_style['CPAGENAV|default']['post'] = '</div>';
|
||||
|
||||
$PAGE_TEMPLATE['nav']['caption'] = "Articles";
|
||||
|
||||
$PAGE_TEMPLATE['nav']['start'] = '<ul>';
|
||||
$PAGE_TEMPLATE['nav']['start'] = '<ul class="page-nav">';
|
||||
|
||||
// Main Link
|
||||
$PAGE_TEMPLATE['nav']['item'] = '
|
||||
@@ -161,7 +161,7 @@ $sc_style['CPAGENAV|default']['post'] = '</div>';
|
||||
$PAGE_TEMPLATE['nav']['end'] = '</ul>';
|
||||
|
||||
|
||||
$PAGE_TEMPLATE['nav']['submenu_start'] = '<ul id="{LINK_PARENT}" role="menu" >';
|
||||
$PAGE_TEMPLATE['nav']['submenu_start'] = '<ul class="page-nav" id="{LINK_PARENT}" role="menu" >';
|
||||
|
||||
|
||||
$PAGE_TEMPLATE['nav']['submenu_item'] = '
|
||||
|
Reference in New Issue
Block a user