-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Widget for likebutton #56
Comments
I don't think that we need to hide the widget.
|
Currently to embed a likebutton, we need 1. the author's liker ID and 2. the url of the article/page. However, if there exist no liker ID from neither the post author or site meta, we won't know whose like button should be displayed. Therefore we need to show either an error, a default message telling author to connect liker ID, or hide the widget. |
Maybe showing an error message is a good idea ! |
@john970473 Would be nice if you can help with this feature |
@john970473 We can continue the discussion here
I think we can refactor a bit and let
likecoin_add_likebutton()
accept a$post
or$likerId
.Then from inside a widget we can use get_queried_object to get the
$post
id/object.For cases other than a post, we can use the site LikerId (
$option[ LC_OPTION_SITE_LIKECOIN_USER ]
) if it exists, and probably just hide the widget if it is not.Did I get your idea right?
The text was updated successfully, but these errors were encountered: