test

count($temp[0]), 'title'=>$temp[1], 'link'=>$temp[2], 'desc'=>$temp[3] ); } /********************************************************** * Parse Array data into an HTML structure * * Usage: string parse_rss ( array data ) * **********************************************************/ function output_rss($pattern, $rss_data, $count_latest) { $temp = null; for($i = 0; $i < $count_latest; $i++) { $temp .= sprintf($pattern, $rss_data['link'][$i], html_entity_decode($rss_data['title'][$i]), html_entity_decode($rss_data['desc'][$i]) ); } return $temp; } /********************************************************** * Settings * **********************************************************/ $url = 'http://igeek.ru/feed'; $reg_exp = '#.*?(.*?)<\/title>.*?'; $reg_exp .='<link>(.*?)<\/link>.*?<description>'; $reg_exp .='(.*?)<\/description>.*?<\/item>#si'; $pattern = '<a href="%s">%s</a><br>%s<hr>'; /********************************************************** * Main script * **********************************************************/ if ( $xml_data = file_get_contents($url) ) { $rss_data = parse_rss($reg_exp, $xml_data); echo output_rss($pattern, $rss_data, 8); } /********************************************************** * The END * **********************************************************/ </div><!-- .entry-content --> </div><!-- .entry-content-wrapper --> </article><!-- #post-## --> <nav class="navigation post-navigation" role="navigation" aria-label="Записи"> <h2 class="screen-reader-text">Навигация по записям</h2> <div class="nav-links"><div class="nav-previous"><a href="https://cheshkova.ru/%d0%b2%d0%b5%d0%b1%d0%b8%d0%bd%d0%b0%d1%80%d1%8b-%d0%b8%d0%b7%d0%b4%d0%b0%d1%82%d0%b5%d0%bb%d1%8c%d1%81%d1%82%d0%b2%d0%b0-%d0%bf%d1%80%d0%be%d1%81%d0%b2%d0%b5%d1%89%d0%b5%d0%bd%d0%b8%d0%b5/" rel="prev"><span class="meta-nav" aria-hidden="true">Ранее</span> <span class="screen-reader-text">Предыдущая запись:</span> <span class="post-title">Вебинары издательства “Просвещение”</span></a></div><div class="nav-next"><a href="https://cheshkova.ru/%d0%b0%d0%bd%d0%b3%d0%bb%d0%b8%d0%b9%d1%81%d0%ba%d0%b8%d0%b9-%d1%8f%d0%b7%d1%8b%d0%ba-%d0%bd%d0%be%d0%b2%d0%be%d1%81%d1%82%d0%b8-%d0%b3%d1%80%d1%83%d0%bf%d0%bf%d0%b0-%d0%ba%d0%be%d0%bc/" rel="next"><span class="meta-nav" aria-hidden="true">Далее</span> <span class="screen-reader-text">Следующая запись</span> <span class="post-title">Английский язык, Новости — Группа компаний «Просвещение»</span></a></div></div> </nav> <div id="comments" class="comments-area"> <div id="respond" class="comment-respond"> <h3 id="reply-title" class="comment-reply-title">Добавить комментарий <small><a rel="nofollow" id="cancel-comment-reply-link" href="/test/#respond" style="display:none;">Отменить ответ</a></small></h3><form action="https://cheshkova.ru/wp-comments-post.php" method="post" id="commentform" class="comment-form" novalidate><p class="comment-notes"><span id="email-notes">Ваш адрес email не будет опубликован.</span> Обязательные поля помечены <span class="required">*</span></p><p class="comment-form-comment"><label for="comment">Комментарий</label> <textarea id="comment" name="comment" cols="45" rows="8" maxlength="65525" required="required"></textarea></p><p class="comment-form-author"><label for="author">Имя <span class="required">*</span></label> <input id="author" name="author" type="text" value="" size="30" maxlength="245" required='required' /></p> <p class="comment-form-email"><label for="email">Email <span class="required">*</span></label> <input id="email" name="email" type="email" value="" size="30" maxlength="100" aria-describedby="email-notes" required='required' /></p> <p class="comment-form-url"><label for="url">Сайт</label> <input id="url" name="url" type="url" value="" size="30" maxlength="200" /></p> <p class="comment-form-cookies-consent"><input id="wp-comment-cookies-consent" name="wp-comment-cookies-consent" type="checkbox" value="yes" /> <label for="wp-comment-cookies-consent">Сохранить моё имя, email и адрес сайта в этом браузере для последующих моих комментариев.</label></p> <p class="form-submit"><input name="submit" type="submit" id="submit" class="submit" value="Отправить комментарий" /> <input type='hidden' name='comment_post_ID' value='317' id='comment_post_ID' /> <input type='hidden' name='comment_parent' id='comment_parent' value='0' /> </p><p style="display: none;"><input type="hidden" id="akismet_comment_nonce" name="akismet_comment_nonce" value="641b2d89ff" /></p><p style="display: none;"><input type="hidden" id="ak_js" name="ak_js" value="39"/></p></form> </div><!-- #respond --> </div><!-- #comments --> </main><!-- #main --> </div><!-- #primary --> <div id="sidebar-primary" class="widget-area sidebar" role="complementary"> <aside id="rss-2" class="widget widget_rss"><h2 class="widget-title"><a class="rsswidget" href="https://depobr-molod.admhmao.ru/vse-novosti/rss/"><img class="rss-widget-icon" style="border:0" width="14" height="14" src="https://cheshkova.ru/wp-includes/images/rss.png" alt="RSS" /></a> <a class="rsswidget" href="http://depobr-molod.admhmao.ru/">Новости образования в ХМАО</a></h2><ul><li><a class='rsswidget' href='https://depobr-molod.admhmao.ru/vse-novosti/4790506/'>Сильные идеи для Югры и России</a> <span class="rss-date">23.10.2020</span></li><li><a class='rsswidget' href='https://depobr-molod.admhmao.ru/vse-novosti/4789654/'>В Югре пройдёт семинар-практикум по интеллектуальным играм и головоломкам обских угров</a> <span class="rss-date">20.10.2020</span></li><li><a class='rsswidget' href='https://depobr-molod.admhmao.ru/vse-novosti/4789467/'>Россия – Словакия: виртуальный тур по языковой культуре Югры объединил жителей двух стран</a> <span class="rss-date">19.10.2020</span></li><li><a class='rsswidget' href='https://depobr-molod.admhmao.ru/vse-novosti/4788283/'>Региональная олимпиада для обучающихся профессиональных образовательных организаций по родным языкам и литературе КМНС в 2020 году пройдёт в Югре</a> <span class="rss-date">16.10.2020</span></li><li><a class='rsswidget' href='https://depobr-molod.admhmao.ru/vse-novosti/4788028/'>Изучаем международные практики: Часть 3</a> <span class="rss-date">16.10.2020</span></li></ul></aside><aside id="shortcodes-ultimate-3" class="widget shortcodes-ultimate"><h2 class="widget-title">Сайт школы</h2><div class="textwidget"><span class="su-qrcode su-qrcode-align-center su-qrcode-clickable"><a href="http://86sch6-nyagan.edusite.ru/" target="_blank" title="Сайт МАОУ МО г.Нягань 'СОШ №6' им. А.И. Гордиенко"><img src="https://api.qrserver.com/v1/create-qr-code/?data=http%3A%2F%2F86sch6-nyagan.edusite.ru%2F&size=170x170&format=png&margin=0&color=000000&bgcolor=ffffff" alt="Сайт МАОУ МО г.Нягань 'СОШ №6' им. А.И. Гордиенко" /></a></span> </div></aside> </div><!-- #sidebar-primary --> </div><!-- .inner-wrapper --></div><!-- .container --></div><!-- #content --> <div id="footer-widgets" ><div class="container"><div class="inner-wrapper"><div class="footer-active-1 footer-widget-area"><aside id="custom_html-2" class="widget_text widget widget_custom_html"><div class="textwidget custom-html-widget"><div class="picsel"> <style> div.banner { position: fixed; left: 0%; top: 4.5%; width: 76px; margin: 0 auto; z-index: 99 } div.banner img { position:absolute; } </style> <div class="banner"><a href="https://www.may9.ru/" target="_blank" rel="noopener noreferrer"><img src="https://cheshkova.ru/wp-content/uploads/2020/03/75letPobedy.png" class="banner"></a> </div></div></div></aside></div><!-- .footer-widget-area --></div><!-- .inner-wrapper --></div><!-- .container --></div><footer id="colophon" class="site-footer" role="contentinfo"><div class="container"> <div class="colophon-inner"> <div class="colophon-column"> <div class="footer-social"> <div class="widget university_hub_widget_social"></div> </div><!-- .footer-social --> </div><!-- .colophon-column --> <div class="colophon-column"> <div class="copyright"> Н.И. Чешкова. © Все права защищены. Любое копирование материалов допустимо только с указанием первоисточника. </div><!-- .copyright --> </div><!-- .colophon-column --> <div class="colophon-column"> <div class="site-info"> Тема University Hub от <a target="_blank" rel="designer" href="https://wenthemes.com/">WEN Themes</a> </div><!-- .site-info --> </div><!-- .colophon-column --> </div><!-- .colophon-inner --> </div><!-- .container --></footer><!-- #colophon --> </div><!-- #page --><a href="#page" class="scrollup" id="btn-scrollup"><i class="fa fa-angle-up"></i></a> <link rel='stylesheet' id='su-shortcodes-css' href='//cheshkova.ru/wp-content/plugins/shortcodes-ultimate/includes/css/shortcodes.css?ver=5.9.3' type='text/css' media='all' /> <script type='text/javascript' src='//cheshkova.ru/wp-content/plugins/embed-any-document/js/pdfobject.min.js?ver=2.6.1' id='awsm-ead-pdf-object-js'></script> <script type='text/javascript' id='awsm-ead-public-js-extra'> /* <![CDATA[ */ var eadPublic = []; /* ]]> */ </script> <script type='text/javascript' src='//cheshkova.ru/wp-content/plugins/embed-any-document/js/embed-public.min.js?ver=2.6.1' id='awsm-ead-public-js'></script> <script type='text/javascript' src='//cheshkova.ru/wp-content/plugins/aftparser/js/toc.min.js?ver=201504087' id='toc-js-js'></script> <script type='text/javascript' src='//cheshkova.ru/wp-content/plugins/aftparser/js/postprocessing.js?ver=1603600987' id='aftp-postprocessing-js'></script> <script type='text/javascript' id='contact-form-7-js-extra'> /* <![CDATA[ */ var wpcf7 = {"apiSettings":{"root":"https:\/\/cheshkova.ru\/wp-json\/contact-form-7\/v1","namespace":"contact-form-7\/v1"}}; /* ]]> */ </script> <script type='text/javascript' src='//cheshkova.ru/wp-content/plugins/contact-form-7/includes/js/scripts.js?ver=5.2.2' id='contact-form-7-js'></script> <script type='text/javascript' src='//cheshkova.ru/wp-content/plugins/drag-and-drop-multiple-file-upload-contact-form-7/assets/js/codedropz-uploader-min.js?ver=1.3.5.6' id='codedropz-uploader-js'></script> <script type='text/javascript' id='dnd-upload-cf7-js-extra'> /* <![CDATA[ */ var dnd_cf7_uploader = {"ajax_url":"https:\/\/cheshkova.ru\/wp-admin\/admin-ajax.php","ajax_nonce":"966a2e21e6","drag_n_drop_upload":{"tag":"h3","text":"\u041f\u0435\u0440\u0435\u0442\u0430\u0449\u0438\u0442\u0435 \u0444\u0430\u0439\u043b\u044b \u0441\u044e\u0434\u0430","or_separator":"\u0438\u043b\u0438","browse":"\u0412\u044b\u0431\u0435\u0440\u0438\u0442\u0435 \u0438\u0445","server_max_error":"\u0417\u0430\u0433\u0440\u0443\u0436\u0435\u043d\u043d\u044b\u0439 \u0444\u0430\u0439\u043b \u043f\u0440\u0435\u0432\u044b\u0448\u0430\u0435\u0442 \u0440\u0430\u0437\u0440\u0435\u0448\u0451\u043d\u043d\u044b\u0439 \u0440\u0430\u0437\u043c\u0435\u0440.","large_file":"\u0417\u0430\u0433\u0440\u0443\u0436\u0435\u043d\u043d\u044b\u0439 \u0444\u0430\u0439\u043b \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u0432\u0435\u043b\u0438\u043a","inavalid_type":"\u0414\u0430\u043d\u043d\u044b\u0439 \u0442\u0438\u043f \u0444\u0430\u0439\u043b\u043e\u0432 \u043d\u0435 \u0440\u0430\u0437\u0440\u0435\u0448\u0451\u043d","max_file_limit":"\u0412\u043d\u0438\u043c\u0430\u043d\u0438\u0435: \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0444\u0430\u0439\u043b\u044b \u043d\u0435 \u0431\u044b\u043b\u0438 \u0437\u0430\u0433\u0440\u0443\u0436\u0435\u043d\u044b ( \u0437\u0430\u0433\u0440\u0443\u0436\u0435\u043d\u043e %count% \u0444\u0430\u0439\u043b\u043e\u0432 )","required":"\u041f\u043e\u043b\u0435 \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0435","delete":{"text":"\u0443\u0434\u0430\u043b\u0435\u043d\u0438\u0435","title":"\u0423\u0434\u0430\u043b\u0438\u0442\u044c"}},"dnd_text_counter":"\u0438\u0437","disable_btn":""}; /* ]]> */ </script> <script type='text/javascript' src='//cheshkova.ru/wp-content/plugins/drag-and-drop-multiple-file-upload-contact-form-7/assets/js/dnd-upload-cf7.js?ver=1.3.5.6' id='dnd-upload-cf7-js'></script> <script type='text/javascript' id='university-hub-navigation-js-extra'> /* <![CDATA[ */ var universityHubOptions = {"screenReaderText":{"expand":"expand child menu","collapse":"collapse child menu"}}; /* ]]> */ </script> <script type='text/javascript' src='//cheshkova.ru/wp-content/themes/university-hub/js/navigation.min.js?ver=20200713' id='university-hub-navigation-js'></script> <script type='text/javascript' src='//cheshkova.ru/wp-content/themes/university-hub/js/skip-link-focus-fix.min.js?ver=20130115' id='university-hub-skip-link-focus-fix-js'></script> <script type='text/javascript' src='//cheshkova.ru/wp-content/themes/university-hub/third-party/cycle2/js/jquery.cycle2.min.js?ver=2.1.6' id='jquery-cycle2-js'></script> <script type='text/javascript' src='//cheshkova.ru/wp-content/themes/university-hub/third-party/ticker/jquery.easy-ticker.min.js?ver=2.0' id='jquery-easy-ticker-js'></script> <script type='text/javascript' src='//cheshkova.ru/wp-content/themes/university-hub/js/custom.min.js?ver=1.0.2' id='university-hub-custom-js'></script> <script type='text/javascript' src='//cheshkova.ru/wp-includes/js/comment-reply.min.js?ver=5.5.1' id='comment-reply-js'></script> <script type='text/javascript' id='wpcf7cf-scripts-js-extra'> /* <![CDATA[ */ var wpcf7cf_global_settings = {"ajaxurl":"https:\/\/cheshkova.ru\/wp-admin\/admin-ajax.php"}; /* ]]> */ </script> <script type='text/javascript' src='//cheshkova.ru/wp-content/plugins/cf7-conditional-fields/js/scripts.js?ver=1.9.14' id='wpcf7cf-scripts-js'></script> <script type='text/javascript' src='//cheshkova.ru/wp-includes/js/wp-embed.min.js?ver=5.5.1' id='wp-embed-js'></script> <script async="async" type='text/javascript' src='//cheshkova.ru/wp-content/plugins/akismet/_inc/form.js?ver=4.1.6' id='akismet-form-js'></script> </body> </html>