…me. Here's the code of a simple base.twig file.{# Base Template: base.twig #} {% block html_head_container %} {% include 'header.twig' %} {% endblock %} <body class="{{body_class}}"> <div class="wrapper"> {% block content %} <!-- Add your main content here. --> <p>SORRY! No content found!</p> {% endblock %} </div> <!-- /.wrapper -->…
…me point. There are a lot of libraries available to help you set up your own editor. Although they're quick to set up, there are also downsides of using these libraries. To begin with, they are bloated. Most of them have fancy features that you might not use. Moreover, customizing…
…mented universally by browser vendors, you'll need to make use of polyfills.In our new Coffee Break Course, Create Web Components With X-Tag, Envato Tuts+ instructor Dan Wellman will show you how to create Web Components with the X-Tag library. X-Tag is a small library, backed by Microsoft, that delivers a rich…
…ments of our SEO ranking, i.e. how high we appear in their search results.If you want more background about the benefits of increased site speed, read Moz's Why Site Speed Optimisation Should Be Part of Your SEO Strategy, which highlights, "...several case studies have shown faster loading pages strongly correlate…
…me. We've also studied block nesting and multiple inheritance with Twig, based on the DRY principle. Today, we are going to explore how to display attachment images, WordPress menus, and users in a theme with Twig through the Timber plugin.Images in Timber Images are one of the vital elements for…
…mework? To create services which act on behalf of users' accounts and make it really secure and easy to develop, we need three things: Twitter application REST API access to the user account To put the pieces together into a working mechanism, we need an authentication framework. As a Twitter…
…mer on them in this tutorial. But if you're looking to get into more advanced WordPress development, it's worth knowing how to implement your own hooks as well. In this two-part series, we're going to review the WordPress hook system and how it's implemented, and we're going to take a…
…me building awesome websites and less time fighting with email servers.What Features Does Mailgun Offer?Sending Email (via API or SMTP)Inbound RoutingTracking and AnalyticsSpam FilteringMailing ListsEmail ValidationManaged Email ServicesMailgun's API supports all of the most popular languages including PHP, Ruby, Go, Python, C# and Java, and they offer excellent, well-organized documentation.There's also…
…me DOM that Backbone manipulates. In this article, we will explore how we can make Backbone play nicely with d3.js. The concepts in this article should apply to situations where you intend to use Backbone with most other libraries that also manipulate the DOM. Backbone + d3.js Working on the…
…me that you’re using the latest version of OpenCart. We’ll start with a basic introduction to resources and permissions.Understand Resources and PermissionsIn any Access Control List (ACL) system, there are two important entities—permissions and resources. The resources are exposed with certain permissions to the group of users, so that they…