Mobile Browser Detection & Breadcrumbs: Two More PHP Methods Added to Library

11 views
Skip to first unread message

Billy White

unread,
Sep 17, 2010, 1:32:31 PM9/17/10
to Sitemason Developers
The Sitemason PHP Library has been seeing a lot of attention lately!
We just added a couple more methods:

bool isMobileBrowser ()
Returns true if the content is being viewed from a mobile browser,
false otherwise. Incredibly helpful for adding mobile templates
directly from your main site template. Never worry about updating your
template for the newest mobile browser again. Sitemason has it covered
with one simple call.
http://developer.sitemason.com/php_library#isMobileBrowser

void printBreadCrumbs( [ array( string delimiter) ] )
Displays breadcrumbs in a series of <a> tags, with an optional
delimiter override. '>>' is used by default. Sitemason has always had
a breadcrumb trail in all page XML, but we added the new method to
make adding breadcrumbs to your template a cinch.
http://developer.sitemason.com/php_library#printBreadCrumbs
Reply all
Reply to author
Forward
0 new messages