thumbnail_url)) { $code_chiffre = pmb_preg_replace('/-|\.| /', '', $row->code); $url_image = $opac_book_pics_url ; $url_image = $opac_url_base."getimage.php?url_image=".urlencode($url_image)."¬icecode=!!noticecode!!&vigurl=".urlencode($row->thumbnail_url) ; if ($row->thumbnail_url){ $url_vign=$row->thumbnail_url; }else if($code_chiffre){ $url_vign = str_replace("!!noticecode!!", $code_chiffre, $url_image) ; }else { $url_vign = $opac_url_base."images/vide.png"; } } $notices[] = array( 'title' => $row->tit1, 'link' => $opac_url_base."?lvl=notice_display&id=".$row->notice_id, 'vign' => $url_vign ); } } return array('records' => $notices); } public function get_format_data_structure(){ return array( array( 'var' => "records", 'desc' => $this->msg['cms_module_carousel_datasource_notices_records_desc'], 'children' => array( array( 'var' => "records[i].title", 'desc'=> $this->msg['cms_module_carousel_datasource_notices_record_title_desc'] ), array( 'var' => "records[i].vign", 'desc'=> $this->msg['cms_module_carousel_datasource_notices_record_vign_desc'] ), array( 'var' => "records[i].link", 'desc'=> $this->msg['cms_module_carousel_datasource_notices_record_link_desc'] ) ) ) ); } }