PHP Classes

File: template

Recommend this page to a friend!
  Classes of Oleksiy Zubovskyy   HTML Data Parser   template   Download  
File: template
Role: Example script
Content type: text/plain
Description: Example template
Class: HTML Data Parser
Parse HTML and template files
Author: By
Last change: new file name
Date: 15 years ago
Size: 1,504 bytes
 

Contents

Class file image Download
<h3>
{{weather}}
</h3>
{{}}
<dl>
{{}}
<dt>
Feels Like:
</dt>
<dd>
{{}}
</dd>
{{}}
<dt>
Barometer:
</dt>
<dd>
{{barometer}}
</dd>
{{}}
<dt>
Humidity:
</dt>
<dd>
{{humidity}}
</dd>
{{}}
<dt>
Visibility:
</dt>
<dd>
{{}}
</dd>
{{}}
<dt>
Dewpoint:
</dt>
<dd>
{{dewpoint}}
</dd>
{{}}
<dt>
Wind:
</dt>
<dd>
{{wind}}
</dd>
{{}}
<dt>
Sunrise:
</dt>
<dd>
{{sunrise}}
</dd>
{{}}
<dt>
Sunset:
</dt>
<dd>
{{sunset}}
</dd>
{{}}
</dl>
{{}}
<div class="forecast-temp">
{{}}
<h3>
{{temp}}
</h3>
{{}}
<p>
{{temp.high.low}}
</p>
||
<td>
<div style="background-image:{{}}">
{{weather.0}}
</div>
</td>
<td>
<div style="background-image:{{}}">
{{weather.1}}
</div>
</td>
<td>
<div style="background-image:{{}}">
{{weather.2}}
</div>
</td>
<td>
<div style="background-image:{{}}">
{{weather.3}}
</div>
</td>
<td>
<div style="background-image:{{}}">
{{weather.4}}
</div>
</td>
||
<tr class="fiveday-temps">
{{}}
<td>
High: {{high.0}}
<div>
Low: {{low.0}}
</div>
</td>
<td>
High: {{high.1}}
<div>
Low: {{low.1}}
</div>
</td>
<td>
High: {{high.2}}
<div>
Low: {{low.2}}
</div>
</td>
<td>
High: {{high.3}}
<div>
Low: {{low.3}}
</div>
</td>
<td>
High: {{high.4}}
<div>
Low: {{low.4}}
</div>
</td>
</tr>
||
<th>
{{weekday.0}}
</th>
<th>
{{weekday.1}}
</th>
<th>
{{weekday.2}}
</th>
<th>
{{weekday.3}}
</th>
<th>
{{weekday.4}}
</th>
||
<em>
Current conditions as of {{time}}
</em>