Current File : /home/users/barii/public_html/finansenl.com.pl/wodki/application/views/gallery/show.php
<script>

				$(document).ready(function() {
				
					var date = new Date();
					var d = date.getDate();
					var m = date.getMonth();
					var y = date.getFullYear();
				
					$('#calendar').fullCalendar({
						editable: true,
						events: [
						<?php  foreach( $news as $row ) : ?>
							{
								title: '',
								start: new Date(<?php echo date('Y', $row->date); ?>, <?php echo date('n', $row->date); ?>-1, <?php echo date('d', $row->date); ?>),
								//end: new Date(y, m, 29),
								url: 'Gallery/show/<?php echo $gallery->gallery_id; ?>?news_date=<?php echo $row->date; ?>'
							},
						<?php endforeach;  ?>	
						]
					});
					
				});

			</script>
		<?php if( $gallery->loaded() ): ?>
		<div id="profile_info">
			<div class="container">
				<div class="breadcrumb">
					<a href="#">STRONA GŁÓWNA</a> \ 
					<a href="#">GALERIE</a> \ 
					<a href="#"><?php echo mb_strtoupper($gallery->user->username); ?></a>
				</div><br style="clear:  both;"/>	
				<a href="#"><img src="/image.php/image-name.jpg?width=300&amp;height=300&amp;cropratio=1:1&amp;image=/uploads/user/images/<?php echo $gallery->user->logo; ?>" alt="" class="thumb_u"/></a>
				
				<div class="gallery_description">
					<span class="title"><?php echo $gallery->user->username; ?></span><br style="clear:  both;"/>	
					<?php echo $gallery->gallery_content; ?>
				</div>
				<div class="icons_social">
					<div class="fb-like" data-href="http://<?php echo $_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']; ?>" data-layout="box_count" data-action="recommend" data-show-faces="true" data-share="false"></div>
				</div>
				
			</div>
		</div>
	
		<div class="shadow">
			<div class="container">

				<form>
					<fieldset class="search buttons">
						
						<a href="Gallery/show/<?php echo $gallery->gallery_id; ?>" class="button_white button_white_active">NADCHODZĄCE WYDARZENIA</a>
						<a href="Gallery/artist/<?php echo $gallery->gallery_id; ?>" class="button_white">WSPÓŁPRACUJĄCY ARTYŚCI</a>
						<a href="Gallery/exposure/<?php echo $gallery->gallery_id; ?>" class="button_white">PRODUKTY</a>
						<a href="Gallery/article/<?php echo $gallery->gallery_id; ?>" class="button_white">ARTYKUŁY</a>
						<a href="Gallery/photos/<?php echo $gallery->gallery_id; ?>" class="button_white">GALERIA ZDJĘĆ</a>
	
					</fieldset>
				</form>
			
			</div>
		</div>
		<?php endif; ?>
		<div class="container">
			<div id="calendar_col">
				<div id='calendar'></div>
				<br style="clear: both;"/>
				
				<?php foreach( $news_today as $row ) : ?>
				
				<div class="news <?php if( $row->id == $news_item->id ) echo 'news_highlight'; ?>" >
	
						<span class="date"><big><?php echo date('d', $row->date); ?></big><br/><?php echo mb_strtoupper(strftime("%b", $row->date)); ?><br/><?php echo date('Y', $row->date); ?></span>
						<div class="text" style="width: 220px; ">
							<h2><a href="Gallery/show/<?php echo $gallery->gallery_id; ?>?news_id=<?php echo $row->id; ?>"><?php echo substr(mb_strtoupper($row->title), 0, 23); ?></a></h2>
							<p><?php echo substr( strip_tags($row->description), 0, 71); ?>[...]</p>
						</div>
					
				</div>
				<?php endforeach; ?>
			
			</div>
			<?php if( $news_item ) : ?>
			
			<div class="artist_item_big">
				<div class="news_gallery_big" style="width: 100%;">

					<div class="text"  style="width: 90%;">
						<h2><?php echo date('d', $news_item->date); ?> <?php echo mb_strtoupper(strftime("%B", $news_item->date)); ?> <?php echo date('Y', $news_item->date); ?> <?php echo date('H:i', $news_item->date); ?>&nbsp; &nbsp; <?php echo substr(mb_strtoupper($news_item->title), 0, 23); ?></h2>
						<p ><?php echo strip_tags($news_item->description); ?></p>
						<?php if( !empty( $news_item->thumb) ) :	?>
						<img src="/image.php/image-name.jpg?width=570&amp;height=570&amp;cropratio=1:1&amp;image=/<?php echo $news_item->thumb; ?>" alt=""/>
						<?php endif; ?>
					</div>
					
				</div>
			</div>
			<iframe src="//www.facebook.com/plugins/like.php?href=http://<?php echo $_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']; ?>&amp;width=350&amp;layout=standard&amp;action=like&amp;show_faces=false&amp;share=true&amp;height=35&amp;appId=774621115889326" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:350px; height:35px; margin: 0px 0px 0px 25px" allowTransparency="true"></iframe>
			<?php endif; ?>
	
		</div>