Skip to content
This repository has been archived by the owner on Dec 17, 2018. It is now read-only.

Added new features and translation for datepicker #657

Open
wants to merge 7 commits into
base: trunk
Choose a base branch
from

Conversation

kalicki
Copy link

@kalicki kalicki commented Aug 15, 2014

  • Datepicker of WordPress;
  • Translation;
  • New features: buttons, control of month and year.

Filipe F. Kalicki added 7 commits August 15, 2014 13:50
// Initialize the metabox class
add_action( 'init', 'be_initialize_cmb_meta_boxes', 9999 );
function be_initialize_cmb_meta_boxes() {
	// Custom path URL
    define( 'CMB_META_BOX_URL', trailingslashit( CUSTOM_URL_PATH ) );
    if ( !class_exists( 'cmb_Meta_Box' ) ) {
        require_once( 'lib/metabox/init.php' );
    }
}
Includes:
- Default (en_US)
- Portuguese Brazil (pt_BR)
Includes:
- Default (en_US)
- Portuguese Brazil (pt_BR)
Don't need validation for setDefaults, because always receives the
strings with translation.

$selector.datepicker( cmb.defaults.datePicker );
Deleted the file in the folder JS and calling the WordPress scripts
library

wp_enqueue_script( 'jquery-ui-datepicker' );
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant