dynamic/silverstripe-elemental-countdown-block

This package is abandoned and no longer maintained. The author suggests using the https://github.com/dynamic/silverstripe-elemental-countdown package instead.

Display a countdown to a specific date and time

Installs: 41

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 7

Forks: 5

Open Issues: 1

Type:silverstripe-vendormodule

2.0.4 2021-07-06 21:28 UTC

This package is auto-updated.

Last update: 2021-07-06 21:29:49 UTC


README

Displays a countdown to a specific date and time.

Build Status Scrutinizer Code Quality Code Coverage Build Status codecov

Latest Stable Version Total Downloads Latest Unstable Version License

Requirements

  • silverstripe/recipe-cms: ^4@dev
  • dnadesign/silverstripe-elemental: ^4@dev

Installation

composer require dynamic/silverstripe-elemental-countdown

Usage

Elemental Countdown Block will add the following Element to your site:

  • Countdown (to a date/time specified in the cms)

Template Notes

When overriding the templates/Dynamic/Elements/CountDown/Elements/ElementCountDown.ss file in your own theme, be sure to include the following in your .countdown element:

  • data-end="$End $Timezone"
  • data-elapse="$Elapse"

example: <div class="countdown" data-end="$End $Timezone" data-elapse="$Elapse" ></div>

The above is used in the initialization of the countdown plugin.

Screen Shots

Front End sample of a Countdown Element

Front End sample of a Countdown Element

CMS - Countdown Element Main Tab

CMS - Countdown Element Main Tab

Getting more elements

See Elemental modules by Dynamic

Configuration

See SilverStripe Elemental Configuration