Forskjell mellom versjoner av «MediaWiki:Sidebar/nb»
Hopp til navigering
Hopp til søk
(prøver den) |
(test) |
||
| Linje 43: | Linje 43: | ||
* LANGUAGES | * LANGUAGES | ||
| + | |||
| + | <?php | ||
| + | /** | ||
| + | * SidebarBannerBox | ||
| + | * CREDITS: Idea shamelessly copied from http://www.mediawiki.org/wiki/Extension:SidebarDonateBox | ||
| + | * @file | ||
| + | * @ingroup Extensions | ||
| + | * @author Daniel K. Schneider (http://www.mediawiki.org/wiki/User:Daniel_K._Schneider) | ||
| + | * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later | ||
| + | * | ||
| + | * This program is free software; you can redistribute it and/or | ||
| + | * modify it under the terms of the GNU General Public License | ||
| + | * as published by the Free Software Foundation; either version 2 | ||
| + | * of the License, or (at your option) any later version. | ||
| + | * | ||
| + | * This program is distributed in the hope that it will be useful, | ||
| + | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| + | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| + | * GNU General Public License for more details. | ||
| + | * | ||
| + | * You should have received a copy of the GNU General Public License | ||
| + | * along with this program; if not, write to the Free Software | ||
| + | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||
| + | */ | ||
| + | |||
| + | if ( !defined( 'MEDIAWIKI' ) ) die( "This is an extension to the MediaWiki package and cannot be run standalone." ); | ||
| + | |||
| + | $wgExtensionCredits['parserhook'][] = array ( | ||
| + | 'path' => __FILE__, | ||
| + | 'name' => 'SidebarBannerBox', | ||
| + | 'url' => 'http://mediawiki.org/wiki/Extension:SidebarBannerBox', | ||
| + | 'version' => '0.1', | ||
| + | 'author' => "[http://mediawiki.org/wiki/User:Daniel_K._Schneider Daniel K. Schneider]", | ||
| + | 'descriptionmsg' => 'Adds banner(s) to the sidebar', | ||
| + | ); // should be properly localized | ||
| + | |||
| + | |||
| + | $wgHooks['SkinBuildSidebar'][] = 'efSidebarBannerBox'; | ||
| + | |||
| + | function efSidebarBannerBox( $skin, &$bar ) { | ||
| + | global $egSidebarBannerBoxContent, $wgScriptPath; | ||
| + | // CHANGE this according to your needs | ||
| + | $out = '<div class="sidebar_banner">'; | ||
| + | $out .= '<a href="http://heimskringla.no/wiki/Tilbud_om_annonseplass_på_heimskringla.no">'; | ||
| + | $out .= '<img title="Annonse"'; | ||
| + | $out .= 'alt="Kjøp annonse på heimskringla.no" '; | ||
| + | $out .= 'src="' . $wgScriptPath . 'http://heimskringla.no/images/9/99/Annonceplads.jpg" /></a>'; | ||
| + | $out .= '</div>'; | ||
| + | |||
| + | $bar['TECFA Links'] = $out; | ||
| + | return true; | ||
| + | } | ||
Revisjonen fra 30. sep. 2013 kl. 20:20
- Tekstsamlinger
- Norrøne kildetekster | Norrøne kildetekster
- Tekster på dansk | Tekster på dansk
- Tekster på norsk | Tekster på norsk
- Tekster på svensk | Tekster på svensk
- Tekster på islandsk | Tekster på islandsk
- Tekster på færøysk | Tekster på færøysk
- Tekstoversikt
- Kategori:Alfabetisk indeks | Alfabetisk index
- Tekstoversigt | Tekstoversikt
- Kildeindex | Kildeindex
- recentchanges-url | recentchanges
- randompage-url | randompage
- Bakgrunnsmateriale
- Biografisk oversigt | Biografisk oversikt
- Skjaldeoversigt | Skjaldeoversikt
- Artikler og forskningsdokumentasjon | Artikler og bokomtaler
- Andre tjenester
- http://heimskringla.no/nettbibliotekaren/gbook.php?a=sign | Spør bibliotekaren
- E-Bibliotek | E-Bibliotek
- Billedarkiv | Bildearkiv
- Kortarkiv | Kartarkiv
- Film og underholdning | Film og underholdning
- Nettbutikk | Nettbutikk
- SEARCH
- Hjelpesider
- Arbeidskontoret | Arbeidskontoret
- Prosjektportal | Prosjektportal
- Projekter | Igangværende prosjekter
- Opphavsrett | Opphavsrett
- Kontaktside for heimskringla.no | Kontakt
- TOOLBOX
- Eksterne lenker
- Leksikon, ordbøker og andre oppslagsverk | Oppslagsverk
- Eksterne lenker | Eksterne lenker
- LANGUAGES
<?php /**
* SidebarBannerBox * CREDITS: Idea shamelessly copied from http://www.mediawiki.org/wiki/Extension:SidebarDonateBox * @file * @ingroup Extensions * @author Daniel K. Schneider (http://www.mediawiki.org/wiki/User:Daniel_K._Schneider) * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
if ( !defined( 'MEDIAWIKI' ) ) die( "This is an extension to the MediaWiki package and cannot be run standalone." );
$wgExtensionCredits['parserhook'][] = array ( 'path' => __FILE__, 'name' => 'SidebarBannerBox', 'url' => 'http://mediawiki.org/wiki/Extension:SidebarBannerBox', 'version' => '0.1', 'author' => "Daniel K. Schneider", 'descriptionmsg' => 'Adds banner(s) to the sidebar', ); // should be properly localized
$wgHooks['SkinBuildSidebar'][] = 'efSidebarBannerBox';
function efSidebarBannerBox( $skin, &$bar ) {
global $egSidebarBannerBoxContent, $wgScriptPath;
// CHANGE this according to your needs
$out = '
';
$bar['TECFA Links'] = $out; return true; }
" /></a>';