code || $row->thumbnail_url) && ($opac_show_book_pics=='1' && ($opac_book_pics_url || $row->thumbnail_url))) { $url_vign = getimage_url($row->code, $row->thumbnail_url); } $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'] ) ) ) ); } }