mirror of
https://github.com/e107inc/e107.git
synced 2025-07-31 03:40:37 +02:00
{---BREADCRUMB---} processing is now supported. (see bootstrap5/theme_shortcodes.php for an example)
This commit is contained in:
@@ -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}
|
||||
|
Reference in New Issue
Block a user