<commit_before><link href="/public/css/bootstrap.css" rel="stylesheet">

<h1 class="page-title"> <?php echo $this -> activity -> getName(); ?></h1>
<div class="row">
	<a href="../index">&laquo;Back</a><br />
</div>

<div class="col-lg-4">
	<div class="well table-responsive">
		<table class="table">
			<tr><td colspan="2"> <h4>General Information</h4> </td> </tr>
			<tr><td><strong>Name</strong></td> <td><?php echo $this -> activity -> getName(); ?></td> </tr>
			<tr><td><strong>Institute</strong></td><td><?php echo $this -> activity -> getLocation() -> getName(); ?></td></tr>
			<tr><td colspan="2"> <h4>Practical Information</h4> </td> </tr>
			<tr><td><strong>Accomodation costs</strong></td></tr>
			<tr><td><strong>Vaccinations</strong></td><td></td></tr>
			<tr><td><strong>Visum?</strong></td><td>Yes/No</td></tr>
		</table>
	</div>
</div>

<div class="col-md-8">
	<?php
  	if (!$this->activity->getMedia()->isEmpty()) {
  		echo "if true";
  	?>
  	<div id="myCarousel" class="carousel slide">
  		<ol class="carousel-indicators">
    		<li data-target="#myCarousel" data-slide-to="0" class="active"></li>
    		<li data-target="#myCarousel" data-slide-to="1"></li>
    		<li data-target="#myCarousel" data-slide-to="2"></li>
  		</ol>
		
		<!-- Carousel items -->
  		<div class="carousel-inner">
  		<?php
  		$counter = 0;
  		foreach($this->activity->getMedia() as $media) {
  			if($counter==0) {
  				?> 
  				<div class="active item">
  					<img src="http://placehold.it/700x300" alt="" />
   				</div>
				<?php 
				$counter++;
			}
			else {
			?>
				<div class="item">
					<img src="http://placehold.it/700x300" alt="" />
   				</div>
			<?php
			}
  			?>
  			
   		</div>
  	
	<?php
	}
		?>
		<!-- Carousel nav -->
  		<a class="carousel-control left" href="#myCarousel" data-slide="prev">&lsaquo;</a>
  		<a class="carousel-control right" href="#myCarousel" data-slide="next">&rsaquo;</a>
		</div>
		<?php
	}
	else {
		?>
		<div class="alert alert-warning">
			<p>There is no media for this activity</p>
		</div>
		<?php
		}
  	?>
	</br>
</div>
<div class="col-md-2">
	Location <br/>
	Assesment <br/>
	Environment </br>
	Institute</br>
	Guidance</br>
</div>
<div class="col-md-6">
	Hier komen de reviews
</div><commit_msg>Carousel working<commit_after><link href="/public/css/bootstrap.css" rel="stylesheet">

<h1 class="page-title"> <?php echo $this -> activity -> getName(); ?></h1>
<div class="row">
	<a href="../index">&laquo;Back</a><br />
</div>

<div class="col-lg-4">
	<div class="well table-responsive">
		<table class="table">
			<tr><td colspan="2"> <h4>General Information</h4> </td> </tr>
			<tr><td><strong>Name</strong></td> <td><?php echo $this -> activity -> getName(); ?></td> </tr>
			<tr><td><strong>Institute</strong></td><td><?php echo $this -> activity -> getLocation() -> getName(); ?></td></tr>
			<tr><td colspan="2"> <h4>Practical Information</h4> </td> </tr>
			<tr><td><strong>Accomodation costs</strong></td></tr>
			<tr><td><strong>Vaccinations</strong></td><td></td></tr>
			<tr><td><strong>Visum?</strong></td><td>Yes/No</td></tr>
		</table>
	</div>
</div>

<div class="col-md-8">
	<?php
  	if (!$this->activity->getMedia()->isEmpty()) {
  		
  	?>
  	<div id="myCarousel" class="carousel slide">
  		<ol class="carousel-indicators">
    		<li data-target="#myCarousel" data-slide-to="0" class="active"></li>
    		<li data-target="#myCarousel" data-slide-to="1"></li>
    		<li data-target="#myCarousel" data-slide-to="2"></li>
  		</ol>
		
		<!-- Carousel items -->
  		<div class="carousel-inner">
  		<?php
  		$counter = 0;
  		foreach($this->activity->getMedia() as $media) {
  			if($counter==0) {
  				
  				?> 
  				<div class="active item">
  					<img src="<?php echo $media->getMediaTypeName()->getTypePrefix().$media->getContent().$media->getMediaTypeName()->getTypeSuffix();?>" alt="" />
   				</div>
				<?php 
				$counter++;
			}
			else {
			?>
				<div class="item">
					<img src="<?php echo $media->getMediaTypeName()->getTypePrefix().$media->getContent().$media->getMediaTypeName()->getTypeSuffix()?>" alt="" />
   				</div>
			<?php
			}
  			?>
  			
   		</div>
  	
	<?php
	}
		?>
		<!-- Carousel nav -->
  		<a class="carousel-control left" href="#myCarousel" data-slide="prev">&lsaquo;</a>
  		<a class="carousel-control right" href="#myCarousel" data-slide="next">&rsaquo;</a>
		</div>
		<?php
	}
	else {
		?>
		<div class="alert alert-warning">
			<p>There is no media for this activity</p>
		</div>
		<?php
		}
  	?>
	</br>
</div>
<div class="col-md-2">
	<h4>Ratings</h4>
	<p>
		
		<input type="number" value="<?php echo 1 ?>" disabled="disabled" name="rating" id="give-rating" data-min="1" data-max="5" class="rating" />
	</p>
</div>
<div class="col-md-6">
	Hier komen de reviews
</div>
{'fraction_non_alphanumeric': 0.24942600709663953, 'fraction_numerical': 0.010644959298685034, 'mean_word_length': 3.368277119416591, 'pattern_counts': {'":': 0, '<': 234, '<?xml version=': 0, '>': 268, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1206337', 'n_tokens_mistral': 2028, 'n_tokens_neox': 1869, 'n_words': 325}