'. "\n"; } $outp = << $title $user $unique_identifier $lang $dc_date $cover_png OUTP; $dir = epub_get_metadirectory() . 'OEBPS/'; io_saveFile($dir . 'content.opf',$outp); flush(); $ncx=<< $title NCX; io_saveFile($dir . 'toc.ncx',$ncx); } function epbub_entity_replace($matches) { global $entities; if(array_key_exists($matches[0], $entities)) { return $entities[$matches[0]]; } return $matches[0]; } function epub_css($plugin) { $use_less = false; if($plugin !== false) { $r = $plugin->get_renderer(); $use_less = $r->getConf('less'); } $css = (class_exists('lessc') && $use_less) ? 'css3.php' : 'css2.php'; if($css == 'css3.php') { echo "Using LESS: $css\n"; } else { echo "Not using LESS, either not found or excluded by configuration: using $css\n"; } require_once($css); epub_css_out(epub_get_oebps()); } function epub_write_spine() { $items = epub_push_spine(); epub_opf_write(''); epub_opf_write(''); foreach($items as $page) { epub_opf_write(''); } epub_opf_write(''); } function epub_write_footer() { $footer=<<