Skip to content

Instantly share code, notes, and snippets.

cibulka

Block or report user

Report or block cibulka

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@cibulka
cibulka / Wordpress: Remove hwstring from images (and keep srcset)
Last active Jun 6, 2018
Hardcoded `width` and `height` to Wordpress image functions is INSANE! This is my current sollution to the problem, that removes `hwstring` and keeps `srcset`, `sizes` and other responsive image attributes.
View Wordpress: Remove hwstring from images (and keep srcset)
<?php
class Picture {
public function init_remove_hwstring() {
add_filter('image_downsize', array($this, 'remove_hw_from_downsize'), 10, 3);
add_filter('wp_get_attachment_image_attributes', array($this, 'add_srcset_sizes'), 10, 3);
}
public function add_srcset_sizes($attrs, $attachment, $size) {
View Composer.json
{
"name": "cibulka/divnamista-wp",
"type": "project",
"license": "MIT",
"description": "A modern WordPress stack",
"homepage": "https://roots.io/bedrock/",
"authors": [
{
"name": "Scott Walkinshaw",
"email": "scott.walkinshaw@gmail.com",
View npm-debug.log
This file has been truncated, but you can view the full file.
8004 silly gunzTarPerm extractEntry test/pad.js
8005 silly gunzTarPerm extractEntry test/order.js
8006 silly gunzTarPerm extractEntry test/nested.js
8007 silly gunzTarPerm extractEntry test/sequence.js
8008 silly gunzTarPerm extractEntry test/negative-increment.js
8009 silly gunzTarPerm extractEntry test/bash-results.txt
8010 silly gunzTarPerm extractEntry test/generate.sh
8011 silly gunzTarPerm extractEntry test/cases.txt
8012 info install repeating@1.1.3
@cibulka
cibulka / npm-debug.log
Created Mar 6, 2015
npm ERR! Darwin 14.1.0
View npm-debug.log
This file has been truncated, but you can view the full file.
94047 verbose rebuildBundles commander@2.4.0
94048 silly install resolved []
94049 verbose about to build /Users/Cibulka/Documents/_00-Web-WP/tvar.dev/web/app/themes/cibulka-wp-theme/node_modules/grunt-contrib-imagemin/node_modules/imagemin/node_modules/imagemin-jpegtran/node_modules/jpegtran-bin/node_modules/bin-build/node_modules/download/node_modules/decompress-tarbz2/node_modules/seek-bzip/node_modules/commander
94050 info build /Users/Cibulka/Documents/_00-Web-WP/tvar.dev/web/app/themes/cibulka-wp-theme/node_modules/grunt-contrib-imagemin/node_modules/imagemin/node_modules/imagemin-jpegtran/node_modules/jpegtran-bin/node_modules/bin-build/node_modules/download/node_modules/decompress-tarbz2/node_modules/seek-bzip/node_modules/commander
94051 verbose linkStuff [ false,
94051 verbose linkStuff false,
94051 verbose linkStuff false,
You can’t perform that action at this time.