<?php

echo '<div class="newsBlock-sidebar">
         <div class="h2-title flex-s-c"><span>Últimas Noticias</span> <a href="'.__BASE_URL__.'news">Ver Todas</a></div>
         <div class="news-content-top" style="margin-left: -5px;">';
		 $cachedNews = loadCache('news.cache');
		 if(is_array($cachedNews)) {
			$i=1;
			foreach($cachedNews as $newsArticle) {
				if($i<=4){
					echo '<div class="SidenewsLink SidenewsLink-news flex-s-c">
               				<div class="SidenewsLink-info">
                  				<a href="'.__BASE_URL__.'news/'.$newsArticle['news_id'].'" class="SidenewsLink-info" title="'.base64_decode($newsArticle['news_title']).'"><span style="color: #ffffff !important; font-size: 14px !important">[News]</span> '.base64_decode($newsArticle['news_title']).'</a>
                  				<span>'.date("Y.m.d", $newsArticle['news_date']).'</span>
               				</div>
               				<a href="'.__BASE_URL__.'news/'.$newsArticle['news_id'].'" class="SidenewsLink-more"></a>
							</div>';
					}
				$i++;
			}
		}
			echo'
        </div>
	</div>';

echo '<div class="flex-s hidden-sm hidden-xs">
<div class="rown">
<div class="col-md-12">
<a href="'.$config_tpl['link_rewards'].'" class="socButton socYoutube" style="margin-left: calc(50% - 183px);">
Recompensas <span>Verifique e reivindique todas<br>as suas recompensas gratuitas agora!</span>
<div class="reward-light"></div>
<div class="reward-light-icon"></div>
</a>
</div>
<div class="col-md-12">
<a href="'.$config_tpl['link_guias'].'" class="socButton socDiscord" style="margin-left: calc(50% - 183px);">
Guias <span>Guias para iniciantes,<br>droplist e tutoriais</span>
</a>
</div>
<div class="col-md-12">
<a href="'.$config_tpl['link_discord'].'" target="_blank" class="socButton socFacebook" style="margin-left: calc(50% - 183px); margin-bottom: 0px;">
Discord
<span>WCoin grátis, brindes,<br>mercado e muito mais!</span>
</a>
</div>
</div>
</div>';