diff --git a/include/library/Crunchbutton/Restaurant.php b/include/library/Crunchbutton/Restaurant.php index b7866d9aa..1f05ab594 100644 --- a/include/library/Crunchbutton/Restaurant.php +++ b/include/library/Crunchbutton/Restaurant.php @@ -753,6 +753,16 @@ class Crunchbutton_Restaurant extends Cana_Table_Trackchange { return $this->_notifications; } + public function hasNotification( $verify ){ + $types = $this->notification_types(); + foreach( $types as $type ){ + if( $type == $verify ){ + return true; + } + } + return false; + } + public function notification_types(){ $types = array(); $notifications = $this->notifications(); diff --git a/include/views/default/quick/order/index.phtml b/include/views/default/quick/order/index.phtml index 2a0e21a02..c5da2cb81 100644 --- a/include/views/default/quick/order/index.phtml +++ b/include/views/default/quick/order/index.phtml @@ -104,6 +104,17 @@
+ + order->restaurant()->hasNotification( 'stealth' ) ){ ?> +