<section id="profile" class="content_wrapper innerPage cmsWhite shopwrapper">
 <div class="container narrow">
   <div class="box_large">
     <?php if(count($shopDetails)>0){ 
        foreach ($shopDetails as $key => $value) { 
          if($key==0)
          {
      ?>
         <div class="shop-card mainShopItem">
           <div class="shop-img">
            <div class="line_1">
              <div class="line_2">
                <div class="line_3">
                  <?php if($value['filename']){ echo '<img src="'.base_url().'assets/userfiles/img/shop/'.$value['filename'].'" alt="">'; } ?>
                </div>
              </div>
            </div>    
            </div>
           <div class="shop-container">
              <h1><?php echo $value['title']; ?></h1>
              <div class="shop-description" style="display:none">
                <?php echo word_limiter($value['description'],8); ?>
              </div>
              <div class="long-shop-description">
                <?php echo $value['description']; ?>
              </div>
              <span > 
                <div class="shop-price-group">
                  <span class="shop-price"><?php echo getLang('Price'); ?>: <?php echo number_format($value['price'],2,',','.').' &euro;'; ?></span>
                  <a href="<?php echo $value['link']; ?>" class="btn_gold_normal itemPrice" target="_blank">Buy</a>
                </div>        
              </span> 
           </div>
         </div>
      <?php } } } ?>
   </div>
 </div>

<div class="books-carousel">
 <div class="container">
  <h3><?php echo getLang('Recomended_books_that_also_wrote_about_Castlevenets'); ?></h3>
   <div id="allBooks" class="books-item">
      <?php if(count($shopDetails)>0){ 
        foreach ($shopDetails as $key => $value) { 
          if($key>0)
          {
      ?>
      <div class="item">
         <div class="shop-card shopItem">
           <div class="shop-img">
            <div class="line_1">
              <div class="line_2">
                <div class="line_3">
                  <?php if($value['filename']){ echo '<img src="'.base_url().'assets/userfiles/img/shop/'.$value['filename'].'" alt="" >'; } ?>
                </div>
              </div>
            </div>   
            </div>
           <div class="shop-container">
              <h1><?php echo $value['title']; ?></h1>
              <div class="shop-description">
                <?php echo word_limiter($value['description'],8); ?>
              </div>
              <div class="long-shop-description" style="display:none">
                <?php echo $value['description']; ?>
              </div>
              <span>
                <div class="shop-price-group">
                  <span class="shop-price"><?php echo getLang('Price'); ?>: <?php echo number_format($value['price'],2,',','.').' &euro;'; ?></span>
                  <a style="display:none;" href="<?php echo $value['link']; ?>" class="btn_gold_normal itemPrice" target="_blank">Buy</a>
                </div>
              </span>
            </div>
         </div>
      </div>
      <?php } } } ?>

   </div>  
 </div>
</div> 
</section>