countdown-8.x-1.8/modules/countdown_block/countdown_block.module

modules/countdown_block/countdown_block.module
<?php

/**
 * @file
 * Provides a configurable block type for displaying countdown timers.
 */

declare(strict_types=1);

use Drupal\Core\Routing\RouteMatchInterface;
use Drupal\Core\Url;

/**
 * Implements hook_help().
 */
function countdown_block_help($route_name, RouteMatchInterface $route_match) {
  switch ($route_name) {
    case 'help.page.countdown_block':
      $output = '';
      $output .= '<h3>' . t('About') . '</h3>';
      $output .= '<p>' . t('The Countdown Block module provides a configurable block type for displaying countdown timers in any region. It integrates with the main Countdown module to support multiple timer libraries including FlipClock, FlipDown, and PQINA Tick/Flip.') . '</p>';
      $output .= '<h3>' . t('Uses') . '</h3>';
      $output .= '<dl>';
      $output .= '<dt>' . t('Creating countdown blocks') . '</dt>';
      $output .= '<dd>' . t('You can create a countdown block by navigating to <a href=":blocks">Structure > Block layout</a> and clicking <em>Place block</em>. Search for "Countdown Timer" and configure the timer settings including the target date, library, and display options.', [':blocks' => Url::fromRoute('block.admin_display')->toString()]) . '</dd>';
      $output .= '<dt>' . t('Configuring countdown blocks') . '</dt>';
      $output .= '<dd><ul>';
      $output .= '<li>' . t('Select the loading method (local or CDN) to determine available libraries.') . '</li>';
      $output .= '<li>' . t('Choose a countdown library from the available options.') . '</li>';
      $output .= '<li>' . t('Set the target date and time for the countdown.') . '</li>';
      $output .= '<li>' . t('Configure library-specific settings like themes and animations.') . '</li>';
      $output .= '</ul></dd>';
      $output .= '<dt>' . t('Library support') . '</dt>';
      $output .= '<dd>' . t('The module supports the Core Timer (lightweight built-in), FlipClock, FlipDown, PQINA Flip, and PQINA Tick libraries. Each library offers different visual styles and customization options.') . '</dd>';
      $output .= '</dl>';
      return $output;
  }
}

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc