Files
website-products/page-react-template.php
hsueh chiahao 7fc028e186 update
2025-09-24 17:00:28 +08:00

29 lines
1.2 KiB
PHP
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?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>