<div class="innerBanner">
                 <div class="scrollable" style=" background: url(<?php if($partyDetails){ echo base_url().'assets/userfiles/'.$partyDetails['path'].'/'.$partyDetails['filename'].'.'.$partyDetails['extension']; }?>) no-repeat center center/cover;"></div>
               </div>
            <section class="content_wrapper innerPage clearfix">
             <div class="partyBookingWrapper clearfix">

                <div class="box_boking">
                 <div class="inner">
                  <h4 class="text_white"><?php if($partyDetails){ echo date('d, M Y',$partyDetails['time_from']); }?> - <?php if($partyDetails){ echo eventDetails($partyDetails['id']); }?></h4>
                  <h1><?php if($partyDetails){ echo $partyDetails['title']; }?></h1>
                  <hr class="bold">
                  <h2 class="clearfix"><?php if($partyDetails){ echo $partyDetails['sub_title']; }?></h2>
                  <p><?php if($partyDetails){ echo strip_tags($partyDetails['teasertext']); }?></p>
                 <?php if($this->session->userdata('user_id')){ ?>
                  <div class="text-center">
                    <p id="message_error" style="color:red"></p>               
                    <button class="hotshotBtn hotshot_party" data-id="<?php echo $partyDetails['id']; ?>"><img src="images/hotspot-icon.png"> <?php echo getLang('Hotshot'); ?></button>
                  </div>
				 <?php } ?>
                  <?php if($partyDetails['video_url']!='' && $this->session->userdata('user_id')){ ?>
                  <div class="video">
                    <iframe src="<?php echo $partyDetails['video_url']; ?>" frameborder="0" width="100%" webkitallowfullscreen="" mozallowfullscreen="" allowfullscreen=""></iframe>
                  </div>
                  <?php } ?>
                 </div>
               </div> 

              <div id="bookDetails" class="box_boking bookingDetails">
                 <div class="inner">                                
                  <p class="firstUpper"><?php if($partyDetails){ echo strip_tags(html_entity_decode($partyDetails['description'])); }?></p>
                   <hr class="spacer">
                   <ul>
                     <?php $services = json_decode($partyDetails['services']);
                           if(!empty($services)){ 
                           foreach ($services as $key => $service) { ?>
                              
                      <li><i class="fa fa-check"></i> <?php if(strtolower($key)==strtolower('A Few Single Lady Entries Available')){ echo getLang('Ladyentry_available'); } elseif(strtolower($key)==strtolower('Masks & Capes Large Selection On Site')){ echo getLang('Mask_&_Capes_available'); } elseif(strtolower($key)==strtolower('Castle')){ echo getLang('Castle'); } elseif(strtolower($key)==strtolower('Medieval Castle')){ echo getLang('Medieval_Castle'); } elseif(strtolower($key)==strtolower('Villa')){ echo getLang('Villa'); } elseif(strtolower($key)==strtolower('Penthouse')){ echo getLang('Penthouse'); } elseif(strtolower($key)==strtolower('Yacht')){ echo getLang('Yacht'); } elseif(strtolower($key)==strtolower('Five Star Location')){ echo getLang('Five_Star_Location'); } elseif(strtolower($key)==strtolower('Gourmet')){ echo getLang('Gourmet'); } elseif(strtolower($key)==strtolower('Rooms & Suites')){ echo getLang('Rooms_&_Suites'); } elseif(strtolower($key)==strtolower('Delicious Dinner')){ echo getLang('Delicious_Dinner'); } elseif(strtolower($key)==strtolower('Flying Dinner Buffet')){ echo getLang('Flying_Dinner_Buffet'); } elseif(strtolower($key)==strtolower('Airport Service')){ echo getLang('Airport_Service'); } elseif(strtolower($key)==strtolower('Ceremony')){ echo getLang('Ceremony'); } elseif(strtolower($key)==strtolower('Cigar Lounge')){ echo getLang('Cigar_Lounge'); } elseif(strtolower($key)==strtolower('Wellness Area')){ echo getLang('Wellness_Area'); } elseif(strtolower($key)==strtolower('Premium Offers')){ echo 'Premium Offers'; } elseif(strtolower($key)==strtolower('Live Music & Show')){ echo getLang('Live_Music_&_Show'); } elseif(strtolower($key)==strtolower('Dresscode')){ echo getLang('Dresscode'); } elseif(strtolower($key)==strtolower('Guarded Wardrobe')){ echo getLang('Guarded_Wardrobe'); } elseif(strtolower($key)==strtolower('Cape Required')){ echo getLang('Cape_Required'); } elseif(strtolower($key)==strtolower('Venetian Masks')){ echo getLang('Venetian_Masks'); } elseif(strtolower($key)==strtolower('Dresscode Black Tie')){ echo getLang('Dresscode_Black_Tie'); } elseif(strtolower($key)==strtolower('Dresscode See Further Information')){ echo getLang('Dresscode_See_Further_Information'); } elseif(strtolower($key)==strtolower('For Couples only')){ echo getLang('For_Couples_only'); } else{ echo $key; }?></li>
                      
                      <?php } } ?>
                    </ul> 
                 </div>
               </div> 
               
                <div class="box_boking bookEntry review">
                  <?php if(!empty($partyImages)){ ?>
                 <?php if($this->session->userdata('user_id') && $userDetials['free_member']==0){ ?>
                 <div class="demo-gallery inner <?php if(count($partyImages)==1){ echo 'single'; } elseif(count($partyImages)==2){ echo 'double'; } else { echo 'tripple';}?>">
					       <ul id="lightgallery" class="list-unstyled row">
                  <?php $i=0; foreach ($partyImages as $images) { 
                            if($images['filename']!='' && file_exists(FCPATH.'assets/userfiles/'.$images['path'].'/'.$images['filename'].'.'.$images['extension']))
                            { 
                              $image = base_url().'assets/userfiles/'.$images['path'].'/'.$images['filename'].'.'.$images['extension']; 
                            } 
                            else 
                            { 
                              $image = base_url().'assets/userfiles/img/menu/prices-thumbnail.jpg';
                            }
                            if($images['filename']!='' && file_exists(FCPATH.'assets/userfiles/'.$images['path'].'/'.$images['filename'].'_blur.'.$images['extension']))
                            { 
                              $image_blur = base_url().'assets/userfiles/'.$images['path'].'/'.$images['filename'].'_blur.'.$images['extension']; 
                            }
                            else 
                            { 
                              $image_blur = base_url().'assets/userfiles/img/menu/prices-thumbnail.jpg';
                            }
                          ?>
                            <?php if($this->session->userdata('user_id') && $userDetials['free_member']==0){ ?>
								            <li class="newtoday" data-src="<?php echo $image; ?>" <?php if($i>2){ echo 'style="display:none;"'; }?>><a><img src="<?php echo $image; ?>" alt=""></a>
                              <?php if(count($partyImages)>3 && $i==2){ ?>
                                <span>+<?php echo count($partyImages)-3; ?></span>
                              <?php } ?>
                          </li>
								
                            <?php } else { ?>
                              <li class="newtoday" data-src="<?php echo $image_blur; ?>" <?php if($i>2){ echo 'style="display:none;"'; }?>><a><img src="<?php echo $image_blur; ?>" alt=""></a>
                                <?php if(count($partyImages)>3 && $i==2){ ?>
                                  <span>+<?php echo count($partyImages)-3; ?></span>
                                <?php } ?>
                              </li>
                            <?php } ?>

                        <?php $i++;} ?>
                        
						</ul>
						
                 </div>
				 <?php } else { ?>
					<div class="inner <?php if(count($partyImages)==1){ echo 'single'; } elseif(count($partyImages)==2){ echo 'double'; } else { echo 'tripple';}?>">
                  <?php foreach ($partyImages as $images) { 
                            if($images['filename']!='' && file_exists(FCPATH.'assets/userfiles/'.$images['path'].'/'.$images['filename'].'.'.$images['extension']))
                            { 
                              $image = base_url().'assets/userfiles/'.$images['path'].'/'.$images['filename'].'.'.$images['extension']; 
                            } 
                            else 
                            { 
                              $image = base_url().'assets/images/avatar07.jpg';
                            }
                            if($images['filename']!='' && file_exists(FCPATH.'assets/userfiles/'.$images['path'].'/'.$images['filename'].'_blur.'.$images['extension']))
                            { 
                              $image_blur = base_url().'assets/userfiles/'.$images['path'].'/'.$images['filename'].'_blur.'.$images['extension']; 
                            }
                            else 
                            { 
                              $image_blur = base_url().'assets/images/avatar07.jpg';
                            }
                          ?>
                            <?php if($this->session->userdata('user_id') && $userDetials['free_member']==0){ ?>
                              <a class="fancybox" href="<?php echo $image; ?>" data-fancybox-group="gallery" style="background:url(<?php echo $image; ?>) no-repeat center center / cover;" ></a>
								
                            <?php } else { ?>
                              <a href="javascript:void(0)" class="logout_review" style="background:url(<?php echo $image_blur; ?>) no-repeat center center / cover;" ></a>
                            <?php } ?>

                        <?php } ?>
                        <?php if(count($partyImages)>3){ ?>
                          <span class="see_more_review logout_review"><?php echo getLang('See_more'); ?></span>
                          <!--<span>+<?php echo count($partyImages)-3; ?></span>-->
                        <?php } ?>
                 </div>
				 <?php } ?>
               
               <?php } ?>
                 <!-- COMMENT BOX -->
              
                  <!-- // COMMENT BOX -->
               </div> 
             </div>
