Import legacy nurinda.co.id website
This commit is contained in:
1 parent
3f59bb9038
commit
6e21646ac4
13389 files changed
+3246690
No files matched your search
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
/**
|
||||
* Date field class.
|
||||
*/
|
||||
class MASHSB_RWMB_Date_Field extends MASHSB_RWMB_Datetime_Field
|
||||
{
|
||||
/**
|
||||
* Enqueue scripts and styles
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public static function admin_enqueue_scripts()
|
||||
{
|
||||
parent::admin_register_scripts();
|
||||
wp_enqueue_style( 'jquery-ui-datepicker' );
|
||||
wp_enqueue_script( 'mashsb-rwmb-date' );
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a date() compatible format string from the JavaScript format
|
||||
*
|
||||
* @link http://www.php.net/manual/en/function.date.php
|
||||
* @param array $field
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public static function translate_format( $field )
|
||||
{
|
||||
return strtr( $field['js_options']['dateFormat'], self::$date_formats );
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user