當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。