/**
  * Right Column
  * @param $params
  * @return mixed
  */
 public function hookRightColumn($params)
 {
     if (Configuration::get('NOW_PRESENTATION_ENABLE')) {
         // Lists of items
         $aItems = NowBlockPresentation::getItems();
         $this->context->smarty->assign(array('module_dir' => $this->module_uri . 'uploads/', 'aItems' => $aItems));
         return $this->context->smarty->fetch($this->module_dir . 'views/templates/hook/footer.tpl');
     }
 }
 /**
  * @return bool
  */
 protected function processBulkDelete()
 {
     if (is_array($this->boxes) && !empty($this->boxes)) {
         foreach ($this->boxes as $iIdNowBlockPresentation) {
             $oNowBlockPresentation = new NowBlockPresentation((int) $iIdNowBlockPresentation);
             if (!$oNowBlockPresentation->deleteImage()) {
                 $this->errors[] = Tools::displayError('An error occurred while deleting image of the object (NowBlockPresentation).') . ' <b>' . $this->table . '</b> ';
                 return false;
             }
         }
     }
     return parent::processBulkDelete();
 }
 /**
  * @see ObjectModel::delete()
  */
 public function delete()
 {
     if (!parent::delete()) {
         return false;
     }
     NowBlockPresentation::cleanPositions();
 }