<?php /** * $file : file full path * $dir : root directory * $id : repository id * $cache_file : cache file path * $url_root : url based root path * $relative_path : relative path of file * */ header('Content-Type: text/html'); if (!hasCache($file) || $is_new) { generateCache($file, HtmlPreprocessor(file_get_contents($file), 'markdown')); } outputCache($file);
<?php } ?> <section <?php echo $attr_string; ?> ><?php echo HtmlPreprocessor($it->content, 'markdown'); ?> <?php if ($it->note) { ?> <aside class="notes"><?php echo HtmlPreprocessor($it->note, 'markdown'); ?> </aside> <?php } ?> </section> <?php if ($it->secondary && (!$items[$index + 1] || !$items[$index + 1]->secondary)) { ?> </section> <?php } } ?>
<?php $arr = explode(",", $data['preprocessor']); $html = $arr[0]; $javascript = $arr[1]; $css = $arr[2]; $data['html_code'] = HtmlPreprocessor($data['html_code'], $html); $temp_css_code = $data['css_code']; if ($css == 'less') { $temp_css_code = file_get_contents(ABSPATH . "/jui-all/jui/less/mixins.less") . PHP_EOL . $temp_css_code; } $data['css_code'] = CssPreprocessor($temp_css_code, $css); $data['sample_code'] = JavascriptPreprocessor($data['sample_code'], $javascript);