protected static function _getConfig()
 {
     if (self::$assets_config === null) {
         try {
             self::$assets_config = \Eliya\Config('assets');
         } catch (Exception $e) {
             self::$assets_config = false;
         }
     }
 }
echo Library_Assets::get('css/style.css');
?>
" />
	<link rel="shortcut icon" type="image/x-icon" href="<?php 
echo Library_Assets::get('favicon.ico');
?>
" />
	<?php 
include 'application/views/common_js.php';
?>
	<script src="<?php 
echo Library_Assets::get('js/angular/file-reader/file-reader.js');
?>
"></script>
	<script src="<?php 
echo Library_Assets::get('js/admin/delete.js');
?>
"></script>
</head>
<body>
	<header>
		<a id="logo" href="<?php 
echo $view->base_url;
?>
">Le Chomp Enchaîné - Admin</a>
		<nav>
			<ul>
				<?php 
if ($view->currentUser->isConnected()) {
    ?>
					<?php 
<!-- Scripts for Facebook and Twitter -->
<div id="fb-root"></div>
<script async src="//connect.facebook.net/fr_FR/sdk.js#xfbml=1&version=v2.4&appId=<?php 
echo \Eliya\Config('main')->FACEBOOK['APP_ID'];
?>
"></script>
<script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script>

<script id="articleData" type="application/json"><?php 
echo $view->article->toJSON();
?>
</script>
<script src="<?php 
echo Library_Assets::get('js/angular/articles/read.js');
?>
"></script>
<main ng-app="readArticleModule" ng-controller="readArticleController as readCtrl">
	<header style="background-image: url(<?php 
echo $view->article->getMainPictureURL();
?>
);">
		<h1><?php 
echo $view->article->prop('title');
?>
</h1>
	</header>

	<aside class="article-infos">
		<?php 
if ($view->category !== null) {
    ?>
Example #4
0
<script src="<?php 
echo Library_Assets::get('js/angular/categories/manage.js');
?>
"></script>
<form action="<?php 
echo $view->base_url;
?>
admin/categories/<?php 
echo $view->end_action_url;
?>
"
	  method="post"
	  ng-app="manageCategoryModule" ng-controller="manageCategoryController as categoryCtrl"
      <?php 
echo $view->edit_mode ? 'ng-init="categoryCtrl.fileSrc = \'' . $view->category_picture . '\'"' : '';
?>
 >
	<fieldset>
		<?php 
if ($view->edit_mode) {
    ?>
			<input type="hidden" name="__method__" value="PUT" />
			<legend>Editer une catégorie</legend>
		<?php 
} else {
    ?>
			<legend>Créer une nouvelle catégorie</legend>
		<?php 
}
?>
		<label for="category-name">Nom de la catégorie :</label>
<script src="<?php 
echo Library_Assets::get('js/vendors/remarkable.js');
?>
"></script>
<script src="<?php 
echo Library_Assets::get('js/vendors/angular-1.4.1.min.js');
?>
"></script>
<script src="<?php 
echo Library_Assets::get('js/vendors/angular-sanitize-1.4.1.min.js');
?>
"></script>
<script src="<?php 
echo Library_Assets::get('js/angular/markdown/markdown.js');
?>
"></script>
<script src="<?php 
echo Library_Assets::get('js/admin/publish.js');
?>
"></script>
<!DOCTYPE html>
<html lang="fr">
	<head>
		<meta charset="utf-8" />
		<title>Erreur <?php 
echo $view->error_number;
?>
</title>
		<meta name="viewport" content="width=device-width, initial-scale=1.0">
		<link rel="shortcut icon" type="image/x-icon" href="<?php 
echo Library_Assets::get('favicon.ico');
?>
" />
		<link rel="stylesheet" type="text/css" href="<?php 
echo Library_Assets::get('css/errors.css');
?>
" />
	</head>
	<body>
        <h1>Erreur #<?php 
echo $view->error_number;
?>
 !</h1>
		<div id="scene" class="background-animation">
			<div id="chomp-container">
				<div class="chomp" id="chomp"></div>
				<p id="bubble"><?php 
echo $view->message;
?>
</p>
			</div>
	<meta charset="utf-8" />
	<title><?php 
echo $view->page_title;
?>
</title>
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<meta name="description" content="<?php 
echo $view->page_description;
?>
" />
	<link rel="stylesheet" type="text/css" href="<?php 
echo Library_Assets::get('css/style.css');
?>
" />
	<link rel="shortcut icon" type="image/x-icon" href="https:<?php 
echo Library_Assets::get('favicon.ico');
?>
" />
	<link rel="alternate" type="application/rss+xml" title="Le Chomp Enchainé - RSS" href="<?php 
echo $view->base_url;
?>
rss" />
	<?php 
if (isset($view->canonical_url)) {
    ?>
		<link rel="canonical" href="<?php 
    echo $view->canonical_url;
    ?>
" />
	<?php 
}
<h1>Modification d'un article</h1>
<hr />
<script id="articleData" type="application/json"><?php 
echo $view->article->toJSON();
?>
</script>
<script src="<?php 
echo Library_Assets::get('js/angular/articles/edit.js');
?>
"></script>
<div ng-app="editArticleModule" ng-controller="editArticleController as editCtrl">
	<main ng-if="editCtrl.previewEnabled">
		<header ng-style="editCtrl.headerStyle">
			<h1 ng-bind="editCtrl.currentArticle.title"></h1>
		</header>
		<p class="article-introduction">{{editCtrl.currentArticle.introduction}}</p>
		<article ng-bind-html="editCtrl.currentArticle.content | markdown"></article>
	</main>

	<form action="<?php 
echo $view->base_url;
?>
admin/articles/edit?id=<?php 
echo $view->article->getId();
?>
" method="post">
		<input type="hidden" name="__method__" value="PUT" />
		<input type="hidden" name="base64img" value="{{editCtrl.base64img}}" ng-if="editCtrl.base64img" />
		<div ng-hide="editCtrl.previewEnabled">
			<fieldset>
				<legend>Informations principales</legend>