Changeset 3066175
- Timestamp:
- 04/07/2024 07:31:53 AM (2 years ago)
- Location:
- nepali-date-converter
- Files:
-
- 26 added
- 2 edited
-
tags/2.0.6 (added)
-
tags/2.0.6/inc (added)
-
tags/2.0.6/inc/class (added)
-
tags/2.0.6/inc/class/ndc-frontend.php (added)
-
tags/2.0.6/inc/class/ndc-post-date.php (added)
-
tags/2.0.6/inc/frameworks (added)
-
tags/2.0.6/inc/frameworks/nepali-calendar (added)
-
tags/2.0.6/inc/frameworks/nepali-calendar/nepali_calendar.php (added)
-
tags/2.0.6/inc/functions (added)
-
tags/2.0.6/inc/functions/functions.php (added)
-
tags/2.0.6/inc/hooks (added)
-
tags/2.0.6/inc/hooks/enqueue-scripts.php (added)
-
tags/2.0.6/inc/hooks/wp-ajax.php (added)
-
tags/2.0.6/inc/hooks/wp-footer.php (added)
-
tags/2.0.6/inc/init.php (added)
-
tags/2.0.6/inc/shortcode (added)
-
tags/2.0.6/inc/shortcode/shortcode-nepali-date-converter.php (added)
-
tags/2.0.6/inc/shortcode/shortcode-today-date.php (added)
-
tags/2.0.6/inc/widgets (added)
-
tags/2.0.6/inc/widgets/widget-nepali-date-converter.php (added)
-
tags/2.0.6/inc/widgets/widget-today-date.php (added)
-
tags/2.0.6/index.php (added)
-
tags/2.0.6/languages (added)
-
tags/2.0.6/languages/index.php (added)
-
tags/2.0.6/nepali-date-converter.php (added)
-
tags/2.0.6/readme.txt (added)
-
trunk/nepali-date-converter.php (modified) (4 diffs)
-
trunk/readme.txt (modified) (11 diffs)
Legend:
- Unmodified
- Added
- Removed
-
nepali-date-converter/trunk/nepali-date-converter.php
r2684543 r3066175 4 4 Plugin URI: https://www.addonspress.com/wordpress-plugins/nepali-date-converter/ 5 5 Description: Convert English to Nepali Date and Vice Versa and Post Date to Nepali Date. 6 Version: 2.0. 56 Version: 2.0.6 7 7 Author: addonspress 8 8 Author URI: https://www.addonspress.com/ … … 12 12 13 13 /*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;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; 17 17 } 18 18 /*Define Constants for this plugin*/ 19 define( 'NEPALI_DATE_CONVERTER_VERSION', '2.0. 5' );19 define( 'NEPALI_DATE_CONVERTER_VERSION', '2.0.6' ); 20 20 define( 'NEPALI_DATE_CONVERTER_PATH', plugin_dir_path( __FILE__ ) ); 21 21 define( 'NEPALI_DATE_CONVERTER_URL', plugin_dir_url( __FILE__ ) ); … … 23 23 24 24 /*Now lets init the functionalities of this plugin*/ 25 require_once ( NEPALI_DATE_CONVERTER_PATH . '/inc/init.php' );25 require_once NEPALI_DATE_CONVERTER_PATH . '/inc/init.php'; 26 26 27 27 /** … … 30 30 */ 31 31 if ( ! function_exists( 'nepali_date_converter_load_textdomain' ) ) : 32 function nepali_date_converter_load_textdomain() {32 function nepali_date_converter_load_textdomain() { 33 33 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 ); 36 36 37 // wp-content/languages/plugin-name/plugin-name-de_DE.mo38 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' ); 39 39 40 // wp-content/plugins/plugin-name/languages/plugin-name-de_DE.mo41 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 } 43 43 endif; 44 44 add_action( 'plugins_loaded', 'nepali_date_converter_load_textdomain' ); -
nepali-date-converter/trunk/readme.txt
r2684543 r3066175 2 2 Contributors: addonspress, acmeit, codersantosh 3 3 Donate 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, nepal4 Tags: Nepali post date, Nepali date converter, today Nepali date, English to Nepali date converter, Nepali to English date converter 5 5 Requires at least: 4.9 6 Tested up to: 5.97 Stable tag: 2.0. 56 Tested up to: 6.5 7 Stable tag: 2.0.6 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html 10 10 11 E asily Convert English to Nepali Date and Vice Versa and Post Date to Nepali Date. Also supports for todaydate.11 Effortlessly Convert between English and Nepali Dates, Including Converting Post Dates to Nepali Dates. Also supports displaying today's date. 12 12 13 13 == Description == 14 14 15 === The newly added feature is converting Post Date to Nepali Date. You can find the setting on `Admin => Setting => General` === 15 Newly Added Feature: Convert Post Dates to Nepali Dates. Access the setting under Admin => Setting => General. 16 16 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 todayEnglish date or both.17 Nepali Date Converter is a plugin with widgets and shortcodes which convert Nepali Dates to English Date and English Date to Nepali Date. 18 You can also show either today's Nepali date, today's English date or both. 19 19 Now you can also change the Post Date to Nepali Date. 20 20 … … 25 25 * Widget: Nepali Date Converter 26 26 * 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] 29 29 * Various Custom function to convert English Date to Nepali and Nepali Date to English 30 30 … … 42 42 == Available Shortcodes == 43 43 44 You can use following shortcodes either to display Nepali Date Converter or Today Date anywhere in the posts or pages:44 You can use the following shortcodes either to display Nepali Date Converter or Today Date anywhere in the posts or pages: 45 45 46 46 * Use `[nepali-date-converter]` to show Nepali Date Converter … … 53 53 * 'before_title' => Use anything to show before Title eg: `<div class="ndc-title">`, 54 54 * 'after_title' => Use anything to show after title eg: `</div>`, 55 * 'title' => Write something for t itle `Nepali Date Converter`,56 * 'disable_ndc_convert_nep_to_eng' => Write `1` for disable convertNepali Date to English Date,57 * 'disable_ndc_convert_eng_to_nep' => Write `1` for disable convertEnglish 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, 58 58 * 'nep_to_eng_button_text' => Write text for button for Nepali to English eg: `Nepali to English`, 59 59 * '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'. 61 61 Please note that "S The English suffix for the day of the month" is not supported for version 1.0, 62 62 * '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`63 You can also use 'eng_char' to display dates like this `Sukrabar, Ashwin 8, 2072` 64 64 * Example shortcodes: `[nepali-date-converter]`, `[nepali-date-converter title="Nepali date"]`, `[nepali-date-converter title="Nepali date" result_format ="l, F j, Y"]` 65 65 … … 68 68 == Installation == 69 69 70 1. Login to admin panel, Go to Plugins => Add New.70 1. Login to the admin panel, Go to Plugins => Add New. 71 71 2. Search for "Nepali Date Converter" and install it. 72 72 3. Once you install it, activate it … … 85 85 = What does this plugin do? = 86 86 87 * You can show Post Date to Nepali87 * You can show the Post Date to Nepali 88 88 * Convert Nepali Date to English Date and English Date to Nepali Date. 89 * You can also show either today Nepali date or todayEnglish date or both.89 * You can also show either today's Nepali date today, the English date or both. 90 90 * Custom functions are available 91 91 … … 94 94 Please 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). 95 95 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? = 97 97 98 You can use following shortcodes either to display Nepali Date Converter or Today Date anywhere in the posts or pages:98 You can use the following shortcodes either to display Nepali Date Converter or Today Date anywhere in the posts or pages: 99 99 100 100 * Use `[nepali-date-converter]` to show Nepali Date Converter 101 101 * Use `[ndc-today-date]` to show Today Date 102 102 103 = Isthere any functions available in this =103 = Are there any functions available in this = 104 104 105 105 Yes, you can use the following functions … … 110 110 * ndc_convert_nep_to_eng 111 111 112 For showing whole Nepali date converter or today Nepali date you can use do_shortcode function112 For showing the whole Nepali date converter or today's Nepali date you can use the do_shortcode function 113 113 114 114 * `echo do_shortcode('[nepali-date-converter]')` 115 115 * `echo do_shortcode('[ndc-today-date]')` 116 116 117 = Still have some questions ? =117 = Still have some questions? = 118 118 119 119 Please use support [support forum](https://wordpress.org/support/plugin/nepali-date-converter/) … … 125 125 2. Nepali Date Converter Widget 126 126 127 3. Today Date Widget127 3. Today's Date Widget 128 128 129 129 4. Widgets area … … 131 131 5. Nepali Date Converter Widget Frontend 132 132 133 6. Today Date Widget Frontend133 6. Today's Date Widget Frontend 134 134 135 135 7. Frontend Display form shortcode and widget 136 136 137 137 == Changelog == 138 139 = 2.0.6 - 2023-04-07 = 140 * Updated : Tested up WordPress 6.5 138 141 139 142 = 2.0.5 - 2022-02-25 = … … 155 158 = 2.0.0 - 2020-06-10 = 156 159 * Added: New Feature => Show Post Date to Nepali 157 * Updated : Code Review158 * Updated : Prefix160 * Updated: Code Review 161 * Updated: Prefix 159 162 160 163 = 1.0.1 - 2020-05-03 = 161 * Updated : Latest version test164 * Updated: Latest version test 162 165 * Added: Contributor 163 166
Note: See TracChangeset
for help on using the changeset viewer.