mirror of
https://github.com/e107inc/e107.git
synced 2025-03-11 07:59:44 +01:00
{---BREADCRUMB---} processing is now supported. (see bootstrap5/theme_shortcodes.php for an example)
This commit is contained in:
parent
1ae7e3a2ed
commit
a6e287d680
@ -167,7 +167,15 @@
|
||||
}
|
||||
|
||||
$bread = e107::breadcrumb();
|
||||
$ret['{---BREADCRUMB---}'] = e107::getForm()->breadcrumb($bread, true);
|
||||
|
||||
if($tmp = e107::callMethod('theme_shortcodes', 'sc_breadcrumb', $bread))
|
||||
{
|
||||
$ret['{---BREADCRUMB---}'] = $tmp;
|
||||
}
|
||||
else
|
||||
{
|
||||
$ret['{---BREADCRUMB---}'] = e107::getForm()->breadcrumb($bread, true);
|
||||
}
|
||||
|
||||
return $ret;
|
||||
|
||||
|
@ -1649,7 +1649,7 @@ ul.col-selection { background-color: #FCFDFF; }
|
||||
#admin-menus #sc-admin-help ,
|
||||
#admin-menus .admin-ui-nav-menu { background: #373737 }
|
||||
h4.caption { margin-bottom: 15px !important; }
|
||||
.s-message-body .well, s-message-item pre { color: white; }
|
||||
.s-message-body .well, .s-message-item pre { color: white; }
|
||||
|
||||
|
||||
|
||||
|
@ -75,6 +75,26 @@ class theme_shortcodes extends e_shortcode
|
||||
return $caption;
|
||||
}
|
||||
|
||||
/**
|
||||
* Optional {---BREADCRUMB---} processing.
|
||||
* @shortcode {---BREADCRUMB---}
|
||||
* @return string
|
||||
*/
|
||||
/*
|
||||
function sc_breadcrumb($array)
|
||||
{
|
||||
$route = e107::route();
|
||||
|
||||
if(strpos($route,'news/') === 0)
|
||||
{
|
||||
$array[0]['text'] = 'Blog';
|
||||
}
|
||||
|
||||
return e107::getForm()->breadcrumb($array, true);
|
||||
|
||||
}
|
||||
*/
|
||||
|
||||
/**
|
||||
* Will only function on the news page.
|
||||
* @example {THEME_NEWS_BANNER: type=date}
|
||||
|
Loading…
x
Reference in New Issue
Block a user