update
This commit is contained in:
29
page-react-template.php
Normal file
29
page-react-template.php
Normal file
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
/**
|
||||
* Template Name: React Product Template
|
||||
* Template Post Type: page
|
||||
* Description: React Product Loaderプラグイン専用の、すべてのテーマ要素が除去されたテンプレート。 | 一个去除了所有主题元素的模板,仅用于和插件 React Product Loader 一同使用。
|
||||
*/
|
||||
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html <?php language_attributes(); ?>>
|
||||
<head>
|
||||
<meta charset="<?php bloginfo('charset'); ?>">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title><?php echo wp_get_document_title(); // 动态获取页面标题 ?></title>
|
||||
<?php wp_head(); // 必须保留,用于加载WordPress管理栏、插件所需的CSS/JS等 ?>
|
||||
</head>
|
||||
<body <?php body_class('react-fullpage'); // 可保留body类以便添加自定义样式 ?>>
|
||||
<?php
|
||||
// 这个区域用来输出短代码渲染的内容
|
||||
// 如果页面内容里有短代码,它会被解析并渲染到这里
|
||||
if (have_posts()) :
|
||||
while (have_posts()) : the_post();
|
||||
the_content();
|
||||
endwhile;
|
||||
endif;
|
||||
?>
|
||||
<?php wp_footer(); // 必须保留,用于加载WordPress必要的尾部脚本和插件 ?>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user