#Resources#
###Installation Profiles###
###Features##
###Drush & Makefiles###
function themefoo_preprocess_node(&$variables, $hook) { | |
$node = $variables['node']; | |
$type = $variables['type']; | |
$columns = 1; // Default to 1 column layout. | |
/* | |
* Programmatically figure out how many columns we have | |
* based on which fields the user has filled out in | |
* the node form. | |
* | |
* I'll update this gist later to explain |
(function ($) { | |
Drupal.behaviors.yourTheme = { | |
attach: function(context, settings) { | |
$('form label').css('display', 'none'); | |
if(Modernizr.input.placeholder) { | |
// Text inputs | |
var formElements = $('form').find('input, textarea'); | |
$.each(formElements, function(index, value){ | |
if($(this).is('input')){ | |
var label = $(this).siblings('label').text(); |
#Resources#
###Installation Profiles###
###Features##
###Drush & Makefiles###
<header class="article-heading"> | |
<div class="meta"> | |
<span class="author">by <a href="" class="name" rel="author">Jeff Eaton</a></span><span class="date">on June 20, 2012</span> <a href="" class="short-url">Short URL</a> | |
</div><!-- /.meta --> | |
<hgroup> | |
<h1>Module Monday: Custom Permissions</h1> | |
<h2 class="subtitle">Fancy subtitle shows right here just like this when there is one.</h2> | |
</hgroup> | |
<ul class="social"> | |
<li><a href="" class="comments">3 Comments</a></li> |
<? | |
function themename_preprocess_html(&$variables) { | |
// Add a body class to Articles based on the value of the 'field_article_type' | |
// field. e.g.: 'article-type-news' or 'article-type-blog'. | |
if(!empty($variables['page']['content']) && !empty($variables['page']['content']['system_main']['content']['nodes'])) { | |
$node = $variables['page']['content']['system_main']['content']['nodes'][arg(1)]['body']['#object']; | |
if(user_is_logged_in()) { | |
$node = $variables['page']['content']['system_main']['content']['nodes'][arg(1)]['#node']; | |
} | |
if($node->type == 'article' && !empty($node->field_article_type)) { |
/** | |
* WTF? | |
* - This will let you define a shortcut like | |
* `derp` so that when you type `derp` and | |
* hit TAB, you get: | |
* $form['field_name']['#weight'] = weight; | |
* | |
* - 'field_name' and 'weight' are variables, | |
* which means that Textmate will auto-focus | |
* your current position to the first one and |
<?xml version="1.0"?> | |
<root> | |
<item> | |
<name>Programmer's Shift Keys</name> | |
<!-- | |
Author: Carwin Young (@carwin) | |
Last Updated: 2014.07.18 | |
v.1.1 | |
Programmer's Shift Keys |
<h2>Table of Contents</h2> | |
<a href="#whitespace">Whitespace</a> | |
<a href="#comments">Comments</a> | |
<a href="#format">Format</a> | |
<a href="#miscellaneous">Miscellaneous</a> | |
<a href="#example">Practical Example</a> | |
<h3><a name="terminology"></a>Terminology</h3> | |
For those unfamiliar with <a href="http://www.w3.org/TR/CSS2/syndata.html#statements">CSS terminology</a>, these are the concise terms used in these standards. |
This document explains how we can use Jenkins to solve some SASS/Git headaches.
One of the problems that we deal with when working with SASS and Git is that the CSS added to the remote repository changes based on who compiled it.
That means every time someone commits to the remote repository before we can push our work up, HEAD will have changed and our push attempt will be rejected.
Code Freeze Retrospective due on Thursday * John is doing a screencast * Shyamala's outline is: in this Google Doc * Screenshots are needed
John needs to connect with js folks like _nod * there are still a lot of js related tickets.