mirror of
https://github.com/e107inc/e107.git
synced 2025-08-22 06:03:27 +02:00
{---BREADCRUMB---} processing is now supported. (see bootstrap5/theme_shortcodes.php for an example)
This commit is contained in:
@@ -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