diff --git a/modules/blocklink/blocklink.php b/modules/blocklink/blocklink.php index c1edf2573..2cbf76911 100644 --- a/modules/blocklink/blocklink.php +++ b/modules/blocklink/blocklink.php @@ -384,76 +384,6 @@ class BlockLink extends Module '; } - /* -private function _list() - { - $links = $this->getLinks(); - $languages = Language::getLanguages(); - $token = Tools::safeOutput(Tools::getValue('token')); - if (!Validate::isCleanHtml($token)) - $token = ''; - if ($links) - { - $this->_html .= ' - '; - } - $this->_html .= ' -

'.$this->l('Link list').'

- - - - - - - '; - - if (!$links) - $this->_html .= ' - - - '; - else - foreach ($links as $link) - $this->_html .= ' - - - - - - '; - $i = 0; - $nb = count($languages); - $idLng = 0; - while ($i < $nb) - { - if ($languages[$i]['id_lang'] == (int)Configuration::get('PS_LANG_DEFAULT')) - $idLng = $i; - $i++; - } - $this->_html .= ' -
'.$this->l('ID').''.$this->l('Text').''.$this->l('URL').''.$this->l('Actions').'
'.$this->l('There are no links.').'
'.(int)$link['id'].''.Tools::safeOutput($link['text_'.$this->context->language->id]).''.Tools::safeOutput($link['url']).' - - -
- - '; - } -*/ - public function renderList() { $fields_list = array(