-
Notifications
You must be signed in to change notification settings - Fork 2
/
article.php
113 lines (98 loc) · 4.64 KB
/
article.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
<?php
$documentLang = 'en';
if(isset($theArticle->lang) && $theArticle->lang)$documentLang = $theArticle->lang;
?><!doctype html>
<html class="no-js<?php if(isset($theArticle->classes))echo ' '.$theArticle->classes ;?>" lang="<?php echo $documentLang; ?>">
<head>
<meta charset="utf-8">
<title><?php echo $theArticle->title; ?> – Code Médula – Blog de código</title>
<?php if (isset($theArticle->subtitle)): ?>
<meta name="description" content="<?php echo $theArticle->subtitle; ?>">
<?php endif ?>
<meta name="author" content="B. Agustín Amenabar L.">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="css/styles.css?ck=<?php echo filemtime("css/styles.css"); ?>">
<script src="js/libs/modernizr-2.5.3-respond-1.1.0.min.js"></script>
<script type="text/javascript" src="https://use.typekit.com/zod4yoy.js"></script>
<script type="text/javascript">try{Typekit.load();}catch(e){}</script>
</head>
<body class="article">
<div class="mainContainer">
<header class="contiene-logo">
<a href="./"><noscript>
<img src="img/content/logo-blog-medula-code.png" alt="Logotipo Médula Diseño Code Blog">
</noscript></a></header><div class="corporis"><article>
<?php require $theArticle->path; ?>
<footer>
<?php if (isset($theArticle->pubDate)): ?>
<p class="pubDate"><span><?php if ($documentLang=='es'): ?>
Publicado
<?php else: ?>
Published
<?php endif ?>:</span> <time datetime="<?php echo $theArticle->pubDate ?>" pubdate><?php echo $theArticle->pubDate ?></time></p>
<?php if (isset($theArticle->startDate)): ?>
<p class="startDate"><span><?php if ($documentLang=='es'): ?>
Fecha de inicio
<?php else: ?>
Start date
<?php endif ?>:</span> <time datetime="<?php echo $theArticle->startDate ?>"><?php echo $theArticle->startDate ?></time></p>
<?php endif ?>
<?php if (isset($theArticle->modDate)): ?>
<p class="modDate"><span><?php if ($documentLang=='es'): ?>
Última edición
<?php else: ?>
Last modified
<?php endif ?>:</span> <time datetime="<?php echo date('c',$theArticle->modDate); ?>"><?php echo date('c',$theArticle->modDate); ?></time></p>
<?php endif ?>
<?php endif ?>
<?php if ( isset($theArticle->tags) && $theArticle->tags ): ?>
<h2>Tags: <?php echo $theArticle->tags; ?></h2>
<?php endif ?>
<h2>Comments</h2>
<div id="disqus_thread"></div>
<script type="text/javascript">
/* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
var disqus_shortname = 'codeblogmedula'; // required: replace example with your forum shortname
/* * * DON'T EDIT BELOW THIS LINE * * */
(function() {
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
dsq.src = 'https://' + disqus_shortname + '.disqus.com/embed.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
})();
</script>
<noscript>
Please enable JavaScript to view the
<a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a>
</noscript>
<a href="https://disqus.com" class="dsq-brlink">
comments powered by
<span class="logo-disqus">Disqus</span>
</a>
</footer>
</article><?php include "inc/template/aside-gral.php"; ?>
</div>
</div>
<!-- #main-container -->
<div id="footer-container">
<footer>
<h1>Artículos recientes</h1>
<?php include "inc/template/recientes.php"; ?>
<?php include "inc/template/creditos.php"; ?>
</footer>
</div>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script>window.jQuery || document.write('<script src="js/libs/jquery-1.7.2.min.js"><\/script>')</script>
<script src="js/script.js"></script>
<script>
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-23469330-1']);
_gaq.push(['_setDomainName', 'code.medula.cl']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</body>
</html>