...
|
...
|
@@ -2,7 +2,7 @@
|
2
|
2
|
include_once( 'news-constants.php' );
|
3
|
3
|
|
4
|
4
|
$rss_content = file_get_contents(NEWS_RSS_NYKR_MAG);
|
5
|
|
-$orgStrings = array( 'media:content');
|
|
5
|
+$orgStrings = array( 'media:thumbnail');
|
6
|
6
|
$newStrings = array( 'mediacontent');
|
7
|
7
|
$rss_content = str_replace($orgStrings, $newStrings, $rss_content);
|
8
|
8
|
$xml = simplexml_load_string($rss_content);
|
...
|
...
|
@@ -91,6 +91,7 @@ foreach ($articles as $article ) {
|
91
|
91
|
$article_only = re_remove($article_only, '/<a class="Link__link___(.+?) ArticleContributors__contributorBioLink___(.+?)" href="(.+?)">Read more(.+?)<\/a>/');
|
92
|
92
|
$article_only = re_remove($article_only, '/<input type="email" autocomplete="on" class="Input__input___(.+?)" name="" placeholder="Enter your e-mail"><button class="Input__inputButton___(.+?)" type="submit">Submit<\/button>/');
|
93
|
93
|
$article_only = re_remove($article_only, '/<div class="SectionBreak SectionBreak__sectionBreak___(.+?)"><div class="" data-type="callout" data-callout="interactive"><div class=""><iframe class="IframeEmbed__iframe___(.+?) IframeEmbed__noBorder___(.+?)" height="(.+?)" scrolling="auto" src="http:\/\/audm\.herokuapp\.com\/player-embed(.+?)" title="" width="(.+?)"><\/iframe><\/div><\/div><\/div>/');
|
|
94
|
+ $article_only = re_remove($article_only, '/<button class="Button__button___(.+?) Button__seeMore___(.+?) ArticleLedeImage__button___(.+?)"><div class="Button__content___(.+?)"><i class="Button__icon___(.+?) Button__left___(.+?)"><svg width="18" height="18" viewbox="0 0 18 18" xmlns="http:\/\/www.w3.org\/2000\/svg"><path (.+?)><\/path><\/svg><\/i><\/div><\/button>/');
|
94
|
95
|
//$article_only = re_remove($article_only, '//');
|
95
|
96
|
//$article_only = preg_replace('//','',$article_only);
|
96
|
97
|
$article_only = preg_replace('/<div class="RecirculationRecommendedStories__story___(.+?)" data-track-type="recircItem" data-track-location="mod-related" data-service="tbd" data-source="(.+?)" data-track-position="(.+?)">/','<div style="display: none;">',$article_only);
|