=== Sajilo Bikram Sambat ===
Contributors: yubrajpandeya
Tags: nepali date, bikram sambat, bs date, nepali calendar, shortcode
Requires at least: 5.3
Tested up to: 7.0
Requires PHP: 7.2
Stable tag: 1.4.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Convert Gregorian dates to Nepali Bikram Sambat dates and display them with a shortcode or template functions.

== Description ==

Sajilo Bikram Sambat is a lightweight, dependency-free converter for Gregorian (AD) dates to Nepali Bikram Sambat (BS). It supports dates from 1944 through 2033 AD and displays Nepali month and weekday names with Nepali numerals.

* Display today's date with `[sajibisa_date]`.
* Convert a date with `[sajibisa_date date="2026-01-01"]`.
* Customize output with `[sajibisa_date format="d m y, l"]`.
* Copy ready-to-use shortcode recipes from the Sajilo BS admin screen.
* Preview today's converted date before publishing.
* Choose a default format and optionally include time.
* Optionally convert post, modified, and comment dates automatically.
* No remote requests, tracking, advertising, or external dependencies.

Format tokens are `d` (day), `m` (Nepali month), `y` (year), and `l` (weekday).

Developer examples: `sajibisa_get_today_date()` and `sajibisa_get_post_date( get_the_date( 'Y-m-d' ) )`.

== Installation ==

1. Upload the `sajilo-bikram-sambat` folder to `/wp-content/plugins/`, or install it from Plugins > Add New.
2. Activate Sajilo Bikram Sambat from the Plugins screen.
3. Add `[sajibisa_date]` to a post, page, or shortcode-compatible widget.
4. Open the Sajilo BS menu to copy examples and configure display options.

== Frequently Asked Questions ==

= Which dates are supported? =

Gregorian dates from 1944 through 2033 AD are supported by the included dataset.

= Does the plugin collect data or contact external services? =

No. All conversion happens locally on the WordPress site.

= Where can I get support? =

Visit [yubrajpandeya.com.np](https://yubrajpandeya.com.np) for help with shortcodes, date formats, or theme integration.

== Changelog ==

= 1.4.0 =
* Standardized all global functions, classes, constants, hooks, settings, options, script data, and the shortcode under the unique `sajibisa` prefix.
* Renamed the stored option to `sajibisa_options` to prevent conflicts with other plugins.
* Renamed the public shortcode to `[sajibisa_date]` and updated all examples.
* Renamed internal class files to match the common plugin prefix.

= 1.3.2 =
* Fixed a double timezone-offset bug that could move today's preview and shortcode output into the following day.
* Corrected current-date and human-time calculations to use Unix timestamps with the WordPress site timezone applied exactly once.

= 1.3.1 =
* Removed the optional Plugin URI to keep it distinct from the Author URI and satisfy directory validation.

= 1.3.0 =
* Redesigned the Sajilo BS dashboard with clearer navigation and professional responsive styling.
* Added a guided three-step quick start and improved shortcode library.
* Added richer format examples and clearer automatic-conversion controls.
* Added accessible copy confirmation and error feedback.
* Added support and contact links to yubrajpandeya.com.np.
* Improved mobile layout, focus states, interaction states, and reduced-motion behavior.

= 1.2.2 =
* Escaped date-range exception messages.
* Applied the full plugin prefix to public functions, callbacks, and the plugin filter.

= 1.2.1 =
* Restored the original main plugin filename and added a compatibility loader for existing installations.

= 1.2.0 =
* Added an accessible Sajilo BS admin dashboard with live output preview.
* Added one-click shortcode copying and practical usage recipes.
* Added global display format and time settings.
* Added opt-in automatic conversion for post, modified, and comment dates.
* Replaced unsafe conversion termination with exceptions.
* Prefixed the plugin filter and normalized source line endings.

= 1.1.2 =
* Rebuilt the installation archive with portable directory paths.

= 1.1.1 =
* Normalized the plugin header for WordPress.org validation.

= 1.1.0 =
* Added shortcode support.
* Corrected plugin metadata and added WordPress.org documentation.
* Improved timezone handling and input normalization.

= 1.0.0 =
* Initial release.

== Upgrade Notice ==

= 1.4.0 =
Uses the conflict-safe `[sajibisa_date]` shortcode and fully prefixed public API required for WordPress.org review.

= 1.3.2 =
Fixes incorrect next-day output for sites using the Nepal timezone.

= 1.3.1 =
Corrects plugin header URI validation for WordPress.org submission.

= 1.3.0 =
Introduces a polished dashboard, guided setup, improved settings, and direct support access.

= 1.2.2 =
Resolves WordPress Plugin Check escaping and global-prefix findings.

= 1.2.1 =
Fixes activation for installations that retained an earlier plugin file path.

= 1.2.0 =
Adds the Sajilo BS dashboard, shortcode recipes, preview, and automatic conversion options.

= 1.1.2 =
Provides a portable installation package for all supported server platforms.

= 1.1.1 =
Normalizes the plugin header for WordPress.org validation.

= 1.1.0 =
Adds shortcode support and WordPress.org release metadata.
