AstroBlob lets astronomy associations and their members share remote robotic telescopes. This plugin adds AstroBlob banners and a gallery of your members’ astrophotos to your WordPress site. They link to your association’s page on AstroBlob, or to AstroBlob itself if you are not part of an association.
[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 smallExample:
[astroblob_banner format="card" theme="auto" button="Join us on AstroBlob" campaign="sidebar"]
[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 smallPhoto of the month:
[astroblob_gallery format="spotlight" sort="popular" period="30" title="Photo of the month"]
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.This plugin uses the AstroBlob service, which is run by AstroBlob.
1. List of associations (AstroBlob API).
The plugin downloads the list of associations from https://api-club.astroblob.com/api/public/clubs. It needs this list to fill the “Association” menu and to find the address your banners link to.
2. Gallery images (AstroBlob API).
To show a gallery, your WordPress server downloads the list of images from https://api-club.astroblob.com/api/public/clubs/<your-association>/gallery, and then each image (a small and a medium JPEG) from the same server. The images are stored in wp-content/uploads/astroblob-gallery/ and your pages show these local copies.
3. Banner and gallery links.
When a visitor clicks a banner, or the “See more on AstroBlob” or “Join AstroBlob” button of a gallery, their browser goes to your association’s page on AstroBlob (for example https://your-association.astroblob.com/go), or to https://www.club.astroblob.com/go. The link includes these UTM parameters:
utm_source: your site’s domain name, for example example.orgutm_medium: wp-pluginutm_campaign: the campaign you set, banner by defaultutm_content: the banner format, or gallery-<format> for galleriesAstroBlob uses them to count how many visitors and sign-ups each site sends. Nothing is sent until a visitor clicks.
The plugin sets no cookies and does no tracking on your WordPress site. Banners and galleries load only images, a stylesheet and (for galleries) a small script from your own site.