[WordPress] 外掛分享: Nyasro Nepali Date Converter

首頁外掛目錄 › Nyasro Nepali Date Converter
200+
安裝啟用
★★★★★
5/5 分(2 則評價)
2064 天前
最後更新
問題解決
WordPress 2.8+ v2.0.1 上架:2013-06-24

內容簡介

Nyasro Nepali Date Converter是一個附有小工具的外掛程式,可以將尼泊爾曆轉換成格林威治時間的西曆,以及將西曆轉換成尼泊爾曆。
以下是可用於文章或頁面中顯示今天尼泊爾日期或將英國-尼泊爾日期轉換的短碼:

使用[ny_dateconvert]顯示今天的尼泊爾日期。
使用[ny_dateconvert date='{date}']將尼泊爾日期轉換為英國時間。
使用[ny_dateconvert date='{date}' convert='{type}']將尼泊爾日期轉換為英國時間或英國時間轉換為尼泊爾日期。

其中,

{date}格式為YYYY-MM-DD[YYYY:四位數年份,MM:一或兩位數月份,DD:一或兩位數日]
{type}格式為eng_to_nep或nep_to_eng

此外掛程式有一個特殊的小工具,允許使用者在介面上進行英國-尼泊爾日期轉換。
以下是顯示nyasro nepali日期轉換器小工具的短碼:

使用[ny_datewidget]在文章或頁面的任何位置顯示日期轉換工具。

不僅如此,此外掛程式還為佈景主題小工具提供了日期轉換工具,名為Nyasro Nepali Date Converter,在大儀表板>外觀>小工具部分中,您可以使用此工具在您的佈景主題中的側邊欄中顯示日期轉換器。

如果您是開發人員,請使用以下PHP代碼進行日期轉換:

顯示當天尼泊爾日期:

<?php

if(function_exists('_Nyasro_todayDate'))
_Nyasro_todayDate();

?>

進行英國-尼泊爾日期轉換:

<?php
if(function_exists('_Nyasro_NepaliDateConverter'))
_Nyasro_NepaliDateConverter( $date, $conversion);
?>

其中$date = YYYY-MM-DD且$conversion = eng_to_nep | nep_to_eng。

顯示日期轉換器或方塊:

<?php
if(function_exists('_Nyasro_NepaliDateConverterWidget'))
_Nyasro_NepaliDateConverterWidget();
?>

外掛標籤

開發者團隊

⬇ 下載最新版 (v2.0.1) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Nyasro Nepali Date Converter」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

Nyasro Nepali Date Converter is plugin with widget which convert Nepali Date to English Date and English Date to Nepali Date.
You can use following shortcode either to display today’s nepali date or to convert english-nepali date, anywhere in the post or pages.

Use [ny_dateconvert] to show today nepali date.
Use [ny_dateconvert date='{date}'] to convert nepali date to english date.
Use [ny_dateconvert date='{date}' convert='{type}'] to convert nepali to english date or english to nepali date.

Where,

{date} format is YYYY-MM-DD [YYYY : four digit year, MM : one or tow digits month, DD : one or digits day]
{type} format is eng_to_nep or nep_to_eng

This plugin have special widget which allows user interface to convert english-nepali date or vice versa.
You can use following shortcode to display nyasro nepali date converter widget.

Use [ny_datewidget] to show date converter widget anywhere in your post or pages.

Not only that but also it has date converter widget for theme widgets named Nyasro Nepali Date Converter,
which you can use to show date converter from Dashboard > Appearance > Widgets section in your theme sidebar.
If you are a developer then use following PHP code for date converter.

To show today’s nepali date :

To convert english-nepali date or vice versa:

where $date = YYYY-MM-DD and $conversion = eng_to_nep | nep_to_eng.

To show date converter widget or box:

延伸相關外掛

文章
Filter
Apply Filters
Mastodon