diff --git a/build/index.php b/build/index.php
index 7ce0716..cac7333 100644
--- a/build/index.php
+++ b/build/index.php
@@ -133,6 +133,7 @@ $guiConfig = <<<'GUICONFIG'
]},
"comment_max_length": {"type": "number", "description": "The maximum allowed length, in characters, for comments", "default": 5000 },
"comment_min_length": {"type": "number", "description": "The minimum allowed length, in characters, for comments", "default": 10 },
+ "comment_time_icon": {"type": "text", "description": "The icon to show next to the time that a comment was posted.", "default": "🕗" },
"upload_enabled": {"type": "checkbox", "description": "Whether to allow uploads to the server.", "default": true},
"upload_allowed_file_types": {"type": "array", "description": "An array of mime types that are allowed to be uploaded.", "default": [
"image/jpeg",
@@ -2072,7 +2073,7 @@ function render_sidebar($pageindex, $root_pagename = "")
register_module([
"name" => "Page Comments",
- "version" => "0.1",
+ "version" => "0.2",
"author" => "Starbeamrainbowlabs",
"description" => "Adds threaded comments to the bottom of every page.",
"id" => "feature-comments",
@@ -2354,6 +2355,8 @@ function fetch_comment_thread($comment_data, $comment_id)
*/
function render_comments($comments_data, $depth = 0)
{
+ global $settings;
+
if(count($comments_data) == 0) {
if($depth == 0)
return "
No comments here! Start the conversation above.
";
@@ -2373,7 +2376,7 @@ function render_comments($comments_data, $depth = 0)
$result .= "\t\n";
$result .= "\t" . render_comments($comment->replies, $depth + 1) . "\n";
$result .= "\t";
@@ -4487,7 +4490,7 @@ register_module([
register_module([
"name" => "Credits",
- "version" => "0.7.5",
+ "version" => "0.7.6",
"author" => "Starbeamrainbowlabs",
"description" => "Adds the credits page. You *must* have this module :D",
"id" => "page-credits",
@@ -4598,7 +4601,7 @@ register_module([
$credits_html
Site status
- Site name: | $settings->sitename ($settings->admindisplaychar Update, Export as zip - Check for permission first) |
+ Site name: | $settings->sitename ({$settings->admindisplaychar}Update, {$settings->admindisplaychar}Edit master settings, Export as zip - Check for permission first) |
Pepperminty Wiki version: | $version |
Number of pages: | " . count(get_object_vars($pageindex)) . " |
Number of modules: | " . count($modules) . " |
diff --git a/module_index.json b/module_index.json
index d196cdc..87a51dc 100755
--- a/module_index.json
+++ b/module_index.json
@@ -46,11 +46,11 @@
},
{
"name": "Page Comments",
- "version": "0.1",
+ "version": "0.2",
"author": "Starbeamrainbowlabs",
"description": "Adds threaded comments to the bottom of every page.",
"id": "feature-comments",
- "lastupdate": 1494959920,
+ "lastupdate": 1495278880,
"optional": false
},
{
@@ -118,11 +118,11 @@
},
{
"name": "Credits",
- "version": "0.7.5",
+ "version": "0.7.6",
"author": "Starbeamrainbowlabs",
"description": "Adds the credits page. You *must* have this module :D",
"id": "page-credits",
- "lastupdate": 1472230366,
+ "lastupdate": 1495279824,
"optional": false
},
{
diff --git a/modules/feature-comments.php b/modules/feature-comments.php
index a57cf0e..5825d20 100644
--- a/modules/feature-comments.php
+++ b/modules/feature-comments.php
@@ -1,7 +1,7 @@
"Page Comments",
- "version" => "0.1",
+ "version" => "0.2",
"author" => "Starbeamrainbowlabs",
"description" => "Adds threaded comments to the bottom of every page.",
"id" => "feature-comments",
@@ -283,6 +283,8 @@ function fetch_comment_thread($comment_data, $comment_id)
*/
function render_comments($comments_data, $depth = 0)
{
+ global $settings;
+
if(count($comments_data) == 0) {
if($depth == 0)
return "No comments here! Start the conversation above.
";
@@ -302,7 +304,7 @@ function render_comments($comments_data, $depth = 0)
$result .= "\t\n";
$result .= "\t" . render_comments($comment->replies, $depth + 1) . "\n";
$result .= "\t";
diff --git a/modules/page-credits.php b/modules/page-credits.php
index 3b6a5e1..6ec8cad 100755
--- a/modules/page-credits.php
+++ b/modules/page-credits.php
@@ -1,7 +1,7 @@
"Credits",
- "version" => "0.7.5",
+ "version" => "0.7.6",
"author" => "Starbeamrainbowlabs",
"description" => "Adds the credits page. You *must* have this module :D",
"id" => "page-credits",
@@ -112,7 +112,7 @@ register_module([
$credits_html
Site status
- Site name: | $settings->sitename ($settings->admindisplaychar Update, Export as zip - Check for permission first) |
+ Site name: | $settings->sitename ({$settings->admindisplaychar}Update, {$settings->admindisplaychar}Edit master settings, Export as zip - Check for permission first) |
Pepperminty Wiki version: | $version |
Number of pages: | " . count(get_object_vars($pageindex)) . " |
Number of modules: | " . count($modules) . " |
diff --git a/peppermint.guiconfig.json b/peppermint.guiconfig.json
index 66ef6ad..55eafdd 100644
--- a/peppermint.guiconfig.json
+++ b/peppermint.guiconfig.json
@@ -111,6 +111,7 @@
]},
"comment_max_length": {"type": "number", "description": "The maximum allowed length, in characters, for comments", "default": 5000 },
"comment_min_length": {"type": "number", "description": "The minimum allowed length, in characters, for comments", "default": 10 },
+ "comment_time_icon": {"type": "text", "description": "The icon to show next to the time that a comment was posted.", "default": "🕗" },
"upload_enabled": {"type": "checkbox", "description": "Whether to allow uploads to the server.", "default": true},
"upload_allowed_file_types": {"type": "array", "description": "An array of mime types that are allowed to be uploaded.", "default": [
"image/jpeg",