Skip to content

Tagged images of posts with child posts - #4

Open
duanemoody wants to merge 1 commit into
zixaphir:masterfrom
duanemoody:tag_haschildren
Open

Tagged images of posts with child posts#4
duanemoody wants to merge 1 commit into
zixaphir:masterfrom
duanemoody:tag_haschildren

Conversation

@duanemoody

Copy link
Copy Markdown

If a post in a list has child posts, the image is given a data-has_children="true" attribute so that CSS can potentially highlight it as a visual cue it has children e.g.: img[data-has_children="true"] {box-shadow: 5px 10px #888;}

It reuses the built-in post->has_children(id) method to avoid complicating the page list query.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant