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 ('webcore/init.php');
02
03 $Page->title->subject = "Webcam";
04
05 $Page->template_options->icon = '{site_icons}products/webcam';
06 $Page->template_options->title = 'Webcam';
07
08 $Page->location->add_root_link ();
09 $Page->location->append ('WebCam');
10 $Page->location->append ('"Live" image');
11
12 $Page->start_display ();
13 ?>
14 <div class="top-box">
15 <div class="button-content">
16 <a class="button" href="gallery.php">Gallery</a>
17 </div>
18 </div>
19 <div class="main-box">
20 <div class="text-flow">
21 <p>Sometimes it's on, sometimes it's not. Check the date at the bottom of
22 the picture to see if something's happening. If the picture isn't there,
23 refresh the page. It will show up.</p>
24 <p>For a while, there was a 12-hour a day webcam running to track
25 <a href="/users/oz">Oz</a>, but it's fallen into disuse. You can still see
26 a gallery of screen captures though.</p>
27 <p><img class="frame" src="autosnap.jpg"></p>
28 </div>
29 </div>
30 <?php $Page->finish_display (); ?>
31