@@ -111,9 +111,9 @@ function print_image($file, $alt = false, $align = false, $extras = false,
111111
112112// Shortcut to usual news image printing (right floating
113113// image from the news dir with an alt and an URL)
114- function news_image ($ URL , $ image , $ alt , $ print = true )
114+ function news_image ($ URL , $ image , $ alt , $ print = true , $ align = ' right ' )
115115{
116- $ str = "<a href= \"$ URL \"> " . make_image ("news/ $ image " , $ alt , " right " ) . "</a> " ;
116+ $ str = "<a href= \"$ URL \"> " . make_image ("news/ $ image " , $ alt , $ align ) . "</a> " ;
117117 if ($ print ) {
118118 echo $ str ;
119119 }
@@ -372,7 +372,7 @@ function print_news($news, $dog, $max = 5, $return = false) {
372372
373373 $ image = "" ;
374374 if (isset ($ item ["newsImage " ])) {
375- $ image = news_image ($ item ["newsImage " ]["link " ], $ item ["newsImage " ]["content " ], $ item ["newsImage " ]["title " ], false );
375+ $ image = news_image ($ item ["newsImage " ]["link " ], $ item ["newsImage " ]["content " ], $ item ["newsImage " ]["title " ], false , '' );
376376 }
377377
378378 $ id = parse_url ($ item ["id " ]);
@@ -405,12 +405,12 @@ function print_news($news, $dog, $max = 5, $return = false) {
405405
406406 echo <<<EOT
407407<article class="newsItem">
408- <header>
409- <div class="newsImage" > {$ image }</div >
408+ <header class="title" >
409+ <time class="newsdate" datetime=" { $ item [ " published " ]} " > {$ newsdate }</time >
410410 <h2 class="newstitle"><a id=" {$ id }" href=" {$ permlink }" rel="bookmark" class="bookmark"> {$ item ["title " ]}</a></h2>
411411 </header>
412- <time class="newsdate" datetime=" {$ item ["published " ]}"> {$ newsdate }</time>
413412 <div class="newscontent">
413+ <div class="newsImage"> {$ image }</div>
414414 {$ item ["content " ]}
415415 </div>
416416</article>
0 commit comments