Unless there isa specific reason to do so, normally you would not need to create your own layouts, you could extend the base theme, and use its layouts, meaning you would only have to write CSS to achieve your desired look.
Other than maintenance, using multiple layout files provides many advantages to real world themes, in that you can easily tweak and customize specific layouts to achieve the goals of the organization using the theme.
In this video I'm showing you how to create a custom layout for a Moodle page with the help of a Theme Plugin. This can be useful if you are going to design a theme from scratch or want to add a new UI to your theme by making a new layout.
USE CASE : I want to use an UI template in my Moodle theme and change the look n feel of my Frontpage/Landing page. I want to replace the existing frontpage design and put this new UI design.
In this video, I have showcased how you can connect a PHP layout page to that of template base Mustache File. Additionally you can write custom CSS and JavaScript.
Learn more about this at : moodledev.io/d...
For free UI Templates : bootstrapmade....
I hope you gain something out of this video. Incase you got any queries, do comment the same in the comment box.
Also please make sure to like this video and subscribe to my channel.
{ Moodle Arjun }: / @moodlerarjun
2 окт 2024