disqus got lost while refactoring
authorMichael Wallner <mike@php.net>
Fri, 17 Jan 2014 08:50:00 +0000 (09:50 +0100)
committerMichael Wallner <mike@php.net>
Fri, 17 Jan 2014 08:50:00 +0000 (09:50 +0100)
mdref/Action.php
public/index.css
views/layout.phtml

index 5737cfeba629a4ebff203efa560b660cdf83994b..46ab7557e391fd1360a790d6e3c676496ecc0f8b 100644 (file)
@@ -68,6 +68,7 @@ class Action extends Observer
                        $pld = $ctl->getPayload();
                        $pld->baseUrl = $this->baseUrl;
                        $url = $this->baseUrl->mod($ctl->getRequest()->getRequestUrl());
+                       $pld->permUrl = implode("/", $this->baseUrl->params($url));
                        
                        if ($this->serveReference($url, $pld) || $this->serveInternal($url, $pld)) {
                                return;
index dd0e8eb53fd2f6fdb572266c5731116edfe03ed6..ce3f5aa3515c2e7df4bd7d9ba0f3f4fbc51479d8 100644 (file)
@@ -9,6 +9,7 @@ body {
        font-size: 1.5em;
        margin: 0;
        padding: 0;
+       padding-bottom: 5em;
        color: #3f3f3f;
 }
 
@@ -120,7 +121,7 @@ h1 code {
        line-height: 1.33;
 }
 
-footer, h1, li h3 {
+footer, h1, li h3, th {
        background: #708090;
        color: #f5f5dc;
 }
@@ -166,12 +167,15 @@ footer {
        font-size: smaller;
        text-align: center;
        clear: both;
-       margin-top: 8em;
+       position: fixed;
+       bottom: 0;
+       width: 100%;
+       padding: 0;
 }
 
 footer ul {
        margin: 0;
-       padding: 0;
+       padding: 1em 0;
 }
 
 footer li {
@@ -187,3 +191,14 @@ footer a {
 footer a:hover {
        text-decoration: underline;
 }
+
+table {
+       border-collapse: collapse;
+}
+th, td {
+       padding: .4em;
+}
+
+h1, footer, table, .sidebar, pre>code, li h3 {
+       box-shadow: 0 0 4px #708090;
+}
index 3bd409c8dff46595a13aba2a4dc2fdef9ac295ba..2a7d3d18a0fdc7453867854dc335999734efe3ad 100644 (file)
@@ -6,7 +6,7 @@
                        <?php if (!empty($title)) : ?>
                                <?= $title ?> -
                        <?php endif; ?>
-                               mdref
+                       mdref
                </title>
                <base href="<?= $baseUrl ?>">
                <link rel="stylesheet" href="index.css">
                        <?php include __DIR__."/index.phtml" ?>
                <?php endif; ?>
 
+               <?php if ($_SERVER["SERVER_NAME"] != "localhost2") : ?>
                <div id="disqus_thread"></div>
+               <script>
+                       var disqus_shortname = 'mdref';
+                       var disqus_identifier = '<?=$permUrl?>';
+                       (function() {
+                               var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
+                               dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
+                               (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
+                       })();
+               </script>
+               <?php endif; ?>
 
                <footer>
                        <?php include __DIR__."/footer.phtml" ?>