ThemeBlockClasses

Permalink
In Elemental Theme

There is Page_theme.php file which has below code..
"public function getThemeBlockClasses()"

How to use in controller.php?

I want to give Custom classes in blocks....

If any one have full use of "page_theme.php" would be great for me to learn each functions.

 
MrKDilkington replied on at Permalink Best Answer Reply
MrKDilkington
jobyone replied on at Permalink Reply
jobyone
Is there a way to make classes available for all block types? Something along the lines of:

public function getThemeBlockClasses()
{
    return array(
        '*' => array('classes-available','on-all-blocks')
    );
}
andrew replied on at Permalink Reply
andrew
Not currently, but I agree this would be a nice addition for a theme. We will add this in the next update.
AndyNI replied on at Permalink Reply
Was this added? What's the identifier used, if so?
MrKDilkington replied on at Permalink Reply
MrKDilkington
@AndyNI

I don't think this feature has been implemented yet.
http://www.concrete5.org/api/source-class-Concrete.Core.Page.Theme....

The only person to know for sure is Andrew.
andrew replied on at Permalink Reply
andrew
Hah, lost track of this forum post. Always amusing when you come back to someone promising something in an update...and that person turns out to be yourself.

This got lost, and didn't make it into Github or into the core yet. It would be pretty trivial for someone to add. It's low on our priority list but I've added it to Github in case someone wants to take a crack at it.

https://github.com/concrete5/concrete5/issues/2987...
andrew replied on at Permalink Reply
andrew
This will be added in 5.7.5.3.