doefom,
@doefom@mastodon.social avatar

That's by far the shortest @statamic addon I have ever coded, fitting on one single screenshot. It's a #Statamic wrapper of the #Laravel package "browser-detect" by "hisorange". You can use it to find out all sorts of stuff about the requesting browser and device or render content for specific devices only.

Original package: https://github.com/hisorange/browser-detect

My Statamic wrapper:
https://statamic.com/addons/doefom/statamic-browser-detect

Screenshot of template code using the antlers templating language of the Statamic framework. It shows conditional statements that check if the browser is a mobile device or print the device type.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • Laravel
  • ngwrru68w68
  • rosin
  • GTA5RPClips
  • osvaldo12
  • love
  • Youngstown
  • slotface
  • khanakhh
  • everett
  • kavyap
  • mdbf
  • DreamBathrooms
  • thenastyranch
  • magazineikmin
  • megavids
  • InstantRegret
  • normalnudes
  • tacticalgear
  • cubers
  • ethstaker
  • modclub
  • cisconetworking
  • Durango
  • anitta
  • Leos
  • tester
  • provamag3
  • JUstTest
  • All magazines