Plugin Directory

Changeset 3066175


Ignore:
Timestamp:
04/07/2024 07:31:53 AM (2 years ago)
Author:
addonspress
Message:

2.0.6

Location:
nepali-date-converter
Files:
26 added
2 edited

Legend:

Unmodified
Added
Removed
  • nepali-date-converter/trunk/nepali-date-converter.php

    r2684543 r3066175  
    44Plugin URI: https://www.addonspress.com/wordpress-plugins/nepali-date-converter/
    55Description: Convert English to Nepali Date and Vice Versa and Post Date to Nepali Date.
    6 Version: 2.0.5
     6Version: 2.0.6
    77Author: addonspress
    88Author URI: https://www.addonspress.com/
     
    1212
    1313/*Make sure we don't expose any info if called directly*/
    14 if ( !function_exists( 'add_action' ) ) {
    15     echo 'Hi there!  I\'m just a plugin, not much I can do when called directly.';
    16     exit;
     14if ( ! function_exists( 'add_action' ) ) {
     15    echo 'Hi there!  I\'m just a plugin, not much I can do when called directly.';
     16    exit;
    1717}
    1818/*Define Constants for this plugin*/
    19 define( 'NEPALI_DATE_CONVERTER_VERSION', '2.0.5' );
     19define( 'NEPALI_DATE_CONVERTER_VERSION', '2.0.6' );
    2020define( 'NEPALI_DATE_CONVERTER_PATH', plugin_dir_path( __FILE__ ) );
    2121define( 'NEPALI_DATE_CONVERTER_URL', plugin_dir_url( __FILE__ ) );
     
    2323
    2424/*Now lets init the functionalities of this plugin*/
    25 require_once( NEPALI_DATE_CONVERTER_PATH . '/inc/init.php' );
     25require_once NEPALI_DATE_CONVERTER_PATH . '/inc/init.php';
    2626
    2727/**
     
    3030 */
    3131if ( ! function_exists( 'nepali_date_converter_load_textdomain' ) ) :
    32     function nepali_date_converter_load_textdomain() {
     32    function nepali_date_converter_load_textdomain() {
    3333
    34         $domain = 'nepali-date-converter';
    35         $locale = apply_filters( 'plugin_locale', get_locale(), $domain );
     34        $domain = 'nepali-date-converter';
     35        $locale = apply_filters( 'plugin_locale', get_locale(), $domain );
    3636
    37         // wp-content/languages/plugin-name/plugin-name-de_DE.mo
    38         load_textdomain( 'nepali-date-converter', trailingslashit( WP_LANG_DIR ) . $domain . '/' . $domain . '-' . $locale . '.mo' );
     37        // wp-content/languages/plugin-name/plugin-name-de_DE.mo
     38        load_textdomain( 'nepali-date-converter', trailingslashit( WP_LANG_DIR ) . $domain . '/' . $domain . '-' . $locale . '.mo' );
    3939
    40         // wp-content/plugins/plugin-name/languages/plugin-name-de_DE.mo
    41         load_plugin_textdomain( 'nepali-date-converter', false, dirname( plugin_basename( __FILE__ ) ) . '/languages' );
    42     }
     40        // wp-content/plugins/plugin-name/languages/plugin-name-de_DE.mo
     41        load_plugin_textdomain( 'nepali-date-converter', false, dirname( plugin_basename( __FILE__ ) ) . '/languages' );
     42    }
    4343endif;
    4444add_action( 'plugins_loaded', 'nepali_date_converter_load_textdomain' );
  • nepali-date-converter/trunk/readme.txt

    r2684543 r3066175  
    22Contributors: addonspress, acmeit, codersantosh
    33Donate link: https://www.addonspress.com/
    4 Tags: nepali post date, post date nepal, nepali date converter, today nepali date, english to nepali date converter, nepali to english date converter, nepali date, date converter, nepali, nepal
     4Tags: Nepali post date, Nepali date converter, today Nepali date, English to Nepali  date converter, Nepali to English date converter
    55Requires at least: 4.9
    6 Tested up to: 5.9
    7 Stable tag: 2.0.5
     6Tested up to: 6.5
     7Stable tag: 2.0.6
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
    1010
    11 Easily Convert English to Nepali Date and Vice Versa and Post Date to Nepali Date. Also supports for today date.
     11Effortlessly Convert between English and Nepali Dates, Including Converting Post Dates to Nepali Dates. Also supports displaying today's date.
    1212
    1313== Description ==
    1414
    15 === The newly added feature is converting Post Date to Nepali Date. You can find the setting on `Admin => Setting => General` ===
     15Newly Added Feature: Convert Post Dates to Nepali Dates. Access the setting under Admin => Setting => General.
    1616
    17 Nepali Date Converter is a plugin with widgets and shortcodes which convert Nepali Date to English Date and English Date to Nepali Date.
    18 You can also show either today Nepali date or today English date or both.
     17Nepali Date Converter is a plugin with widgets and shortcodes which convert Nepali Dates to English Date and English Date to Nepali Date.
     18You can also show either today's Nepali date, today's English date or both.
    1919Now you can also change the Post Date to Nepali Date.
    2020
     
    2525* Widget: Nepali Date Converter
    2626* Widget: Nepali Today Date
    27 * Shortcode:Nepali Date Converter=> [nepali-date-converter]
    28 * Shortcode:Nepali Today Date=> [ndc-today-date]
     27* Shortcode: Nepali Date Converter=> [nepali-date-converter]
     28* Shortcode: Nepali Today Date=> [ndc-today-date]
    2929* Various Custom function to convert English Date to Nepali and Nepali Date to English
    3030
     
    4242== Available Shortcodes ==
    4343
    44 You can use following shortcodes either to display Nepali Date Converter or Today Date anywhere in the posts or pages:
     44You can use the following shortcodes either to display Nepali Date Converter or Today Date anywhere in the posts or pages:
    4545
    4646* Use `[nepali-date-converter]` to show Nepali Date Converter
     
    5353* 'before_title' => Use anything to show before Title eg: `<div class="ndc-title">`,
    5454* 'after_title' => Use anything to show after title eg: `</div>`,
    55 * 'title' => Write something for title `Nepali Date Converter`,
    56 * 'disable_ndc_convert_nep_to_eng' => Write `1` for disable convert Nepali Date to English Date,
    57 * 'disable_ndc_convert_eng_to_nep' =>  Write `1` for disable convert English Date to Nepali Date,
     55* 'title' => Write something for the title `Nepali Date Converter`,
     56* 'disable_ndc_convert_nep_to_eng' => Write `1` to disable converting Nepali Date to English Date,
     57* 'disable_ndc_convert_eng_to_nep' =>  Write `1` to disable converting English Date to Nepali Date,
    5858* 'nep_to_eng_button_text' => Write text for button for Nepali to English eg: `Nepali to English`,
    5959* 'eng_to_nep_button_text' => Write text for button for Nepali to English eg: `English to Nepali`,
    60 * 'result_format' => You can use any date format for result display in the frontend. See date format here [Formatting Date](https://codex.wordpress.org/Formatting_Date_and_Time). eg: 'D, F j, Y'.
     60* 'result_format' => You can use any date format for the result display in the front end. See date format here [Formatting Date](https://codex.wordpress.org/Formatting_Date_and_Time). eg: 'D, F j, Y'.
    6161Please note that "S The English suffix for the day of the month" is not supported for version 1.0,
    6262* 'nepali_date_lang' => By default Nepali date language is `nep_char` that means date display like this `शुक्रबार, अशोज ८, २०७२`,
    63 You can also use 'eng_char' to display date like this `Sukrabar, Ashwin 8, 2072`
     63You can also use 'eng_char' to display dates like this `Sukrabar, Ashwin 8, 2072`
    6464* Example shortcodes: `[nepali-date-converter]`, `[nepali-date-converter title="Nepali date"]`, `[nepali-date-converter title="Nepali date" result_format ="l, F j, Y"]`
    6565
     
    6868== Installation ==
    6969
    70 1. Login to admin panel, Go to Plugins => Add New.
     701. Login to the admin panel, Go to Plugins => Add New.
    71712. Search for "Nepali Date Converter" and install it.
    72723. Once you install it, activate it
     
    8585= What does this plugin do? =
    8686
    87 * You can show Post Date to Nepali
     87* You can show the Post Date to Nepali
    8888* Convert Nepali Date to English Date and English Date to Nepali Date.
    89 * You can also show either today Nepali date or today English date or both.
     89* You can also show either today's Nepali date today, the English date or both.
    9090* Custom functions are available
    9191
     
    9494Please note that "S The English suffix for the day of the month" is not supported for version 1.0. Other than that you can use any date format [Formatting Date](https://codex.wordpress.org/Formatting_Date_and_Time).
    9595
    96 = How can I display Nepali Date Converter or Today Date in any post/page content?  =
     96= How can I display the Nepali Date Converter or Today Date in any post/page content?  =
    9797
    98 You can use following shortcodes either to display Nepali Date Converter or Today Date anywhere in the posts or pages:
     98You can use the following shortcodes either to display Nepali Date Converter or Today Date anywhere in the posts or pages:
    9999
    100100* Use `[nepali-date-converter]` to show Nepali Date Converter
    101101* Use `[ndc-today-date]` to show Today Date
    102102
    103 = Is there any functions available in this   =
     103= Are there any functions available in this   =
    104104
    105105Yes, you can use the following functions
     
    110110* ndc_convert_nep_to_eng
    111111
    112 For showing whole Nepali date converter or today Nepali date you can use do_shortcode function
     112For showing the whole Nepali date converter or today's Nepali date you can use the do_shortcode function
    113113
    114114* `echo do_shortcode('[nepali-date-converter]')`
    115115* `echo do_shortcode('[ndc-today-date]')`
    116116
    117 = Still have some questions ? =
     117= Still have some questions? =
    118118
    119119Please use support [support forum](https://wordpress.org/support/plugin/nepali-date-converter/)
     
    1251252. Nepali Date Converter Widget
    126126
    127 3. Today Date Widget
     1273. Today's Date Widget
    128128
    1291294. Widgets area
     
    1311315. Nepali Date Converter Widget Frontend
    132132
    133 6. Today Date Widget Frontend
     1336. Today's Date Widget Frontend
    134134
    1351357. Frontend Display form shortcode and widget
    136136
    137137== Changelog ==
     138
     139= 2.0.6 - 2023-04-07 =
     140* Updated : Tested up WordPress 6.5
    138141
    139142= 2.0.5 - 2022-02-25 =
     
    155158= 2.0.0 - 2020-06-10 =
    156159* Added: New Feature => Show Post Date to Nepali
    157 * Updated : Code Review
    158 * Updated : Prefix
     160* Updated: Code Review
     161* Updated: Prefix
    159162
    160163= 1.0.1 - 2020-05-03 =
    161 * Updated : Latest version test
     164* Updated: Latest version test
    162165* Added: Contributor
    163166
Note: See TracChangeset for help on using the changeset viewer.