e107inc / e107

e107 Bootstrap CMS (Content Management System) v2 with PHP, MySQL, HTML5, jQuery and Twitter Bootstrap. Issue Discussion Room: https://gitter.im/e107inc/e107
https://e107.org
GNU General Public License v3.0
318 stars 212 forks source link

[Question]: Is there way how to "wrapper" {ALERTS} shortcode? #5136

Open Jimmi08 opened 6 months ago

Jimmi08 commented 6 months ago

Question

I use "wrapper" for lack of the correct word, but it has similar functionality. If the content of {ALERT} is empty, output nothing, But if there is any error then allow the theme developer set class for div around it. Before you start that this was already asked, look bellow.

Expected Source

https://github.com/e107inc/e107/issues/4440#issuecomment-794017414

I used

            $wrap = array(
                    'ALERTS' => '<div class="col-12 col-xxl-8 mx-auto p-4 py-md-1">{---}</div>'
                );

            e107::scStyle($wrap);

Layout:

{SETSTYLE=singlelogin}
{ALERTS}
{---}

Additional Context

image

What am I missing? Thanks

Alex-e107nl commented 6 months ago

THX @Jimmi08 i had already changed it on e107.nl, it wil come to git soon...