...
|
...
|
@@ -79,15 +79,13 @@ foreach ($articles as $article ) {
|
79
|
79
|
'<div class="col-left">',
|
80
|
80
|
'<h3> </h3>',
|
81
|
81
|
'<span>PAR</span>',
|
|
82
|
+ '<span>Par</span>',
|
82
|
83
|
'<p></p>',
|
83
|
84
|
'<div style="padding-top: 56.25% ">',
|
84
|
85
|
'<h1>',
|
85
|
86
|
'</h1>',
|
|
87
|
+ '<img width="100%" src="/img/auteur.png'
|
86
|
88
|
/*
|
87
|
|
- '<iframe width="480" height="270"',
|
88
|
|
- 'width="492" height="360" frameborder="0"',
|
89
|
|
- 'width="640" height="360" frameborder="0"',
|
90
|
|
- 'width="640" height="320" frameborder="0"',
|
91
|
89
|
'<div style="padding-top: 73.170731707317% ">'*/ );
|
92
|
90
|
$newStrings = array('<div>',
|
93
|
91
|
'<div>',
|
...
|
...
|
@@ -96,15 +94,13 @@ foreach ($articles as $article ) {
|
96
|
94
|
'<div>',
|
97
|
95
|
'',
|
98
|
96
|
'par ',
|
|
97
|
+ 'par ',
|
99
|
98
|
'',
|
100
|
99
|
'<div>',
|
101
|
100
|
'<h4>',
|
102
|
101
|
'</h4>',
|
|
102
|
+ '<img width="5%" src="img/lesinrocks.png'
|
103
|
103
|
/*
|
104
|
|
- '<iframe width="100%"',
|
105
|
|
- 'width ="100%" frameborder="0"',
|
106
|
|
- 'width ="100%" frameborder="0"',
|
107
|
|
- 'width ="100%" frameborder="0"',
|
108
|
104
|
'<div>'*/);
|
109
|
105
|
$article_only = str_replace($orgStrings, $newStrings, $article_only);
|
110
|
106
|
|
...
|
...
|
@@ -145,6 +141,13 @@ foreach ($articles as $article ) {
|
145
|
141
|
$re='/<a href="(.+?)" class="inner_(.+?)"> <svg(.+?)><\/use><\/svg><\/a>/';
|
146
|
142
|
$temp = preg_replace($re, '', $article_only);
|
147
|
143
|
$article_only = $temp;
|
|
144
|
+ $orgStrings = array( '<div class="author"> <img width="100%"',
|
|
145
|
+ 'par <br>',
|
|
146
|
+ '<div class="single-cta"> <a href="http://abonnement.lesinrocks.com/" class="cta-header cta-abonnement" onclick="return trackClick(this, \'abonnement_article_avatar\');">Abonnez-vous<br>à partir de <span>1€</span></a> </div>' );
|
|
147
|
+ $newStrings = array( '<div class="author"> <img width="5%"',
|
|
148
|
+ 'par ',
|
|
149
|
+ '' );
|
|
150
|
+ $article_only = str_replace($orgStrings, $newStrings, $article_only);
|
148
|
151
|
echo '<div id="nav-up" style="display:inline;"><a href="#top"><i class="fa fa-home fa-2x"></i></a></div> ';
|
149
|
152
|
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> ';
|
150
|
153
|
echo '<div id="nav-prev" onclick="onArticle('.$cpt_prev.')" style="display:inline;"><i class="fa fa-chevron-left fa-2x"></i></div> ';
|