…HTML5 Geolocation and APIs for Google Maps and Google Places. The idea is to use these features to make choosing the location for your meetings quick and easy. We con't cover all of the fit and finish in this episode—but we'll cover more of that in an upcoming tutorial.All of…
…html/template_file.phtml"/If you already have some template assigned and want to change it, you can use this code:<!-- Change page template --> <reference name="root"> <action method="setTemplate"> <template>page/template_file.phtml</template> </action> </reference>Useful PHP FunctionsAlthough XML files are an important part of any Magento template that defines template layouts, PHP files are the real building…
…Behavior-Driven Development is an excellent process to follow in software development. With testing often a practice that is pushed aside to the last minute (or ignored entirely), baking the process into your daily workflow can prove to be hugely beneficial to the quality of your code. The structure and design…
…HTML5 templatesa helpful 404 templatecustom template tags in inc/template-tags.php that keep your templates clean and neat and prevent code duplicationsome small tweaks in inc/extras.php that improve your theming experiencea script at js/navigation.js that makes your menu a toggled dropdown on small screens (like your phone, ready for CSS artistry)two sample…
…HTML, SVG and CSS to run its magic. From the official docs, D3.js is a JavaScript library for manipulating documents based on data. D3 helps you bring data to life using HTML, SVG and CSS. D3’s emphasis on web standards gives you the full capabilities of modern browsers without tying…
…HTML:<html> <head> <title>Hello, World</title> </head> <body> <h1>Hello, World!</h1> </body> </html>For testing the license manager client class, we still need a functions.php file. This is where you'll initialize the class we will create in this tutorial—for now, you can leave the file empty.With this minimum setup, WordPress will accept the theme…
…html and register.js files. Here is how register.html looks: <!DOCTYPE html> <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <link rel="icon" href="http://getbootstrap.com/favicon.ico"> <title>AngularJS & Firebase Web App</title> <link href="http://getbootstrap.com/dist/css/bootstrap.min.css" rel="stylesheet"> <link href="http://getbootstrap.com/examples/signin/signin.css" rel="stylesheet"> <link href="justified-nav.css" rel="stylesheet"> </head> <body> <div class="container"> <div class="jumbotron" style="padding-bottom:0px;"> <h2>AngularJS & Firebase App!</h2> </div> <form class="form-signin" role="form">…
…html file in the root folder. As you can guess, I immediately got rid of the plugin and contacted its author to inform him about the situation. If you find out that it was a theme or plugin vulnerability, you should contact the person who made it and tell them…
…In the first part of this series, we went through what to do when your website gets hacked. In this second part, we're going to learn about staying safe and being able to act quickly when another unpleasant incident happens. The Age-Old Question: Is WordPress Safe? Apparently this question never…
…HTML5 Boilerplate, where the headers are divided by categories of file types: # ------------------------------------------------------------------------------ # | Expires headers | # ------------------------------------------------------------------------------ # Serve resources with far-future expires headers. # IMPORTANT: If you don't control versioning with filename-based cache # busting, consider lowering the cache times to something like one week.…