{"id":21813240,"url":"https://github.com/webdevstudios/cmb2-date-range-field","last_synced_at":"2025-04-13T23:27:48.109Z","repository":{"id":32708947,"uuid":"36298543","full_name":"WebDevStudios/CMB2-Date-Range-Field","owner":"WebDevStudios","description":null,"archived":false,"fork":false,"pushed_at":"2021-04-29T08:42:15.000Z","size":72,"stargazers_count":20,"open_issues_count":6,"forks_count":9,"subscribers_count":56,"default_branch":"master","last_synced_at":"2025-03-27T13:45:19.542Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/WebDevStudios.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-05-26T13:42:50.000Z","updated_at":"2022-03-09T21:10:25.000Z","dependencies_parsed_at":"2022-06-27T00:04:08.252Z","dependency_job_id":null,"html_url":"https://github.com/WebDevStudios/CMB2-Date-Range-Field","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WebDevStudios%2FCMB2-Date-Range-Field","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WebDevStudios%2FCMB2-Date-Range-Field/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WebDevStudios%2FCMB2-Date-Range-Field/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WebDevStudios%2FCMB2-Date-Range-Field/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/WebDevStudios","download_url":"https://codeload.github.com/WebDevStudios/CMB2-Date-Range-Field/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248795639,"owners_count":21162810,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-27T14:28:07.086Z","updated_at":"2025-04-13T23:27:48.046Z","avatar_url":"https://github.com/WebDevStudios.png","language":"JavaScript","readme":"# WDS CMB2 Date Range Field #\n- **Contributors:**      WebDevStudios\n- **Donate link:**       http://webdevstudios.com\n- **Tags:**\n- **Requires at least:** 3.6.0\n- **Tested up to:**      4.7.0\n- **Stable tag:**        0.1.2\n- **License:**           GPLv2\n- **License URI:**       http://www.gnu.org/licenses/gpl-2.0.html\n\n## Description ##\n\nAdds a date range field to CMB2\n\n![CMB 2 Date Range Field Demo](https://cldup.com/bdK41R22yW.gif)\n\n## Installation ##\n\n### Manual Installation ###\n\n1. Upload the entire `/wds-cmb2-date-range-field` directory to the `/wp-content/plugins/` directory.\n2. Activate WDS CMB2 Date Range Field through the 'Plugins' menu in WordPress.\n\n## Frequently Asked Questions ##\n\n### How do I use the field? ###\nUse the field type of `date_range` when initializing your CMB2 Field.\n\n```php\n\t$prefix = '_yourprefix_';\n\t$cmb_demo = new_cmb2_box( array(\n \t\t'id'           =\u003e $prefix . 'metabox',\n \t\t'title'        =\u003e __( 'Test Metabox', 'cmb2' ),\n \t\t'object_types' =\u003e array( 'post', ), // Post type\n \t\t'context'      =\u003e 'normal',\n \t\t'priority'     =\u003e 'high',\n \t\t'show_names'   =\u003e true,\n \n \t) );\n \n \t$cmb_demo-\u003eadd_field( array(\n \t\t'name'       =\u003e __( 'Test Date Range', 'cmb2' ),\n \t\t'desc'       =\u003e __( 'field description (optional)', 'cmb2' ),\n \t\t'id'         =\u003e $prefix . 'date_range',\n \t\t'type'       =\u003e 'date_range',\n \t) );\n ```\n\n## Screenshots ##\n\n\n## Changelog ##\n\n### 0.1.2 ###\n\n* Fix year being stored as \"Y\" instead of the actual year. Fixes [#7](https://github.com/WebDevStudios/CMB2-Date-Range-Field/issues/7)\n* Make it work without JS. Also, add spinner until daterange picker loads.\n* Update styling to work with CMB2's new picker styles.\n\n### 0.1.1 ###\n\n* The included jQuery UI css was causing major conflicts. This now leans heavily on CMB2 datepicker UI styling.\n* Updated to use CMB2 APIs so that expected functionality will not break.\n* Moved all JS to separate file and handle initiating datepicker with data attributes on the field inputs.\n\n### 0.1.0 ###\n* First release\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebdevstudios%2Fcmb2-date-range-field","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwebdevstudios%2Fcmb2-date-range-field","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebdevstudios%2Fcmb2-date-range-field/lists"}