该插件尚未通过WordPress的最新3个主要版本进行测试。 当与较新版本的WordPress一起使用时,可能不再受到维护或支持,并且可能会存在兼容性问题。

WP Moon Phase Widget

描述

WP Moon Phase Widget plugin allows you to add an awesome moon phase widget to sidebar or post.

Key features

  • Auto Geo detection
  • Moon phase name and image
  • Moonset and moonrise time
  • Moon zodiac sign
  • Ability to change the background color
  • Ability to add the widget to a sidebar or a post (via shortcode)

You can learn more about moon phase here

Usage

In sidebar

You can add a widget as a standard WordPress widget.

  1. Go to Appearance > Widgets
  2. Find WP Moon Phase Widget
  3. Add to a sidebar
  4. Add a title (optional)
  5. Configure desired background color (default is white)

In a post or a page

You can add the widget to post or page via shortcode:

[mph-widget]

With specified background color:

[mph-widget color="#ffffff"]

You can use only one widget at a time. So if you want to add it to post, delete it from the sidebar.

Credits

Based on moon-phase-widget javascript library.

屏幕截图

  • Widget in sidebar
  • Widget in post
  • Adding widget in Appearance > Widgets

安装

  1. Go to Plugins / Add New.
  2. Search for WP Moon Phase Widget in the search box.
  3. The “WP Moon Phase Widget” plugin should appear. Click on Install.

常见问题

How I can customize the border, width, height?

You can use the main widget CSS class .mph-widget and write your custom styles.
Feel free to contact me (or create a new topic in support forum) if you need help with customization.

评价

2020 年 5 月 21 日
Good looking, easy to use, works for my locations accurately. Love it.
2020 年 1 月 29 日
Small and easy to install. Perfect for displaying the current moon phase. Has plenty of potential for improvement, but very good already.
2019 年 12 月 27 日
Modern and pretty! The remaining plugins on this topic look as if they were born in the previous century. So, it is definitely 5 stars for the appearance! I love how easy it is to work with the plugin. You can add it to the sidebar and change the background color with the color picker in a few seconds. So far, everything is working correctly, geo detection is right for me & the Moon information is accurate. I would also like to be able to customize the Moon phase icons and, maybe, the font. But for the moment, I love it as it is. Thanks a lot to the developer!
阅读所有4条评价

贡献者及开发者

「WP Moon Phase Widget」是开源软件。 以下人员对此插件做出了贡献。

贡献者

「WP Moon Phase Widget」插件已被翻译至 2 种本地化语言。 感谢所有译者为本插件所做的贡献。

帮助将「WP Moon Phase Widget」翻译成简体中文。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志

更新日志

1.0.0

  • Initial release.