当前位置: 首页>>代码示例>>PHP>>正文


PHP Linker::tooltipAndAccessKeyAttribs方法代码示例

本文整理汇总了PHP中Linker::tooltipAndAccessKeyAttribs方法的典型用法代码示例。如果您正苦于以下问题:PHP Linker::tooltipAndAccessKeyAttribs方法的具体用法?PHP Linker::tooltipAndAccessKeyAttribs怎么用?PHP Linker::tooltipAndAccessKeyAttribs使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Linker的用法示例。


在下文中一共展示了Linker::tooltipAndAccessKeyAttribs方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: onSkinTemplateToolboxEnd

 /**
  * @param Skin $skin
  * @return bool
  */
 public static function onSkinTemplateToolboxEnd(&$skin)
 {
     if (isset($skin->data['nav_urls']['citeThisPage'])) {
         echo Html::rawElement('li', array('id' => 't-cite'), Linker::link(SpecialPage::getTitleFor('CiteThisPage'), wfMessage('citethispage-link')->escaped(), Linker::tooltipAndAccessKeyAttribs('citethispage'), $skin->data['nav_urls']['citeThisPage']['args']));
     }
     return true;
 }
开发者ID:MediaWiki-stable,项目名称:1.26.1,代码行数:11,代码来源:CiteThisPage.hooks.php

示例2: wfSpecialCiteToolbox

/**
 * add the cite link to the toolbar
 *
 * @param $skin Skin
 *
 * @return bool
 */
function wfSpecialCiteToolbox(&$skin)
{
    if (isset($skin->data['nav_urls']['cite'])) {
        echo Html::rawElement('li', array('id' => 't-cite'), Linker::link(SpecialPage::getTitleFor('Cite'), wfMessage('cite_article_link')->text(), Linker::tooltipAndAccessKeyAttribs('cite-article'), $skin->data['nav_urls']['cite']['args']));
    }
    return true;
}
开发者ID:nahoj,项目名称:mediawiki_ynh,代码行数:14,代码来源:SpecialCite.php

示例3: execute

    /**
     * Outputs the entire contents of the page
     */
    public function execute()
    {
        global $wgBSWfblink, $wgBSWgooglelink, $wgBSWtwitterlink, $wgBSWyoutubelink, $wgBSWemaillink;
        $this->html('headelement');
        ?>
	<nav id="myNavbar" class="navbar navbar-default navbar-fixed-top" role="nevigation">
	    <div class="container-fluid">
		<div class="navbar-header">
		    <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbarCollapse">
			<span class="sr-only">Toggle navigation</span>
			<span class="icon-bar"></span>
			<span class="icon-bar"></span>
			<span class="icon-bar"></span>
		    </button>
		    <a class="navbar-brand" href="<?php 
        echo htmlspecialchars($this->data['nav_urls']['mainpage']['href']);
        ?>
" <?php 
        echo Xml::expandAttributes(Linker::tooltipAndAccessKeyAttribs('p-logo'));
        ?>
 >
			<img class="img-responsive" src="<?php 
        $this->text('logopath');
        ?>
" alt="<?php 
        $this->text('sitename');
        ?>
" />
		    </a>
		</div>
		<div class="collapse navbar-collapse" id="navbarCollapse">
		    <ul class="nav navbar-nav">
			<?php 
        $count = 0;
        $actionMenuStart = <<<AMS
\t\t\t\t\t<li class="dropdown">
\t\t\t\t\t\t<a href="#" class="dropdown-toggle" data-toggle="dropdown"><span class="glyphicon glyphicon-cog"></span><span class="caret"></span></a>
\t\t\t\t\t\t<ul class="dropdown-menu" role="menu">
AMS;
        $actionMenuEnd = <<<AME
\t\t\t\t\t\t</ul>
\t\t\t\t\t</li>
AME;
        $actionMenuBody = "";
        foreach ($this->data['content_navigation'] as $category => $tabs) {
            foreach ($tabs as $key => $tab) {
                if ($count > 4) {
                    $actionMenuBody .= $this->makeListItem($key, $tab);
                } else {
                    echo $this->makeListItem($key, $tab);
                }
                ++$count;
            }
        }
        echo $actionMenuStart . $actionMenuBody . $actionMenuEnd;
        ?>
		    </ul>
		    <ul class="nav navbar-nav navbar-right">
			<?php 
        if (isset($wgBSWfblink) && trim($wgBSWfblink) != "") {
            ?>
	    		<li><a href="<?php 
            echo $wgBSWfblink;
            ?>
" target="_blank" class="socicon facebook" title="like on facebook">b</a></li>
			<?php 
        }
        ?>
			<?php 
        if (isset($wgBSWtwitterlink) && trim($wgBSWtwitterlink) != "") {
            ?>
	    		<li><a href="<?php 
            echo $wgBSWfblink;
            ?>
" target="_blank" class="socicon twitter" title="Follow on twitter">a</a></li>
			<?php 
        }
        ?>
	
			<?php 
        if (isset($wgBSWyoutubelink) && trim($wgBSWyoutubelink) != "") {
            ?>
	    		<li><a href="<?php 
            echo $wgBSWfblink;
            ?>
" target="_blank" class="socicon youtube" title="subscribe on youtube">r</a></li>
			<?php 
        }
        ?>
			<?php 
        if (isset($wgBSWgooglelink) && trim($wgBSWgooglelink) != "") {
            ?>
	    		<li><a href="<?php 
            echo $wgBSWgooglelink;
            ?>
" target="_blank" class="socicon google" title="follow on google plus">c</a></li>
			<?php 
//.........这里部分代码省略.........
开发者ID:paladox,项目名称:bswiki,代码行数:101,代码来源:BSWiki.skin.php

示例4: getTooltipAndAccessKey

	/**
	 * Returns the attributes required for the tooltip and accesskey.
	 *
	 * @return array Attributes
	 */
	public function getTooltipAndAccessKey() {
		if ( empty( $this->mParams['tooltip'] ) ) {
			return array();
		}
		return Linker::tooltipAndAccessKeyAttribs( $this->mParams['tooltip'] );
	}
开发者ID:realsoc,项目名称:mediawiki-extensions,代码行数:11,代码来源:HTMLStyleForm.php


注:本文中的Linker::tooltipAndAccessKeyAttribs方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。