WordPress.org

Plugin Directory

Changeset 326435


Ignore:
Timestamp:
12/27/10 19:06:24 (3 years ago)
Author:
lessbloat
Message:

Hard-coded version number at end of JS include, enqueued jQuery scripts, Deleted form-view.php and ui-lightness folder, as neither was being used.

Location:
grunion-contact-form/trunk
Files:
2 deleted
1 edited

Legend:

Unmodified
Added
Removed
  • grunion-contact-form/trunk/grunion-form-view.php

    r325576 r326435  
    1 <?php 
    2 function get_filetime ($filename) { 
    3     if (file_exists($filename)) { 
    4         return filemtime($filename); 
    5     } else { 
    6         return microtime(true); 
    7     } 
    8 } 
    9 ?> 
    101<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
    112<html xmlns="http://www.w3.org/1999/xhtml"> 
     
    134<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
    145<title>Contact form</title> 
    15 <script type="text/javascript" src="<?php echo get_bloginfo('wpurl'); ?>/wp-includes/js/jquery/jquery.js"></script> 
    16 <script type="text/javascript" src="<?php echo GRUNION_PLUGIN_URL; ?>js/jquery-ui-1.8.4.custom.min.js"></script> 
     6<?php wp_print_scripts( 'jquery' ); ?> 
     7<?php wp_print_scripts( 'jquery-ui-core' ); ?> 
     8<?php wp_print_scripts( 'jquery-ui-sortable' ); ?> 
     9<?php wp_print_scripts( 'jquery-ui-draggable' ); ?> 
    1710<script type="text/javascript"> 
    1811    var ajaxurl = '<?php echo admin_url('admin-ajax.php'); ?>'; 
     
    2114    var ajax_nonce_json = '<?php echo wp_create_nonce( 'grunion_shortcode_to_json' ); ?>'; 
    2215</script> 
    23 <script type="text/javascript" src="<?php echo GRUNION_PLUGIN_URL; ?>js/grunion.js?<?php echo get_filetime(GRUNION_PLUGIN_URL.'js/grunion.js'); ?>"></script> 
     16<script type="text/javascript" src="<?php echo GRUNION_PLUGIN_URL; ?>js/grunion.js?00001"></script> 
    2417<script type="text/javascript"> 
    2518    jQuery(document).ready(function () { 
     
    3124    }); 
    3225</script> 
    33 <link type="text/css" href="<?php echo GRUNION_PLUGIN_URL; ?>ui-lightness/jquery-ui-1.8.4.custom.css" /> 
    3426<style> 
    3527    /* Reset */ 
Note: See TracChangeset for help on using the changeset viewer.