Simple Machines Community Forum

Customizing SMF => Bridges and Integrations => Topic started by: artvolt on October 07, 2020, 08:42:18 AM

Title: Curve template design for Mediawiki
Post by: artvolt on October 07, 2020, 08:42:18 AM
Good afternoon. Please tell me how it is possible in the template for Wiki - "Curve" to make a menu at the top right and a logo link on the left, how it is done here - https://wiki.simplemachines.org/

(http://images.vfl.ru/ii/1602074256/ea8449e1/31858808_m.jpg)

Here is the wiki installed on my forum - https://art-cafe.info/wiki/index.php . How can I make the top menu and logo?

(http://images.vfl.ru/ii/1602074256/5ee05b8f/31858809_m.jpg)

Title: Re: Curve template design for Mediawiki
Post by: artvolt on October 08, 2020, 09:18:51 AM
Dear programmers and SMF-masters. This support forum has done it. So it is possible to do it.

What edits need to be made to the template "Wiki-Curve" - so that in the block "Mediawiki-SMF" the menu is displayed at the very top ?

Sorry for the persistence, but I really need to solve this problem.
Title: Re: Curve template design for Mediawiki
Post by: SychO on October 08, 2020, 09:52:54 AM
add a customTopSection() method to the smfcurveTemplate class of the smfCurveTemplate.php file of the mediawiki smfCurve theme.

In that method you can echo your menu and logo's HTML code.
Title: Re: Curve template design for Mediawiki
Post by: artvolt on October 08, 2020, 11:25:39 AM
I have a code like this in my template:



<div id="top_section">';

      if (method_exists($this, 'customTopSection'))
         $this->customTopSection();

      echo '
         </div>

Where exactly, in which line should the logo and menu code be inserted?

And how does the menu code look like on this support forum? And how to make it to the right?
Title: Re: Curve template design for Mediawiki
Post by: artvolt on October 08, 2020, 03:32:07 PM
It's okay, I figured out how to do it. SychO, thank you for help!