跳到内容

Horoscope – Astrology Widget

v2.3.2

myt007 · 2026年11月26日 上架

Add a daily horoscope widget to any page, post or sidebar: two ready-made designs, live preview, shortcode and block. Texts come from ZodiacSign.ro.

正在使用
10 以下
评分
暂无
累计下载
37
最近更新
2026年11月26日
需要 WordPress 6.0+已测试到 7.1.5PHP 7.4+

贡献者

截图

Signature, Aurora and the optional Midnight add-on: three designs, one daily horoscope.
Signature, Aurora and the optional Midnight add-on: three designs, one daily horoscope.
Signature design: sign grid, today's horoscope and love, career, money and luck scores.
Signature design: sign grid, today's horoscope and love, career, money and luck scores.
Aurora design: sign chips, round scores and soft glass look.
Aurora design: sign chips, round scores and soft glass look.
Midnight design (separate free add-on from zodiacsign.ro): dark, starry look.
Midnight design (separate free add-on from zodiacsign.ro): dark, starry look.

Horoscope – Astrology Widget puts a clean, fast daily horoscope on your site. Visitors pick a zodiac sign and read today’s teaser; every sign has love, career, money and luck scores and a short profile.

  • Two ready-made designs (Signature and Aurora), light or dark, responsive from a narrow sidebar to a full page.
  • Configurator with live preview: colors, typography, cards, number of columns, which parts to show, desktop / tablet / sidebar / mobile preview.
  • Shortcode and block: [zodiacsign_horoscope config="cfg_xxxxxxxx"] or the “Horoscope – Astrology Widget” block.
  • English and Romanian texts; the language can be set per insertion.
  • Fast: the widget is drawn in a Shadow DOM so your theme cannot break it, loads when it scrolls into view, remembers the last answer and needs one small request.
  • Accessible: keyboard operation, screen reader labels, visible focus, reduced-motion friendly, colors checked for contrast.
  • Free: every feature of this plugin is included. There is no license key, no trial and nothing is locked.

The horoscope texts are written and published daily by ZodiacSign.ro. The plugin shows them through the ZodiacSign.ro service (see “External services” below). A link “Horoscope provided by ZodiacSign.ro” is available but off by default; you choose whether to show it.

Nothing happens until you agree

After activation the plugin does not contact any server and shows nothing on your public pages. In the plugin dashboard you read what is sent and press “I agree, connect”. You can disconnect at any time from the Help tab.

External services

This plugin connects to the ZodiacSign.ro service (www.zodiacsign.ro), operated by the plugin author, to obtain the daily horoscope texts and to register your site so that the service can answer the widget. The connection starts only after the site owner clicks “I agree, connect” in the plugin dashboard.

1. Registration of your site (server to server, from your WordPress site)
* When: when you save a widget design (and once an hour, only to repeat a registration that failed).
* Data sent: your site’s domain name (for example example.com), the widget design settings (colors, layout, language), the plugin edition identifier and the version numbers of this plugin, of the optional Midnight Pro add-on (if installed) and of WordPress. No personal data of your users or of you is sent.
* Returned: an installation code that ties the design to your domain.

2. Horoscope texts (from your visitors’ browsers)
* When: when a visitor opens a page that contains the widget.
* Data sent: the browser requests the horoscope of the chosen sign from ZodiacSign.ro, together with the installation code and the address of the page. As with any web request, the ZodiacSign.ro server receives the visitor’s IP address and browser details in its normal access logs. The widget sets no cookies and does not track visitors; it keeps the last answer in the visitor’s own browser storage (localStorage) to load faster.

3. Design preview in the plugin dashboard (only in the dashboard, only after you agreed)
* When: when you open the designs gallery in the plugin dashboard and the optional Midnight Pro add-on is not installed.
* What: the dashboard shows a live preview of the “Midnight” design in a frame (iframe) loaded from zodiacsign.ro. Nothing from your site or about you is sent besides the normal web request (your IP address and browser details reach the ZodiacSign.ro server like for any page). The frame is not shown on your public pages. The design itself is not part of this plugin.

Service provider: ZodiacSign.ro. Privacy policy. Terms of use.

Development

The complete, human-readable source for the JavaScript assets is included in this plugin under assets/src/. The distributable files assets/zs-widget.js and assets/zs-configurator.js are built from it with the short script below (Python 3). assets/admin.js and assets/block.js are maintained directly and their readable copies are also in assets/src/.

To rebuild, save the script as build-assets.py in the plugin’s root folder (next to readme.txt) and run python build-assets.py:

#!/usr/bin/env python3
"""Build distributable JavaScript from the readable sources bundled with the plugin."""
from pathlib import Path
import re

ROOT = Path(__file__).resolve().parent
ASSETS = ROOT / "assets"
SOURCE = ASSETS / "src"

def ascii_safe(source):
    def replace(match):
        codepoint = ord(match.group(0))
        if codepoint <= 0xFFFF:
            return f"\\u{codepoint:04x}"
        codepoint -= 0x10000
        return f"\\u{0xD800 + (codepoint >> 10):04x}\\u{0xDC00 + (codepoint & 0x3FF):04x}"
    return re.sub(r"[^\x00-\x7f]", replace, source)

def build(target, sources):
    readable = "".join((SOURCE / filename).read_text(encoding="utf-8") for filename in sources)
    (ASSETS / target).write_text(ascii_safe(readable), encoding="ascii", newline="\n")
    print(f"built {target}")

build("zs-widget.js", ["zs-widget.part1.js", "zs-widget.part2.js", "zs-widget.part3.js"])
build("zs-configurator.js", ["zs-configurator.js"])

The script writes ASCII-safe versions of the two files (non-ASCII characters become \uXXXX escapes).

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums