Skip to content

Instantly share code, notes, and snippets.

@waako
waako / external-links.php
Created December 7, 2012 12:10
Drupal: open external links in new window. otherwise use Menu Attributes module
@waako
waako / force-region-render.php
Created December 7, 2012 13:54
Fore a region to render if it has a template file (region--regionnname.tpl.php) even if it is empty
// Implement a page alter to force certain regions to display even if no blocks exist
function THEMENAME_page_alter(&$page) {
foreach (system_region_list($GLOBALS['theme'], REGIONS_ALL) as $region => $name) {
if (in_array($region, array('REGIONNAME'))) {
$page['REGIONNAME'] = array(
'#region' => 'REGIONNAME',
'#weight' => '-10',
'#theme_wrappers' => array('region'),
);
}
@waako
waako / force region render.php
Last active December 11, 2015 21:48
Theme page alter function to force region template to render, even if no blocks are assigned to the region
<?php
function THEMENAME_page_alter(&$page) {
foreach (system_region_list($GLOBALS['theme'], REGIONS_ALL) as $region => $name) {
if (in_array($region, array('header'))) {
$page['header'] = array(
'#region' => 'header',
'#weight' => '-10',
'#theme_wrappers' => array('region'),
);
}
@waako
waako / devel-sql-cli.sh
Last active December 12, 2015 04:19
Allow anonymouse user to view devel output DO NOT USE on development!
drush sql-cli
@waako
waako / Frontend united.md
Last active December 15, 2015 01:09
Frontend United London 2013

Frontend United UK 2013

13-14 April 2013 at Cargo, London - frontendunited.org

Join designers, developers, and drupalistas for two days of focused workshops, talks and sessions on design, frontend engineering and Drupal.

What is Frontend United?

Frontend United, formerly known as Drupal Design Camp, is a yearly European conference that moves from country to country, previously hosted in Prague, Berlin and Amsterdam.

@waako
waako / icon_buttons.scss
Created March 29, 2013 21:37
Icon buttons by Hugo Giraudel on October 25, 2012 via http://codepen.io/HugoGiraudel/details/kmFsE // via http://sw4tch.com/swatches/24
.swatch {
display: block;
.foreground {
display: block;
border: 0 none;
cursor: pointer;
font-size: 50px;
line-height: 100px;
text-align: center;
-webkit-transition: all 0.3s ease-out;
@waako
waako / technical-reference.md
Last active December 17, 2015 19:49
Drupal site technical documentation

Introduction

UX Resources

Design Resources

Team and developers

Project management tools

@waako
waako / onboarding.md
Created June 5, 2013 07:25
Onboarding process checklist

see session slides http://kae76.github.io/onboardingprocess_presentation/

Make sure you have:

  • On boarding documentation
    • Codebase location
    • Install profile instructions
      • Can drush site-install be used or GUI only
      • Content generation scripts? Built into profile, bash or other method?
  • Wiki location
@waako
waako / lessons.md
Last active December 18, 2015 13:19
Lessons learnt from running a conference

Video Filming

  • what & how do you want things filmed
  • 1 camera per room, 2?
  • roaming camera to capture atmosphere
  • 1 minute feedback/interviews
  • Sound
  • full control of venue sound recording
  • independant sound recording setup?
  • mic on each speaker?