File tree 2 files changed +17
-10
lines changed
2 files changed +17
-10
lines changed Original file line number Diff line number Diff line change @@ -454,12 +454,23 @@ function custom_password_form() {
454
454
455
455
// Loads scripts
456
456
function wpbootstrap_scripts () {
457
- wp_register_script ('jquery-tablesorter ' ,
458
- get_template_directory_uri () . '/js/jquery/jquery.tablesorter.min.js ' ,
459
- array ('jquery ' ),
460
- '2.0.5 ' );
461
-
462
- wp_enqueue_script ('jquery-tablesorter ' );
457
+ wp_register_script ('jquery-tablesorter ' ,
458
+ get_template_directory_uri () . '/js/jquery/jquery.tablesorter.min.js ' ,
459
+ array ('jquery ' ),
460
+ '2.0.5 ' );
461
+
462
+ wp_enqueue_script ('jquery-tablesorter ' );
463
+
464
+ wp_register_script ('google-code-prettify ' ,
465
+ get_template_directory_uri () . '/js/google-code-prettify/prettify.js ' );
466
+
467
+ wp_enqueue_script ('google-code-prettify ' );
468
+
469
+ wp_register_script ('wpbootstrap-application ' ,
470
+ get_template_directory_uri () . '/js/application.js ' ,
471
+ array ('jquery-tablesorter ' ));
472
+
473
+ wp_enqueue_script ('wpbootstrap-application ' );
463
474
}
464
475
465
476
add_action ('wp_enqueue_scripts ' , 'wpbootstrap_scripts ' );
Original file line number Diff line number Diff line change 33
33
34
34
<link href="<?php bloginfo ('template_directory ' ); ?> /js/google-code-prettify/prettify.css" rel="stylesheet">
35
35
36
- <script src="http://code.jquery.com/jquery-1.5.2.min.js"></script>
37
- <script src="<?php bloginfo ('template_directory ' ); ?> /js/google-code-prettify/prettify.js"></script>
38
- <script src="<?php bloginfo ('template_directory ' ); ?> /js/application.js"></script>
39
-
40
36
<?php
41
37
/* We add some JavaScript to pages with the comment form
42
38
* to support sites with threaded comments (when in use).
You can’t perform that action at this time.
0 commit comments