<?php
	// Assets::add( '' );
?>
<?php $__env->startSection( 'foot' ); ?>
	<script>$( ".gallery" ).magnificPopup( { delegate: "a", type: "image", gallery: { enabled: true } } );</script>
<?php $__env->stopSection(); ?>

<?php $__env->startSection( 'content' ); ?>
<div class="cc padding" id="main-content">
	<h1><?php echo $content->title; ?></h1>
	<?php
		echo do_gallery( $content->body, $content->Attachments );
	?>
	
	<?php if( count( $content->Attachments ) && false === strpos( $content->body, '[gallery]' ) ): ?>
		<hr>
		<h2><?php echo trans( 'course.downloads' ); ?></h2>
		<div class="pure-g" id="attachments">
			<?php foreach( $content->Attachments as $attachment ): ?>
				<div class="attachment pure-u-1 pure-u-sm-1-2 pure-u-md-1-4 pure-lg-1-6 l-box">
					<a target="_BLANK" href="<?php echo $attachment->url; ?>"><div class="filetype filetype-<?php echo $attachment->filetype_css_class; ?>"></div> <?php echo $attachment->filename; ?></a>
				</div>
			<?php endforeach; ?>
		</div>
	<?php endif; ?>
</div>
<?php $__env->stopSection(); ?>