| 开发者 | naptarak |
|---|---|
| 更新时间 | 2026年10月24日 06:26 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
[naptarak_nevnap] – options: label, date, tomorrow, other (yes/no), date_format (long, short, full)[naptarak_unnepnap] – options: count (1–5), label, description, countdown, long_weekend (yes/no)layout (card, plain, line), scheme (auto, light, dark), accent (e.g. #b45309), credit (link, name, none)[naptarak_nevnap tomorrow="yes"], [naptarak_nevnap layout="line" date="no"], [naptarak_unnepnap count="3" scheme="dark"]igen/nem, kartya/sima/sor, vilagos/sotet, nev/nincs). Appearance options you leave out follow the site-wide settings.Y-m-d strings or DateTimeInterface objects; null means today in the site's time zone):
naptarak_nevnap_get_names( $date = null, $include_other = false )naptarak_nevnap_is_public_holiday( $date = null )naptarak_nevnap_is_workday( $date = null )naptarak_nevnap_add_workdays( $date, $days )naptarak_nevnap_next_public_holidays( $date = null, $count = 1 )naptarak_nevnap_long_weekends( $year )naptarak_nevnap_swaps_published( $year )naptarak-com-nevnap folder to the /wp-content/plugins/ directory.Yes. In automatic mode the box reads the text colour around it and adapts, also when the visitor or the theme switches modes. If the background is unclear (for example an image or a gradient behind it), the card gets a solid background. If this does not suit your site, choose the always light or always dark look in the settings or per block.
Set the accent colour in Settings → Naptárak.com Névnap, per block in the Appearance panel, or with accent="#b45309" in a shortcode. Text and background colours can be set in the block's colour settings.
Yes. Each box also contains the next seven days, and a tiny script shows the right one if a cached page is served on a later day. If your cache keeps pages for longer than a week, clear it at least weekly.
Public holidays are known years ahead; the working-day swaps are decided by a government decree every year. The plugin is updated after the decree is published; until then the box shows a short note and the PHP functions only take weekends and public holidays into account.
No. All data is inside the plugin and it makes no requests. The "Source: Naptárak.com" line is off by default; if you switch it on, it is a plain link to the matching page of Naptárak.com.
Credits are shown only if you opt in. Switch it on in Settings → Naptárak.com Névnap (name only, or with a link), or per block in the Appearance panel.
Yes. The interface, the block settings, the settings page and its How to use tab are fully translated into Hungarian; they appear in Hungarian when the site language is Hungarian.
The one set in Settings → General.
The plugin uses the same data as Naptárak.com. From 2024 to 2026, 24 December was a rest day by working-day swap, which the plugin includes. If the law makes it a public holiday, the plugin will be updated after it is promulgated.