Plugin Directory

Changeset 906469


Ignore:
Timestamp:
05/01/2014 06:27:41 PM (12 years ago)
Author:
jokioki
Message:

v1.3

Location:
easy-options-page/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • easy-options-page/trunk/easy-options-page.php

    r903509 r906469  
    44Plugin URI: http://wordpress.org/plugins/easy-options-page
    55Description: Creates Options Pages in 2 minutes! And with shortcodes to gather the content
    6 Version: 1.2
     6Version: 1.3
    77Author: Joaquín Ruiz
    88Author URI: http://jokiruiz.com
     
    166166
    167167function easy_options_scripts() {
    168     wp_enqueue_script( 'easy-options-jquery', "http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js");
     168    wp_enqueue_script( 'jquery');
    169169    wp_enqueue_script( 'easy-options-script-name', plugins_url( '/js/scripts.js', __FILE__ ));
    170170    wp_enqueue_style( 'easy-options-style-name', plugins_url( '/css/styles.css', __FILE__ ));
  • easy-options-page/trunk/js/scripts.js

    r903505 r906469  
    11
    22function Add(){
    3     if ($('#easy_option_numOps').val() == "")
    4         $('#easy_option_numOps').val(1);
     3    if (jQuery('#easy_option_numOps').val() == "")
     4        jQuery('#easy_option_numOps').val(1);
    55    else
    6         $('#easy_option_numOps').val(parseInt($('#easy_option_numOps').val())+parseInt(1));
    7     var num = $('#easy_option_numOps').val();
    8     $("#table1 tbody").append(
     6        jQuery('#easy_option_numOps').val(parseInt(jQuery('#easy_option_numOps').val())+parseInt(1));
     7    var num = jQuery('#easy_option_numOps').val();
     8    jQuery("#table1 tbody").append(
    99        "<tr>"+
    1010            '<td><input type="text" name="easy_option_table[name_'+num+']" value="" /></td>'+
     
    1818            '<td><input class="btnDelete" type="button" value="Delete Option" /></td>'+
    1919        "</tr>");
    20    
    21         $(".btnDelete").bind("click", Delete);
     20    jQuery(".btnDelete").bind("click", Delete);
    2221};
    2322
    2423function Delete(){
    25     var par = $(this).parent().parent(); //tr
     24    var par = jQuery(this).parent().parent(); //tr
    2625    par.remove();
    27     $('#easy_option_numOps').val($('#table1 tbody').children().length);
    28 
     26    jQuery('#easy_option_numOps').val(jQuery('#table1 tbody').children().length);
    2927};
    3028
    31 $(function(){ //Add, Save, Edit and Delete functions code
    32     $(".btnDelete").bind("click", Delete);
    33     $("#btnAdd").bind("click", Add);
     29jQuery(document).ready(function(jQuery) {
     30    jQuery(".btnDelete").bind("click", Delete);
     31    jQuery("#btnAdd").bind("click", Add);
    3432});
    35 
  • easy-options-page/trunk/readme.txt

    r903505 r906469  
    1313== Description ==
    1414
    15 Create Options Pages in less than 2 minutes! Specify the Title of the page, the icon, and the options. For the options you can specify text string or image. We also provide shortcodes to use the opstions inside posts. Do you use worpdress admin with an iPad? Don´t worry, fully adapted for tablets and smartphones.
     15Create Options Pages in less than 2 minutes! Specify the **Title** of the page, the **icon**, and the **options**.
     16
     171. Select the icon for your page from a list of icons, all of them prepared and optimized for > 3.8 wordpress admin panel.
     18
     192. For the options you can specify text string or image. (more options are coming in next updates!)
     20
     213. We also provide \"shortcodes\" to use the options inside your posts.
     22
     23Do you use worpdress admin with an iPad? Don´t worry, this plugin is fully adapted for tablets and smartphones.
     24
     25*Thank you for downloading! your feedback is well appreciated!*
    1626
    1727== Installation ==
     
    4757
    4858= 1.1 =
    49 * php 5.3 compatible.
     59* php >= 5.3 compatible.
    5060
    5161= 1.2 =
    5262* solve issues with other JQuery libraries
     63
     64= 1.3 =
     65* none conflict with most popular wp plugins (Akismet, SEO Yoast, Gravity Forms, Advanced custom fields, bbpress…)
    5366
    5467== Upgrade Notice ==
     
    5871
    5972= 1.1 =
    60 php 5.3 compatible
     73php >= 5.3 compatible
    6174
    6275= 1.2 =
    6376solve issues with other JQuery libraries
     77
     78= 1.3 =
     79none conflict with most popular wp plugins (Akismet, SEO Yoast, Gravity Forms, Advanced custom fields, bbpress…)
Note: See TracChangeset for help on using the changeset viewer.