Advertisement:

Author Topic: Curve template design for Mediawiki  (Read 625 times)

Offline artmix

  • Semi-Newbie
  • *
  • Posts: 19
    • forumartcafeinfo on Facebook
    • @artcafeinfo on Twitter
Curve template design for Mediawiki
« 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/



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



SMF Forum - "Art Cafe" - https://art-cafe.info/index.php [nofollow]

Offline artmix

  • Semi-Newbie
  • *
  • Posts: 19
    • forumartcafeinfo on Facebook
    • @artcafeinfo on Twitter
Re: Curve template design for Mediawiki
« Reply #1 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.
SMF Forum - "Art Cafe" - https://art-cafe.info/index.php [nofollow]

Offline SychO

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 1,928
  • Gender: Male
    • SychO9 on GitHub
    • SychO
Re: Curve template design for Mediawiki
« Reply #2 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.
Checkout My Themes:
-

Potato  •  Ackerman  •  SunRise  •  NightBreeze


Offline artmix

  • Semi-Newbie
  • *
  • Posts: 19
    • forumartcafeinfo on Facebook
    • @artcafeinfo on Twitter
Re: Curve template design for Mediawiki
« Reply #3 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?
SMF Forum - "Art Cafe" - https://art-cafe.info/index.php [nofollow]

Offline artmix

  • Semi-Newbie
  • *
  • Posts: 19
    • forumartcafeinfo on Facebook
    • @artcafeinfo on Twitter
Re: Curve template design for Mediawiki
« Reply #4 on: October 08, 2020, 03:32:07 PM »
It's okay, I figured out how to do it. SychO, thank you for help!
SMF Forum - "Art Cafe" - https://art-cafe.info/index.php [nofollow]