本文整理汇总了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;
?>
示例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>';