background preloader

Dev ideas & tutos

Facebook Twitter

2011 Colophon. Follow along → 2011.beercamp.com/colophon Source available on GitHub → github.com/nclud/2011.beercamp.com git clone About BeerCamp Fun-time party event at SXSW Primary audience is web folk Primary goal is just to get the word out Ideal opportunity to do fun web things The idea Use CSS 3D transforms Most browsers won’t support this.

2011 Colophon

Zoom Section 1 Section 2 Section 3 CSS scale transforms for zoom Apply scale to each section. transform value = 1 / ( scaleFactor ^ ( level - 1 ) ) Then for each position, apply reverse scale to the container transform value = scaleFactor ^ ( level - 1 ) Version 1: It works but… Looks okay (sort of) in Safari Terribly slow in other browsers Had to remove lots of visual elements for Chrome / Firefox Navigation relies on buttons In general, not fun Finding delight Design Nobility Pyramid by Frank Chimero nikebetterworld.com by Ian Coyle & Duane King Scrolling is immediately rewarding Gets you involved Makes you want to play around with the site Now then… See css/style.css. Matt's Blog. WP First Aid. Create WordPress Plugins with OOP Techniques.

Object-oriented code, among other things, can help organize and add reusability to your code.

Create WordPress Plugins with OOP Techniques

In this tutorial, I will teach you the basics of writing a WordPress plugin using object oriented techniques. We'll be using Dribbble's API as an example for this tutorial. Ready? Benefits of using OOP for WordPress plugins.How to setup a shortcode.How to setup a template tag.How to enable shortcode in WordPress widgets.Real-world example by using Dribbble's API. Before moving forward with this tutorial, you should have at least an elementary understanding of writing a WordPress plugin. Creating WordPress plugins with object oriented code is quite efficient and tidy, when compared to using procedural code. To write a WordPress plugin, we first need a sense of direction. Object oriented code is based on classes and methods (functions). PHP classes have a constructor function, __construct, which is executed as soon as a new instance of a class is instantiated.

Learn more about wp_remote_get. Create an interactive street view with jQuery. Sending HTML mail through Wordpress. Four Very Useful WordPress Snippets. Each of these snippets are extremely useful for accomplishing a variety of tasks.

Four Very Useful WordPress Snippets

Get Page ID by Page Name You can use this function in scenarios where you want to display link to a particular page, but would prefer that WordPress generate the link for you, rather than just typing it out yourself (never a great idea). For example, maybe you want to link to your about page: Check if Current Page is Page or Descendant of Page Another useful trick is being able to determine whether or not a particular page is either a specific page, or a descendant of that page. This function will check if the specified page ID is a member of the tree: Then use the function like this: Get the URL of the Featured Thumbnail Sometimes, such as when you wish to display the featured image in a lightbox, in can be necessary to obtain the URL of the Featured Thumbnail set for the current post or page. The variable $image[0] is where the URL resides, so by echoing it out, you can display the image URL.

Enjoy! Php - How to restrict JSON access. Create an awesome cinemagraph in Photoshop. Create amazing newsletters. HTML5 Video Player Comparison.