prefix."as_tejus_slideshow"; $sql = "CREATE TABLE ".$as_tejus_table_name." ( id INT NOT NULL AUTO_INCREMENT PRIMARY KEY, path VARCHAR(300), url VARCHAR(300), slideorder INT, caption VARCHAR(200) );" ; $wpdb->query($sql); } /*deleting database*/ function as_tejus_myplugin_deactivate(){ global $wpdb; $as_tejus_table_name = $wpdb->prefix."as_tejus_slideshow"; $sql= "DROP TABLE IF EXISTS ".$as_tejus_table_name ; $wpdb->query($sql); } add_action('init', 'as_tejus__mysite_init'); /* function to include javascript file*/ function as_tejus__mysite_init() { wp_enqueue_script( 'jquery' ); $as_tejus_plugin_path = WP_PLUGIN_URL.'/'.str_replace(basename( __FILE__),"",plugin_basename(__FILE__)); wp_enqueue_script('as_tejus_slidejq', $as_tejus_plugin_path . "js/as_tejus_slidejq.js"); wp_enqueue_script('as_tejus_easing', $as_tejus_plugin_path . "js/as_tejus_easing.js"); wp_enqueue_script('as_tejus_anythingslider', $as_tejus_plugin_path . "js/as_tejus_anythingslider.js"); wp_enqueue_script('as_tejus_anythingslidermin', $as_tejus_plugin_path . "js/as_tejus_anythingslidermin.js"); wp_enqueue_style( 'anythingslider', $as_tejus_plugin_path . "css/anythingslider.css"); } add_action('admin_menu','as_tejus_toaddmymenu'); /* to add various menus of plugin to admin panel*/ function as_tejus_toaddmymenu(){ /* adding top level menu */ add_menu_page( 'slide show', 'Image Slider', 'manage_options', 'as_tejus_slideshow', 'as_tejus_callitmyfunction' ); add_submenu_page('as_tejus_slideshow','add option','options','manage_options','as_tejus_slideshow_options','slide_show_option'); } function as_tejus_callitmyfunction(){ ?>

call this function in template file to show slideshow as_tejus_show_slideshow();


OR use this shortcode [as_tejus_slides] in posts or pages.

0)) { require_once( ABSPATH . 'wp-admin/includes/file.php' ); // Get the type of the uploaded file. This is returned as "type/extension" $arr_file_type = wp_check_filetype(basename($_FILES['astejusimg']['name'])); $uploaded_file_type = $arr_file_type['type']; // Set an array containing a list of acceptable formats $allowed_file_types = array('image/jpg','image/jpeg','image/gif','image/png'); // If the uploaded file is the right format if(in_array($uploaded_file_type, $allowed_file_types)) { // Options array for the wp_handle_upload function. 'test_upload' => false $upload_overrides = array( 'test_form' => false ); // Handle the upload using WP's wp_handle_upload function. Takes the posted file and an options array $returnigurlofimage = wp_handle_upload($_FILES['astejusimg'], $upload_overrides); } if($returnigurlofimage['url']){ $savethisimageurl = $returnigurlofimage['url'] ; global $wpdb; $as_tejus_table_name = $wpdb->prefix."as_tejus_slideshow"; $sql = "INSERT INTO ".$as_tejus_table_name." VALUES (DEFAULT,'{$savethisimageurl}','{$as_tejus_url}',0,'{$as_tejus_caption}') "; $wpdb->query($sql); } } } $as_tejus_plugin_path = WP_PLUGIN_URL.'/'.str_replace(basename( __FILE__),"",plugin_basename(__FILE__)); global $wpdb; $as_tejus_table_name = $wpdb->prefix."as_tejus_slideshow"; $sql= "SELECT * FROM ". $as_tejus_table_name; $djalladdedimagestoslides = $wpdb->get_results($sql, ARRAY_A); ?>
query($sql);} if($_GET['task']=="delete"){ $query = "DELETE FROM ".$as_tejus_table_name." WHERE id ='".$_GET['id']."'"; $wpdb->query($query); } }*/ foreach($djalladdedimagestoslides as $djalladdedimagestoslide){ echo ''; echo ''; echo ''; } ?>
image id IMAGE url order caption UPDATE Delete
image id IMAGE url order caption UPDATE Delete
'.$djalladdedimagestoslide['id'].'

Slider Show Option

Slide Effect
Auto play
Delay Time( In mili seconds)
Navigation Arrows
Auto resize
Show Navigation
Show Navigation on hover
Show start button
Show start button on hover