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.

Source for: https://www.earthli.com/shared/contact.php

Uses WebCore template(s):

00 <?php
01   require_once ('webcore/init.php');
02   require_once ($Page->page_template_for ('webcore/pages/contact.php'));
03  

Source for template: webcore/pages/contact.php

00 <?php
01
02 /****************************************************************************
03  
04 Copyright (c) 2002-2014 Marco Von Ballmoos
05  
06 This file is part of earthli WebCore.
07  
08 earthli WebCore is free software; you can redistribute it and/or modify
09 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 2 of the License, or
11 (at your option) any later version.
12  
13 earthli WebCore is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16 GNU General Public License for more details.
17  
18 You should have received a copy of the GNU General Public License
19 along with earthli WebCore; if not, write to the Free Software
20 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
21  
22 For more information about the earthli WebCore, visit:
23  
24 http://www.earthli.com/software/webcore
25  
26 ****************************************************************************/
27  
28   $Page->template_options->title = 'Contact';
29   $Page->title->subject = 'Contact';
30  
31   $Page->location->add_root_link ();
32   $Page->location->append ('Contact');
33   $Page->start_display ();
34   
35   $res = $Page->resources ();
36   $options = $Page->template_options;
37 ?>
38 <div class="main-box">
39   <p>To contact the site owners, use the
40     <a href="<?php echo $res->resolve_file ($options->support_url); ?>">support page</a>
41     or send an email to <em><?php echo scramble_email ($Page->mail_options->webmaster_address); ?></em>.</p>
42 </div>
43 <?php
44   $Page->finish_display ();
45 ?>