</section>
<style type="text/css">
            .demo-gallery > ul {
              margin-bottom: 0;
            }
            .demo-gallery > ul > li {
                float: left;
                margin-bottom: 15px;
                margin-right: 20px;
                width: 200px;
            }
            .demo-gallery > ul > li a {
              /*border: 3px solid #FFF;*/
              border-radius: 3px;
              display: block;
              overflow: hidden;
              position: relative;
              float: left;
            }
            .demo-gallery > ul > li a > img {
              -webkit-transition: -webkit-transform 0.15s ease 0s;
              -moz-transition: -moz-transform 0.15s ease 0s;
              -o-transition: -o-transform 0.15s ease 0s;
              transition: transform 0.15s ease 0s;
              -webkit-transform: scale3d(1, 1, 1);
              transform: scale3d(1, 1, 1);
              height: 100%;
              width: 100%;
            }
            .demo-gallery > ul > li a:hover > img {
              -webkit-transform: scale3d(1.1, 1.1, 1.1);
              transform: scale3d(1.1, 1.1, 1.1);
            }
            .demo-gallery > ul > li a:hover .demo-gallery-poster > img {
              opacity: 1;
            }
            .demo-gallery > ul > li a .demo-gallery-poster {
              background-color: rgba(0, 0, 0, 0.1);
              bottom: 0;
              left: 0;
              position: absolute;
              right: 0;
              top: 0;
              -webkit-transition: background-color 0.15s ease 0s;
              -o-transition: background-color 0.15s ease 0s;
              transition: background-color 0.15s ease 0s;
            }
            .demo-gallery > ul > li a .demo-gallery-poster > img {
              left: 50%;
              margin-left: -10px;
              margin-top: -10px;
              opacity: 0;
              position: absolute;
              top: 50%;
              -webkit-transition: opacity 0.3s ease 0s;
              -o-transition: opacity 0.3s ease 0s;
              transition: opacity 0.3s ease 0s;
            }
            .demo-gallery > ul > li a:hover .demo-gallery-poster {
              background-color: rgba(0, 0, 0, 0.5);
            }
            .demo-gallery .justified-gallery > a > img {
              -webkit-transition: -webkit-transform 0.15s ease 0s;
              -moz-transition: -moz-transform 0.15s ease 0s;
              -o-transition: -o-transform 0.15s ease 0s;
              transition: transform 0.15s ease 0s;
              -webkit-transform: scale3d(1, 1, 1);
              transform: scale3d(1, 1, 1);
              height: 100%;
              width: 100%;
            }
            .demo-gallery .justified-gallery > a:hover > img {
              -webkit-transform: scale3d(1.1, 1.1, 1.1);
              transform: scale3d(1.1, 1.1, 1.1);
            }
            .demo-gallery .justified-gallery > a:hover .demo-gallery-poster > img {
              opacity: 1;
            }
            .demo-gallery .justified-gallery > a .demo-gallery-poster {
              background-color: rgba(0, 0, 0, 0.1);
              bottom: 0;
              left: 0;
              position: absolute;
              right: 0;
              top: 0;
              -webkit-transition: background-color 0.15s ease 0s;
              -o-transition: background-color 0.15s ease 0s;
              transition: background-color 0.15s ease 0s;
            }
            .demo-gallery .justified-gallery > a .demo-gallery-poster > img {
              left: 50%;
              margin-left: -10px;
              margin-top: -10px;
              opacity: 0;
              position: absolute;
              top: 50%;
              -webkit-transition: opacity 0.3s ease 0s;
              -o-transition: opacity 0.3s ease 0s;
              transition: opacity 0.3s ease 0s;
            }
            .demo-gallery .justified-gallery > a:hover .demo-gallery-poster {
              background-color: rgba(0, 0, 0, 0.5);
            }
            .demo-gallery .video .demo-gallery-poster img {
              height: 48px;
              margin-left: -24px;
              margin-top: -24px;
              opacity: 0.8;
              width: 48px;
            }
            .demo-gallery.dark > ul > li a {
              border: 3px solid #04070a;
            }
			.tripple .newtoday:nth-child(1) {
				margin-right: 3%;
				margin-bottom: 3%;
				width: 40%;
			}
			.tripple .newtoday:nth-child(1) a {
				float: left;
				height: 250px;
				margin-right: 3%;
				width: 100%;
			}
			.tripple .newtoday:nth-child(1) a img {
				float: left;
				height: 250px;
				margin-right: 3%;
				width: 100%;
			}

			.tripple .newtoday:nth-child(2) {
				margin-right: 1%;
				margin-bottom: 3%;
				width: calc(100% - 44%);
			}
			.tripple .newtoday:nth-child(2) a {
				float: left;
				height: 120px;
				margin-right: 3%;
				width: 100%;
			}
			.tripple .newtoday:nth-child(2) a img {
				float: left;
				height: 120px;
				margin-right: 3%;
				width: 100%;
			}

			.tripple .newtoday:nth-child(3) {
				margin-right: 1%;
				margin-bottom: 3%;
				width: calc(100% - 44%);
			}
			.tripple .newtoday:nth-child(3) a {
				float: left;
				height: 120px;
				margin-right: 3%;
				width: 100%;
			}
			.tripple .newtoday:nth-child(3) a img {
				float: left;
				height: 120px;
				margin-right: 3%;
				width: 100%;
			}

			.double .newtoday:nth-child(1) {
				margin-right: 3%;
				margin-bottom: 3%;
				width: 48%;
			}
			.double .newtoday:nth-child(1) a {
				float: left;
				height: 250px;
				margin-right: 3%;
				width: 100%;
			}
			.double .newtoday:nth-child(1) a img {
				float: left;
				height: 250px;
				margin-right: 3%;
				width: 100%;
			}

			.double .newtoday:nth-child(2) {
				margin-right: 1%;
				margin-bottom: 3%;
				width: 48%;
			}
			.double .newtoday:nth-child(2) a {
				float: left;
				height: 250px;
				margin-right: 3%;
				width: 100%;
			}
			.double .newtoday:nth-child(2) a img {
				float: left;
				height: 250px;
				margin-right: 3%;
				width: 100%;
			}

			.single .newtoday:nth-child(1) {
				margin-right: 1%;
				margin-bottom: 3%;
				width: 100%;
			}
			.single .newtoday:nth-child(1) a {
				float: left;
				height: 250px;
				margin-right: 3%;
				width: 100%;
			}
			.single .newtoday:nth-child(1) a img {
				float: left;
				height: 250px;
				margin-right: 3%;
				width: 100%;
			}
			.double span,
			.tripple span {
				z-index: 0
			}
</style>
        