미디어위키 스킨 제작시 참고사항

1 개요[ | ]

<?php
class FooBarTemplate extends BaseTemplate {
	public function execute() {
		$this->html( 'headelement' );

<?php if ( $this->data['newtalk'] ): ?>
	<div class="usermessage"><?php $this->html( 'newtalk' );?></div>
<?php endif ?>

<?php if ( $this->data['sitenotice'] ): ?>
	<div id="siteNotice"><?php $this->html( 'sitenotice' ); ?></div>
<?php endif ?>

<a href="<?= htmlspecialchars( $this->data['nav_urls']['mainpage']['href'] ) ?>" <?= Xml::expandAttributes( Linker::tooltipAndAccesskeyAttribs( 'p-logo' ) ) ?>>
	<img src="<?= $this->text( 'logopath' ) ?>" alt="<?php $this->text( 'sitename' ) ?>">
</a>

<?php if ( $this->data['title'] != '' ): ?>
	<h1 id="firstHeading" class="firstHeading"><?php $this->html( 'title' ); ?></h1>
<?php endif ?>

<?php if ( $this->data['isarticle'] ): ?>
	<div id="siteSub"><?php $this->msg( 'tagline' ); ?></div>
<?php endif ?>

<?php if ( $this->data['subtitle'] ): ?>
	<div id="contentSub"><?php $this->html( 'subtitle' ); ?></div>
<?php endif ?>
<?php if ( $this->data['undelete'] ): ?>
	<div id="contentSub2"><?php $this->html( 'undelete' ); ?></div>
<?php endif ?>

<?php $this->html( 'bodytext' ); ?>

<?php $this->html( 'catlinks' ); ?>

<?php echo $this->getIndicators(); ?>

<?php $this->html( 'dataAfterContent' ); ?>

<!-- Personal tools -->
<ul>
<?php foreach ( $this->getPersonalTools() as $key => $item ): ?>
	<?= $this->makeListItem( $key, $item ) ?>
<?php endforeach ?>
</ul>

<!-- Content Navigation -->
<?php foreach ( $this->data['content_navigation'] as $group => $tabs ): ?>
	<ul>
	<?php foreach ( $tabs as $key => $tab ): ?>
		<?= $this->makeListItem( $key, $tab ) ?>
	<?php endforeach; ?>
	</ul>
<?php endforeach ?>

<!-- Content actions -->
<ul>
<?php foreach ( $this->data['content_actions'] as $key => $tab ): ?>
	<?= $this->makeListItem( $key, $tab ) ?>
<?php endforeach ?>
</ul>

<!-- Toolbox -->
<ul>
<?php foreach ( $this->getToolbox() as $key => $tbitem ): ?>
	<?= $this->makeListItem( $key, $tbitem ) ?>
<?php endforeach; ?>
<?php wfRunHooks( 'SkinTemplateToolboxEnd', array( &$this ) ); ?>
</ul>

<!-- Footer -->
<?php foreach ( $this->getFooterLinks() as $category => $links ): ?>
	<ul>
	<?php foreach ( $links as $key ): ?>
		<li><?php $this->html( $key ) ?></li>
	<?php endforeach ?>
	</ul>
<?php endforeach ?>

<?php $this->printTrail(); ?>
</body></html><?php
	}
}

2 같이 보기[ | ]

3 참고[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}