PHP Classes

File: sample2.php

Recommend this page to a friend!
  Classes of Gerry Danen  >  Theme Roller  >  sample2.php  >  Download  
File: sample2.php
Role: Example script
Content type: text/plain
Description: Example file
Class: Theme Roller
Generate CSS stylesheets with color palette themes
Author: By
Last change: Updated
Date: 6 years ago
Size: 4,345 bytes
 

Contents

Class file image Download
<?php
// chosen theme is stored in a session variable
session_start();

require_once
'generalFunctions.inc.php';
require_once
'themeRoller.class.php';
require_once
'buildUrl.inc.php'; // prepares $themeCSS and set session variable

//require_once 'themeContent.php'; // this does the same thing as theme.php, except that certain vars are now exposed

$options = ThemeRoller::themeOptionSelect();
$chosenTheme = $_SESSION['theme']['choice'];

echo <<<EOX
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="shortcut icon" href="/favicon.ico">
    <title>ThemeRoller: Danen-Dev</title>
    <link rel="stylesheet" type="text/css" href="
$themeCSS"/>
</head>
<body>
<div class="panel-body">
    <h1>ThemeRoller Demo</h1>
    <p id="introText">ThemeRoller provides a simple way to manage CSS themes without the need for a pre-processor.</p>
    <p>The theme.php file calls on themeContent.php, which can be modified to add additional colours, selectors, and
        rules.</p>
    <form action="sample2.php" method="get" class="rollerSpecial">
        <label for="themename">Select a seasonal colour:</label>
        <select name="themename" id="themename" style="width: 200px;">
           
$options
        </select>
        <button type="submit"> Go</button>
    </form>
    <br>
    <p class="taRight"><a style="padding:2px 4px;background-color:#FFF;" href="sample.php?
$queryParameters">Load sample 1</a></p>
<h2>Some Lorem Ipsum-type text</h2>
<p>
    Far far away, behind the word mountains, far from the countries Vokalia and Consonantia, there live the blind texts.
    Separated they live in Bookmarksgrove right at the coast of the Semantics, a large language ocean. A small river
    named Duden flows by their place and supplies it with the necessary regelialia. It is a paradisematic country, in
    which roasted parts of sentences fly into your mouth.
</p>
<p>
    Even the all-powerful Pointing has no control about the blind texts it is an almost unorthographic life One day
    however a small line of blind text by the name of Lorem Ipsum decided to leave for the far World of Grammar. The Big
    Oxmox advised her not to do so, because there were thousands of bad Commas, wild Question Marks and devious
    Semikoli, but the Little Blind Text didn’t listen. She packed her seven versalia, put her initial into the belt and
    made herself on the way. When she reached the first hills of the Italic Mountains, she had a last view back on the
    skyline of her hometown Bookmarksgrove, the headline of Alphabet Village and the subline of her own road, the Line
    Lane. Pityful a rethoric question ran over her cheek.
</p>
<p>
    A wonderful serenity has taken possession of my entire soul, like these sweet mornings of spring which I enjoy with
    my whole heart. I am alone, and feel the charm of existence in this spot, which was created for the bliss of souls
    like mine. I am so happy, my dear friend, so absorbed in the exquisite sense of mere tranquil existence, that I
    neglect my talents.
</p>
<p>
    I should be incapable of drawing a single stroke at the present moment; and yet I feel that I never was a greater
    artist than now.
</p>
<p>
    When, while the lovely valley teems with vapour around me, and the meridian sun strikes the upper surface of the
    impenetrable foliage of my trees, and but a few stray gleams steal into the inner sanctuary, I throw myself down
    among the tall grass by the trickling stream; and, as I lie close to the earth, a thousand unknown plants are
    noticed by me: when I hear the buzz of the little world among the stalks, and grow familiar with the countless
    indescribable forms of the insects and flies, then I feel the presence of the Almighty, who formed us in his own
    image, and the breath of that universal love which bears and sustains us, as it floats around us in an eternity of
    bliss; and then, my friend, when darkness overspreads my eyes, and heaven and earth seem to dwell in my soul and
    absorb its power, like the form of a beloved mistress, then I often think with longing, Oh, would I could describe
    these conceptions, could impress upon paper all that is living so full and warm within me, that it might be the
    mirror of my soul, as my soul is the mirror of the infinite God! O my friend.
</p>
</div>
</body>
</html>
EOX;

For more information send a message to info at phpclasses dot org.