當前位置: 首頁>>代碼示例>>PHP>>正文


PHP WT_I18N::html_markup方法代碼示例

本文整理匯總了PHP中WT_I18N::html_markup方法的典型用法代碼示例。如果您正苦於以下問題:PHP WT_I18N::html_markup方法的具體用法?PHP WT_I18N::html_markup怎麽用?PHP WT_I18N::html_markup使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在WT_I18N的用法示例。


在下文中一共展示了WT_I18N::html_markup方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: header

//
// 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
use WT\Auth;
if (!defined('WT_WEBTREES')) {
    header('HTTP/1.0 403 Forbidden');
    exit;
}
global $WT_IMAGES;
// This theme uses the jQuery “colorbox” plugin to display images
$this->addExternalJavascript(WT_JQUERY_COLORBOX_URL)->addExternalJavascript(WT_JQUERY_WHEELZOOM_URL)->addInlineJavascript('activate_colorbox();')->addInlineJavascript('jQuery.extend(jQuery.colorbox.settings, { width:"85%", height:"85%", transition:"none", slideshowStart:"' . WT_I18N::translate('Play') . '", slideshowStop:"' . WT_I18N::translate('Stop') . '", title: function() { var img_title = jQuery(this).data("title"); return img_title; } } );');
?>
<!DOCTYPE html>
<html <?php 
echo WT_I18N::html_markup();
?>
>
<head>
	<meta charset="UTF-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<?php 
echo header_links($META_DESCRIPTION, $META_ROBOTS, $META_GENERATOR, $LINK_CANONICAL);
?>
	<title><?php 
echo WT_Filter::escapeHtml($title);
?>
</title>
	<link rel="icon" href="<?php 
echo WT_CSS_URL;
?>
開發者ID:brambravo,項目名稱:webtrees,代碼行數:31,代碼來源:header.php

示例2: define

define('WT_USER_ID', 0);
define('WT_DATA_DIR', realpath('data') . DIRECTORY_SEPARATOR);
$WT_SESSION = new stdClass();
$WT_SESSION->locale = '';
require 'includes/functions/functions.php';
define('WT_LOCALE', WT_I18N::init());
if (file_exists(WT_DATA_DIR . 'offline.txt')) {
    $offline_txt = file_get_contents(WT_DATA_DIR . 'offline.txt');
} else {
    // offline.txt has gone - we're back online!
    header('Location: index.php');
    exit;
}
header('Content-Type: text/html; charset=UTF-8');
header($_SERVER['SERVER_PROTOCOL'] . ' 503 Service Temporarily Unavailable');
echo '<!DOCTYPE html>', '<html ', WT_I18N::html_markup(), '>', '<head>', '<meta charset="UTF-8">', '<title>', WT_WEBTREES, '</title>', '<meta name="robots" content="noindex,follow">', '<style type="text/css">
		body {color: gray; background-color: white; font: 14px tahoma, arial, helvetica, sans-serif; padding:10px; }
		a {color: #81A9CB; font-weight: bold; text-decoration: none;}
		a:hover {text-decoration: underline;}
		h1 {color: #81A9CB; font-weight:normal; text-align:center;}
		li {line-height:2;}
		blockquote {color:red;}
		.content { /*margin:auto; width:800px;*/ border:1px solid gray; padding:15px; border-radius:15px;}
		.good {color: green;}
	</style>', '</head><body>', '<h1>', WT_I18N::translate('This website is temporarily unavailable'), '</h1>', '<div class="content"><p>';
if ($offline_txt) {
    echo $offline_txt;
} else {
    echo WT_I18N::translate('The site is down for maintenance.  You should <a href="index.php">try again</a> in a few minutes.');
}
echo '</p>';
開發者ID:brambravo,項目名稱:webtrees,代碼行數:31,代碼來源:site-offline.php


注:本文中的WT_I18N::html_markup方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。