... | ... |
@@ -24,7 +24,10 @@ if ($xml === false) { |
24 | 24 |
$article['pubDate'] = $item->pubDate; |
25 | 25 |
$article['timestamp'] = strtotime($item->pubDate); |
26 | 26 |
$article['description'] = $item->description; |
27 |
- $article['image'] = $item->enclosure['url']; |
|
27 |
+ $orgStrings = array( 'w_200,h_134,' ); |
|
28 |
+ $newStrings = array( 'w_2000,h_1125,' ); |
|
29 |
+ $article['image'] = str_replace($orgStrings, $newStrings, $item->enclosure['url']); |
|
30 |
+ |
|
28 | 31 |
$articles[$cpt] = $article; |
29 | 32 |
echo '<div onclick="onArticle('.$cpt.')" style="display:inline;">'; |
30 | 33 |
echo '<img src="'.$article['image'].'" style="display:inline;" width="100%"><br>'; |