Current File : /home/users/barii/public_html/finansenl.com.pl/wodki/application/views/gallery/news.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('j', $row->date); ?>),
								//end: new Date(y, m, 29),
								url: 'Gallery/show/<?php echo $row->user_id; ?>?news_date=<?php echo $row->date; ?>'
							},
						<?php endforeach;  ?>	
						]
					});
					
				});

			</script>
		
	<div id="profile_info">
			<div class="container">
				<div class="breadcrumb">
					<a href="/">STRONA GŁÓWNA</a> \ 
					<a href="Gallery">GALERIE</a> 
				</div><br style="clear:  both;"/>	
				<span class="title nomargin">Galerie</span>
				<div class="sort">
					SORTOWANIE<br/>
					<a href="Gallery" <?php if( !empty( $sort ) AND $sort == 'order' AND empty($filtr) ) echo 'class="blue"'; ?>>WSZYSTKIE</a>&nbsp;&nbsp;|&nbsp;&nbsp;
					<a href="Gallery?sort=gallery_id&direct=desc" <?php if( !empty( $sort ) AND $sort == 'gallery_id' ) echo 'class="blue"'; ?>>OSTATNIO DODANE</a>&nbsp;&nbsp;|&nbsp;&nbsp;
					<a href="Gallery?sort=viewed&direct=desc" <?php if( !empty( $sort ) AND $sort == 'viewed' ) echo 'class="blue"'; ?>>POPULARNE</a>&nbsp;&nbsp;|&nbsp;&nbsp;
					<a href="Gallery/news" class="blue">NADCHODZĄCE WYDARZENIA</a>
				</div>
			</div>
		</div>
	
	
		<div class="container">
			<div id="calendar_col">
				<div id='calendar'></div>
				<br style="clear: both;"/>
				
				<?php foreach( $news_today as $row ) : ?>
				
				<div class="news">
	
						<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 $row->user_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); ?> &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=/uploads/article/<?php echo $news_item->thumb; ?>" alt=""/>
						<?php endif; ?>
					</div>
					
				</div>
			</div>
			<?php endif; ?>
	
		</div>