This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Plugin Name: Allow GLB, USDZ and Reality mime in Wordpress Media Library | |
* Plugin URI: https://gist.github.com/PixelPartner/d3362a9fad57165ba9d5bd76a3f5b4ee | |
* Description: A plugin that makes it possible to upload AR files in Media Manager. Don't forget to add the three MIME types in web server config if necessary! No settings necessary, just activate and upload USDZ files in media library as usually. Tested with WP 5.2.3 | |
* Version: 1.0.0 | |
* Author: Thomas Kumlehn | |
* Author URI: https://config-xr.mobi | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const cacheMinutes = 60 // 60 min | |
const today = new Date(); | |
let result | |
let widget = new ListWidget() | |
widget.setPadding(8, 8, 8, 8) | |
widget.url = "https://www.rki.de/DE/Content/InfAZ/N/Neuartiges_Coronavirus/Daten/Impfquoten-Tab.html" | |
await getNumbers() | |
await createWidget() | |
Script.setWidget(widget) |