Compare commits

..
1 Commits
Author SHA1 Message Date
biztechc fdc4f3dec1 Add new version and update jquery datatable js 2015-12-12 05:36:28 +00:00
2 changed files with 11 additions and 5 deletions
+3
View File
@@ -71,4 +71,7 @@ Is this plugin prepared for multisites? Yes.
= 1.0.0 =
* Stable Version release
= 1.0.1 =
* Solved jquery confliction
== Upgrade Notice ==
+8 -5
View File
@@ -4,7 +4,7 @@
* Description: Features can be settings to meet your exact needs for your table implementations. like Paging,Ordering,Searching, etc...
* Author: biztechc
* Author URI: http://www.biztechconsultancy.com
* Version: 1.0.0
* Version: 1.0.1
*/
add_action('admin_menu', 'wp_jdt_create_menu');
@@ -243,11 +243,10 @@ add_action('wp_enqueue_scripts','wp_jdt_style_and_script'); // add custom style
function wp_jdt_style_and_script()
{
// css
wp_enqueue_style( 'jdt-style-data-tables', plugins_url('css/jquery.dataTables.css', __FILE__) );
wp_register_style( 'jdt-style-data-tables', plugins_url('css/jquery.dataTables.css', __FILE__) );
// js
wp_enqueue_script( 'jquery' );
wp_enqueue_script( 'jdt-js-datatables', plugins_url('js/jquery.dataTables.js', __FILE__) );
// js
wp_enqueue_script( 'jdt-js-datatables', plugins_url('js/jquery.dataTables.js', __FILE__), array('jquery') );
}
add_shortcode( 'wp_jdt', 'wp_jdt_shortcode' ); // add shortcode [wp_jdt id="test" info="true" paging="true" page_length="7" paging_type="full_numbers" b_length_change="true" ordering="true" order_row_number="3" order_row_number_sort="desc" searching="true"]
@@ -303,6 +302,10 @@ function wp_jdt_shortcode( $atts, $content = "" ) {
$wp_jdt_script .= "} ); \n";
$wp_jdt_script .= "</script>";
// css and js
wp_enqueue_style( 'jdt-style-data-tables' );
wp_enqueue_script( 'jdt-js-datatables' );
return $wp_jdt_script;
}