How can i add breadcrumbs to my own created custom pages?
Ex : for aboutus, contactus pages
Is there any global variable for breadcrumbs?
In Clean, I believe it is output as part of
$OUTPUT->full_header();
But other themes do break this header down, for example in flexibase i have
<div id="page-navbar" class="clearfix">
<nav class="breadcrumb-nav" role="navigation" aria-label="breadcrumb">
<?php echo $OUTPUT->navbar(); ?>
</nav>
<div class="breadcrumb-button">
<?php echo $OUTPUT->page_heading_button(); ?>
</div>
</div>
Where $OUTPUT->navbar() renders the breadcrumbs.
EDIT: With your several queries about adding different things into your custom created pages, you may want to look at the link Mary gave you in the other thread to the static page plugin as this would automatically pick all of these areas up from the theme itself. Alternatively, look at the https://docs.moodle.org/dev/Page_API docs and the way column1.php layout is set up in Clean to give some ideas about the sections you need on a Moodle page layout (columns2.php or column3.php if you want side bar blocks as well)