I am trying to design a new theme, that having side-pre region and bottom region. In this bottom region(From left to right) I have to add 4 blocks side by side. Please help me, how to define the region(area, location) and in which files I have to modify.
Thanks.
You can set your custom region in theme/config.php file, for example -
'course' => array(
'file' => 'general_layout.php',
'regions' => array('side-pre', 'bottom-region' ),
'defaultregion' => 'side-pre',
'options' => array('langmenu' => true),
),
And define region in layout file theme/layout/yourlayout.php
<div id="region-pre" class="block-region">
<div class="region-content">
<?php echo $OUTPUT->blocks_for_region('bottom-region') ?>
</div>
</div>
For more detail look into moodle doc - http://docs.moodle.org/dev/Themes_2.0
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With