Changeset 2586707
- Timestamp:
- 08/22/2021 08:28:36 PM (4 years ago)
- Location:
- filter-posts-by-date-range
- Files:
-
- 21 added
- 3 edited
-
tags/1.3 (added)
-
tags/1.3/css (added)
-
tags/1.3/css/images (added)
-
tags/1.3/css/images/ui-bg_flat_0_aaaaaa_40x100.png (added)
-
tags/1.3/css/images/ui-bg_flat_75_ffffff_40x100.png (added)
-
tags/1.3/css/images/ui-bg_glass_55_fbf9ee_1x400.png (added)
-
tags/1.3/css/images/ui-bg_glass_65_ffffff_1x400.png (added)
-
tags/1.3/css/images/ui-bg_glass_75_dadada_1x400.png (added)
-
tags/1.3/css/images/ui-bg_glass_75_e6e6e6_1x400.png (added)
-
tags/1.3/css/images/ui-bg_glass_95_fef1ec_1x400.png (added)
-
tags/1.3/css/images/ui-bg_highlight-soft_75_cccccc_1x100.png (added)
-
tags/1.3/css/images/ui-icons_222222_256x240.png (added)
-
tags/1.3/css/images/ui-icons_2e83ff_256x240.png (added)
-
tags/1.3/css/images/ui-icons_454545_256x240.png (added)
-
tags/1.3/css/images/ui-icons_888888_256x240.png (added)
-
tags/1.3/css/images/ui-icons_cd0a0a_256x240.png (added)
-
tags/1.3/css/jquery-ui.css (added)
-
tags/1.3/filter-posts-by-daterange.php (added)
-
tags/1.3/index.php (added)
-
tags/1.3/readme.txt (added)
-
tags/1.3/screenshot-1.png (added)
-
trunk/filter-posts-by-daterange.php (modified) (2 diffs)
-
trunk/index.php (modified) (1 diff)
-
trunk/readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
filter-posts-by-date-range/trunk/filter-posts-by-daterange.php
r1916363 r2586707 26 26 function FPBDR_form() { 27 27 28 $this_year = date('Y');29 $this_year_text = 'yearRange: "'.$this_year - 50 .':'.$this_year.'"';30 31 28 $FPBDR_DateFrom = sanitize_text_field( $_GET['FPBDR_DateFrom'] ); 32 29 $FPBDR_DateTo = sanitize_text_field( $_GET['FPBDR_DateTo'] ); … … 46 43 } 47 44 </style> 48 45 49 46 <input autocomplete="off" type="text" name="FPBDR_DateFrom" placeholder="Date From" value="' . $from . '" /> 50 47 <input autocomplete="off" type="text" name="FPBDR_DateTo" placeholder="Date To" value="' . $to . '" /> 51 48 52 49 <script> 53 50 jQuery( function($) { 54 51 var from = $(\'input[name="FPBDR_DateFrom"]\'), 55 to = $(\'input[name="FPBDR_DateTo"]\');56 52 to = $(\'input[name="FPBDR_DateTo"]\'); 53 57 54 $( \'input[name="FPBDR_DateFrom"], input[name="FPBDR_DateTo"]\' ).datepicker({ changeMonth: true, changeYear: true, yearRange: "-15:+0",}); 58 // by default, the dates look like this "April 3, 2017" but you can use any strtotime()-acceptable date format 59 // to make it 2017-04-03, add this - datepicker({dateFormat : "yy-mm-dd"}); 60 61 62 // the rest part of the script prevents from choosing incorrect date interval 63 from.on( \'change\', function() { 55 // by default, the dates look like this "April 3, 2017" but you can use any strtotime()-acceptable date format 56 // to make it 2017-04-03, add this - datepicker({dateFormat : "yy-mm-dd"}); 57 58 // the rest part of the script prevents from choosing incorrect date interval 59 from.on( \'change\', function() { 64 60 to.datepicker( \'option\', \'minDate\', from.val() ); 65 61 }); 66 62 67 63 to.on( \'change\', function() { 68 64 from.datepicker( \'option\', \'maxDate\', to.val() ); 69 65 }); 70 66 71 67 }); 72 </script>'; 68 </script> 69 '; 73 70 74 71 } -
filter-posts-by-date-range/trunk/index.php
r2163971 r2586707 2 2 /* 3 3 Plugin Name: Filter Posts By Date Range 4 Plugin URI: http://www.nikunjsoni.co.in/4 Plugin URI: # 5 5 Description: Filter your WordPress posts by date range 6 Version: 1. 26 Version: 1.3 7 7 Author: Nikunj Soni 8 Author URI: https://profiles.wordpress.org/nikunjsoni8 Author URI: # 9 9 */ 10 10 11 if ( ! defined( 'ABSPATH' )) {11 if (!defined('ABSPATH')) { 12 12 exit; // Exit if accessed this file directly 13 13 } 14 14 15 if ( ! defined( 'FPBDR_PLUGIN_URL' ) ) { 16 15 if (!defined('FPBDR_PLUGIN_URL')) { 17 16 // define the url of this plugin 18 17 $FPBDR_plugins_url = plugin_dir_url( __FILE__ ); 19 define( FPBDR_PLUGIN_URL, $FPBDR_plugins_url );18 define('FPBDR_PLUGIN_URL', $FPBDR_plugins_url ); 20 19 } 21 20 -
filter-posts-by-date-range/trunk/readme.txt
r2163972 r2586707 3 3 Tags: posts,filter,date,daterange,wp,wordpress,wp-admin,admin,plugin 4 4 Requires at least: 3.7 5 Tested up to: 5. 2.36 Requires PHP: 5.5.127 Stable tag: 1. 25 Tested up to: 5.8 6 Requires PHP: 7.1 7 Stable tag: 1.3 8 8 License: GPLv2 9 9 … … 29 29 == Changelog == 30 30 31 = 1.3 = 32 Tested and compatible with WordPress 5.8 33 31 34 = 1.2 = 32 35 Tested and compatible with WordPress 5.2.3 … … 40 43 == Upgrade Notice == 41 44 45 = 1.3 = 46 Tested and compatible with WordPress 5.8 47 42 48 = 1.2 = 43 49 Tested and compatible with WordPress 5.2.3
Note: See TracChangeset
for help on using the changeset viewer.