BUSS 909 Office Automation Intranets PHP Presents A
BUSS 909 Office Automation & Intranets PHP Presents A Presentation Template System (Source: http: //conf. php. net/pres/index. php? p=slides%2 Fpres&id=default) Clarke, R. J (2001) L 909 -10: 1
Clarke, R. J (2001) L 909 -10: 2
Introduction n The goal of PHP Presents is to simplify the delivery and especially the management of HTML based presentations by making it easy to add slides and manage multiple presentations. Clarke, R. J (2001) L 909 -10: 3
Features n Single config file which configures everything n Ability to override default config settings on a per presentation basis n Multiple presentation support n Next/Previous slide hints n Slide counter which can take you directly to a specified slide n Auto-scaling to support any useful resolution Clarke, R. J (2001) L 909 -10: 4
Environmental Setup n Laptop running in 1024 x 768 resolution. Most decent projectors do a good job at this resolution these days. n Run the truetype font server (xfstt) n Netscape Navigator 4. 75+ n Under File-Preferences-Font select Verdana-ttf for your variable width font and Courier n New for your fixed width font. Netscape will show you a font size of 0 in the dialog, but type 12 into the text box to force it to a 12 pt default font. If you don't have Verdana, Arial or Tahoma are good font choices. n Under the View menu turn off all the toolbars to get as much screen real estate as possible. Clarke, R. J (2001) L 909 -10: 5
Creating a Slide show (1) n Each presentation is defined in the slideshow. txt file. A sample presentation definition looks like this: START: default: slides/pres: PHP Presents title. php: PHP Presents intro. php: Introduction features. php: Features Clarke, R. J (2001) L 909 -10: 6
Creating a Slide show (2) n the first line defines the start of a new slideshow block. It consists of 4 parts separated by colons: n START: indicates the start of the slideshow block n default: a keyword that identifies this presentation n slides/pres: the path to the slide files for this presentation n PHP Presents: a short description of this presentation Clarke, R. J (2001) L 909 -10: 7
Adding Slides (1) n After the Start line follows a line for each slide in the presentation: START: default: slides/pres: PHP Presents title. php: PHP Presents intro. php: Introduction features. php: Features create. php: Creating a slideshow slides. php: Adding slides Clarke, R. J (2001) L 909 -10: 8
Adding Slides (2) n each line starts with the filename of the slide, then a colon (: ) followed by a slide title which is going to be shown at the top of the slide. n the above shows the section of the slideshow. txt file used to create this presentation (up to this slide). That means the filename for this particular slide is slides/pres/slides. php and as you can see it has a title of "Adding slides". Clarke, R. J (2001) L 909 -10: 9
Creating a Slide (1) n Each individual slide is a straight HTML file with a little bit of PHP magic added. At the top of each slide file add the following line: <? require 'slide. inc'? > n this includes some Java. Script functions and a couple of useful PHP functions needed to make the slideshow run smoothly Clarke, R. J (2001) L 909 -10: 10
Creating a Slide (2) n then at the bottom of the file, add this line: <? footer()? > n this finished off the slide correctly. In between these two lines you can put whatever HTML you wish. Clarke, R. J (2001) L 909 -10: 11
Clarke, R. J (2001) L 909 -10: 12
Clarke, R. J (2001) L 909 -10: 13
- Slides: 13