diff --git a/source/_posts/2010-08-10-review-adminhover-module.md b/source/_posts/2010-08-10-review-adminhover-module.md
index 29a66a15e..e84ddb69b 100644
--- a/source/_posts/2010-08-10-review-adminhover-module.md
+++ b/source/_posts/2010-08-10-review-adminhover-module.md
@@ -8,13 +8,10 @@ tags:
- admin:hover
- administration
---
-{% block excerpt %}
Sorry for the lack of Blog posts lately, but [my new job](http://horseandcountry.tv) that I started a few weeks ago has certainly been keeping me busy! I've got a few more posts that I'm preparing content for, and I'll hopefully be back into my weekly-post routine before too long!
Today, I'd like to just give a quick overview of the [Admin:hover](http://drupal.org/project/admin_hover) module. It basically adds an administrative menu that pops up when you hover over a node or block within your Drupal website - the kind of functionality that was present within previous versions of the [Admin module](http://drupal.org/project/admin). It also integrates well with the [Devel](http://drupal.org/project/devel) and [Clone](http://drupal.org/project/node_clone) modules.
-{% endblock %}
-{% block content %}
I've found this to be extremely useful whilst working on photo galleries etc. where multiple nodes are displayed in a grid format and I quickly need to publish or unpublish something for testing purposes. No longer do I need to open each node, or go into the administration area to perform the required actions.
It is also possible to customise which links are available from within the adminstration area. The possible selections that I currently have on this site are as follows:
@@ -41,4 +38,3 @@ It is also possible to customise which links are available from within the admin
* Add block
Although, as I have additional contributed modules installed, some of these may not neccassaily be available out of the box.
-{% endblock %}
diff --git a/source/_posts/2010-08-17-create-better-photo-gallery-drupal-part-2.md b/source/_posts/2010-08-17-create-better-photo-gallery-drupal-part-2.md
index 8c8784d06..f0ffb6782 100644
--- a/source/_posts/2010-08-17-create-better-photo-gallery-drupal-part-2.md
+++ b/source/_posts/2010-08-17-create-better-photo-gallery-drupal-part-2.md
@@ -8,13 +8,10 @@ tags:
- sql
- sequel-pro
---
-{% block excerpt %}
At the end of my last post, I'd finished creating the first part of the new photo gallery, but I wanted to change the dates of the published photos to reflect the ones on the client's original website.
Firstly, I'll refer to the previous list of published galleries that I created before, and create something different that also displays the created and modified dates. Picking the node ID of the required gallery, I used the following SQL query to display a list of photos.
-{% endblock %}
-{% block content %}
```language-sql
SELECT n.title, n.nid, n.created, n.changed, p.field_gallery_nid
FROM node n, content_type_photo pWHERE n.type = 'photo'
@@ -41,4 +38,3 @@ Now when I query the database, both the created and modified dates have been up
Once the changes have been applied, it's a case of repeating the above process for each of the required galleries.
In the next post, I'll explain how to add a count of published galleries and photos on the main photo gallery page, as well as how to install and configure the [Shadowbox](http://drupal.org/project/shadowbox) module.
-{% endblock %}
diff --git a/source/_posts/2012-04-19-adding-custom-theme-templates-drupal-7.md b/source/_posts/2012-04-19-adding-custom-theme-templates-drupal-7.md
index c5098dfdf..4419525a9 100644
--- a/source/_posts/2012-04-19-adding-custom-theme-templates-drupal-7.md
+++ b/source/_posts/2012-04-19-adding-custom-theme-templates-drupal-7.md
@@ -6,13 +6,10 @@ tags:
- drupal-planet
- drupal
---
-{% block excerpt %}
Today, I had a situation where I was displaying a list of teasers for news article nodes. The article content type had several different fields assigned to it, including main and thumbnail images. In this case, I wanted to have different output and fields displayed when a teaser was displayed compared to when a complete node was displayed.
I have previously seen it done this way by adding this into in a node.tpl.php file:
-{% endblock %}
-{% block content %}
```language-php
if ($teaser) {
// The teaser output.
@@ -64,4 +61,3 @@ array (
```
Now, within my theme I can create a new node--article-teaser.tpl.php template file and this will get called instead of the node--article.tpl.php when a teaser is loaded. As I'm not specifying the node type specifically and using the dynamic $node->type value within my suggestion, this will also apply for all other content types on my site and not just news articles.
-{% endblock %}
diff --git a/source/_posts/2012-05-24-dividing-drupals-process-and-preprocess-functions-separate-files.md b/source/_posts/2012-05-24-dividing-drupals-process-and-preprocess-functions-separate-files.md
index 0add226fe..e6b68d71d 100644
--- a/source/_posts/2012-05-24-dividing-drupals-process-and-preprocess-functions-separate-files.md
+++ b/source/_posts/2012-05-24-dividing-drupals-process-and-preprocess-functions-separate-files.md
@@ -7,13 +7,10 @@ tags:
- theming
- preprocessing
---
-{% block excerpt %}
If you use a lot of process and preprocess functions within your Drupal theme, then your template.php can get very long and it can become difficult to find a certain piece of code. Following the example of the [Omega theme](http://drupal.org/project/omega "The Omega theme on Drupal.org"), I've started separating my process and preprocess functions into their own files. For example, mytheme_preprocess_node can be placed within a preprocess/node.inc file, and mytheme_process_page can be placed within process/page.inc.
The first step is to use the default mytheme_process() and mytheme_preprocess() functions to utilise my custom function. So within my template.php file:
-{% endblock %}
-{% block content %}
```language-php
Sublime T
tags:
- sublime-text
---
-{% block excerpt %}
[Sublime Text 2](http://www.sublimetext.com/2) has been my text editor of choice for the past few months, and I use it at home, in work, and on any virtual machines that I run. So rather than having to manually re-enter my settings each time, I thought that I'd document them here for future reference.
These preferences ensure that the code is compliant with [Drupal coding standards](http://drupal.org/coding-standards "Drupal coding standards on Drupal.org") - using two spaces instead of a tab, no trailing whitespace, blank line at the end of a file etc.
-{% endblock %}
-{% block content %}
## Preferences
These can be changed by going to Preferences > Settings - User.
@@ -99,4 +96,3 @@ These are the packages that I currently have installed.
* [Package Control](http://wbond.net/sublime_packages/package_control)
* [Sublime CodeIntel](http://github.com/Kronuz/SublimeCodeIntel)
* [Theme - Soda](https://github.com/buymeasoda/soda-theme)
-{% endblock %}
diff --git a/source/_posts/2013-01-09-checking-if-user-logged-drupal-right-way.md b/source/_posts/2013-01-09-checking-if-user-logged-drupal-right-way.md
index 2c03506b2..3d1e5cb91 100644
--- a/source/_posts/2013-01-09-checking-if-user-logged-drupal-right-way.md
+++ b/source/_posts/2013-01-09-checking-if-user-logged-drupal-right-way.md
@@ -8,11 +8,8 @@ tags:
- drupal-planet
- php
---
-{% block excerpt %}
I see this regularly when working on Drupal sites when someone wants to check whether the current user is logged in to Drupal (authenticated) or not (anonymous).
-{% endblock %}
-{% block content %}
```language-php
global $user;
if ($user->uid) {
@@ -57,4 +54,3 @@ function mymodule_menu() {
```
There is also a [user_is_anonymous()](http://api.drupal.org/api/drupal/modules!user!user.module/function/user_is_anonymous/7) function if you want the opposite result. Both of these functions are available in Drupal 6 and higher.
-{% endblock %}
diff --git a/source/_posts/2013-04-20-leaving-nomensa-joining-precedent.md b/source/_posts/2013-04-20-leaving-nomensa-joining-precedent.md
index 5a5399405..dea3ebafe 100644
--- a/source/_posts/2013-04-20-leaving-nomensa-joining-precedent.md
+++ b/source/_posts/2013-04-20-leaving-nomensa-joining-precedent.md
@@ -6,12 +6,8 @@ tags:
- precedent
- personal
---
-{% block excerpt %}
Yesterday was my last day working at [Nomensa](http://www.nomensa.com "Nomensa"). Next week, I'll be starting as a Senior Developer at [Precedent](http://www.precedent.co.uk "Precedent").
-{% endblock %}
-{% block content %}
The last 14 months that I've been working at Nomensa have been absolutely fantastic, and had allowed me to work on some great projects for great clients - mainly [unionlearn](http://www.unionlearn.org "unionlearn") and [Digital Theatre Plus](http://www.digitaltheatreplus.com "Digital Theatre Plus"). I've learned so much about accessibility and web standards, and have pretty much changed my whole approach to front-end development to accommodate best practices. I've also been involved with the Drupal Accessibility group since starting at Nomensa, and have written several accessibility-focused Drupal modules, including the [Nomensa Accessible Media Player](http://drupal.org/project/nomensa_amp "The Nomensa Accessible Media Player Drupal module") module and the [Accessibility Checklist](http://drupal.org/project/a11y_checklist "The accessibility checklist for Drupal"). I'll definitely be continuing my interest in accessibility, championing best practices, and incorporating it into my future work wherever possible.
With that all said, I'm really looking forward to starting my new role at Precedent, tackling some new challenges, and I'm sure that it'll be as great a place to work as Nomensa was.
-{% endblock %}
diff --git a/source/_posts/2013-04-27-display-git-branch-or-tag-names-your-bash-prompt.md b/source/_posts/2013-04-27-display-git-branch-or-tag-names-your-bash-prompt.md
index e42fe6f9e..2adb8fd51 100644
--- a/source/_posts/2013-04-27-display-git-branch-or-tag-names-your-bash-prompt.md
+++ b/source/_posts/2013-04-27-display-git-branch-or-tag-names-your-bash-prompt.md
@@ -7,11 +7,8 @@ tags:
- git
- terminal
---
-{% block excerpt %}
Whilst watching [Drupalize.me](http://drupalize.me "Drupalize.me")'s recent [Introduction to Git series](http://drupalize.me/series/introduction-git-series "Introduction to Git on Drupalize.me"), I thought it was useful the way that the current Git branch or tag name was displayed in the bash prompt.
-{% endblock %}
-{% block content %}
Here's how to do it.
For example (with some slight modifications):
@@ -63,4 +60,3 @@ PS1="\u@\h:\w\$(parse_git_branch_or_tag) $ "
```
Restart your Terminal or type `source ~/.bashrc` to see your changes.
-{% endblock %}
diff --git a/source/_posts/2013-11-27-useful-vagrant-commands.md b/source/_posts/2013-11-27-useful-vagrant-commands.md
index d45fd74cd..a4c537f50 100644
--- a/source/_posts/2013-11-27-useful-vagrant-commands.md
+++ b/source/_posts/2013-11-27-useful-vagrant-commands.md
@@ -4,11 +4,8 @@ excerpt: Here are the basic commands that you need to adminster a virtual machin
tags:
- vagrant
---
-{% block excerpt %}
[Vagrant](http://www.vagrantup.com "About Vagrant") is a tool for managing virtual machines within [VirtualBox](https://www.virtualbox.org) from the command line. Here are some useful commands to know when using Vagrant.
-{% endblock %}
-{% block content %}
Command | Description
:-|:-
vagrant init {box} | Initialise a new VM in the current working directory. Specify a box name, or "base" will be used by default.
@@ -21,4 +18,3 @@ vagrant halt (-f) | Halt the Vagrant box. Use -f to forcefully shut down the box
vagrant destroy (-f) | Destroys a Vagrant box. Use -f to forcefully shut down the box without prompting for confirmation.
The full Vagrant documentation can be found at
I built a clone of Bartik, #Drupal's default theme, with @vuejs and @tailwindcss. See the result at https://t.co/nPsTt2cawL, and the code at https://t.co/Dn8eysV4gf.
Blog post coming soon... pic.twitter.com/7BgqjmkCX0