<?php
$i = $_SERVER['QUERY_STRING'];
$max_i = 8;

$news = array();

$news[1]['title'] = 'Notícia 1';
$news[1]['sub_title'] = 'Notícia 1';
$news[1]['date'] = '1 de Janeiro de 2020';
$news[1]['type'] = 'contraordenações';
$news[1]['text'] = '<p class="lead">Lorem ipsum Nisi enim est proident est magna occaecat dolore proident eu ex sunt consectetur consectetur dolore enim nisi exercitation adipisicing magna culpa commodo deserunt ut do Ut occaecat.</p>

<p>Lorem ipsum Nisi enim est proident est magna occaecat dolore proident eu ex sunt consectetur consectetur dolore enim nisi exercitation adipisicing magna culpa commodo deserunt ut do Ut occaecat. Lorem ipsum Veniam consequat quis aliquip dolore minim ex labore dolor Excepteur Duis velit in officia Excepteur officia officia officia cillum ut elit in fugiat incididunt ea ad Ut ut ea ea dolor ex dolor eu magna voluptate irure consectetur.</p>';

$news[2]['title'] = 'Notícia 2';
$news[2]['sub_title'] = 'Notícia 2';
$news[2]['date'] = '15 de Janeiro de 2020';
$news[2]['type'] = 'Apoio Juridico';
$news[2]['text'] = '<p class="lead">Lorem ipsum Nisi enim est proident est magna occaecat dolore proident eu ex sunt consectetur consectetur dolore enim nisi exercitation adipisicing magna culpa commodo deserunt ut do Ut occaecat.</p>

<p>Lorem ipsum Nisi enim est proident est magna occaecat dolore proident eu ex sunt consectetur consectetur dolore enim nisi exercitation adipisicing magna culpa commodo deserunt ut do Ut occaecat. Lorem ipsum Veniam consequat quis aliquip dolore minim ex labore dolor Excepteur Duis velit in officia Excepteur officia officia officia cillum ut elit in fugiat incididunt ea ad Ut ut ea ea dolor ex dolor eu magna voluptate irure consectetur.</p>';

$news[3]['title'] = 'Notícia 3';
$news[3]['sub_title'] = 'Notícia 3';
$news[3]['date'] = '30 de Janeiro de 2020';
$news[3]['type'] = 'Investigação';
$news[3]['text'] = '<p class="lead">Lorem ipsum Nisi enim est proident est magna occaecat dolore proident eu ex sunt consectetur consectetur dolore enim nisi exercitation adipisicing magna culpa commodo deserunt ut do Ut occaecat.</p>

<p>Lorem ipsum Nisi enim est proident est magna occaecat dolore proident eu ex sunt consectetur consectetur dolore enim nisi exercitation adipisicing magna culpa commodo deserunt ut do Ut occaecat. Lorem ipsum Veniam consequat quis aliquip dolore minim ex labore dolor Excepteur Duis velit in officia Excepteur officia officia officia cillum ut elit in fugiat incididunt ea ad Ut ut ea ea dolor ex dolor eu magna voluptate irure consectetur.</p>';

$news[4]['title'] = 'Notícia 4';
$news[4]['sub_title'] = 'Notícia 4';
$news[4]['date'] = '1 de Fevereiro de 2020';
$news[4]['type'] = 'contraordenações';
$news[4]['text'] = '<p class="lead">Lorem ipsum Nisi enim est proident est magna occaecat dolore proident eu ex sunt consectetur consectetur dolore enim nisi exercitation adipisicing magna culpa commodo deserunt ut do Ut occaecat.</p>

<p>Lorem ipsum Nisi enim est proident est magna occaecat dolore proident eu ex sunt consectetur consectetur dolore enim nisi exercitation adipisicing magna culpa commodo deserunt ut do Ut occaecat. Lorem ipsum Veniam consequat quis aliquip dolore minim ex labore dolor Excepteur Duis velit in officia Excepteur officia officia officia cillum ut elit in fugiat incididunt ea ad Ut ut ea ea dolor ex dolor eu magna voluptate irure consectetur.</p>';

$news[5]['title'] = 'Notícia 5';
$news[5]['sub_title'] = 'Notícia 5';
$news[5]['date'] = '15 de Fevereiro de 2020';
$news[5]['type'] = 'Outros';
$news[5]['text'] = '<p class="lead">Lorem ipsum Nisi enim est proident est magna occaecat dolore proident eu ex sunt consectetur consectetur dolore enim nisi exercitation adipisicing magna culpa commodo deserunt ut do Ut occaecat.</p>

