Jump to content

User talk:Slepi

About this board

Collapsible h2

4
Summary by Slepi

Tracked as issue #25

InnerCitadel (talkcontribs)

Hello! Still loving your skin, using it on wikimsk.org I made a comment about collapsible H2 before. The skin citizen has figured out how to do collapsible H2 in PHP. Skin:Citizen. They have a PHP file in includes/Partials/BodyContent.php, and also have a function in SkinCitizen.php to call it, and then in skin.mustache they have a custom {{{html}}} thing for the body content. That puts all the divs into sections under each h2 with class names. And then they have a javascript file in resources that uses those classes to cause them to collapse. I tried to replicate what they are doing in Medik, but I'm completely terrible at PHP, and I failed :( Would this be possible to include in Medik as an option? I understand if not. Because your skin is much more lightweight and faster, and the above is very convoluted. Thank yoU!

Slepi (talkcontribs)

Hello @InnerCitadel, thank you for researching it in detail! Sure, I will try to implement it. :-) Actually, I've had the base code ready for a while (a user option in a separate /and outdated/ branch), I just didn't get to finish it. It looks promising now, I could have it done soon. Thanks!

Slepi (talkcontribs)

Hi @InnerCitadel, I'm sorry, I'm a little overwhelmed again in medical practice unexpectedly, but I didn't forget your proposal; as soon as I have more time again, I'll finish it! Thanks for your patience ;-)

InnerCitadel (talkcontribs)

Thank you! Don't worry there is no rush.

Reply to "Collapsible h2"

Kiwi bird in clogs award.

2
Summary by Slepi

InnerCitadel (talkcontribs)
Fastest cleanest looking skin
Love your skin!
Slepi (talkcontribs)

Wow, thanks a lot! :-)

There are no older topics