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 = 'Projects';
04
05 $Page->location->append ('WebCore', './');
06 $Page->location->append ('Projects');
07
08 $Page->start_display ();
09
10 $demo_url = $Page->resolve_path ('{root}/projects');
11 $project_url = $Page->resolve_file ('{root}/projects/view_folder.php?id=7');
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 advanced
20 project and release tracking to your web site.</p>
21 <ul>
22 <li>Track bugs/feature requests across several codelines (branches).</li>
23 <li>Precise <a href="features.php#publishing">notifications</a> indicate exactly what changed.</li>
24 <li>Assign jobs to owners. Control ownership with powerful <a href="features.php#security">permissions</a>.</li>
25 <li>Document changes made to the software for generating accurate changelists.</li>
26 <li><a href="features.php#comments">Comments</a> and <a href="features.php#attachments">attachments</a> are integrated.</li>
27 <li>Use extremely flexible <a href="features.php#searching">searching</a> to find exactly what you want.</li>
28 <li>Manage and publish testing builds and releases.</li>
29 <li>Organize larger projects with components.</li>
30 <li>Customizable statuses, priorities and other project settings.</li>
31 <li>...and much more!</li>
32 </ul>
33 <p>Check out a <a href="<?php echo $demo_url; ?>">live demo</a>, the <a href="<?php echo $project_url; ?>">project status</a>
34 or <a href="download.php">download</a> a copy for your own web site.</p>
35 </div>
36 <div class="right-sidebar">
37 <p><img src="media/images/projects_box_green.png" alt="Projects Box"></p>
38 <p>Latest version is <span class="field">3.4</span></p>
39 <p><?php echo $renderer->button_as_html ('Demo', $demo_url, '{icons}buttons/ship', Thirty_two_px); ?></p>
40 <p><?php echo $renderer->button_as_html ('Download', 'download.php', '{icons}buttons/download', Thirty_two_px); ?></p>
41 <p><?php echo $renderer->button_as_html ('Project', $project_url, '{site_icons}products/projects', Thirty_two_px); ?></p>
42 </div>
43 </div>
44 </div>
45 <?php $Page->finish_display (); ?>
46