Live Clock Widget

Описание

Live Clock Widget provides a beautiful, modern clock display for your website. Choose between analog and digital styles, customize the size, and display it anywhere using a shortcode or widget.

Key Features:

  • 🕐 Analog Clock — Beautiful circular clock with smooth animations
  • 🔢 Digital Clock — Modern digital display with date
  • 📱 Fully Responsive — Works perfectly on all devices
  • 🎨 Modern Design — Gradient backgrounds and smooth animations
  • No Flash — Pure JavaScript and CSS (Flash removed in v2.0)
  • 🔒 Secure — All output properly escaped and sanitized
  • 🌐 Translation Ready — Full i18n support
  • ⚙️ Easy Customization — Adjustable size and type

Usage:

  • Shortcode: [wpclock] — Default analog clock
  • Shortcode Options: [wpclock type="digital" size="300"]
  • Widget: Drag and drop from Appearance > Widgets
  • PHP Function: <?php echo do_shortcode('[wpclock]'); ?>

Установка

  1. Upload the wordpress-clock folder to /wp-content/plugins/
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Use the shortcode [wpclock] in any post or page
  4. Or add the widget from Appearance > Widgets

Часто задаваемые вопросы

What is the shortcode?

Use [wpclock] for a default analog clock, or customize it:
* [wpclock type="analog" size="200"] — Analog clock, 200px
* [wpclock type="digital" size="300"] — Digital clock, 300px

How do I add it as a widget?

  1. Go to Appearance > Widgets
  2. Find «WordPress Clock» widget
  3. Drag it to your desired sidebar
  4. Configure the title, type, and size
  5. Save

Can I customize the colors?

Yes! Add custom CSS to your theme:

`css

.wpclock-face {
background: linear-gradient(135deg, #your-color1, #your-color2);
}
`

Does it work without Flash?

Yes! Version 2.0 completely removed Flash and uses modern JavaScript and CSS3.

Is it mobile responsive?

Absolutely! The clock automatically adjusts to different screen sizes.

Участники и разработчики

«Live Clock Widget» — проект с открытым исходным кодом. В развитие плагина внесли свой вклад следующие участники:

Участники

Перевести «Live Clock Widget» на ваш язык.

Заинтересованы в разработке?

Посмотрите код, проверьте SVN репозиторий, или подпишитесь на журнал разработки по RSS.

Журнал изменений

2.3

  • CRITICAL: Fixed text domain to match plugin slug (wordpress-clock)
  • Removed Domain Path header (not needed for WordPress.org plugins)
  • Removed screenshot-1.png (should be in assets, not plugin)
  • All internationalization now uses correct text domain

2.2

  • Updated Plugin URI to GitHub repository
  • All links now point to https://github.com/MervinPraison/wordpress-clock
  • Removed references to mervin.info domain

2.1

  • CRITICAL: Fixed trademark violation — renamed from «WordPress Clock» to «Live Clock Widget»
  • Updated all text domains to ‘live-clock-widget’
  • Updated plugin URI and author URI

2.0

  • MAJOR UPDATE: Complete rewrite from scratch
  • Security: Removed Flash dependency (security risk)
  • Security: Added proper input sanitization and output escaping
  • Security: Updated to modern WordPress widget API
  • Improved: Pure JavaScript and CSS3 implementation
  • Improved: Responsive design for all devices
  • Improved: Smooth animations for analog clock
  • Improved: Digital clock with date display
  • Improved: Modern gradient design
  • Improved: Widget with customization options
  • Improved: Shortcode with type and size parameters
  • Improved: Translation ready with text domain
  • Improved: WordPress 6.8 compatibility
  • Fixed: Plugin name typo (Worpress WordPress)
  • Fixed: Deprecated widget registration method
  • Fixed: Hardcoded HTTP URLs
  • Fixed: External CDN dependency removed

1.1

  • Minor fixes

1.0

  • Initial release with Flash clock