ajout du projet des nombres univers
This commit is contained in:
27
page.php
27
page.php
@@ -29,6 +29,17 @@ if (file_exists('articles/'.$article.'/styles.html'))
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
|
||||
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
|
||||
|
||||
<!--
|
||||
-- From https://mathjax.org
|
||||
-->
|
||||
<script src='https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/latest.js?config=TeX-MML-AM_CHTML' async></script>
|
||||
|
||||
<!--
|
||||
-- From https://highlightjs.org
|
||||
-->
|
||||
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.15.6/styles/atom-one-dark.min.css">
|
||||
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.15.6/highlight.min.js"></script>
|
||||
<script>hljs.initHighlightingOnLoad();</script>
|
||||
</head>
|
||||
<body id="myPage" data-spy="scroll" data-target=".navbar" data-offset="60">
|
||||
|
||||
@@ -41,14 +52,15 @@ if (file_exists('articles/'.$article.'/styles.html'))
|
||||
<span class="icon-bar"></span>
|
||||
</button>
|
||||
<a class="navbar-brand" href="..">
|
||||
<img id="logo_topisto" src="images/topisto_vert.png" style="border-radius:6px;display:inline-block;height:72px;box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19)">
|
||||
<span style="vertical-align:text-bottom;display:inline-block;color:black;font-family: Bangers, sans-serif;font-size: 70px;">TOPISTO</span>
|
||||
<img id="logo_topisto" src="images/topisto_vert.png" style="border-radius:6px;display:inline-block;height:72px;;box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19)">
|
||||
<span style="vertical-align:text-bottom;display:inline-block;color:black;font-family: Bangers, sans-serif;font-size: 60px;text-shadow: 2px 2px #ffffff">TOPISTO</span>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<?php
|
||||
// Le chapeau
|
||||
if (file_exists('articles/'.$article.'/header.html'))
|
||||
{
|
||||
$header = file_get_contents('articles/'.$article.'/header.html');
|
||||
@@ -56,12 +68,23 @@ if (file_exists('articles/'.$article.'/header.html'))
|
||||
$header = str_replace('ARTICLE',$article,$header);
|
||||
echo $header;
|
||||
}
|
||||
// Le corps
|
||||
if (file_exists('articles/'.$article.'/content.html'))
|
||||
{
|
||||
$contenu = file_get_contents('articles/'.$article.'/content.html');
|
||||
$contenu = str_replace('ARTICLE',$article,$contenu);
|
||||
echo $contenu;
|
||||
}
|
||||
// Les sous pages
|
||||
$odd_even = 0;
|
||||
foreach (glob("articles/$article/spages/*.html") as $filename) {
|
||||
$odd_even = 1 - $odd_even;
|
||||
$spage = file_get_contents($filename);
|
||||
if ($odd_even == 0) $spage = str_replace('bg-grey','bg-grey-odd',$spage);
|
||||
else $spage = str_replace('bg-grey','bg-grey-even',$spage);
|
||||
|
||||
echo str_replace('ARTICLE',$article,$spage);
|
||||
}
|
||||
?>
|
||||
|
||||
</body>
|
||||
|
||||
Reference in New Issue
Block a user