Jump to content

Тема оформления:Dgraph

From mediawiki.org
This page is a translated version of the page Skin:Dgraph and the translation is 67% complete.
Справка по темам оформления MediaWiki - категория
Dgraph
Статус релиза: стабильный
Автор(ы) Nischayn22, www.sprawsm.com
Последняя версия 1.0 (2016-08-13)
MediaWiki 1.27+
PHP 5.4+
Лицензия GNU General Public License 3.0 или позднее
Download
Example Wikimedia Skins Lab
Public wikis using 5 (Ranked 152nd)
Public wikis using as default skin 2
Переведите тему оформления Dgraph, если он доступен на translatewiki.net

The Dgraph skin was developed for and funded by Dgraph Labs, Inc. but has been released as open source.

It has since been forked with rhe goal to maintain compatibility with MediaWiki.

To see the skin in action visit Wiki.

Кастомизация

This skin needs some minor work. If you are looking to use this please contact User:Nischayn22.

Скриншоты

Установка

For general documentation on the use of skins, see Help:Skins.
  • Download and extract the file(s) in a directory called "Dgraph" in your skins/ folder. Note that a base file in the root folder is no longer required in MediaWiki.
  • Add the following code at the bottom of your "LocalSettings.php"
wfLoadSkin( 'Dgraph' );

$wgDefaultSkin = "dgraph";

Tips and tricks

Set this in the DgraphTemplate.php around li 323.

Then replace "Sitename" with the name of your wiki.

          <div class="col-4 col-tablet-2">
            <nav class="page-footer-nav">
              <h6 class="page-footer-nav__title">Learn</h6>
              <ul class="page-footer-nav__list">
				<li class="page-footer-nav__item"><a href="<?php
					echo htmlspecialchars( Title::newFromText("Sitename:Privacy policy")->getFullURL() );
					?>" class="page-footer-nav__link">Privacy policy</a></li>
				<li class="page-footer-nav__item"><a href="<?php
					echo htmlspecialchars( Title::newFromText("Sitename:About")->getFullURL() );
					?>" class="page-footer-nav__link">About</a></li>
				<li class="page-footer-nav__item"><a href="<?php
					echo htmlspecialchars( Title::newFromText("Sitename:General disclaimer")->getFullURL() );
					?>" class="page-footer-nav__link">Disclaimers</a></li>	
			  </ul>
            </nav>
          </div>

Set this in the DgraphTemplate.php

         <div class="col-4 col-tablet-2">
            <nav class="page-footer-nav">
              <h6 class="page-footer-nav__title">Credits</h6>
              <ul class="page-footer-nav__list">
                <li class="page-footer-nav__item"><a href="https://en.wikipedia.org/wiki/File:Dgraph-logo.svg" title="Apache License, Version 2.0" target="_blank" class="page-footer-nav__link link-alias">Original Logo</a></li>
                <li class="page-footer-nav__item"><a href="https://www.mediawiki.org/wiki/Skin:Dgraph" title="GNU General Public License 3.0 or later" target="_blank" class="page-footer-nav__link link-alias">Dgraph Skin</a></li>
				<li class="page-footer-nav__item"><a href="https://www.mediawiki.org/wiki/MediaWiki" title="Powered by MediaWiki" target="_blank" class="page-footer-nav__link link-alias">MediaWiki</a></li>
                <li class="page-footer-nav__item"><a href="https://wikiapiary.com/wiki/Main_Page" title="Monitored by WikiApiary" target="_blank" class="page-footer-nav__link link-alias">WikiApiary</a></li>
			  </ul>
            </nav>
          </div>

Авторы

The project was funded by Dgraph Labs, Inc.. The design was done by Dragan Babic and Danijel Grabež of Sprawsm. Nischay Nahata was the MediaWiki consultant.

Поддержка

  • Please create an issue on github for any kind of support.