PluginProbe
Category Posts Block / trunk
Category Posts Block vtrunk
5.0.0 trunk 1.0 1.1 1.2 1.2.1 1.3 1.3.1 1.3.2 1.3.3 2.0 2.1 2.2 2.3 3.1 3.2 3.3 4.0 4.1.0 4.1.1 4.1.2 4.1.3 4.1.4 4.1.5 4.1.6 All 62 releases
category-posts / localizeddate.php

localizeddate.php in Category Posts Block trunk, at localizeddate.php

31 lines 507 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Server side implementation of localized dates handling.
4 *
5 * @package categoryposts.
6 *
7 * @since 4.9
8 */
9
10 namespace categoryPosts;
11
12 // Don't call the file directly.
13 if ( ! defined( 'ABSPATH' ) ) {
14 exit;
15 }
16
17 /**
18 * Embed the front end JS for load more.
19 *
20 * @since 4.9
21 */
22 function embed_date_scripts() {
23 echo '<script>{';
24 $suffix = 'min.js';
25 if ( defined( 'WP_DEBUG' ) && WP_DEBUG === true ) {
26 $suffix = 'js';
27 }
28 include __DIR__ . '/js/frontend/date.' . $suffix;
29 echo '}</script>';
30 }
31