Etdiyiniz dəyişikliklərin yayımlanandan sonra effekt verməsi üçün brauzerinizin keşini təmizləməyə ehtiyacınız ola bilər. Bunun üçün Chrome, Firefox, Edge, yaxud Safari istifadəçisisinizsə, klaviaturanızın Shift düyməsini sıxaraq brauzerin ⟳ səhifə yeniləmək düyməsini klik edə bilərsiniz.
<?php/** * calmsimple nouveau. * * Translated from gwicke's previous TAL template version to remove * dependency on PHPTAL. * * 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. * http://www.gnu.org/copyleft/gpl.html * * @todo document * @file * @ingroup Skins */if(!defined('MEDIAWIKI')){die(-1);}/** * Inherit main code from SkinTemplate, set the CSS and template filter. * @todo document * @ingroup Skins */classSkincalmsimpleextendsSkinTemplate{/** Using calmsimple. */var$skinname='calmsimple',$stylename='calmsimple',$template='calmsimpleTemplate',$useHeadElement=true;/** * @param $out OutputPage */functionsetupSkinUserCss(OutputPage$out){parent::setupSkinUserCss($out);$out->addModuleStyles('skins.calmsimple');// TODO: Migrate all of these$out->addStyle('calmsimple/IE60Fixes.css','screen','IE 6');$out->addStyle('calmsimple/IE70Fixes.css','screen','IE 7');}}/** * @todo document * @ingroup Skins */classcalmsimpleTemplateextendsBaseTemplate{/** * Template filter callback for calmsimple skin. * Takes an associative array of data set from a SkinTemplate-based * class, and a wrapper for MediaWiki's localization database, and * outputs a formatted page. * * @access private */functionexecute(){// Suppress warnings to prevent notices about missing indexes in $this->datawfSuppressWarnings();$this->html('headelement');?><divid="globalWrapper"><divid="header"><divclass="portlet"id="p-logo"role="banner"><?phpechoHtml::element('a',array('href'=>$this->data['nav_urls']['mainpage']['href'],'style'=>"background-image: url({$this->data['logopath']});")+Linker::tooltipAndAccesskeyAttribs('p-logo'));?></div><divclass="portlet"id="p-personal"role="navigation"><h3><?php$this->msg('personaltools')?></h3><divclass="pBody"><ul<?php$this->html('userlangattributes')?>><?phpforeach($this->getPersonalTools()as$key=>$item){?><?phpecho$this->makeListItem($key,$item);?><?php}?></ul></div></div><?php$this->cactions();?></div><divid="sidebar"<?php$this->html('userlangattributes')?>><h2><?php$this->msg('navigation-heading')?></h2><?php$this->renderPortals($this->data['sidebar']);?></div></div> <divid="column-content"><divid="content"class="mw-body-primary"role="main"><aid="top"></a><?phpif($this->data['sitenotice']){?><divid="siteNotice"><?php$this->html('sitenotice')?></div><?php } ?><h1id="firstHeading"class="firstHeading"lang="<?php $this->data['pageLanguage'] = $this->getSkin()->getTitle()->getPageViewLanguage()->getHtmlCode(); $this->text( 'pageLanguage' ); ?>"><spandir="auto"><?php$this->html('title')?></span></h1><divid="bodyContent"class="mw-body"><divid="siteSub"><?php$this->msg('tagline')?></div><divid="contentSub"<?php$this->html('userlangattributes')?>><?php$this->html('subtitle')?></div><?phpif($this->data['undelete']){?><divid="contentSub2"><?php$this->html('undelete')?></div><?php}?><?phpif($this->data['newtalk']){?><divclass="usermessage"><?php$this->html('newtalk')?></div><?php}?><divid="jump-to-nav"class="mw-jump"><?php$this->msg('jumpto')?><ahref="#column-one"><?php$this->msg('jumptonavigation')?></a><?php $this->msg( 'comma-separator' ) ?><a href="#searchInput"><?php $this->msg( 'jumptosearch' ) ?></a></div><!--startcontent--><?php$this->html('bodytext')?><?phpif($this->data['catlinks']){$this->html('catlinks');}?><!--endcontent--><?phpif($this->data['dataAfterContent']){$this->html('dataAfterContent');}?><divclass="visualClear"></div></div></div></div><divclass="visualClear"></div><?php$validFooterIcons=$this->getFooterIcons("icononly");$validFooterLinks=$this->getFooterLinks("flat");// Additional footer linksif(count($validFooterIcons)+count($validFooterLinks)>0){?><divid="footer"role="contentinfo"<?php$this->html('userlangattributes')?>><?php$footerEnd='</div>';}else{$footerEnd='';}foreach($validFooterIconsas$blockName=>$footerIcons){?><divid="f-<?php echo htmlspecialchars( $blockName ); ?>ico"><?phpforeach($footerIconsas$icon){?><?phpecho$this->getSkin()->makeFooterIcon($icon);?><?php}?></div><?php}if(count($validFooterLinks)>0){?><ulid="f-list"><?phpforeach($validFooterLinksas$aLink){?><liid="<?php echo $aLink ?>"><?php$this->html($aLink)?></li><?php}?></ul><?php}echo$footerEnd;?></div><?php$this->printTrail();echoHtml::closeElement('body');echoHtml::closeElement('html');wfRestoreWarnings();}// end of execute() method/*************************************************************************************************//** * @param $sidebar array */protectedfunctionrenderPortals($sidebar){if(!isset($sidebar['SEARCH'])){$sidebar['SEARCH']=true;}if(!isset($sidebar['TOOLBOX'])){$sidebar['TOOLBOX']=true;}if(!isset($sidebar['LANGUAGES'])){$sidebar['LANGUAGES']=true;}foreach($sidebaras$boxName=>$content){if($content===false){continue;}if($boxName=='SEARCH'){$this->searchBox();}elseif($boxName=='TOOLBOX'){$this->toolbox();}elseif($boxName=='LANGUAGES'){$this->languageBox();}else{$this->customBox($boxName,$content);}}}functionsearchBox(){global$wgUseTwoButtonsSearchForm;?><divid="p-search"class="portlet"role="search"><h3><labelfor="searchInput"><?php$this->msg('search')?></label></h3><divid="searchBody"class="pBody"><formaction="<?php $this->text( 'wgScript' ) ?>"id="searchform"><inputtype='hidden'name="title"value="<?php $this->text( 'searchtitle' ) ?>"/><?phpecho$this->makeSearchInput(array("id"=>"searchInput"));?><?phpecho$this->makeSearchButton("go",array("id"=>"searchGoButton","class"=>"searchButton"));if($wgUseTwoButtonsSearchForm){?> <?phpecho$this->makeSearchButton("fulltext",array("id"=>"mw-searchButton","class"=>"searchButton"));}else{?><div><ahref="<?php $this->text( 'searchaction' ) ?>"rel="search"><?php$this->msg('powersearch-legend')?></a></div><?php}?></form></div></div><?php}/** * Prints the cactions bar. * Shared between calmsimple and Modern */functioncactions(){?><divid="p-cactions"class="portlet"role="navigation"><h3><?php$this->msg('views')?></h3><divclass="pBody"><ul><?phpforeach($this->data['content_actions']as$key=>$tab){echo' '.$this->makeListItem($key,$tab);}?></ul></div></div><?php}/*************************************************************************************************/functiontoolbox(){?><divclass="portlet"id="p-tb"role="navigation"><h3><?php$this->msg('toolbox')?></h3><divclass="pBody"><ul><?phpforeach($this->getToolbox()as$key=>$tbitem){?><?phpecho$this->makeListItem($key,$tbitem);?><?php}wfRunHooks('calmsimpleTemplateToolboxEnd',array(&$this));wfRunHooks('SkinTemplateToolboxEnd',array(&$this,true));?></ul></div></div><?php}/*************************************************************************************************/functionlanguageBox(){if($this->data['language_urls']){?><divid="p-lang"class="portlet"role="navigation"><h3<?php$this->html('userlangattributes')?>><?php$this->msg('otherlanguages')?></h3><divclass="pBody"><ul><?phpforeach($this->data['language_urls']as$key=>$langlink){?><?phpecho$this->makeListItem($key,$langlink);?><?php}?></ul></div></div><?php}}/*************************************************************************************************//** * @param $bar string * @param $cont array|string */functioncustomBox($bar,$cont){$portletAttribs=array('class'=>'generated-sidebar portlet','id'=>Sanitizer::escapeId("p-$bar"),'role'=>'navigation');$tooltip=Linker::titleAttrib("p-$bar");if($tooltip!==false){$portletAttribs['title']=$tooltip;}echo' '.Html::openElement('div',$portletAttribs);$msgObj=wfMessage($bar);?><h3><?phpechohtmlspecialchars($msgObj->exists()?$msgObj->text():$bar);?></h3><divclass='pBody'><?phpif(is_array($cont)){?><ul><?phpforeach($contas$key=>$val){?><?phpecho$this->makeListItem($key,$val);?><?php}?></ul><?php}else{#allowrawHTMLblocktobedefinedbyextensionsprint$cont;}?></div></div><?php}}// end of class