The best way to learn how to use the WebCore is by example. See the documentation for more information.

The requested URL is always shown first; if a page uses one or more WebCore templates, those are shown afterwards.

00 <?php
01   include_once ('quake/init.php');
02  
03   $Page->title->subject = 'Models';
04  
05   $Page->location->append ("Quake III Arena", "./");
06   $Page->location->append ("Models");
07  
08   $path = $Page->resolve_path ('{data}quake/images/models/');
09  
10   $Page->start_display ();
11 ?>
12 <div class="main-box">
13   <div class="text-flow">
14     <h2>Horny</h2>
15     <p>
16       <a class="align-right" href="<?php echo $path; ?>p_horny.jpg"><img class="frame" src="<?php echo $path; ?>p_horny_tn.jpg" alt="Horny Model"></a>
17     </p>
18     <table class="basic columns left-labels">
19       <tr>
20         <th>Height</th>
21         <td>6' 8"</td>
22       </tr>
23       <tr>
24         <th>Weight</th>
25         <td>400 lbs</td>
26       </tr>
27       <tr>
28         <th>Genotype</th>
29         <td>Reaper</td>
30       </tr>
31       <tr>
32         <th>Gender</th>
33         <td>Male</td>
34       </tr>
35     </table>
36     <p>A warrior first, last and always, the Horned Reaper is not afraid to get his hands dirty. Horny
37     has been known to take scythe-in-hand to see the final disposition of some hapless hero.</p>
38     <p class="button-content">
39       <a class="button" href="http://dk2.ea-europe.com/uk/dk2/content/downloads/Q3A/index.html">Download</a>
40     </p>
41     <p class="info-box-bottom">Horny was released by Electronic Arts and appears in the game <span class="reference">Dungeon Keeper.</span></p>
42   </div>
43 </div>
44 <?php $Page->finish_display (); ?>
45
46