This file contains 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 | |
/** | |
* Background: | |
* A website I made wanted to show the pricing and availablity of some houses the offer for rent. | |
* they managed these data via simple google calendars, one for bookings/availabiliy and | |
* one where they enter prices for each day via recurring events a couple of weeks in advance. | |
* | |
* since google private calendar urls can not be access via JS (due to CORS) | |
* We need a proxy where we can controll CORS-Headers. |
This file contains 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
---- File: .htaccess (in Folder {FOLDER} on webgo its something like /home/www/flask_running_here ) --- | |
#.htaccess | |
RewriteEngine On | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteRule ^(.*)$ {FOLDER}/flask.cgi/$1 [L] | |
---- File:flask.cgi (in Folder {FOLDER} on webgo its something like /home/www/flask_running_here ) --- | |
#! /usr/bin/python3 |
This file contains 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 | |
function yours59_filter_metadata_registration( $settings, $metadata ) { | |
/* | |
copied all block configuration files form gutenberg plugin (wp-content/plugins/gutenberg/build/block-library/blocks/**) to theme folder | |
so that I'm able to overwrite it from here, and do not loose changes every time gutenberg plugin updates | |
*/ | |
$is_core_block = strpos( $metadata['name'], 'core/' ); | |
if ( $is_core_block === 0 ) { | |
$name = substr( $metadata['name'], 5 ); |