소스 검색

Add comment moderation in admin

master
nano 6 달 전
부모
커밋
490557e918
1개의 변경된 파일과 20개의 추가작업 그리고 0개의 파일을 삭제
  1. +20
    -0
      core/helpers.asp

+ 20
- 0
core/helpers.asp 파일 보기

@@ -350,6 +350,10 @@ Function PostUrl(ByVal slug)
PostUrl = "/posts/" & Server.URLEncode(NormalizeSlug(slug)) PostUrl = "/posts/" & Server.URLEncode(NormalizeSlug(slug))
End Function End Function


Function PostPath(ByVal slug)
PostPath = "/posts/" & NormalizeSlug(slug)
End Function

Function PostsUrl() Function PostsUrl()
PostsUrl = "/posts" PostsUrl = "/posts"
End Function End Function
@@ -382,6 +386,22 @@ Function AdminPostAIUrl(ByVal postId)
AdminPostAIUrl = "/admin/posts/" & Server.URLEncode(CStr(postId)) & "/ai" AdminPostAIUrl = "/admin/posts/" & Server.URLEncode(CStr(postId)) & "/ai"
End Function End Function


Function AdminCommentsUrl()
AdminCommentsUrl = "/admin/comments"
End Function

Function AdminCommentApproveUrl(ByVal commentId)
AdminCommentApproveUrl = "/admin/comments/" & Server.URLEncode(CStr(commentId)) & "/approve"
End Function

Function AdminCommentUnapproveUrl(ByVal commentId)
AdminCommentUnapproveUrl = "/admin/comments/" & Server.URLEncode(CStr(commentId)) & "/unapprove"
End Function

Function AdminCommentDeleteUrl(ByVal commentId)
AdminCommentDeleteUrl = "/admin/comments/" & Server.URLEncode(CStr(commentId)) & "/delete"
End Function

Function AdminAIPromptUrl() Function AdminAIPromptUrl()
AdminAIPromptUrl = "/admin/ai-prompt" AdminAIPromptUrl = "/admin/ai-prompt"
End Function End Function


불러오는 중...
취소
저장

Powered by TurnKey Linux.