<?php
include("log-check.php"); 
$image = "https://mpakopoulou.gr/images/fb-share.jpg";
?>
<!DOCTYPE html>
<html lang="e<?php if($_SESSION["lng"]==173) { ?>l<?php } else { ?>n<?php } ?>">
   <head>
      <meta charset="utf-8">
      <meta http-equiv="X-UA-Compatible" content="IE=edge">
      <meta name="viewport" content="width=device-width, initial-scale=1.0">
      <meta name="description" content="Ελένη Α. Μπακοπούλου - Δικηγόρος, Μεγ. Αλεξάνδρου 10, Πτολεμαΐδα 50200">
      <meta name="author" content="Ελένη Α. Μπακοπούλου">
      <title><?php if($_SESSION["lng"]==173) { ?>Ελένη Α. Μπακοπούλου - Δικηγόρος | Μεγ. Αλεξάνδρου 10, Πτολεμαΐδα 50200<?php } else { ?>Eleni A. Mpakopoulou - Lawyer | Meg. Alexandrou 10, Ptolemaida 50200<?php } ?></title>
	   
<!-- FACEBOOK API -->
<meta property="fb:app_id" content="472045310487596"/>
<meta property="og:title" content="<?php if($lang==173) { ?>Καλωσορίσατε στην ιστοσελίδα μας!<?php } else { ?>Welcome to our website!<?php } ?>" />
<meta property="og:url" content="https://mpakopoulou.gr/index.php" />
<meta property="og:type" content="website" />
<meta property="og:image" content="<?php echo $image; ?>" />
<meta property="og:image:width" content="800" />
<meta property="og:image:height" content="600" />	
<meta property="og:description" content="<?php if($_SESSION["lng"]==173) { ?>Ελένη Α. Μπακοπούλου - Δικηγόρος | Μεγ. Αλεξάνδρου 10, Πτολεμαΐδα 50200<?php } else { ?>Eleni A. Mpakopoulou - Lawyer | Meg. Alexandrou 10, Ptolemaida 50200<?php } ?>" />  
<!-- FACEBOOK API -->
	   
      <link href="assets/css/bootstrap.min.css" rel="stylesheet">
      <link href="assets/css/main.css" rel="stylesheet">
      <link href="assets/css/green.css" rel="stylesheet" title="Color">
      <link href="assets/css/owl.carousel.css" rel="stylesheet">
      <link href="assets/css/owl.transitions.css" rel="stylesheet">
      <link href="assets/css/animate.min.css" rel="stylesheet">
      <link href="assets/css/aos.css" rel="stylesheet">
      <link href="assets/css/custom.css" rel="stylesheet">
      <link href="http://fonts.googleapis.com/css?family=Lato:400,900,300,700" rel="stylesheet">
      <link href="assets/fonts/fontello.css" rel="stylesheet">
      <link rel="shortcut icon" href="assets/images/favicon.ico">
   </head>
   <body>
<?php include("header.php"); ?>
	   <main>
<?php
if($_SESSION["lng"]==173){ $album=1; } else { $album=2; }
$slider=array();
$res_slider=mysqli_query($conn, "select id, name, image, url, url_title, desc1 from photo_photos where album_id=".$album." and display=1 order by priority asc");
if($res_slider){
	while($row_slider=mysqli_fetch_row($res_slider)){
		$slider[]=array("id" => $row_slider[0], "title1" => $row_slider[1], "img" => $row_slider[2], "title2" => $row_slider[3], "title3" => $row_slider[4], "title4" => $row_slider[5]);
	}
$res_slider->close();
}
if(!empty($slider)){
?>
         <section id="hero">
            <div id="owl-main" class="owl-carousel height-md owl-inner-nav owl-ui-lg">
<?php foreach($slider as $slider1){ ?>
               <div class="item" style="background-image: url(<?php echo $slider1["img"]; ?>);">
                  <div class="container">
                     <div class="caption vertical-center text-center">
                        <h1 class="fadeInDown-1 light-color" style="background-color: #424242"><?php echo $slider1["title1"]; ?></h1>
                        <p class="fadeInDown-2 light-color" style="background-color: #424242"><?php echo $slider1["title4"]; ?></p>
                        <?php if(!empty($slider1["title2"]) && !empty($slider1["title3"])) { ?><div class="fadeInDown-3"><a href="<?php echo $slider1["title2"]; ?>" class="btn btn-large"><?php echo $slider1["title3"]; ?></a></div><?php } ?>
                     </div>
                  </div>
               </div>
<?php } ?>
            </div>
         </section>
<?php } ?>
         <section id="product">
            <div class="container inner">
               <div class="row">
                  <div class="col-sm-6 inner-right-xs text-right">
                     <figure><img src="assets/images/about.jpg" alt="Mpakopoulou"></figure>
                  </div>
                  <div class="col-sm-6 inner-top-xs inner-left-xs">
