This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@import "blueprint"; | |
$zen-first-sidebar-width: 200px !default; | |
$zen-second-sidebar-width: 200px !default; | |
$zen-content-width: 560px !default; | |
$zen-gutter: 10px !default; | |
$zen-navigation-height: 1.5em !default; | |
$zen-page-width: $zen-first-sidebar-width + $zen-content-width + $zen-second-sidebar-width !default; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* reset all the radio buttons with a given name | |
* | |
* @param string fieldName | |
* @param object form | |
* @return null | |
*/ | |
function unselectRadio(fieldName, form) | |
{ | |
for( i=0; i < document.forms[form].elements.length; i++) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Microformat function. | |
*/ | |
function microformat() { | |
$args = func_get_args(); | |
$hooks = array_shift($args); | |
if (!is_array($hooks)) { | |
$hooks = array($hooks); | |
} | |
$output = call_user_func_array('theme', array_merge(array($hooks), $args)); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Migrate {taxonomy_term_node} table to field storage. | |
*/ | |
function taxonomy_update_7005(&$sandbox) { | |
// This is a multi-pass update. On the first call we need to initialize some | |
// variables. | |
if (!isset($sandbox['total'])) { | |
$sandbox['last'] = 0; | |
$sandbox['count'] = 0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// $Id$ | |
/** | |
* Base class for all ctools content types. | |
*/ | |
abstract class boxes_ctools_content extends boxes_box { | |
public $content_type; | |
public $content_type_plugin; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@mixin content-section { | |
#content { | |
.section { | |
border: { | |
color: $regrettable_maroon; | |
style: solid; | |
width: 1px; }; } | |
.region-highlight { | |
.block { | |
margin: { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// use with https://github.com/bangpound/compass-susy-plugin/blob/feature%2Frtl/sass/susy/_grid.scss | |
// html element must have a dir attribute to indicate reading direction. | |
// e.g. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ar" lang="ar" dir="rtl"> | |
@mixin bidi-columns($n, $context: false) { | |
[dir="ltr"] & { | |
@include columns($n, $context, left); | |
} | |
[dir="rtl"] & { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Implement hook_menu_alter(). | |
*/ | |
function bangpound_menu_alter(&$items) { | |
if (module_exists('field_ui')) { | |
$items['admin/structure/types/manage/%node_type/fields']['context'] = MENU_CONTEXT_PAGE | MENU_CONTEXT_INLINE; | |
$items['admin/structure/types/manage/%node_type/display']['context'] = MENU_CONTEXT_PAGE | MENU_CONTEXT_INLINE; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
abstract class MigrateFieldHandler extends MigrateHandler { | |
// abstract function arguments(...) | |
abstract public function prepare(stdClass $entity, array $field_info, array $instance, array $values); | |
/** | |
* Determine the language of the field | |
* | |
* @param $entity |