swftools-imagerotator-playlist-element.tpl.php in SWF Tools 6.3
Template for a single entry in an Image Rotator playlist.
1 theme call to swftools-imagerotator-playlist-element.tpl.php
- swftools_imagerotator_swftools_playlist_imagerotator in imagerotator/
swftools_imagerotator.module - Implementation of hook_swftools_playlist_PLAYER().
File
imagerotator/swftools-imagerotator-playlist-element.tpl.phpView source
<?php
/**
* @file
* Template for a single entry in an Image Rotator playlist.
*/
/**
* Prepare xml output for a playlist
* The markup is placed in a template so that it can be easily over-ridden by the theme system
* to allow flexibility
*
* This template formats single elements for the xml playlist. By modifying the content here
* the xml can be modified directly to provide customised xml handling for different players.
*
* By way of example this implementation of the template will include data from the ID3 tags
* to pass the length of the clip, plus album and year data, if available.
*
* Available variables:
* - $element: An array of available playlist data for this element.
*
* As a minimum the $element array can be expected to contain the following keys:
* - fileurl
* The resolved url to the file
* - filepath
* The filepath of the file (which will be different to the url if on the local file system)
* - filename
* The filename of the file, obtained from the url
* - title
* The title of the file, e.g. user supplied, assigned by ID3, or may be the filename
*
* Other keys may be available, depending on which additional modules have been enabled.
*
*/
?>
<track>
<?php
print "<title>" . check_plain($element['title']) . "</title>";
print "<location>" . check_url($element['fileurl']) . "</location>";
?>
</track>