<?php if (!defined('FLUX_ROOT')) exit; 

	if( $EADev['EnableRSS']) {
		include 'rsslib.php';
	}
?>
<div class="indexPage">
	<div class="welcome">
		<h2>Welcome to <span class="dark">Classic Ragnarok Online</span>!</h2>

		<p>Play 2004 Classic Ragnarok anywhere you go! The legendary MMORPG is on your Mobile device. Ragnarok Online has led MMORPG charge through 
the PC gaming world for over 10 years, and now its ready to write a new history for the Mobile MMO world.  
			<a href="/?module=main&action=info">Read more...
			</p>
			<br><br><br>
		<div class="welcomeComment">
			<p>A horned demon emerges from the shadows carrying a massive scythe. In his path stands a party of battle-hungry adventurers.</p>
		</div>
	</div>
	<div class="banners">
		<div id="next">&nbsp;</div>
		<div id="prev">&nbsp;</div>
		<div class="cycle-slideshow" data-cycle-fx="scrollHorz" data-cycle-timeout="2000" data-cycle-prev="#prev" data-cycle-next="#next">
			<?php foreach ($EADev['banners'] as $banner): ?>
				<img src="<?php echo $this->themePath('img/' . $banner); ?>" alt="">
			<?php endforeach; ?>
		</div>
	</div>
	<div class="newsNUpdates">
		<div class="newsHeading">
			News <span>&amp; Update</span>
		</div>
<!--
	<div class = "highlight">
		<div class="highlight1">
			<?php if ($highlights[0]->link): ?>
				<div class="image"><img src="<?php echo htmlspecialchars($highlights[0]->link) ?>"></div>
		<?php endif ?>			
		<h3><?php echo htmlspecialchars($highlights[0]->subject) ?></h3>
		<div class="description">
			<p>
				<?php echo htmlspecialchars($highlights[0]->text) ?><br>
				<div class="readmore"><a href="<?php echo htmlspecialchars($highlights[0]->link) ?>">Read More</a></div>
			</p>
		</div>
		</div>
		<div class="highlight2">
			<?php if ($highlights[1]->link): ?>
				<div class="image"><img src="<?php echo htmlspecialchars($highlights[1]->link) ?>"></div>
			<?php endif ?>
			<h3><?php echo htmlspecialchars($highlights[1]->subject) ?></h3>
			<div class="description">
			<p>
				<?php echo htmlspecialchars($highlights[1]->text) ?><br>
				<div class="readmore"><a href="<?php echo htmlspecialchars($highlights[1]->link) ?>">Read More</a></div>
			</p>
			</div>
		</div>
	</div>
	<br>
