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/webcore_init.php');
02  
03   $Page->title->subject = 'Downloads';
04   $Page->location->append ('WebCore', './');
05   $Page->location->append ('Downloads');
06  
07   $downloads_path = $Page->resolve_path ('{data}software/webcore/downloads', Force_root_on);
08  
09   function file_size_for ($file_name)
10   {
11     global $Page;
12     $file_name = url_to_file_name($file_name);
13     $Result = @filesize ($file_name);
14     if ($Result !== false)
15     {
16       $Result = '(' . file_size_as_text ($Result) . ')';
17     }
18     else
19     {
20       $Result = '<span class="error">' . $Page->resolve_icon_as_html ('{icons}indicators/error', Sixteen_px, '') . ' Not available</span>';
21     }
22     return $Result;
23   }
24  
25   $Page->start_display ();
26  
27   define ("Webcore_project_id", 6);
28   require_once ('projects/init.php');
29   $projects_app = $Page->make_application (Project_application_id);
30   require_once ('projects/util/project_version_formatter.php');
31   $release_data = new PROJECT_VERSION_FORMATTER($projects_app, Webcore_project_id);   
32   
33 ?>
34 <div class="top-box">
35   <div class="button-content">
36     <a href="requirements.php" class="button">&lt; Requirements</a>
37     <a href="install.php" class="button">Install &gt;</a>
38   </div>
39 </div>
40 <div class="main-box">
41   <div class="columns text-flow">
42     <div>
43       <h2>Latest Version<a name="recommended"></a></h2>
44       <div style="padding-left: 120px; background: url(media/images/webcore_box_green_small.png) no-repeat">
45         <p>Version <span class="field"><?php echo $release_data->version; ?></span>
46           was released on <span class="field"><?php echo $release_data->release_date; ?></span>
47           (<a href="<?php echo $release_data->change_log_link; ?>">Release Notes</a>)</p>
48         <p>See the <a href="http://hg.earthli.com/">earthli Mercurial server</a> for 3.x builds and newer
49           of the earthli WebCore, which include much-improved PHP5 support!</p>
50       <p>Older versions of the earthli WebCore are hosted at SourceForge, but the latest
51         builds are only available from the <a href="http://hg.earthli.com/">earthli
52         Mercurial server</a>. The structure has  changed somewhat since the 2.7.0 release
53         and documentation updates are stil pending. Many of the principles still apply, though.
54         The old download links are still provided below.</p>
55       </div>
56       <h2 id="archives">Archives</h2>
57       <p>Older version of the earthli WebCore libraries, applications
58         and documentation are available in the <a href="<?php echo $downloads_path; ?>">archives</a>.</p>
59       <?php
60       $Page->show_message('"Lite" packages won\'t work without a copy of the WebCore.', 'info');
61       ?>
62     </div>
63     <div class="right-sidebar">
64       <h2>Instructions</h2>
65       <p>After downloading, use the following manuals to get up and running.</p>
66       <ul>
67         <li><a href="install.php">Install</a></li>
68         <li><a href="update.php">Upgrade</a></li>
69         <li><a href="first_run.php">First Run</a></li>
70         <li><a href="documentation.php">Documentation</a></li>
71       </ul>
72     </div>
73   </div>
74 </div>
75 <?php $Page->finish_display (); ?>
76