Skip to content

Instantly share code, notes, and snippets.

View flegfleg's full-sized avatar

Florian Egermann flegfleg

View GitHub Profile
@flegfleg
flegfleg / cb_user_widget.css
Created November 16, 2017 14:34
add linebreaks in kasimir theme.css
/* Add line breaks in KASIMIR-THeme Login-Widget*/
.widget_cb_user_widget a {
display: block;
}
@flegfleg
flegfleg / Kasimir theme do not rotate navigation.css
Last active November 16, 2017 14:22
Kasimir theme do not rotate navigation.css
/* Kasimir Theme: Do not rotate left Navigation */
.secondary.navigation-area {
transform: rotate(0deg) !important;
}
@flegfleg
flegfleg / cb-address-format
Created October 22, 2017 17:14
Commons Booking Address Format Template
{{ADDRESS_1}}<br>
{{ADDRESS_2}}<br>
{{ADDRESS_3}}<br>
{{ZIP}} {{CITY}}<br>
{{COUNTRY}}
@flegfleg
flegfleg / echo if script.js is available
Created March 21, 2017 11:32
wp-check-if-js-enqueued.php
<?php
echo wp_script_is('jquery', 'queue')
? '<br>' . '[jquery] Script is enqueued' . '<br>'
: '<br>' . '[jquery] Script not enqueued' . '<br>';
?>
@flegfleg
flegfleg / wp-footnotes-emoji-arrow.scss
Created March 5, 2017 14:05
Wordpress Footnotes iOS Emoji Arrow Fix
// Wordpress Footnotes iOS Fix
// Prevents iOS from rendering ↩ (curved back arrow) as emoji
// Background: http://mts.io/2015/04/21/unicode-symbol-render-text-emoji/
//
.footnotes {
a[href^="#"] {
// Hide original glyph
visibility: hidden;
position: relative;
@flegfleg
flegfleg / user.less
Created February 5, 2017 17:31
Foldingtext Theme
// Foldingtext-Theme
@light-gray: RGB(246, 247, 246);
@dark-gray: RGB(51, 51, 52);
@yellow: RGB(243, 156, 56);
@blue: RGB(68, 150, 236);
@fontFamily: "-apple-system"; // Use San francisco
@textColor: @dark-gray;
@flegfleg
flegfleg / widgets.php
Last active February 12, 2017 15:16
wordpress widget boilderplate
<?php
/**
* Adds category_children_widget widget.
*/
class category_children_widget extends WP_Widget {
/**
* Register widget with WordPress.
*/
@flegfleg
flegfleg / extract-csv-rows.py
Last active January 10, 2017 11:22
csv extract rows
# csv: extract rows and save as new csv
import csv
in_f = open('test.csv')
out_f = open('out.csv', 'wb')
reader = csv.DictReader(in_f)
# Define column names
<?php
sendMessage( „Hallo Jasper", $diekamp ) {
while ( $diekamp->status == „unavailable“) {
$egermann->wait( 1 day );
$egermann->daeumchendreh();
}
}
?>
@flegfleg
flegfleg / wp-emoji-remove.php
Created May 21, 2016 13:21
Prevent Wordpress from adding emoji and smiley js and css
// Prevent Wordpress from adding emoji and smiley js and css
remove_action( 'wp_head', 'print_emoji_detection_script', 7 );
remove_action( 'wp_print_styles', 'print_emoji_styles' );