--!>
	<div class="visible-lg visible-md">
		<table class=vertical-table cellspacing = 5>
			<tr>
				<td align='center' width=135 valign='top'><a href = '?module=quest_db&action=60000' class = 'gen_small'><img src='data/quest_intro/q60000pic.gif'><br><a href = '?module=quest_db&action=60000' class = 'nbu' title='Click here to go to view the list of Job Change quests'>Job Change Quest</a></td>	
				<td align='center' width=135 valign='top'><a href = '?module=quest_db&action=50000' class = 'gen_small'><img src='data/quest_intro/q50000pic.gif'><br><a href = '?module=quest_db&action=50000' class = 'nbu' title='Click here to go to view the list of Job Platinum Skill quests'>Job Platinum Skill</a></td>
				<td align='center' width=135 valign='top'><a href = '?module=quest_db&action=40000' class = 'gen_small'><img src='data/quest_intro/q40000pic.gif'><br><a href = '?module=quest_db&action=40000' class = 'nbu' title='Click here to go to view the list of Other Mixing quests'>Other Mixing</a></td>
				<td align='center' width=135 valign='top'><a href = '?module=quest_db&action=70000' class = 'gen_small'><img src='data/quest_intro/q70000pic.gif'><br><a href = '?module=quest_db&action=70000' class = 'nbu' title='Click here to go to view the list of Dungeon / Map Access quests'>Dungeon Access</a></td>
			</tr>
		</table>
	</div>
		<div class="tab news">
			<ul>
				<li><a class="active" href="#all">All</a></li> 
				<li><a href="#news">News</a></li>
				<li><a href="#update">Update</a></li>
				<li><a href="#event">Event</a></li>
			</ul>
			<div class="tab-content">
				<div id="all">
					<?php if ($allentry): ?>
						<table>	
						<?php foreach ($allentry as $allentries): ?>
							<tr>
								<?php if ($allentries->category == 2): ?>
							        	<td><span class="update">&nbsp;</span></td>
								<?php endif ?>
								<?php if ($allentries->category == 3): ?>
							        	<td><span class="event">&nbsp;</span></td>
								<?php endif ?>
								<?php if ($allentries->category == 4): ?>
							        	<td><span class="news">&nbsp;</span></td>
								<?php endif ?>
								<td align="left">
									<?php if ($allentries->link): ?>
										<a href="<?php echo htmlspecialchars($allentries->link) ?>"><?php echo htmlspecialchars($allentries->subject) ?></a><?php echo date('d-m-Y', strtotime($allentries->timestamp)) ?>
									<?php else:?>
										<strong><?php echo htmlspecialchars($allentries->subject) ?></strong><br><?php echo date('d-m-Y', strtotime($allentries->timestamp)) ?>
									<?php endif?>
									<p><?php echo htmlspecialchars($allentries->text) ?></p>
								</td>
							</tr>
						<?php endforeach ?>
						</table>
					<?php endif ?>
				</div>
				<div id="news" style="display: none;">
					<?php if ($announcement): ?>
						<table>	
						<?php foreach ($announcement as $announcements): ?>
							<tr>
								<td><span class="news">&nbsp;</span></td>
								<td align="left">
									<?php if ($announcements->link): ?>
										<a href="<?php echo htmlspecialchars($announcements->link) ?>"><?php echo htmlspecialchars($announcements->subject) ?></a><?php echo date('d-m-Y', strtotime($announcements->timestamp)) ?>
									<?php else:?>
										<strong><?php echo htmlspecialchars($announcements->subject) ?></strong><br><?php echo date('d-m-Y', strtotime($announcements->timestamp)) ?>
									<?php endif?>
									<p><?php echo htmlspecialchars($announcements->text) ?></p>
								</td>
							</tr>
						<?php endforeach ?>
						</table>
					<?php endif ?>
				</div>
				<div id="update" style="display: none;">
					<?php if ($update): ?>
						<table>	
						<?php foreach ($update as $updates): ?>
							<tr>
								<td><span class="update">&nbsp;</span></td>
								<td align="left">
									<?php if ($updates->link): ?>
										<a href="<?php echo htmlspecialchars($updates->link) ?>"><?php echo htmlspecialchars($updates->subject) ?></a><?php echo date('d-m-Y', strtotime($updates->timestamp)) ?>
									<?php else:?>
										<strong><?php echo htmlspecialchars($updates->subject) ?></strong><br><?php echo date('d-m-Y', strtotime($updates->timestamp)) ?>
									<?php endif?>
									<p><?php echo htmlspecialchars($updates->text) ?></p>
								</td>
							</tr>
						<?php endforeach ?>
						</table>
					<?php endif ?>
				</div>
				<div id="event" style="display: none;">
					<?php if ($event): ?>
						<table>	
						<?php foreach ($event as $events): ?>
							<tr>
								<td><span class="event">&nbsp;</span></td>
								<td align="left">
									<?php if ($events->link): ?>
										<a href="<?php echo htmlspecialchars($events->link) ?>"><?php echo htmlspecialchars($events->subject) ?></a><?php echo date('d-m-Y', strtotime($events->timestamp)) ?>
									<?php else:?>
										<strong><?php echo htmlspecialchars($events->subject) ?></strong><br><?php echo date('d-m-Y', strtotime($events->timestamp)) ?>
									<?php endif?>
									<p><?php echo htmlspecialchars($events->text) ?></p>
								</td>
							</tr>
						<?php endforeach ?>
						</table>
					<?php endif ?>
				</div>
			</div>
		</div>
	</div>
    
</div>