leewillis77 / wp-github-oembed

WordPress Github "oEmbed" plugin
GNU General Public License v2.0
69 stars 19 forks source link

Add expanding and displaying to repository.php #35

Closed ZjzMisaka closed 3 years ago

ZjzMisaka commented 3 years ago

The function of expanding and displaying information is added to make the control more beautiful.

leewillis77 commented 3 years ago

Commited. Thanks for the contribution!

leewillis77 commented 3 years ago

Note:

I've also added the same markup to the contributors template.

In the final release, both of these will have the open attribute added to the <details> tag so that the details are open by default. That behaviour can be overridden via WordPress filters, specifically wp_github_oembed_contributor_details_expanded and wp_github_oembed_repository_commit_details_expanded

You should return false to those filters if you want the details element(s) closed by default.