Forums/Community Forums/Developer Discussion Forum

Answered

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

Nate Baker
asked this on November 23, 2010 00:47

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

Originally posted in the Sitemason Developers Google Group on Fri, 03 Sep 2010