Before i start hacking into things as i normally do
, here's the thing:
I want to give some blocks like my calendar and the public transport a 'header', with an icon and a title next to it (imagine the public transport module with text next to the icon). I dont want to use a title because that renders an entire new block, and the icon part is always rendered next to the 'data'. It would be clean to have an option in the block configuration to display the title inside the block itself, and also to put the title next to the icon. But the current system is a little unhandy for that because the icon/data is always rendered next to eachother. I see different modules use different blockdefinitions, so maybe two js-functions to render the overall blocklayout could be handy.
ps why are the icons sometimes in an em tag and not in the normal i tag?
Edit;
This syntax works at least for the calendar, the only part missing is the possibility to render it inside the calendar-block itself. Now it renders as a separate block
Code: Select all
calendars.private= { title:'<i class="fa fa-calendar" /><span>Calendar</span>',width: 6, maxitems: 5, icalurl:.........
with custom css
Code: Select all
.titlegroups i + span {
margin-left: 15px;
}