<?php
  $res_about0=mysqli_query($conn, "select subcontent, copyright from sitecontent where mpage=13 and language=".$_SESSION["lng"]." limit 1");
  if($res_about0){
	$row_about0=mysqli_fetch_row($res_about0);
	$cont0=$row_about0[0];
	$copy0=$row_about0[1];	
	$res_about0->close();
  }
?>
                     <h2><?php echo $copy0; ?></h2>
                     <?php echo $cont0; ?>
                     <a href="about.php" class="txt-btn"><?php if($_SESSION["lng"]==173) { ?>Περισσότερες πληροφορίες<?php } else { ?>More information<?php } ?></a>
                  </div>
               </div>
            </div>
         </section>
         <section id="visit-our-store" class="img-bg img-bg-soft tint-bg" style="background-image: url(assets/images/art/image-background04.jpg);">
            <div class="container inner">
               <div class="row">
                  <div class="col-md-12 col-sm-12">
                     <header>
                        <h1><?php if($_SESSION["lng"]==173) { ?>Εγγυημένο αποτέλεσμα<?php } else { ?>Guaranteed result<?php } ?></h1>
                        <p><?php if($_SESSION["lng"]==173) { ?>Άμεση εξυπηρέτηση, με γνώμονα την προάσπιση και διαφύλαξη των συμφερόντων των πελατών.<br>Επικοινωνήστε μαζί μας για να βρούμε μαζί τη λύση που ταιριάζει στο δικό σας πρόβλημα.<?php } else { ?>Immediate service, guided by the protection and safeguarding of customers' interests.<br>Contact us to find together the solution that suits your problem.<?php } ?></p>
                     </header>
                     <a href="contact.php" class="btn btn-large"><?php if($_SESSION["lng"]==173) { ?>Βρείτε μας<?php } else { ?>Find us<?php } ?></a>
                  </div>
               </div>
            </div>
         </section>
         <section id="latest-works" class="light-bg">
            <div class="container inner">
               <div class="row">
                  <div class="col-md-8 col-sm-9 center-block text-center">
                     <header>
                        <h2><?php if($_SESSION["lng"]==173) { ?>Οι υπηρεσίες μας<?php } else { ?>Our Services<?php } ?></h2>
                        <p><?php if($_SESSION["lng"]==173) { ?>Δείτε παρακάτω τη λίστα των υπηρεσιών μας<?php } else { ?>See below the list of our services<?php } ?></p>
                     </header>
                  </div>
               </div>
               <div class="row inner-top-sm">
                  <div id="owl-latest-works" class="owl-carousel owl-item-gap">
<?php
$sql21="select id, title, subtitle, image, copyright from sitenews where language=".$_SESSION["lng"]." and display=1 and accepted1=1 and cat=85 order by priority asc";
$arts21=array();
$res_arthro21=mysqli_query($conn, $sql21);
if($res_arthro21){
while($row_arthro21=mysqli_fetch_row($res_arthro21)){
if($_SESSION["lng"]==173) {
	$serv_id=$row_arthro21[0];
} else {
	$serv_id=$row_arthro21[4];	
}
?> 
                     <div class="item">
                        <a href="service.php?id=<?php echo $serv_id; ?>">
                           <figure>
                              <figcaption class="text-overlay">
                                 <div class="info">
                                    <h3><?php echo $row_arthro21[1]; ?></h3>
                                    <p><?php echo $row_arthro21[2]; ?></p>
                                 </div>
                              </figcaption>
                              <img src="<?php echo $row_arthro21[3]; ?>" alt="<?php echo $row_arthro21[1]; ?>">
                           </figure>
                        </a>
                     </div>
<?php
}
$res_arthro21->close();
}
?>
                  </div>
               </div>
            </div>
         </section>
		   
		   
         <section class="img-bg img-bg-soft tint-bg" style="background-image: url(assets/images/art/demosthenes.jpg);">
            <div class="container inner" style="padding-top: 70px; padding-bottom: 60px;">
               <div class="row">
                  <div class="col-md-12 col-sm-12">
                     <header class="text-center">                        
                        <h1>“<?php if($_SESSION["lng"]==173) { ?>Πᾶς ἐστι νόμος εὕρημα μὲν καὶ δῶρον θεῶν<?php } else { ?>Every law is a find and a gift of the gods<?php } ?>”</h1>
						<h2><?php if($_SESSION["lng"]==173) { ?>Δημοσθένης<?php } else { ?>Demosthenes<?php } ?></h2>
                     </header>
                  </div>
               </div>
            </div>
         </section>
		   

<?php if($_SESSION["lng"]==173) { ?>		   
         <section id="blog" class="light-bg inner-top">
            <div class="container">
               <div class="row">
                  <div class="col-md-8 col-sm-9 center-block text-center">
                     <header>
                        <h2><?php if($_SESSION["lng"]==173) { ?>Ενημέρωση<?php } else { ?>News<?php } ?></h2>
                        <p><?php if($_SESSION["lng"]==173) { ?>Διαβάστε ορισμένα ενδιαφέροντα άρθρα που επιλέξαμε για εσάς<?php } else { ?>Read some interesting articles that we have selected for you<?php } ?><br><br></p>
                     </header>
                  </div>
               </div>
				
               <div class="row">
                  <div class="col-sm-12">
                     <div class="grid-blog col-3 no-sidebar">
                        <div class="posts">
<?php
$sql22="select id, title, big_desc from sitenews where language=".$_SESSION["lng"]." and display=1 and accepted1=1 and cat=233 order by start_date DESC limit 3";
$arts22=array();
$res_arthro22=mysqli_query($conn, $sql22);
if($res_arthro22){
while($row_arthro22=mysqli_fetch_row($res_arthro22)){
?>
                           <div class="post format-standard">
                              <div class="post-content">
                                 <h3 class="post-title"><a href="article.php?id=<?php echo $row_arthro22[0]; ?>"><?php echo $row_arthro22[1]; ?></a></h3>
                                 <p><?php echo $row_arthro22[2]; ?></p>
                                 <a href="article.php?id=<?php echo $row_arthro22[0]; ?>" class="btn"><?php if($_SESSION["lng"]==173) { ?>Περισσότερα<?php } else { ?>More<?php } ?></a>
                              </div>
                           </div>
<?php
}
$res_arthro22->close();
}
?>
                        </div>
                     </div>
                  </div>
               </div>
            </div>
         </section>
<?php } ?>	   
		   
		 <div id="share" class="light-bg pad-bot inner-top">
            <div class="container">
               <div class="col-sm-12 reset-padding">
                  <a href="https://www.facebook.com/eleni.e.mpakopoulou" target="_blank" class="btn-share-md">
                     <p class="name">Facebook</p>
                     <em class="icon-s-facebook"></em>
                  </a>
               </div>
            </div>
         </div>
		   
      </main>
<?php include("footer.php"); ?>
   </body>
</html>