Plugin Directory

Changeset 903749


Ignore:
Timestamp:
04/28/2014 02:52:24 AM (12 years ago)
Author:
teraom
Message:

Added date picker. Check with wp 3.9

Location:
super-events/trunk
Files:
17 added
2 edited

Legend:

Unmodified
Added
Removed
  • super-events/trunk/readme.txt

    r880676 r903749  
    44Tags: events, rsvp, meetings
    55Requires at least: 3.0.1
    6 Tested up to: 3.8.1
    7 Stable tag: 0.3
     6Tested up to: 3.9
     7Stable tag: 0.4
    88License: GPLv2
    99
     
    5858== Changelog ==
    5959
     60= 0.4 =
     61* Tested with Wordpress 3.9
     62* Added date picker support
     63
    6064= 0.3 =
    6165* Tested with newer versions of wordpress
  • super-events/trunk/superevents.php

    r880676 r903749  
    55Description: A simple events management plugin with RSVP.
    66Author: Bharad
    7 Version: 0.3
     7Version: 0.4
    88Author URI: http://bharad.net/
    99License: GPL2
     
    182182   <input type="text" name="superevents_location" value="<?php echo $location; ?>" id="superevents_location">
    183183   <label for="superevents_eventdate">Date :</label>
    184    <input type="text" name="superevents_eventdate" value="<?php echo $eventdate; ?>" id="superevents_eventdate">
     184   <input type="text" name="superevents_eventdate" value="<?php echo $eventdate; ?>" id="superevents_eventdate" class="datepicker">
    185185   <label for="superevents_time">Time :</label>
    186186   <input type="text" name="superevents_time" value="<?php echo $time; ?>" id="superevents_time">
     
    207207register_activation_hook( __FILE__, 'superevents_create_tables' );
    208208
    209 add_action( 'admin_enqueue_scripts', 'superevents_add_admin_css' );
    210 
    211 function superevents_add_admin_css()
     209add_action( 'admin_enqueue_scripts', 'superevents_add_admin_css_js' );
     210
     211function superevents_add_admin_css_js()
    212212{
    213213   global $post_type;
     
    216216
    217217        wp_enqueue_style( 'superevents_admin', plugins_url('/css/superevents_admin.css', __FILE__), array(), '1.0' );
    218 
     218    wp_enqueue_script( 'jquery-ui-datepicker' );
     219    wp_enqueue_style( 'jquery.ui.theme', plugins_url( '/css/jquery-ui-1.10.4.custom.min.css', __FILE__ ) );
     220    wp_enqueue_script( 'superevents-script', plugins_url( '/js/superevents_admin.js', __FILE__ ), array( 'jquery' ) , false, true);
    219221    }
    220222}
Note: See TracChangeset for help on using the changeset viewer.