title: Converting a jQuery plugin into a WordPress plugin
body: <p>For my WordPress site I really need to be able to have the functions that <a href="http://fstoke.me/jquery/window/" rel="nofollow">this library offers</a>.</p>
  
  <p>My question is would it be possible to convert that jQuery plugin into a working WordPress plugin? And if so, how?</p>
  
  <p>Would this be the correct way to make the init.php file? </p>
  
  <pre><code>&lt;?php
  /*
  Plugin Name: jQuery Windows
  Plugin URI: http://fstoke.me/jquery/window
  Description: Sexy jQuery Windows. 
  Version: 5.03 
  Author: PC - Prashant Chaudhary
  Author URI: http://fstoke.me/jquery/window
  License: Creative Commons Attribution-ShareAlike 
  */
  wp_enqueue_style(
      'jquerywindowstyles',
      WP_PLUGIN_URL.'/jQuery-windows/css/jquery.window.css',
      false,
      all);
  
  // Add the scripts to the footer
  function jquerywindowjs(){
      // Identify our javascript files
      wp_register_script(
          'jquery.window',
          WP_PLUGIN_URL.'/jquery-windows/jquery.window.js',
          array( 'jquery' ),
          "2.1.4",
          1 );
      wp_register_script(
          'jquery.window.min',
          WP_PLUGIN_URL.'/jquery-windows/jquery.window.min.js',
          array( 'jquery', 'jquery.window' ),
          "1.0",
          1 );
      // Then enqueue them
      wp_enqueue_script( 'jquery.window' );
  }
  // Action our scripts
  add_action( 'wp_enqueue_scripts', 'jquerywindowjs' );
  ?&gt;
  </code></pre>