Archive for the ‘php’ Category

Super simple page caching When your project isn’t based on a CMS or framework, it can be a good idea to implement a simple caching system on your pages. The following code snippet is very simple, but works well for small websites. <?php // define the path and name of cached file $cachefile = 'cached-files/'.date('M-d-Y').'.php'; [...]

1 – Localize theme strings Before installing a plugin on your blog, the first thing to do is to localize theme strings. PHP and the Gettext tool (which allow easy string translation) have two functions: _e() and __(). The only difference between _e() and __() is that _e() echo a string while __() is used [...]

jQuery Mobile Due to the popularity of mobile devices such as the iPhone or the BlackBerry, websites are now going mobile. jQuery Mobile is a complete framework that allow you to easily create killer mobile sites. If you want an example or a demo, just have a look to this tutorial I’ve wrote a few [...]

jQuery Mobile Due to the popularity of mobile devices such as the iPhone or the BlackBerry, websites are now going mobile. jQuery Mobile is a complete framework that allow you to easily create killer mobile sites. If you want an example or a demo, just have a look to this tutorial I’ve wrote a few [...]

Allow more HTML tags in the editor By default, WordPress editor don’t allow html tags wich aren’t compliant with the XHTML 1.0 standard. For example, iframes will be stripped out by the editor. If for some reason you have to insert an iframe into a post or page, this can be very frustrating. The code [...]


About this blog

This blog delivers stylish and dynamic news for designers and web-developers on all subjects of design, ranging from: CSS, Ajax, Javascript, web design, graphics, typography, advertising & much more. Our goal is to help you communicate effectively on the web with an engaging website or functional interface.