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->template_options->title = 'Albums';
04  
05   $Page->location->append ('WebCore', './');
06   $Page->location->append ('Albums');
07  
08   $Page->start_display ();
09  
10   $demo_url = $Page->resolve_path ('{root}/albums');
11   $project_url = $Page->resolve_file ('{root}/projects/view_folder.php?id=3');
12   $renderer = $Page->make_controls_renderer ();
13   $renderer->button_width = '10em';
14 ?>
15 <div class="main-box">
16   <div class="columns text-flow">
17     <div>
18       <p>
19         This is a <a href="./">WebCore</a> application that adds full-featured
20         online photo albums to your web site.</p>
21       <ul>
22         <li>Organizes photos and journals into albums</li>
23         <li><a href="features.php#upload">Upload</a> images and automatically create <a href="features.php#imaging">thumbnails</a></li>
24         <li>Automatically <a href="features.php#imaging">extract dates</a> from pictures taken with a digital camera</li>
25         <li>Upload in bulk using a <a href="features.php#archives">ZIP</a> file</li>
26         <li>Send updates to <a href="features.php#publishing">subscribers</a> in HTML or plain text format</li>
27         <li><a href="features.php#printing">Print</a> entire albums or individual pictures or journals</li>
28         <li>Provides a calendar view for easy browsing</li>
29         <li><a href="features.php#searching">Search</a> and sort pictures and journals any way you like</li>
30         <li>Host images on a separate, remote server</li>
31         <li><a href="features.php#security">Protect</a> your albums, controlling access with user accounts</li>
32         <li>...and much more!</li>
33       </ul>
34       <p>Check out a <a href="<?php echo $demo_url; ?>">live demo</a>, the <a href="<?php echo $project_url; ?>">project status</a>
35         or <a href="download.php">download</a> a copy for your own web site.</p>
36     </div>
37     <div class="right-sidebar">
38       <p><img src="media/images/albums_box_green.png" alt="Albums Box"></p>
39       <p>Latest version is <span class="field">3.4</span></p>
40       <p><?php echo $renderer->button_as_html ('Demo', $demo_url, '{icons}buttons/ship', Thirty_two_px); ?></p>
41       <p><?php echo $renderer->button_as_html ('Download', 'download.php', '{icons}buttons/download', Thirty_two_px); ?></p>
42       <p><?php echo $renderer->button_as_html ('Project', $project_url, '{site_icons}products/projects', Thirty_two_px); ?></p>
43     </div>
44   </div>
45 </div>
46 <?php $Page->finish_display (); ?>
47