diff --git a/amp.css b/amp.css
new file mode 100644
index 0000000..368c8c1
--- /dev/null
+++ b/amp.css
@@ -0,0 +1,7 @@
+body {
+ font-family: Arial, sans-serif;
+ padding: 20px;
+}
+h1 {
+ color: #333;
+}
diff --git a/functions.php b/functions.php
index 52205c2..829e78e 100644
--- a/functions.php
+++ b/functions.php
@@ -988,3 +988,17 @@ function adddr_hash(){
}
+
+// Пример замены изображений на AMP-изображения в контенте поста
+function convert_images_to_amp($content) {
+ if (function_exists('is_amp_endpoint') && is_amp_endpoint()) {
+ $content = preg_replace(
+ '//i',
+ '