コード例 #1
0
ファイル: index.php プロジェクト: kenrick95/intuition
	<input type="hidden" name="action" value="prefset">
	<input type="hidden" name="returnto" value="' . htmlspecialchars($kgReq->getVal('returnto')) . '">
	<input type="hidden" name="returntoquery" value="' . htmlspecialchars($kgReq->getVal('returntoquery')) . '">
	<div class="form-group">
		<div class="col-sm-offset-4 col-sm-8">
			<input type="submit" class="btn btn-default btn-primary" value="' . _html('form-submit', 'general') . '">
		</div>
	</div>

</fieldset></form>
</div>';
// About tab
$about = '<div class="tab-pane" id="tab-about">';
$about .= '<a href="https://translatewiki.net/wiki/Translating:Intuition">' . Html::element('img', array('src' => 'https://translatewiki.net/w/i.php?title=Special:TranslationStats&graphit=1&' . 'count=edits&scale=months&days=250&width=520&height=400&group=tsint-0-all', 'width' => 520, 'height' => 400, 'alt' => '', 'class' => 'pull-right')) . '</a>';
$about .= '' . '<div class="lead">' . $I18N->msg('usage') . '</div><ul>';
foreach ($I18N->getDomainInfos() as $domain => $domainInfo) {
    $title = $I18N->msg('title', $domain, $domain);
    if (isset($domainInfo['url'])) {
        $about .= '<li><a href="' . htmlspecialchars($domainInfo['url']) . '">' . htmlspecialchars($title) . '</a></li>';
    }
}
$about .= '</ul><a href="https://github.com/Krinkle/intuition/wiki/Documentation">' . 'Technical documentation</a></div>';
$toolSettings['tabs']['#tab-about'] = $I18N->msg('tab-about');
$tabContent .= $about;
$tabContent .= '</div><!-- /.tab-content -->';
$toolSettings['tabs']['demo/demo1.php'] = $I18N->msg('tab-demo');
$tabBar = '<ul class="nav nav-tabs intuition-nav-tabs">';
reset($toolSettings['tabs']);
$firstTabId = key($toolSettings['tabs']);
foreach ($toolSettings['tabs'] as $tabID => $tabName) {
    $tabBar .= Html::rawElement('li', array('class' => array('active' => $tabID === $firstTabId)), Html::element('a', array('href' => $tabID, 'data-toggle' => $tabID[0] === '#' ? 'tab' : null), $tabName));