Recommended Links
Common For all pages
This section shows you how you can have editable content which is the same throughout the site ( NOTE: It is language specific ) .All the navs below are generated using snippets that are included with the framework, edit this content to see how it was generated
Sub Nav:
Main Nav:
Footer Nav:
Unique Per Page
Media Helper
The 'Media' Class provides functions to easily embed Audio and Video files
NOTE: Requires jquery.js and swfobject.js to be present
Example:
private function generatePlayer1()
{
$media3 = new Media(Config::$siteURL, 'MyMovie4', '300','100');
$audioFilePath = Config::$siteURL.'audios/betty.mp3';
$this->addToFrameworkCode($media3->generateAudioEmbedCode($audioFilePath));
return $media3->generateDiv();
}
private function generatePlayer2()
{
$media3 = new Media(Config::$siteURL, 'MyMovie3', '400', '300');
$flvFilePath = Config::$siteURL.'videos/3D_wallpapers_video_2.flv';
$this->addToFrameworkCode($media3->generateFLVEmbedCode($flvFilePath));
return $media3->generateDiv();
}
public function mediaPlayers()
{
require_once 'libs/standalone/standalone/Media.php';
$this->addJSFile('js/swfobject/swfobject.js');
$contentVars['MyMovie1Div'] = $this->generatePlayer1();
$contentVars['MyMovie2Div'] = $this->generatePlayer2();
$this->returnContent($this->loadMainContent('libraries/media', $contentVars));
}
Javascript is disabled
Javascript is disabled