Skip to content

Instantly share code, notes, and snippets.

View AntonioLeutsch's full-sized avatar

Antonio Leutsch AntonioLeutsch

View GitHub Profile
@AntonioLeutsch
AntonioLeutsch / functions.php
Created June 15, 2022 18:56
Disable Download for Audio & Video
function hide_download_buttons_on_embeds_render_block( $block_content, $block ) {
if ( 'core/audio' === $block['blockName'] ) {
$block_content = str_replace(
'<audio ',
'<audio controlsList="nodownload" ',
$block_content
);
}
if ( 'core/video' === $block['blockName'] ) {
$block_content = str_replace(
li.lang-switch a::before {
--color: #8ba4c0;
--content: '';
content: var(--content);
font-weight:bold;
cursor: default;
font-weight: var(--font-weight-heavy);
border-right: 1px solid #ededed;
padding-right: 6px;
@AntonioLeutsch
AntonioLeutsch / multiple-lists.php
Last active July 1, 2020 18:26
Contact Form 7 to Sendy.co Newsletter Instance
<?php
// Feel free to save your $list_id and $api_key where you want.
/**
* Send Contact Form 7 to Newsletter
*
* @param $form object WPCF7_ContactForm
* @param $abort boolean
* @param $submission object WPCF7_Submission
@AntonioLeutsch
AntonioLeutsch / apple_mixins.scss
Last active September 20, 2018 07:56
Apple Media Queries as Sass Mixins
/**
* iPad MEDIA QUERY´s
*/
// iPad Media Queries (All generations - including iPad mini)
@mixin ipad {
@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) {
@content
@AntonioLeutsch
AntonioLeutsch / user-data.txt
Created May 23, 2018 18:52 — forked from heri16/user-data.txt
Docker-CE Cloud-init for Ubuntu 16.04 (LTS)
#cloud-config
# Upgrade the instance on first boot
# (ie run apt-get upgrade)
#
# Default: false
# Aliases: apt_upgrade
package_upgrade: true
# Install additional packages on first boot
@AntonioLeutsch
AntonioLeutsch / Akkordion
Created February 23, 2016 11:06
My code snippets for Brackets (created using https://github.com/zaggino/brackets-snippets)
jQuery("zu klickendes element").click(function() {
var welches = jQuery(this).next("content zum ein/ausblenden");
if (jQuery(welches).is(":hidden")) {
jQuery(welches).stop().slideDown("slow");
jQuery(this).addClass("active");
} else {
jQuery(welches).stop().slideUp("slow");
jQuery(this).removeClass("active");
};
});