|
{{ FileName }}.php ➕<!doctype html>
<html amp lang="en"> <head> <meta charset="utf-8"> <title>{{ Title }} | {{ Site }}</title> <meta name="description" content="{{ Description }}"> <meta name="keywords" content="{{ KeyWords }}"> <meta name="author" content="Moose Loose LLC"> <link rel="canonical" href="index.html" /> <script async custom-element="amp-image-lightbox" src="https://cdn.ampproject.org/v0/amp-image-lightbox-0.1.js"></script> <script async custom-element="amp-carousel" src="https://cdn.ampproject.org/v0/amp-carousel-0.1.js"></script> <script async custom-element="amp-youtube" src="https://cdn.ampproject.org/v0/amp-youtube-0.1.js"></script> <script async custom-element="amp-iframe" src="https://cdn.ampproject.org/v0/amp-iframe-0.1.js"></script> <script async custom-element="amp-sidebar" src="https://cdn.ampproject.org/v0/amp-sidebar-0.1.js"></script> <meta name="viewport" content="width=device-width,minimum-scale=1,initial-scale=1"> <script type="application/ld+json"> { "@context": "http://schema.org", "@type": "NewsArticle", "headline": "Open-source framework for publishing content", "datePublished": "2016-10-11T04:45:07-05:00", "image": [ "logo.jpg" ] } </script> <style amp-boilerplate>body{-webkit-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-moz-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-ms-animation:-amp-start 8s steps(1,end) 0s 1 normal both;animation:-amp-start 8s steps(1,end) 0s 1 normal both}@-webkit-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-moz-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-ms-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-o-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}</style><noscript><style amp-boilerplate>body{-webkit-animation:none;-moz-animation:none;-ms-animation:none;animation:none}</style></noscript> <style amp-custom> *{Font-family:sans-serif;} amp-sidebar {color:{{ color }};font-family:sans-serif;line-height:20px;} amp-sidebar a{color:{{ color }};text-decoration:none;line-height:16px;} amp-sidebar a:hover{color:{{ hover }}} amp-sidebar { background-color:{{ bg }}; width: 250px; padding-right: 10px; } .amp-sidebar-image { line-height: 100px; vertical-align:middle; } .amp-close-image { top: 15px; left: 225px; cursor: pointer; } li { margin-bottom: 20px; list-style: none; } button { margin-left: 20px; } .toggle { background-color: {{ bg }}; padding-left:6px; padding-right:6px; padding-top:3px; padding-bottom:3px; color: {{ color }}; border:1px solid #000; background-image: url(images/button_bg.jpg); } .toggle:hover { color:#fff background-color: #006; border:1px solid #000000; background-image: url(images/button_bg_over.jpg); } .{{ loopclass }}{padding:3px;border:0px solid red;width:95%} .{{ loopclass }}h{text-align:right;background-image:url(admin/header.jpg);height:50px;background-repeat: no-repeat;} .{{ loopclass }}td {font-size:14pt;font-family:sans-serif;} .{{ loopclass }}strong {font-size:18pt;font-family:sans-serif;} </style> <?php $file = "admin/{{ FileName }}_Page.xml"; $ROOT = simplexml_load_file($file) or die ("Yikes!"); $Title=$ROOT->CHANNEL->ITEM->Title; $Content=$ROOT->CHANNEL->ITEM->Content; $Notes=$ROOT->CHANNEL->ITEM->Notes; ?> <script async src="https://cdn.ampproject.org/v0.js"></script> </head> <body> <center> <table class="{{loopclass }}" style="width:95%"> <tr><th class="{{ loopclass }}h"><button class="toggle" on='tap:sidebar.toggle'>MENU</button></td></tr> <tr><td class="{{ loopclass }}strong"><?php echo $Title; ?></td></tr> <tr><td class="{{ loopclass }}td"><?php echo $Content; ?></td></tr> </table> </center> <?php include ("admin/nav.php"); ?> </body> </html>
|