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/support.php

Uses WebCore template(s):

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

Source for template: webcore/pages/support.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 = 'Support';
29   $Page->title->subject = 'Support';
30  
31   $res = $Page->resources ();
32   $options = $Page->template_options;
33  
34   $class_name = $Page->final_class_name ('SUBMIT_SUPPORT_FORM', 'webcore/forms/submit_support_form.php');
35   $form = new $class_name ($Page);
36  
37   $browser = $Env->browser();
38  
39   $form->process ($browser);
40   if ($form->committed ())
41   {
42     $Env->redirect_local ('exception_submitted.php');
43   }
44  
45   $Page->location->add_root_link ();
46   $Page->location->append ('Support');
47   $Page->start_display ();
48 ?>
49 <div class="main-box">
50   <div class="text-flow">
51     <p>If you're having trouble seeing something on this site, you should
52       <a href="<?php echo $res->resolve_file ($options->browser_url); ?>">test
53       your browser</a>.</p>
54     <p>If you have other questions about this site or the software running it,
55       fill out the form below and we'll get back to you as soon as possible.</p>
56   </div>
57   <div class="form-content">
58     <?php $form->display (); ?>
59   </div>
60 </div>
61 <?php
62   $Page->finish_display ();
63 ?>
64