Moved script to normal queue since noConflict was a bust
This commit is contained in:
1 parent
0ed37d4d92
commit
4cc18430da
1 file changed
+6
-8
+6
-8
@@ -152,27 +152,25 @@ class Laps {
|
|||||||
wp_register_style( 'laps', plugins_url( 'css/laps.css', __DIR__ ) );
|
wp_register_style( 'laps', plugins_url( 'css/laps.css', __DIR__ ) );
|
||||||
|
|
||||||
if ( is_admin_bar_showing() ) {
|
if ( is_admin_bar_showing() ) {
|
||||||
|
wp_enqueue_script( 'laps-tooltip' );
|
||||||
wp_enqueue_style( 'laps' );
|
wp_enqueue_style( 'laps' );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static function print_footer_scripts( ) {
|
static function print_footer_scripts( ) {
|
||||||
|
|
||||||
if ( ! is_admin_bar_showing() )
|
if ( wp_script_is( 'laps-tooltip', 'done' ) ) {
|
||||||
return;
|
?>
|
||||||
|
<script type="text/javascript">
|
||||||
wp_print_scripts( 'laps-tooltip' );
|
|
||||||
?><script type="text/javascript">
|
|
||||||
jQuery(document).ready(function () {
|
jQuery(document).ready(function () {
|
||||||
jQuery(".laps-timeline .event").lapstooltip({
|
jQuery(".laps-timeline .event").lapstooltip({
|
||||||
container: '#wpadminbar'
|
container: '#wpadminbar', placement: 'bottom', html: true
|
||||||
, placement: 'bottom'
|
|
||||||
, html: true
|
|
||||||
// , trigger: 'click'
|
// , trigger: 'click'
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
</script><?php
|
</script><?php
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Render interface and add to the toolbar.
|
* Render interface and add to the toolbar.
|
||||||
|
|||||||
Reference in new issue
Block a user