Skip to content

bloatware/peg_nested_comments

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 

Repository files navigation

peg_nested_comments

Installation, upgrading and uninstallation

Download the latest version of the plugin, paste the code into the Textpattern Admin → Plugins panel, install and enable the plugin.

To uninstall, delete from the Admin → Plugins panel.

Tags

peg_comments tag

<txp:peg_comments />

In the comments_display form, replace your <txp:comments /> with <txp:peg_comments />.

Attributes

Attributes are the same as <txp:comments />.
See here for more informations.

peg_child_comments tag

<txp:peg_child_comments />

in your comments form, add <txp:peg_child_comments /> at the end. Duplicate whatever attributes you used for <txp:peg_comments />.

peg_reply_link tag

<txp:peg_reply_link />

Also add <txp:peg_reply_link /> wherever you see fit; this generates the link to reply to the comment.

peg_reply_to tag

<txp:peg_reply_to />

finally, insert <txp:peg_reply_to /> somewhere in your comment_form form.

Attributes

  • wraptag="span" (default: span)
    • used to wrap the generated label, input and links;
  • class=""
    • applied to the wraptag;
  • label="Your label" (default: Replying to)
    • used as the value of the <label> HTML tag;
  • back="Go the initial comment" (default: #)
    • used as a link to the comment you are replying to;
  • close="Unchain" (default: ×)
    • used as for link which allow to break the link to the comment you were replying to;
    • add the .peg_replyto_inactive to #peg_replyto_wrap.

Styling

Use .peg_replyto_active and .peg_replyto_inactive classes to to hide or alter the display of this tag content in your comment form. .peg_replyto_active is used on reply, .peg_replyto_inactive on simple comment; the second one should be enough to do the following.

Exemples

Blur the content on simple comment (not a reply)…

.peg_replyto_inactive { opacity: 0.6; }

…or hide it with…

.peg_replyto_inactive { display: none; }

…or…

.peg_replyto_inactive { visibility: hidden; }

Authors/credits

Made Txp4.5 compatible by Oleg Loukianov from a Margaret Trauth’s code.
Many thanks to all additional contributors.

Releases

No releases published

Packages

No packages published

Languages