Karmabunny / sprout3

SproutCMS: content management and framework
http://getsproutcms.com
GNU General Public License v2.0
24 stars 3 forks source link

Widget display conditions (context engine) #10

Closed TheJosh closed 7 years ago

TheJosh commented 7 years ago

This is a system for "conditions" which can be applied to a content block.

The condition is defined in a class, and each block calls the match method for all of it's conditions to determine whether or not the block can display or not.

A number of conditions exist, including platform details, session details (number of visited pages) and acquisition such as utm parameters.