diff --git a/js/breadcrumb.js b/js/breadcrumb.js new file mode 100644 index 0000000..4041fab --- /dev/null +++ b/js/breadcrumb.js @@ -0,0 +1,18 @@ +/** + * Sets up the breadcrumb behaviour (adds do / ACT status information) + */ +jQuery(function () { + const $breadcrumb = jQuery('.breadcrumbs'); + if (!$breadcrumb.length) return; + + /** + * add ACT status to breadcrumb (if not show) + * + */ + const mode = $breadcrumb.attr('data-do'); + if(mode && mode.indexOf('show') !== 0){ + var markup = ' : ' + mode + ''; + $breadcrumb.find('p').append(markup); + } + +}); diff --git a/main.php b/main.php index 533efb4..2d64a12 100755 --- a/main.php +++ b/main.php @@ -236,7 +236,7 @@ $classWideContent = ($ACT === "show") ? "": "wide-content "; -