|
ThemeAPI
API for Theme Developers
VaraiblesThe following variables are available to theme developers.
$pageName The name of the site/page as set in the settings page.
$blurb Text entered in the settings page "blurb" section. $nextLink Used for pagination. This points to the next available page in the stream. $prevLink Also used for pagination. This points to the previous page in the stream.
ObjectsCurrently only the streamItems object is available to theme developers. This object contains all relevant available feed data. You can access this object by looping through the returned results as shown below. <?php
foreach($streamItems as $streamItem)
{
echo $streamItem->title;
echo $streamItem->description;
echo $streamItem->date;
}
?>Obviously, you will also want to include any needed html markup. Refer to the stream.php example shown in the Themes section for more details. $streamItem->id The id of the item. $streamItem->title The title of the item. $streamItem->date Thee date of the item's entry. $streamItem->time The time of the item's entry. $streamItem->time_stamp The item's timestamp. $streamItem->link The link to the items URI. $streamItem->description The item's description. $streamItem->base_url The URI of the item's parent site (e.g. http://delicious.com). $streamItem->site_url The URI of the page linked to the item's feed (e.g http://delicious.com/yourname). $streamItem->site_name The name of the item's parent site $streamItem->site_favicon The name of the .ico image file stored for the item (e.g. delicious.ico). Functionsbase_url() The full url of HulloHallo's base url (e.g http://www.yourdomain.com) Example Usage <?php echo base_url(); ?>
|