... | ... |
@@ -142,6 +142,9 @@ foreach ($articles as $article ) { |
142 | 142 |
$temp = substr( $article_only, 0, $posend ); |
143 | 143 |
$article_only = $temp; |
144 | 144 |
} |
145 |
+ $re='/<a href="(.+?)" class="inner_(.+?)"> <svg(.+?)><\/use><\/svg><\/a>/'; |
|
146 |
+ $temp = preg_replace($re, '', $article_only); |
|
147 |
+ $article_only = $temp; |
|
145 | 148 |
echo '<div id="nav-up" style="display:inline;"><a href="#top"><i class="fa fa-home fa-2x"></i></a></div> '; |
146 | 149 |
echo '<div id="nav-source" style="display:inline;"><a href="'.$article['link'].'" target="new-'.$cpt.'"><i class="fa fa-link fa-2x"></i></a></div> '; |
147 | 150 |
echo '<div id="nav-prev" onclick="onArticle('.$cpt_prev.')" style="display:inline;"><i class="fa fa-chevron-left fa-2x"></i></div> '; |
... | ... |
@@ -112,7 +112,15 @@ foreach ($articles as $article ) { |
112 | 112 |
$newre='<div><iframe width="100%" src="https://publish.twitter.com/oembed?https://twitter.com/\\2"></iframe>'; |
113 | 113 |
$temp = preg_replace($re, $newre, $article_only); |
114 | 114 |
$article_only = $temp; |
115 |
- |
|
115 |
+ $re='/<source media="\(max-width: (.+?)\)" /'; |
|
116 |
+ $temp = preg_replace($re, '<source media="(max-width: 100%)" ', $article_only); |
|
117 |
+ $article_only = $temp; |
|
118 |
+ $re='/<source media="\(min-width: (.+?)\)" /'; |
|
119 |
+ $temp = preg_replace($re, '<source media="(min-width: 100%)" ', $article_only); |
|
120 |
+ $article_only = $temp; |
|
121 |
+ $re='/<img src="(.+?)" alt="">/'; |
|
122 |
+ $temp = preg_replace($re, '<img width="100%" src="\\1" alt="">" ', $article_only); |
|
123 |
+ $article_only = $temp; |
|
116 | 124 |
echo '<div id="nav-up" style="display:inline;"><a href="#top"><i class="fa fa-home fa-2x"></i></a></div> '; |
117 | 125 |
echo '<div id="nav-source" style="display:inline;"><a href="'.$article['link'].'" target="new-'.$cpt.'"><i class="fa fa-link fa-2x"></i></a></div> '; |
118 | 126 |
echo '<div id="nav-prev" onclick="onArticle('.$cpt_prev.')" style="display:inline;"><i class="fa fa-chevron-left fa-2x"></i></div> '; |