3 Commits

Author SHA1 Message Date
a2ee59d2f3 Fix for issue#8
The array was being processed such that it would stop when it reached
the number of row not the number of coloums.
2022-07-05 10:56:02 -04:00
efcea55a8d Add the license informtion for Prism.
Resolves issue#3
2022-07-04 15:12:03 -04:00
5f3465bc9a Merge pull request 'Update /licenses/' (#1) from manfromhuh/simple_blog:update_licenses into master
Reviewed-on: 20xd6/simple_blog#1
2022-07-04 14:53:56 -04:00
2 changed files with 11 additions and 5 deletions

View File

@@ -43,12 +43,12 @@
//echo "</pre>\n"; //echo "</pre>\n";
echo "<ul id=\"tag_menu\">\n"; echo "<ul id=\"tag_menu\">\n";
$coloum_number = 0; $coloum_number = 0;
for ($row_number = 0; $row_number < $tags_rows; $row_number++){ for ($row_number = 0; $row_number <= $tags_coloums; $row_number++){
#echo $row_number; //echo $row_number;
$section_title = $tags_csv[0][$coloum_number]; $section_title = $tags_csv[0][$coloum_number];
echo "\t<li id=\"" . $section_title . "\"><b>" . $section_title . " </b>\n"; echo "\t<li id=\"" . $section_title . "\"><b>" . $section_title . " </b>\n";
for ($row = 1; $row < $tags_coloums; $row++){ for ($row = 1; $row < $tags_coloums; $row++){
#echo "rn: " . $row_number . "\ncn:" . $coloum_number; //echo "rn: " . $row . "\ncn:" . $coloum_number ." ";
$tag_content = $tags_csv[$row][$coloum_number]; $tag_content = $tags_csv[$row][$coloum_number];
if ($tag_content == ""){ if ($tag_content == ""){
break; break;

View File

@@ -47,8 +47,14 @@ JMenu is <a href="/license/MIT.php">MIT Licensed</a>.</p>
Parsedown is <a href="/license/MIT.php">MIT Licensed</a>.</p> Parsedown is <a href="/license/MIT.php">MIT Licensed</a>.</p>
<?php display_file($_SERVER['DOCUMENT_ROOT'].'/common/vendor/erusev/parsedown/LICENSE.txt');?> <?php display_file($_SERVER['DOCUMENT_ROOT'].'/common/vendor/erusev/parsedown/LICENSE.txt');?>
<h3><a href="https://github.com/erusev/parsedown-extra">Parsedown Extra</a></h3> <h3><a href="https://github.com/erusev/parsedown-extra">Parsedown Extra</a></h3>
<blockquote><p>An extension of <a href="https://github.com/erusev/parsedown">Parsedown</a> that adds support for <a href="https://michelf.ca/projects/php-markdown/extra/">Markdown Extra.</a></p><</blockquote> <blockquote><p>An extension of <a href="https://github.com/erusev/parsedown">Parsedown</a> that adds support for <a href="https://michelf.ca/projects/php-markdown/extra/">Markdown Extra.</a></p></blockquote>
<p>Pasrsedown-extra is used primarily to add support for footnotes in articles.</p> <p>Pasrsedown-extra is used primarily to add support for footnotes in articles. <br/>Parsedown-extra is <a href="/license/MIT.php">MIT Licensed</a>.</p>
<?php display_file($_SERVER['DOCUMENT_ROOT'].'/common/vendor/erusev/parsedown-extra/LICENSE.txt');?> <?php display_file($_SERVER['DOCUMENT_ROOT'].'/common/vendor/erusev/parsedown-extra/LICENSE.txt');?>
<h3>Prism</h3>
<blockquote><p>Prism is a lightweight, robust, and elegant syntax highlighting library. It's a spin-off project from <a href="https://dabblet.com/">Dabblet</a>.<br/>
You can learn more on <a href="https://prismjs.com/">prismjs.com</a>.</p></blockquote>
<p>Prism is used for syntax highlighting is simple_blog.<br/>
Prism is <a href="/license/MIT.php">MIT Licensed</a>.</p>
<?php display_file("MIT_License.txt"); ?>
</article> </article>
<?php include_once ($_SERVER['DOCUMENT_ROOT'].'/common/footer.php');?> <?php include_once ($_SERVER['DOCUMENT_ROOT'].'/common/footer.php');?>