diff --git a/composer.json b/composer.json index 6394dcb..a55b803 100644 --- a/composer.json +++ b/composer.json @@ -21,7 +21,9 @@ "system/includes/functions.php", "system/admin/admin.php", "system/includes/session.php", - "system/includes/opml.php" + "system/includes/opml.php", + "system/includes/comments.php", + "system/includes/comments-frontend.php" ] } } diff --git a/lang/en_US.ini b/lang/en_US.ini index ff6076e..d2e0e55 100644 --- a/lang/en_US.ini +++ b/lang/en_US.ini @@ -336,3 +336,66 @@ custom_fields = "Custom fields" views_counter = "Views counter" themes = "Themes" version = "Version" +comments_management = "Comments Management" +all_comments = "All Comments" +pending_moderation = "Pending Moderation" +comment = "Comment" +post_page = "Post/Page" +date = "Date" +status = "Status" +actions = "Actions" +published = "Published" +pending = "Pending" +reply_to_comment = "Reply to comment" +notifications_enabled = "Notifications enabled" +modified = "Modified" +publish = "Publish" +edit = "Edit" +delete = "Delete" +confirm_publish_comment = "Are you sure you want to publish this comment?" +confirm_delete_comment = "Are you sure you want to delete this comment? This will also delete all replies to this comment." +no_comments_found = "No comments found" +edit_comment = "Edit Comment" +name = "Name" +email = "Email" +update_comment = "Update Comment" +cancel = "Cancel" +comments_settings = "Comments Settings" +general_settings = "General Settings" +note = "Note" +enable_comments_in_main_config = "To enable local comments, set comment.system = \"local\" in config/config.ini" +comment_moderation = "Comment Moderation" +require_admin_approval = "Comments must be approved by an administrator before being published" +comments_moderation_desc = "When enabled, new comments will be held for moderation and won't be visible until approved" +anti_spam_protection = "Anti-Spam Protection" +enable_honeypot = "Enable honeypot anti-spam protection" +honeypot_desc = "Honeypot is an invisible field that only bots fill out, helping prevent spam without user interaction" +email_notifications = "Email Notifications" +enable_notifications = "Enable Notifications" +send_email_notifications = "Send email notifications for new comments" +admin_email = "Administrator Email" +admin_email_desc = "Email address to receive notifications about new comments" +smtp_settings = "SMTP Settings" +enable_smtp = "Enable SMTP" +enable_smtp_for_emails = "Enable SMTP for sending email notifications" +smtp_host = "SMTP Host" +smtp_port = "SMTP Port" +encryption = "Encryption" +smtp_username = "SMTP Username" +smtp_password = "SMTP Password" +enter_password = "Enter password" +from_email = "From Email" +from_name = "From Name" +save_settings = "Save Settings" +leave_a_comment = "Leave a Comment" +email_not_published = "Your email will not be published" +comment_formatting_help = "You can use **bold text** for formatting. Line breaks are preserved." +notify_new_comments = "Notify me of new comments in this thread" +post_reply = "Post Reply" +post_comment = "Post Comment" +reply = "Reply" +comment_submitted_success = "Your comment has been posted successfully!" +comment_submitted_moderation = "Your comment has been submitted and is awaiting moderation." +comment_submission_error = "There was an error submitting your comment. Please try again." +pending_comments = "Pending Comments" +level = "Level" \ No newline at end of file diff --git a/system/admin/views/comments.html.php b/system/admin/views/comments.html.php new file mode 100644 index 0000000..9f5ed4a --- /dev/null +++ b/system/admin/views/comments.html.php @@ -0,0 +1,297 @@ + +

+
+ + +
+ + +
+ + + +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ IP: +
+ 100) echo '...'; + ?> + +
+ + +
+ +
+ + + + + + +
: + +
+ + + + + + + + + + + + + + + + + +
+ +

.

+ + + + +
+ + + + +

+
+ +
+ +
+
+ > + +
+ +
+
+ +
+ +
+
+ > + +
+ +
+
+ +

+
+ +
+ +
+
+ > + +
+
+
+ +
+ +
+ + +
+
+ +

+
+ +
+ +
+
+ > + +
+
+
+ +
+ +
+ +
+
+ +
+ +
+ + 587 (TLS) or 465 (SSL) +
+
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+
+ +
+
+ +
+ + + + +

+
+
+ + +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+
+ > + +
+
+ +
+ + +
+ +
+ diff --git a/system/admin/views/config-widget.html.php b/system/admin/views/config-widget.html.php index 885c534..68ed571 100644 --- a/system/admin/views/config-widget.html.php +++ b/system/admin/views/config-widget.html.php @@ -158,6 +158,12 @@ Facebook +
+ checked> + +
diff --git a/system/admin/views/layout.html.php b/system/admin/views/layout.html.php index e2f539e..d865b40 100644 --- a/system/admin/views/layout.html.php +++ b/system/admin/views/layout.html.php @@ -150,6 +150,50 @@ if (isset($author[0])) { + + +