feat(theme): complete Zibll navigation hard replacement
This commit is contained in:
@@ -33,11 +33,15 @@ trait ScriptsPart1c {
|
||||
$needs_post_list_media = wp_style_is('aksrt-post-card', 'enqueued');
|
||||
|
||||
$zibll_uri = $base_uri . '/assets/vendor/zibll';
|
||||
$zibll_loader_path = get_template_directory() . '/assets/vendor/zibll/js/loader.js';
|
||||
$zibll_main_path = get_template_directory() . '/assets/vendor/zibll/js/main.min.js';
|
||||
$zibll_loader_version = file_exists($zibll_loader_path) ? (string) filemtime($zibll_loader_path) : $version;
|
||||
$zibll_runtime_version = file_exists($zibll_main_path) ? (string) filemtime($zibll_main_path) : $version;
|
||||
wp_enqueue_script(
|
||||
'loader_js',
|
||||
$zibll_uri . '/js/loader.js',
|
||||
['jquery', 'bootstrap'],
|
||||
$version,
|
||||
$zibll_loader_version,
|
||||
true
|
||||
);
|
||||
wp_localize_script(
|
||||
@@ -47,7 +51,7 @@ trait ScriptsPart1c {
|
||||
'views' => '',
|
||||
'www' => home_url('/'),
|
||||
'uri' => $zibll_uri,
|
||||
'ver' => $version,
|
||||
'ver' => $zibll_runtime_version,
|
||||
'pay_mark' => '¥',
|
||||
'pay_currency_unit' => __('元', 'aksrt'),
|
||||
'imgbox' => false,
|
||||
|
||||
Reference in New Issue
Block a user