/**
  * Modify a generated widget
  * @param Contao/Widget $objWidget
  * @param string $formId
  * @param array $arrFormData
  * @param Contao/Form $objForm
  * @return void
  */
 public function run($objWidget, $formId, $arrFormData, $objForm)
 {
     if (TL_MODE == 'FE') {
         // get the Data of the Widget Object
         $arrData = Parser::getFoundationAttributesFromWidget($objWidget);
         //Add foundation classes
         $strClasses = Parser::getFoundationClasses($arrData);
         if (!empty($strClasses)) {
             $objWidget->class .= (!empty($objWidget->class) ? ' ' : '') . $strClasses;
         }
         //Add equalize data attributes
         $strEqualize = Parser::getEqualizeAttributes($arrData);
         if (!empty($strEqualize)) {
             $objWidget->cssID .= " {$strEqualize}";
         }
     }
     return $objWidget;
 }
 /**
  * Parse the template
  * @param Template
  * @return Template
  */
 public function run(&$objTemplate)
 {
     if (TL_MODE == 'FE') {
         // get the Data of the Template Object
         $arrData = $objTemplate->getData();
         //Add foundation classes
         $strClasses = Parser::getFoundationClasses($arrData);
         if (!empty($strClasses)) {
             $objTemplate->class .= (!empty($objTemplate->class) ? ' ' : '') . $strClasses;
         }
         //Add equalize data attributes
         $strEqualize = Parser::getEqualizeAttributes($arrData);
         if (!empty($strEqualize)) {
             $objTemplate->cssID .= " {$strEqualize}";
         }
         //Check whether we have orbit slides
         $objTemplate->isOrbitSlide = Parser::checkForOrbitSlides($objTemplate);
     }
     return $objTemplate;
 }