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 ('software/init.php');
02  
03   $Page->template_options->title = "Browser";
04   $Page->title->subject = "Browser Information";
05   $Page->location->append ('Software', '../../');
06   $Page->location->append ('WebCore', '../../webcore/');
07   $Page->location->append ('earthli Browser Detector', '../');
08   $Page->location->append ('Demo');
09  
10   $Page->start_display ();
11  
12   $browser = $Env->browser ();
13 ?>
14 <div class="main-box">
15   <div class="text-flow">
16     <p>These are your browser's properties.</p>
17     <?php
18     $class_name = $Page->final_class_name('BROWSER_RENDERER', 'webcore/gui/browser_renderer.php');
19     /** @var $renderer BROWSER_RENDERER */
20     $renderer = new $class_name ($Page);
21     $renderer->display_as_html($browser);
22     ?>
23   </div>
24 </div>
25 <?php
26   $Page->finish_display ();
27 ?>
28