File: /var/www/vhosts/onlinedev.com/httpdocs/news.php
<?php
require_once('admin/app.php');
date_default_timezone_set('Europe/Paris');
if (!$model = News::findByUrl($_REQUEST['url']))
{
App::_redirect(App::getBaseUrl());
}
$n = new News();
$n->parent_id = '0';
$news = $n->getArray(0, 5, 'id desc');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<?php echo App::getMeta(array('title' => 'Agence de référencement Paris : '.$model->title, 'description' => 'Agence de référencement Paris : '.$model->title))?>
<link href="<?php echo App::getBaseUrl() ?>include/style.css" rel="stylesheet" type="text/css" />
<link rel="Shortcut Icon" href="<?php echo App::getBaseUrl() ?>favicon.ico" />
<script type="text/javascript" src="https://apis.google.com/js/plusone.js"> {lang: 'fr'}</script>
<script type="text/javascript" src="<?php echo App::getBaseUrl() ?>include/jquery-1.6.1.min.js"></script>
<script type="text/javascript" src="<?php echo App::getBaseUrl() ?>include/add_bookmark.jquery.js"></script>
</head>
<body>
<div id="page">
<div id="left">
<?php echo App::loadPartial('menu_left')?>
<h2 class="title2"><a href="<?php echo App::getBaseUrl() ?>actualites_ecommerce.html"><span>Actualités référencement sites e-commerce</span></a></h2>
<ul class="m2">
<?php foreach ($news as $item): ?>
<li>
<a href="<?php echo App::getBaseUrl() ?>news/<?php echo $item['url'] ?>.html" title="<?php echo $item['title'] ?>" <?php if ($item['id'] == $model->id): ?>class="on"<?php endif; ?>><?php echo $item['title'] ?></a>
<?php $children = News::getById($item['id'])->getChildren(); if (count($children) > 0): ?>
<ul>
<?php foreach ($children as $child): ?>
<li>
<a href="<?php echo App::getBaseUrl() ?>news/<?php echo $child['url'] ?>.html" title="<?php echo $child['title'] ?>"><?php echo $child['title'] ?></a>
</li>
<?php endforeach; ?>
</ul>
<?php endif; ?>
</li>
<?php endforeach; ?>
</ul>
<div class="devis">
<p class="tel">+33 1 41 62 10 61<br />
+33 6 07 49 90 52</p>
<p class="mail"><a href="mailto:contact@onlinedev.com"><img src="<?php echo App::getBaseUrl() ?>images/mail.gif" alt="" /></a></p>
</div>
</div>
<div id="cont">
<div id="header">
<?php echo App::loadPartial('menu_top')?>
<div class="info">
<div class="fil-Ariane">
<a href="http://www.onlinedev.com/" title="Agence de référencement naturel Paris"> Agence de référencement naturel Paris /</a> <a href="http://www.onlinedev.com/referencement-site-internet.html" title="Référencement naturel site internet">Référencement naturel site internet / </a>
<b> <?php echo $model->title; ?></b>
</div>
<a href="<?php echo App::getBaseUrl() ?>mon_projet.html" title="Demande de devis référencement naturel"><img src="<?php echo App::getBaseUrl() ?>images/star.png" alt="Demande de devis référencement naturel" class="star3" /></a>
<!--<script type="text/javascript">
//<![CDATA
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="764" height="75">');
document.write('<param name="allowScriptAccess" value="sameDomain" />');
document.write('<param name="movie" value="<?php echo App::getBaseUrl() ?>images/flash.swf" />');
document.write('<param name="loop" value="false" />');
document.write('<param name="quality" value="high" />');
document.write('<param name="menu" value="false" />');
document.write('<param name="wmode" value="transparent" />');
document.write('<embed src="<?php echo App::getBaseUrl() ?>images/flash.swf" wmode="transparent" quality="high" menu="false" loop="false" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="764" height="75"></embed>');
document.write('</object>');
//]]>
</script>-->
</div>
</div>
<div id="center9" class="news">
<h4 class="type2"><?php echo $model->title; ?></h4>
<p class="date">
Article publié le <?php echo date('d/m/Y', strtotime($model->created_at)); ?>
</p>
<p class="share">
<!--Bookmark-->
<span id="addBookmarkContainer"></span>
<script type="text/javascript">
jQuery(document).ready(function(){
addBookmarkObj.linkText = 'Ajouter aux favoris';
addBookmarkObj.addImageLink('','<?php echo App::getBaseUrl() ?>images/icon_fav.png');
});
</script>
<!--Facebook-->
<a href="http://www.facebook.com/share.php?u=<?php echo App::getBaseUrl() ?>" onclick="return fbs_click()" target="_blank"><img width="24" src="<?php echo App::getBaseUrl() ?>images/icon_facebook.png" alt="" /></a>
<script>function fbs_click() {u=location.href;t=document.title;window.open('http://www.facebook.com/sharer.php?u='+encodeURIComponent(u)+'&t='+encodeURIComponent(t),'sharer','toolbar=0,status=0,width=626,height=436');return false;}</script>
<!--Twitter-->
<a href="http://twitter.com/share?url=<?php echo App::getBaseUrl() . $_SERVER['REQUEST_URI'] ?>" target="_blank" title="<?php echo "Poster sur Twitter";?>"><img width="24" src="<?php echo App::getBaseUrl() ?>images/icon_twitter.png" alt="" /></a>
<!--Google+1-->
<g:plusone count="true"></g:plusone>
</p>
<div class="cleaner"></div>
<p><?php echo $model->body; ?></p>
<p>
<input type="submit" name="submit" value="Retour" class="but1" onclick="javascript:history.back(-1)" />
<!--<input type="submit" name="submit" value="Optimisation SEO : techniques" class="but1" onclick="parent.location='<?php //echo App::getBaseUrl() ?>actualites_ecommerce.html'" />-->
<a href="<?php echo App::getBaseUrl() ?>actualites_ecommerce.html" class="but1" alt="Optimisation SEO : techniques" title="Optimisation SEO : techniques" style="
font-weight: bold;
font-size: 13px;
text-decoration: none;
padding: 3px 15px 6px 15px;
line-height: 5px;
"> Optimisation SEO : techniques </a>
</p>
</div>
</div>
<div class="cleaner"></div>
</div>
<?php echo App::loadPartial('footer')?>
</body>
</html>