<p>Lorem ipsum Nisi enim est proident est magna occaecat dolore proident eu ex sunt consectetur consectetur dolore enim nisi exercitation adipisicing magna culpa commodo deserunt ut do Ut occaecat. Lorem ipsum Veniam consequat quis aliquip dolore minim ex labore dolor Excepteur Duis velit in officia Excepteur officia officia officia cillum ut elit in fugiat incididunt ea ad Ut ut ea ea dolor ex dolor eu magna voluptate irure consectetur.</p>';

$news[6]['title'] = 'Notícia 6';
$news[6]['sub_title'] = 'Notícia 6';
$news[6]['date'] = '1 de Março de 2020';
$news[6]['type'] = 'Julgamento';
$news[6]['text'] = '<p class="lead">Lorem ipsum Nisi enim est proident est magna occaecat dolore proident eu ex sunt consectetur consectetur dolore enim nisi exercitation adipisicing magna culpa commodo deserunt ut do Ut occaecat.</p>

<p>Lorem ipsum Nisi enim est proident est magna occaecat dolore proident eu ex sunt consectetur consectetur dolore enim nisi exercitation adipisicing magna culpa commodo deserunt ut do Ut occaecat. Lorem ipsum Veniam consequat quis aliquip dolore minim ex labore dolor Excepteur Duis velit in officia Excepteur officia officia officia cillum ut elit in fugiat incididunt ea ad Ut ut ea ea dolor ex dolor eu magna voluptate irure consectetur.</p>';

$news[7]['title'] = 'Notícia 7';
$news[7]['sub_title'] = 'Notícia 7';
$news[7]['date'] = '15 de Março de 2020';
$news[7]['type'] = 'Estudo';
$news[7]['text'] = '<p class="lead">Lorem ipsum Nisi enim est proident est magna occaecat dolore proident eu ex sunt consectetur consectetur dolore enim nisi exercitation adipisicing magna culpa commodo deserunt ut do Ut occaecat.</p>

<p>Lorem ipsum Nisi enim est proident est magna occaecat dolore proident eu ex sunt consectetur consectetur dolore enim nisi exercitation adipisicing magna culpa commodo deserunt ut do Ut occaecat. Lorem ipsum Veniam consequat quis aliquip dolore minim ex labore dolor Excepteur Duis velit in officia Excepteur officia officia officia cillum ut elit in fugiat incididunt ea ad Ut ut ea ea dolor ex dolor eu magna voluptate irure consectetur.</p>';

$news[8]['title'] = 'Notícia 8';
$news[8]['sub_title'] = 'Notícia 8';
$news[8]['date'] = '1 de Abril de 2020';
$news[8]['type'] = 'Negócio';
$news[8]['text'] = '<p class="lead">Lorem ipsum Nisi enim est proident est magna occaecat dolore proident eu ex sunt consectetur consectetur dolore enim nisi exercitation adipisicing magna culpa commodo deserunt ut do Ut occaecat.</p>

<p>Lorem ipsum Nisi enim est proident est magna occaecat dolore proident eu ex sunt consectetur consectetur dolore enim nisi exercitation adipisicing magna culpa commodo deserunt ut do Ut occaecat. Lorem ipsum Veniam consequat quis aliquip dolore minim ex labore dolor Excepteur Duis velit in officia Excepteur officia officia officia cillum ut elit in fugiat incididunt ea ad Ut ut ea ea dolor ex dolor eu magna voluptate irure consectetur.</p>';

?>
<!DOCTYPE html>
<!--[if lt IE 8 ]><html class="no-js ie ie7" lang="en"> <![endif]-->
<!--[if IE 8 ]><html class="no-js ie ie8" lang="en"> <![endif]-->
<!--[if IE 9 ]><html class="no-js ie ie9" lang="en"> <![endif]-->
<!--[if (gte IE 9)|!(IE)]><!--><html class="no-js" lang="en"> <!--<![endif]-->
<head>

   <!--- Basic Page Needs
   ================================================== -->
   <meta charset="utf-8">
	<title>Notícias - Coutinhos Advogados</title>
	<meta name="description" content="">  
	<meta name="author" content="">

   <!-- Mobile Specific Metas
   ================================================== -->
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">

	<!-- CSS
    ================================================== -->
   <link rel="stylesheet" href="css/base.css">
	<link rel="stylesheet" href="css/main.css">
   <link rel="stylesheet" href="css/media-queries.css">         

   <!-- Script
   =================================================== -->
	<script src="js/modernizr.js"></script>

   <!-- Favicons
	=================================================== -->
	<link rel="shortcut icon" href="favicon.png" >

