Quantcast
Channel: phpBB.com
Viewing all articles
Browse latest Browse all 2173

Extension Writers Discussion • Re: use php to add extra css class to existing class

$
0
0
If you want, you can use the current template events to edit that portion of the header: overall_header_body_before and overall_header_headerbar_before.

Content of overall_header_body_before:

Code:

{% set StockerHeader = true %}{% if StockerHeader %}<div class="hidde-me" style="display: none;">{% endif %}
Content of overall_header_headerbar_before:

Code:

        </div>    </div></div></div>{% set StockerHeader = true %}{% if StockerHeader %}<div id="wrap" class="wrap">    <a id="top" class="top-anchor" accesskey="t"></a>    <div id="page-header">        <div class="headerbar baldy-baldy" role="banner">            {% endif %}
Assuming the variable StockerHeader is a variable which returns true when your extension is active.
Of course, it will interfere with some extensions that are using those events but aren't that many anyway.

Statistics: Posted by Anișor — Tue Jan 28, 2025 8:05 pm



Viewing all articles
Browse latest Browse all 2173

Trending Articles