";
}
function get_blog_content($dots, $project_name, $project_content_dir) {
$output = "";
$fh = fopen("$project_content_dir/content.txt",'r');
while ($line = fgets($fh)) {
if (str_contains($line, "!image ")) {
$image_link = str_replace("!image " , "", $line);
$output .= "
". $line ."
";
}
}
fclose($fh);
return $output;
}
function make_blog($dots, $project_name, $project_content_dir) {
return "
$project_name
". get_blog_content($dots, $project_name, $project_content_dir) ."
";
}
?>