</head>

<body>

   <div id="top"></div>
   <div id="preloader"> 
	   <div id="status">
         <img src="images/loader.gif" height="60" width="60" alt="">
         <div class="loader">Loading...</div>
      </div>
   </div>

   <!-- Header
   =================================================== -->
   <header id="main-header">

   	<div class="row header-inner">

	      <div class="logo">
            <a href="index.php#hero">Coutinhos Advogados</a>
         </div>

	      <nav id="nav-wrap">         
	         
	         <a class="mobile-btn" href="#nav-wrap" title="Show navigation">
	         	<span class='menu-text'>Show Menu</span>
	         	<span class="menu-icon"></span>
	         </a>
         	<a class="mobile-btn" href="#" title="Hide navigation">
         		<span class='menu-text'>Hide Menu</span>
         		<span class="menu-icon"></span>
         	</a>         

            <ul id="nav" class="nav">
               <li class="current"><a href="index.php#hero">Início.</a></li>
               <li><a href="index.php#about">Sobre.</a></li>
               <li><a href="index.php#team">Equipa.</a></li>
               <li><a href="index.php#services">Serviços.</a></li>
               <li><a href="index.php#portfolio">Notícias.</a></li>
               <!--<li><a href="#journal">Blog.</a></li>-->
               <li><a href="index.php#contact">Contactos.</a></li>
            </ul> 

	      </nav> <!-- /nav-wrap -->	      

	   </div> <!-- /header-inner -->

   </header>


   <!-- Page Title
   ================================================== -->
   <section id="page-title">	
   	  
		<div class="row">

			<div class="twelve columns">

				<h1>Notícias<span>.</span></h1>
				<p>Aenean condimentum lacus sit amet luctus lobortis.</p>

			</div>			    

		</div> <!-- /row -->	   

   </section> <!-- /page-title -->


   <!-- Content
   ================================================== -->
   <section id="content">

   	<div class="row portfolio-content">

	   	<div class="entry tab-whole nine columns centered">

	         <header class="entry-header">

					<h1 class="entry-title">
                     <?php echo $news[$i]['title'];?>
					</h1> 				 
						
					<div class="entry-meta">
						<ul>
							<li><?php echo $news[$i]['date'];?></li>
							<!--<span class="meta-sep">•</span>								
							<li>
								<a rel="skills tag" title="" href="#">Branding</a>, 
								<a rel="skills tag" title="" href="#">Photography</a>
							</li>-->
							<span class="meta-sep">•</span>
							<li><a rel="client" title="" href="#"><?php echo $news[$i]['type'];?></a></li>
						</ul>
					</div> 
						 
				</header>

				<div class="entry-content">
					<?php echo $news[$i]['text'];?>
				</div>

				<div class="entry-content-media">
					<div class="post-thumb">
						<!--<img src="images/portfolio/news1.jpeg">-->
                  <?php 
                  if($i == 1)
                  {
                     echo '<img src="images/portfolio/news'.$i.'.jpeg">';
                  }
                  else
                  {
                     echo '<img src="images/portfolio/news'.$i.'.jpg">';
                  }
                  ?>
						<!--<img src="images/portfolio/b-coffee-01.jpg">-->
					</div> 
				</div> 					 

				<!-- <div class="pagenav group">
		  			  <span class="prev"><a href="#" rel="prev">Previous</a></span>
		  			<span class="next"><a href="#" rel="next">Next</a></span>  				   
	  			</div> -->
	         
	      </div> <!-- /entry -->	      

	   </div> <!-- /portfolio-content -->
	   

		<div class="row more-projects">

		   <h1>Mais Notícias.</h1> 

			<div class="tab-whole nine columns centered">

	         <div id="portfolio-wrapper" class="bgrid-half tab-bgrid-halfgroup">

	          	<div class="bgrid item">
	               <div class="item-wrap">

	                  <a href="news.php?2">
                        <img src="images/portfolio/news2.jpg" alt="Beetle">                      
                        <div class="overlay">
                        	<div class="portfolio-item-meta">
          					      <h5>Notícia 2</h5>
                              <p>Notícia 2</p>
          					   </div>
                        </div>                        
                     </a>

	               </div>
	          	</div> <!-- /item -->

	            <div class="bgrid item">
	               <div class="item-wrap">

	                  <a href="news.php?3">
                        <img src="images/portfolio/news3.jpg" alt="Banjo Player">
                        <div class="overlay">
                        	<div class="portfolio-item-meta">
          					      <h5>Notícia 3</h5>
                              <p>Notícia 3</p>
          					   </div>
                        </div>                       
                     </a>

	               </div>
	          	</div> <!-- item end -->

	            <div class="bgrid stack item">
	               <div class="item-wrap">

	                 <a href="news.php?4">                        
                        <img src="images/portfolio/news4.jpg" alt="Judah">                       
                        <div class="overlay">
                        	<div class="portfolio-item-meta">
          					      <h5>Notícia 4</h5>
                              <p>Notícia 4</p>
          					   </div>
                        </div>                        
                     </a>    

	               </div>
	         	</div> <!-- item end -->

	            <div class="bgrid item">
	               <div class="item-wrap">

	                  <a href="news.php?5">
                        <img src="images/portfolio/news5.jpg" alt="Grizzly">
                        <div class="overlay"></div>                       
                        <div class="portfolio-item-meta">
          					      <h5>Notícia 5</h5>
                              <p>Notícia 5</p>
          					</div>                         
                     </a>   

	               </div>
	         	</div> <!-- item end -->               

	         </div> <!-- /portfolio-wrapper -->

	      </div> <!-- /nine -->

		</div> <!-- /more-projects --> 

   </section> <!-- /content -->  


   <!-- Footer
   ================================================== -->
   <footer>

      <div class="row">       

         <div class="six columns tab-whole footer-about">
            
                <h3>Sobre Coutinhos Advogados</h3>
               
            <p>This is Photoshop's version  of Lorem Ipsum. Proin gravida nibh vel velit auctor aliquet.
            Aenean sollicitudin, lorem quis bibendum auctor, nisi elit consequat ipsum, nec sagittis sem
            nibh id elit. 
            </p>

            <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor 
               incididunt ut labore et dolore magna aliqua.</p>        

         </div> <!-- /footer-about -->

         <div class="six columns tab-whole right-cols">

            <div class="row">

               <div class="columns">
                  <h3 class="address">Contacte-nos</h3>
                  <p>
                  Avenida da Republica<br>
                  4400-000 Vila Nova de Gaia, Porto<br>
                  Portugal
                  </p>

                  <ul>
                    <li><a href="tel:+351 123 456 789">+351 123 456 789</a></li>
                    <li><a href="mailto:brunomartins.1988@gmail.com">brunomartins.1988@gmail.com</a></li>
                  </ul>                  
               </div> <!-- /columns -->             

               <div class="columns last">
                  <h3 class="contact">Segue-nos</h3>

                  <ul>
                     <li><a href="#">Facebook</a></li>
                     <!--<li><a href="#">Twitter</a></li>
                     <li><a href="#">GooglePlus</a></li>
                     <li><a href="#">Instagram</a></li>-->
                     <li><a href="#">LinkedIn</a></li>
                     <li><a href="#">Skype</a></li>
                  </ul>
                  
               </div> <!-- /columns --> 

            </div> <!-- /Row(nested) -->

         </div>

         <p class="copyright">&copy; Copyright <?php echo date("Y");?> BMDesign </p>        

         <div id="go-top">
            <a class="smoothscroll" title="Back to Top" href="#top"><span>Topo</span><i class="fa fa-long-arrow-up"></i></a>
         </div>

      </div> <!-- /row -->

   </footer> <!-- /footer -->


   <!-- Java Script
   ================================================== -->
   <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
   <script>window.jQuery || document.write('<script src="js/jquery-1.10.2.min.js"><\/script>')</script>
   <script type="text/javascript" src="js/jquery-migrate-1.2.1.min.js"></script>   
   <script src="js/jquery.flexslider.js"></script>
   <script src="js/jquery.fittext.js"></script>
   <script src="js/backstretch.js"></script> 
   <script src="js/waypoints.js"></script>  
   <script src="js/main.js"></script>

</body>

</html>