Plugin Directory

Changeset 3179443


Ignore:
Timestamp:
10/31/2024 12:54:58 PM (17 months ago)
Author:
addonspress
Message:

2.0.8

Location:
nepali-date-converter
Files:
28 added
3 edited

Legend:

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

    r2321572 r3179443  
    11<?php
    2 add_shortcode('ndc-today-date','ndc_today_shortcode');
     2add_shortcode( 'ndc-today-date', 'ndc_today_shortcode' );
    33if ( ! function_exists( 'ndc_today_shortcode' ) ) :
    44
    5     function ndc_today_shortcode($atts){
     5    function ndc_today_shortcode( $atts ) {
    66
    7         extract(shortcode_atts(array(
    8             'before' => '',
    9             'after' => '',
    10             'before_title' => '',
    11             'after_title' => '',
    12             'title' => __( 'Date', 'nepali-date-converter' ),
    13             'disable_today_nep_date' =>'',
    14             'disable_today_eng_date' =>'',
    15             'nepali_date_lang' => 'nep_char',
    16             'result_format' => 'D, F j, Y'
    17         ), $atts));
    18         ob_start();
     7        extract(
     8            shortcode_atts(
     9                array(
     10                    'before'                 => '',
     11                    'after'                  => '',
     12                    'before_title'           => '',
     13                    'after_title'            => '',
     14                    'title'                  => __( 'Date', 'nepali-date-converter' ),
     15                    'disable_today_nep_date' => '',
     16                    'disable_today_eng_date' => '',
     17                    'nepali_date_lang'       => 'nep_char',
     18                    'result_format'          => 'D, F j, Y',
     19                ),
     20                $atts
     21            )
     22        );
     23        ob_start();
    1924
    20         $front_date_converter = ndc_frontend();
    21         $front_date_converter->today_date(array(
    22             'before'=> $before,
    23             'after'=> $after,
    24             'before_title'=> $before_title,
    25             'after_title'=> $after_title,
    26             'title'=> $title,
    27             'disable_today_nep_date'=> $disable_today_nep_date,
    28             'disable_today_eng_date'=> $disable_today_eng_date,
    29             'nepali_date_lang'=> $nepali_date_lang,
    30             'result_format'=> $result_format
    31         ));
    32         $content = ob_get_contents();
    33         ob_end_clean();
    34         return $content;
    35     }
     25        $front_date_converter = ndc_frontend();
     26        $front_date_converter->today_date(
     27            array(
     28                'before'                 => $before,
     29                'after'                  => $after,
     30                'before_title'           => $before_title,
     31                'after_title'            => $after_title,
     32                'title'                  => $title,
     33                'disable_today_nep_date' => $disable_today_nep_date,
     34                'disable_today_eng_date' => $disable_today_eng_date,
     35                'nepali_date_lang'       => $nepali_date_lang,
     36                'result_format'          => $result_format,
     37            )
     38        );
     39        $content = ob_get_contents();
     40        ob_end_clean();
     41        return $content;
     42    }
    3643
    3744endif;
  • nepali-date-converter/trunk/nepali-date-converter.php

    r3103095 r3179443  
    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.7
     6Version: 2.0.8
    77Author: addonspress
    88Author URI: https://www.addonspress.com/
     
    1717}
    1818/*Define Constants for this plugin*/
    19 define( 'NEPALI_DATE_CONVERTER_VERSION', '2.0.7' );
     19define( 'NEPALI_DATE_CONVERTER_VERSION', '2.0.8' );
    2020define( 'NEPALI_DATE_CONVERTER_PATH', plugin_dir_path( __FILE__ ) );
    2121define( 'NEPALI_DATE_CONVERTER_URL', plugin_dir_url( __FILE__ ) );
  • nepali-date-converter/trunk/readme.txt

    r3103095 r3179443  
    44Tags: 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: 6.5
    7 Stable tag: 2.0.7
     6Tested up to: 6.7
     7Stable tag: 2.0.8
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    140140== Changelog ==
    141141
     142= 2.0.8 - 2024-10-31 =
     143* Added: WordPress latest compatibility
     144* Added: Language folder
     145
    142146= 2.0.7 - 2024-06-15 =
    143147* Fixed : [Date issue](https://wordpress.org/support/topic/jestha-32-is-not-showing/)
Note: See TracChangeset for help on using the changeset viewer.