public function enqueueMomentLibs()
    {
        if (($data = $this->didEnqueueLibs(__METHOD__))) {
            return $data; // Did this already.
        } // We only need to enqueue once.

        $data = [
            'scripts' => [
                'moment' => [
                    'version'  => '2.17.1',
                    'url'      => '//cdnjs.cloudflare.com/ajax/libs/moment.js/%1$s/moment.min.js',
                    'localize' => [
                        'key'  => 'rgvfbtgzxqrdbpcdjvzpcrfrsbtgpdvpMomentData',
                        'data' => [
                            'format'     => _x('MMM Do, YYYY h:mm a', 'moment-libs', 'wp-sharks-core'), // Same as: `M jS, Y g:i a`
                            'formatDate' => _x('MMM Do, YYYY', 'moment-libs', 'wp-sharks-core'), // Same as: `M jS, Y`
                            'formatTime' => _x('h:mm a', 'moment-libs', 'wp-sharks-core'), // Same as: `g:i a`

                            'locale' => _x('en', 'moment-libs', 'wp-sharks-core'), // Override to translate.
                            'i18n'   => [ // Or, you can change the `en` language here.
                                'en'  => [], // See: <http://momentjs.com/docs/#/i18n/>
                                'utc' => _x('UTC', 'moment-libs', 'wp-sharks-core'),
                            ],
                        ],
                    ],
                ],
            ],
        ];
        return $this->enqueueLibs(__METHOD__, $data);
    }
public function enqueueMomentLibs()
    {
        if (($data = $this->didEnqueueLibs(__METHOD__))) {
            return $data; // Did this already.
        } // We only need to enqueue once.

        $data = [
            'scripts' => [
                'moment' => [
                    'version'  => '2.17.1',
                    'url'      => '//cdnjs.cloudflare.com/ajax/libs/moment.js/%1$s/moment.min.js',
                    'localize' => [
                        'key'  => 'rgvfbtgzxqrdbpcdjvzpcrfrsbtgpdvpMomentData',
                        'data' => [
                            'format'     => _x('MMM Do, YYYY h:mm a', 'moment-libs', 'wp-sharks-core'), // Same as: `M jS, Y g:i a`
                            'formatDate' => _x('MMM Do, YYYY', 'moment-libs', 'wp-sharks-core'), // Same as: `M jS, Y`
                            'formatTime' => _x('h:mm a', 'moment-libs', 'wp-sharks-core'), // Same as: `g:i a`

                            'locale' => _x('en', 'moment-libs', 'wp-sharks-core'), // Override to translate.
                            'i18n'   => [ // Or, you can change the `en` language here.
                                'en'  => [], // See: <http://momentjs.com/docs/#/i18n/>
                                'utc' => _x('UTC', 'moment-libs', 'wp-sharks-core'),
                            ],
                        ],
                    ],
                ],
            ],
        ];
        return $this->enqueueLibs(__METHOD__, $data);
    }
public function enqueueMomentLibs ( ) { if ( ( $ data = $ this -> didEnqueueLibs ( __METHOD__ ) ) ) { return $ data ; // Did this already. } // We only need to enqueue once. $ data = [ 'scripts' => [ 'moment' => [ 'version' => '2.17.1' , 'url' => '//cdnjs.cloudflare.com/ajax/libs/moment.js/%1$s/moment.min.js' , 'localize' => [ 'key' => 'rgvfbtgzxqrdbpcdjvzpcrfrsbtgpdvpMomentData' , 'data' => [ 'format' => _x ( 'MMM Do, YYYY h:mm a' , 'moment-libs' , 'wp-sharks-core' ) , // Same as: `M jS, Y g:i a` 'formatDate' => _x ( 'MMM Do, YYYY' , 'moment-libs' , 'wp-sharks-core' ) , // Same as: `M jS, Y` 'formatTime' => _x ( 'h:mm a' , 'moment-libs' , 'wp-sharks-core' ) , // Same as: `g:i a` 'locale' => _x ( 'en' , 'moment-libs' , 'wp-sharks-core' ) , // Override to translate. 'i18n' => [ // Or, you can change the `en` language here. 'en' => [ ] , // See: <http://momentjs.com/docs/#/i18n/> 'utc' => _x ( 'UTC' , 'moment-libs' , 'wp-sharks-core' ) , ] , ] , ] , ] , ] , ] ; return $ this -> enqueueLibs ( __METHOD__ , $ data ) ; }
Enqueue Moment libs.

@since 160524 Moment libs.

@return array Library details.
Enqueue Moment libs .