From ef9f0658d18b4ac9dfec535b426044caa85e9033 Mon Sep 17 00:00:00 2001 From: TCSE Date: Sun, 30 Jan 2022 21:51:58 +0300 Subject: [PATCH] =?UTF-8?q?=D0=91=D0=B0=D0=BD=D0=B4=D0=BB=20=D0=B4=D0=BB?= =?UTF-8?q?=D1=8F=20Dle=2015.1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit В одном файле правки для DLE 15.1 и для версий DLE 15.0 и ниже. Работает на php 7.3 (вероятно и выше) --- .gitignore | 2 ++ DLE-print-page4amp.xml | 67 ++++++++++++++++++++++++++++-------------- 2 files changed, 47 insertions(+), 22 deletions(-) diff --git a/.gitignore b/.gitignore index 9ff6405..fc8151c 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,5 @@ DLE-print-page4amp_v1.0.0.xml DLE-print-page4amp_v1.0.1.xml DLE-print-page4amp_v1.0.0.zip DLE-print-page4amp_v1.0.1.zip +DLE-print-page4amp_v1.0.2.zip +DLE-print-page4amp_v1.0.3.xml diff --git a/DLE-print-page4amp.xml b/DLE-print-page4amp.xml index 5e6b76a..2999b6a 100644 --- a/DLE-print-page4amp.xml +++ b/DLE-print-page4amp.xml @@ -1,10 +1,11 @@ DLE-print-page4amp - плагин генерации AMP страниц для DLE на основе версии для печати by TCSE. + плагин генерации AMP страниц для DLE на основе версии для печати by TCSE. +Для DLE 15.1 engine/skins/images/amp4dle.png - 1.0.2 - 13.0 + 1.0.3 + 14.0 greater https://online.tcse-cms.com/plugins/DLE-print-page4amp/check-DLE-print-page4amp.php 1 @@ -35,23 +36,28 @@ И далее в новостях указывайте Youtube ID ролика. -Страница поддержки [url=https://tcse-cms.com/printpage4amp]tcse-cms.com/printpage4amp[/url]]]> - - - - + + + + -HTML; -};]]> - - - - - set( '{full-story}', $row['full_story'] );]]> + + HTML; + $metatags .= << + HTML; +}; +//====== .print-page4amp =======]]> + 1 + 15.1 + greater + + + + + set( '{full-story}', $row['full_story'] );]]> copy_template, "{amp-full-story}") !== false) { function ampify($html = '') @@ -61,7 +67,7 @@ if (stripos($tpl->copy_template, "{amp-full-story}") !== false) { ['', ''], $html ); - $html = preg_replace('//', '', $html); + $html = preg_replace('//', '', $html); $html = strip_tags($html, '