I AM LISTENING TO
|
WHAT I LIKE
  • English
  • German


BLOG FILTER



PHP

 Javascript

 

readmore

As part of our complete network upgrade, portalZINE.TV gets a complete facelift as well. The whole website has been streamlined in preparation for the new season.

portalZINE TV

readmore

1. Add Vimeo iframe

2. Load Froogaloop and add some Javascript

This will add a READY event for the player, which allows you to handle other stuff within that function from that point on. Like making the video responsive using fitVid for example :)

Its important that you reference the playerID in the actual iframe source or the ready function will never fire !

Vimeo Player API

readmore

htmLawed is a PHP lib that:

  • makes HTML markup in text secure and standard-compliant
  • processes text for use in HTML, XHTML or XML documents
  • restricts HTML elements, attributes or URL protocols using black- or white-lists
  • balances tags, check element nesting, transform deprecated attributes and tags, make relative URLs absolute, etc.

Take a look here

readmore

While building plugins for WordPress is fun, it often means repeating tasks over and over again. I love clean and organized code! For my last internal project, a Visual Composer addon bundle,  I decided to build a modular system.

So I have one central plugin, handling multiple modules that access methods from the plugin. This allows me to reuse public and admin routines. In combination with _autoload and traits, this makes the codebase lean and mean.

I also decided to use TWIG fully for the presentation layer. Each module can be activated, deactivated, registers their own public and admin views, admin menus, ajax calls, dashboard widgets and additional context.

I am currently in the process of cleaning this up and will share some more details soon.

Cheers
Alex

  1. __autoload & traits
  2. TWIG
  3. Timber

readmore

“WebP is an image format employing both lossy and lossless compression. It is currently developed by Google, based on technology acquired with the purchase of On2 Technologies.” – Wikipedia

As the WebP is not widely supported, you need to use polyfills or workarounds to actually use it. But it makes a lot of sense when you are building image heavy applications for the web. It decreases file-sizes immensely and supports transparency as PNG does.

To allow WebP upload in WordPress, add this to your functions.php:

Browsers with native support will show WebP images natively, for browsers without support deploy WebPJS developed by Google. Download and add it to your theme functions.php

This should do the trick and enable WebP for all modern browsers, see browser support on the WebPJS development page.

Here another little nice trick to check for WebP using Javascript and replace webp with png images.

Enjoy
Alex

readmore
22. March 2015

scrollReveal

Easily reveal elements as they enter the viewport. No dependancies.

Usage examples:

Github: scrollReveal 

readmore

Pure CSS

Using Modernizer + jQuery

Modernizer

 Custom detection of SVG

 

 

readmore

Just add that to your themes functions.php.

readmore

Very impressive javascript physics engine.

Github
Spiderweb Example

readmore