本文整理汇总了PHP中header::setup方法的典型用法代码示例。如果您正苦于以下问题:PHP header::setup方法的具体用法?PHP header::setup怎么用?PHP header::setup使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类header
的用法示例。
在下文中一共展示了header::setup方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: setup
static function setup()
{
load_theme_textdomain('myThemes');
load_theme_textdomain('myThemes', get_template_directory() . '/media/languages');
if (function_exists('load_child_theme_textdomain')) {
load_child_theme_textdomain('myThemes');
}
add_editor_style();
add_theme_support('custom-background', array('default-color' => 'ffffff', 'default-image' => ''));
add_theme_support('automatic-feed-links');
add_theme_support('post-thumbnails');
if (function_exists('add_image_size')) {
add_image_size('full-thumbnail', 1140, 410, true);
add_image_size('grid-thumbnail', 555, 440, true);
}
header::setup();
}
示例2: setup
static function setup()
{
global $content_width;
if (!isset($content_width)) {
$content_width = 1140;
}
add_theme_support('content-width', 1140);
add_theme_support('custom-background', array('default-color' => 'ffffff', 'default-image' => ''));
add_theme_support('automatic-feed-links');
add_theme_support('post-thumbnails');
load_theme_textdomain('myThemes');
load_theme_textdomain('myThemes', get_template_directory() . '/media/languages');
load_child_theme_textdomain('myThemes');
add_editor_style();
header::setup();
}
示例3: setup
static function setup()
{
global $content_width;
$content_width = 1140;
add_theme_support('content-width', $content_width);
add_theme_support('custom-background', array('default-color' => '090909'));
add_theme_support('automatic-feed-links');
add_theme_support('post-thumbnails');
load_theme_textdomain('myThemes');
load_theme_textdomain('myThemes', get_template_directory() . '/media/languages');
load_child_theme_textdomain('myThemes');
add_editor_style();
add_image_size('full-thumbnail', 1140, 410, true);
add_image_size('grid-thumbnail', 555, 440, true);
header::setup();
}