| 开发者 | astroblob |
|---|---|
| 更新时间 | 2026年11月1日 18:17 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
[astroblob_banner] anywhere, or add the "AstroBlob Banner" block with a live preview in the editor.[astroblob_gallery] and the "AstroBlob Gallery" block show astrophotos that members of your association published on AstroBlob, as a grid, mosaic, carousel, strip or a single featured "photo of the month". Each photo shows the telescope and observatory it was taken with, and opens in an accessible lightbox. Only images whose authors allowed it are shown.[astroblob_banner]
Every attribute is optional. If you leave one out, the plugin uses the value from Settings > AstroBlob.
format: horizontal, square, vertical, button or cardtheme: dark, light or autotitle, description, button: your own textalign: left, center or rightnew_tab: yes (default) or nocampaign: a label for this banner in your referral statistics (default banner)font: site (your theme's font) or system (default for banners)text_size: normal (default) or small[astroblob_banner format="card" theme="auto" button="Join us on AstroBlob" campaign="sidebar"]
Gallery
[astroblob_gallery]
Shows astrophotos published on AstroBlob by members of the association chosen in Settings > AstroBlob ("No association" shows images from all of AstroBlob). It always ends with a "See more on AstroBlob" button. Every attribute is optional:
format: grid (default), mosaic, carousel, strip or spotlight (one large featured image)sort: latest (default) or popularperiod: 30, 90, 365 or all (default), in dayscount: 1 to 30. The default depends on the format: grid 9, mosaic 12, carousel 10, strip 8, spotlight 1columns: 2 to 6, for grid and mosaic (default 3)show_title: yes (default) or no. Shows the target and title. The author's AstroBlob username is shown only if the author allowed it.show_details: yes (default) or no. Shows the telescope and observatory on each image, and the capture date in the large views.theme: dark, light or autotitle: an optional headingcampaign: as for bannersfont: site (default for galleries) or systemtext_size: normal (default) or small[astroblob_gallery format="spotlight" sort="popular" period="30" title="Photo of the month"]
Developers
ASTROBLOB_API_BASE constant or the astroblob_api_base filter.astroblob_banner_url filter, and the markup with astroblob_banner_html.astroblob_gallery_url, astroblob_gallery_images and astroblob_gallery_html.astroblob-banners folder to /wp-content/plugins/.[astroblob_banner] or [astroblob_gallery] shortcode.The list shows only associations that are listed publicly on AstroBlob. Ask AstroBlob to list your association, then click "Refresh list" in Settings > AstroBlob.
Your banners keep working, because they are built from your saved settings. The settings page uses the last list it downloaded and shows a notice. If nothing has been set up yet, banners link to https://www.club.astroblob.com/go.
Yes. Each block or shortcode can set its own format, theme, text, alignment and campaign. Every banner on a site links to the same association.
No. Banners never call the API. Galleries are built from a cached list and local copies of the images, and the list is refreshed in the background by WP-Cron. Only the very first time a gallery is shown is the list downloaded while the page is built. The stylesheets and the small gallery script load only on pages that show a banner or a gallery.
Members choose which images their association may show: they enable "Allow my association to show this image on its website" on their images in AstroBlob. Until a member does so, the gallery shows nothing to visitors. Logged-in editors see a short explanation instead.
Only if the author allowed it on AstroBlob. Otherwise the image is shown without a name.
The image disappears from AstroBlob's list, and the plugin deletes its local copy at the next hourly refresh.
In wp-content/uploads/astroblob-gallery/. The folder is deleted when you uninstall the plugin.
Yes, invisibly. The plugin adds XMP metadata to its local copies: the title, the author (only if the author allowed it), AstroBlob as the source, the image ID, and your site's address. The image itself is not re-encoded or changed. Image optimization plugins and CDNs that strip metadata also remove these marks.
Yes. Set font="site" on a banner or gallery, or choose the default in Settings > AstroBlob. Galleries use your theme's font by default. Banners use the AstroBlob system font by default. Use text_size="small" for a smaller text size.
Yes. Gallery links opt out of common lightbox plugins and open the gallery's own lightbox. The gallery script works when it is deferred or combined by optimization plugins.
No. See "External services" above.
Use the dark, light or auto theme. Every class starts with astroblob-banner or astroblob-gallery, so you can override the styles in your theme's CSS.
[astroblob_gallery] shortcode and the astroblob/gallery block, in five formats (grid, mosaic, carousel, strip and spotlight), with an accessible lightbox.font (site or system) and text_size (normal or small) options for banners and galleries.[astroblob_banner] shortcode, the astroblob/banner block, five formats, three themes and a Spanish translation.