PHP Classes

File: docs/banner.i.php

Recommend this page to a friend!
  Packages of Barton Phillips   Simple Site Class   docs/banner.i.php   Download  
File: docs/banner.i.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Simple Site Class
Simple Site Class
Author: By
Last change:
Date: 4 days ago
Size: 1,514 bytes
 

Contents

Class file image Download
<?php
$_site
= require_once getenv("SITELOADNAME");
$S = new SiteClass($_site);
$S->banner = "<h1>Banner</h1>";
$S->msg2 = "<br>Contact me <a href='mailto:bartonphillips@gmail.com'>bartonphillips@gmail.com</a>";
$S->css =<<<EOF
@media (max-width: 700px) {
  pre {
    font-size: 12px;
    white-space: pre-wrap;
    overflow-wrap: break-word; /* wrap only when needed */
  }
}
EOF;

[
$top, $bottom] = $S->getPageTopBottom();

echo <<<EOF
$top
<hr>
<pre>
&lt;?php

if(!class_exists('dbPdo')) {
  header("location://https://YOUR_DOMAIN/NotAuthorized.php?site=YOUR_DOMAIN&page=banner.i.php");
}

return &lt;&lt;&lt;EOF
&lt;header&gt;
  &lt;!-- YOUR_DOMAIN/includes/banner.i.php --&gt;
  &lt;a href="
$b->logoAnchor">$b->image1&lt;/a&gt;
 
$b->image2
 
$b->mainTitle
  &lt;noscript&gt;
    &lt;p style='color: red; background-color: #FFE4E1; padding: 10px'>
     
$b->image3
      Your browser either does not support &lt;b&gt;JavaScripts&lt;/b&gt; or you have JavaScripts disabled, in either case your browsing
      experience will be significantly impaired. If your browser supports JavaScripts but you have it disabled consider enabaling
      JavaScripts conditionally if your browser supports that. Sorry for the inconvienence.&lt;/p&gt;
    &lt;p&gt;The rest of this page will not be displayed.&lt;/p&gt;
    &lt;style&gt;#content { display: none; }&lt;/style&gt;
  &lt;/noscript&gt;
&lt;/header&gt;
&lt;div id="content"&gt; &lt;!-- See footer.i.php for ending </div>. --&gt;
&#69;OF;
</pre>
<hr>
$bottom
EOF;