add hidden inputs in form
This commit is contained in:
@@ -1,12 +1,3 @@
|
||||
<?php
|
||||
// Включение стилей AMP
|
||||
function theme_amp_styles() {
|
||||
wp_enqueue_style('theme-amp-style', get_template_directory_uri() . '/amp.css');
|
||||
}
|
||||
add_action('amp_post_template_css', 'theme_amp_styles');
|
||||
|
||||
// Начало AMP страницы
|
||||
?>
|
||||
<!doctype html>
|
||||
<html amp>
|
||||
<head>
|
||||
@@ -16,10 +7,17 @@ add_action('amp_post_template_css', 'theme_amp_styles');
|
||||
<link rel="canonical" href="<?php echo esc_url(get_permalink()); ?>">
|
||||
<meta name="viewport" content="width=device-width,minimum-scale=1,initial-scale=1">
|
||||
<style amp-custom>
|
||||
<?php
|
||||
// Включение стилей из amp.css
|
||||
readfile(get_template_directory() . '/amp.css');
|
||||
?>
|
||||
body {
|
||||
font-family: Arial, sans-serif;
|
||||
padding: 20px;
|
||||
}
|
||||
h1 {
|
||||
color: #333;
|
||||
}
|
||||
img {
|
||||
max-width: 100%;
|
||||
height: auto;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
Reference in New Issue
Block a user