drupal-logo-261x300

 

Drupal can use four different types of engines to render themes: PHP, PHPTAL, Smarty, and the default engine, PHPTemplate. Engines are interface libraries, like DLLs in Windows or other libraries you’ve seen used to prevent having to write the same code over and over. Themes are a folder made up of CSS style sheets, images, and so on, but they also contain the template file. The template file typically contains large portions of HTML with small snippets of PHP which get replaced by dynamic content. The syntax of the PHP in the template file depends on the engine being used.

You can tell which engine is being used by the extension of the template file:

Template File Extension

Theme Engine

.theme PHP
.tpl.php PHPTemplate
.tal PHPTAL
.tpl Smarty

ASCII not equal comparison operators range from ~=, !=, /=, =/=, to <>. Here is a table of the various operators and their corresponding programs or languages.

Not Equal Comparison Operator Program or Programming Language
~= MATLAB
!= MySQL, C, C++, PHP, Perl, Java, Javascript, Python
=/= Erlang
!== in PHP it checks the type as well as the value
<> SQL, MySQL, ASP, Microsoft Excel, Visual Basic, and Visual Basic.Net
-ne Bash

How to Version CSS Files with a Query String to Prevent Cached CSS Use

December 28, 2013

How to force a browser cache refresh using a CSS query string Have you ever seen a ‘d’ query string on a CSS link in HTML source code and wondered what it did? The ‘d’ is mostly just a semantic way of describing the parameter that follows it, which is the date. The web server […]

Read the full article →

7 Emergent Internet Technologies from 2002

December 27, 2013

In April 2002, Tim O’Reilly wrote of “the emergent Internet operating system” as an open collection of Web services. On December 2, 201o I wrote about how Chrome is an operating system in a browser, because, “Soon the largest operating system will be the Internet itself.” (By the way, the Chrome Store may open December […]

Read the full article →

Google Chrome Now Grabbing Nearly 10% Browser Market Share

December 26, 2013

While Internet Explorer (IE) still dominates with 59% of the market share, Chrome now accounts for the equivalent of nearly half of all Firefox market share at 23% and nearly double Safari’s market share of 6%. If you divide the marketplace into PC users who are never going to stop using Internet Explorer and Mac® […]

Read the full article →

Plug-In PHP: 100 Power Solutions

December 25, 2013

100 PHP power solutions in one handy guide This practical resource contains 100 ready-to-run PHP plug-ins you can use to create dynamic Web content. The book begins by showing you how to install, configure, and use a powerful web development environment. Then, each chapter in Plug-In PHP offers complete, working examples for specific end results […]

Read the full article →

Google Chrome Store Opens New Possibilities for Programmers

December 24, 2013

The opening of Google’s Chrome store in October means new avenues for revenue Etherfleet reports that Google is set to launch an online Chrome app store in October and that developers will be able to write and sell Chrome apps there ala Apple iTunes app store. Programmers will receive the bulk of the revenue, but […]

Read the full article →

Beginning Google Maps Mashups with Mapplets, KML, and GeoRSS

December 23, 2013

Beginning Google Maps Mashups with Mapplets, KML, and GeoRSS is a beginner’s guide to creating web mashups using Google mapping technology. Serves as a single–source primer to displaying data on Google Maps Covers both mapplets and the Google Maps API Provides everything you need to start participating in the Geographic Web What you’ll learn “Mash […]

Read the full article →

Beginning Google Maps API 3

December 22, 2013

This book is about the next generation of the Google Maps API. It will provide the reader with the skills and knowledge necessary to incorporate Google Maps v3 on web pages in both desktop and mobile browsers. It also describes how to deal with common problems that most map developers encounter at some point, like […]

Read the full article →

How to Make a Facebook Share Button

December 21, 2013

Facebook has a page that makes it easy to create a share button for your website, but if you know a little HTML and javascript you can edit it how you see fit. As you can see above, you can choose between a button and a link, then edit or copy the code to place […]

Read the full article →

How to Use Tweet Buttons with Query String Parameters

December 20, 2013

Twitter now has a “Tweet” button like Facebook’s “Like” button. If you’re wondering how to add this new tweet button to your blog, website, or Blogger account, follow the instructions below. If you can handle HTML and a little bit of Javascript, then you should be comfortable with this code. Tweet Button Code That’s it, […]

Read the full article →