Changeset 906469
- Timestamp:
- 05/01/2014 06:27:41 PM (12 years ago)
- Location:
- easy-options-page/trunk
- Files:
-
- 3 edited
-
easy-options-page.php (modified) (2 diffs)
-
js/scripts.js (modified) (2 diffs)
-
readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
easy-options-page/trunk/easy-options-page.php
r903509 r906469 4 4 Plugin URI: http://wordpress.org/plugins/easy-options-page 5 5 Description: Creates Options Pages in 2 minutes! And with shortcodes to gather the content 6 Version: 1. 26 Version: 1.3 7 7 Author: Joaquín Ruiz 8 8 Author URI: http://jokiruiz.com … … 166 166 167 167 function 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'); 169 169 wp_enqueue_script( 'easy-options-script-name', plugins_url( '/js/scripts.js', __FILE__ )); 170 170 wp_enqueue_style( 'easy-options-style-name', plugins_url( '/css/styles.css', __FILE__ )); -
easy-options-page/trunk/js/scripts.js
r903505 r906469 1 1 2 2 function 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); 5 5 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( 9 9 "<tr>"+ 10 10 '<td><input type="text" name="easy_option_table[name_'+num+']" value="" /></td>'+ … … 18 18 '<td><input class="btnDelete" type="button" value="Delete Option" /></td>'+ 19 19 "</tr>"); 20 21 $(".btnDelete").bind("click", Delete); 20 jQuery(".btnDelete").bind("click", Delete); 22 21 }; 23 22 24 23 function Delete(){ 25 var par = $(this).parent().parent(); //tr24 var par = jQuery(this).parent().parent(); //tr 26 25 par.remove(); 27 $('#easy_option_numOps').val($('#table1 tbody').children().length); 28 26 jQuery('#easy_option_numOps').val(jQuery('#table1 tbody').children().length); 29 27 }; 30 28 31 $(function(){ //Add, Save, Edit and Delete functions code 32 $(".btnDelete").bind("click", Delete);33 $("#btnAdd").bind("click", Add);29 jQuery(document).ready(function(jQuery) { 30 jQuery(".btnDelete").bind("click", Delete); 31 jQuery("#btnAdd").bind("click", Add); 34 32 }); 35 -
easy-options-page/trunk/readme.txt
r903505 r906469 13 13 == Description == 14 14 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. 15 Create Options Pages in less than 2 minutes! Specify the **Title** of the page, the **icon**, and the **options**. 16 17 1. Select the icon for your page from a list of icons, all of them prepared and optimized for > 3.8 wordpress admin panel. 18 19 2. For the options you can specify text string or image. (more options are coming in next updates!) 20 21 3. We also provide \"shortcodes\" to use the options inside your posts. 22 23 Do 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!* 16 26 17 27 == Installation == … … 47 57 48 58 = 1.1 = 49 * php 5.3 compatible.59 * php >= 5.3 compatible. 50 60 51 61 = 1.2 = 52 62 * 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…) 53 66 54 67 == Upgrade Notice == … … 58 71 59 72 = 1.1 = 60 php 5.3 compatible73 php >= 5.3 compatible 61 74 62 75 = 1.2 = 63 76 solve issues with other JQuery libraries 77 78 = 1.3 = 79 none 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.