{"id":24393512,"url":"https://github.com/nahakiole/ics-calendar","last_synced_at":"2026-06-30T09:31:39.330Z","repository":{"id":75046373,"uuid":"79968390","full_name":"nahakiole/ics-calendar","owner":"nahakiole","description":"A Wordpress Plugin to easily insert a ICS calendar file from another server and keep it in sync.","archived":false,"fork":false,"pushed_at":"2017-01-25T20:26:55.000Z","size":34,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-12T12:48:32.603Z","etag":null,"topics":["calendar","ics","wordpress","wordpress-plugin"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nahakiole.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-01-25T00:24:37.000Z","updated_at":"2024-05-03T09:02:31.000Z","dependencies_parsed_at":null,"dependency_job_id":"d828b78b-05ce-41fa-84a9-eedf99137be0","html_url":"https://github.com/nahakiole/ics-calendar","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nahakiole/ics-calendar","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nahakiole%2Fics-calendar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nahakiole%2Fics-calendar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nahakiole%2Fics-calendar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nahakiole%2Fics-calendar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nahakiole","download_url":"https://codeload.github.com/nahakiole/ics-calendar/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nahakiole%2Fics-calendar/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34961543,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-30T02:00:05.919Z","response_time":92,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["calendar","ics","wordpress","wordpress-plugin"],"created_at":"2025-01-19T18:25:26.254Z","updated_at":"2026-06-30T09:31:39.296Z","avatar_url":"https://github.com/nahakiole.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ICS Calendar\nA Wordpress Plugin to easily insert a ICS calendar file from another server and keep it in sync.\n\nDownload the plugin here: https://github.com/nahakiole/ics-calendar/archive/master.zip\n\nThen install it by uploading it in your Wordpress installation.\n\n## Configuration\n\nThe Settings can be found under Settings, ICS Calendar. \nPut in the URL to your ICS file and how long the file should be cached until it will get refetched.\n\nTo show the output on your page you can either use the widget to include your calendar or use the shortcode ```[ics_calendar]```\n\nIf you want to customize the output you can use the hook ```ics_calendar_render``` which gets passed a array with the list of events.\n\nThis is a bad example of how you could potentially implement this function. ;D\n\n```php\nfunction calender_render($events){\n    $output = \"\";\n    $max = 5;\n    foreach ($events as $index =\u003e $event) {\n        if ($max == 0) {\n            break;\n        }\n        $max--;\n        $startDate = new DateTime($event['DTSTART']);\n        if ($startDate-\u003eformat('U') \u003c time()) {\n            continue;\n        }\n        $endDate = new DateTime($event['DTEND']);\n        $output .= 'Treffen am '.date_i18n('d. F Y',$startDate-\u003eformat('U'));\n        $output .= '\u003cbr/\u003e';\n        $geo = explode(';',$event['GEO']);\n        $output .= '\u003ca target=\"_blank\" href=\"https://www.google.ch/maps/place/'.urlencode($geo[0]).'+'.urlencode($geo[1]).'\"\u003e'.\n            preg_replace('/\\([^)]*\\)/','',str_replace(\n                [ '/','\\n', '\\;',],\n                ['\u003cbr/\u003e',' ', '\u003cbr/\u003e', ],\n                nl2br($event['LOCATION']))) .'\u003c/a\u003e';\n        $output .= '\u003cbr\u003e';\n        $output .= $startDate-\u003eformat('H:i');\n        $output .= ' bis ';\n        $output .= $endDate-\u003eformat('H:i');\n        $output .= '\u003cbr\u003e';\n        $output .= '\u003ca target=\"_blank\" href=\"' . $event['URL'] . '\"\u003eWeitere Informationen\u003c/a\u003e';\n        $output .= '\u003cbr\u003e';\n        $output .= '\u003cbr\u003e';\n    }\n    return $output;\n}\n\nadd_filter( 'ics_calendar_render', 'calender_render');\n```\n\n## License and credit\n\nUsed WordPress-Plugin-Template to initialize the plugin: https://github.com/hlashbrooke/WordPress-Plugin-Template (GPL)\n\nUsing ics-parser from Martin Thoma to parse the ics files: https://github.com/MartinThoma/ics-parser (MIT)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnahakiole%2Fics-calendar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnahakiole%2Fics-calendar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnahakiole%2Fics-calendar/lists"}