This file contains 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
$variables['label'] = array( | |
'#theme' => 'form_element_label', | |
'#required' => isset($element['#required']) ? $element['#required'] : '', | |
'#title' => isset($element['#title']) ? $element['#title'] : '', | |
'#title_display' => isset($element['#title_display']) ? $element['#title_display'] : '', | |
'#id' => isset($element['#id']) ? $element['#id'] : '', | |
); |
This file contains 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
.DS_Store | |
.svn | |
.sass-cache | |
ehthumbs.db | |
Icon | |
Thumbs.db | |
*.log | |
*.orig | |
*.settings | |
*.project |
This file contains 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 | |
$conf['redis_client_interface'] = 'PhpRedis'; | |
$conf['cache_backends'][] = 'sites/all/modules/contrib/redis/redis.autoload.inc'; | |
$conf['cache_default_class'] = 'Redis_Cache'; // DrupalAPCCache. | |
$conf['cache_class_cache_update'] = 'DrupalDatabaseCache'; | |
$conf['cache_class_cache_form'] = 'DrupalDatabaseCache'; |
This file contains 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 | |
// Load this in a controller or preprocess or whereever. | |
$twig = \Drupal::service('twig'); | |
// Create a new string loader(inline template). | |
$loader = new \Twig_Loader_String(); | |
$old_loader = $twig->getLoader(); | |
$twig->setLoader($loader); | |
This file contains 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
diff --git a/core/modules/system/system.module b/core/modules/system/system.module | |
index c9281fa..5329be9 100644 | |
--- a/core/modules/system/system.module | |
+++ b/core/modules/system/system.module | |
@@ -152,6 +152,13 @@ function system_help($path, $arg) { | |
*/ | |
function system_theme() { | |
return array_merge(drupal_common_theme(), array( | |
+ 'branding' => array( | |
+ 'variables' => array( |
This file contains 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
alias cap='curl `pbpaste` | git apply -v' | |
alias cape='curl `pbpaste` | git apply -v --index' | |
alias capp='curl `pbpaste` | patch -p1' | |
alias capv='curl `pbpaste` | patch -p1 --dry-run' | |
alias carp='curl `pbpaste` | git apply -Rv' | |
alias carpe='curl `pbpaste` | git apply -Rv --index' | |
alias cav='curl `pbpaste` | git apply -v --check' |
This file contains 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 | |
require_once 'vendor/autoload.php'; | |
$loader = new Twig_Loader_String(); | |
$twig_options = array( | |
'cache' => FALSE, | |
'autoescape' => TRUE, | |
'strict_variables' => FALSE, | |
// 'debug' => TRUE, | |
'auto_reload' => TRUE, | |
); |
This file contains 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 | |
/** | |
* Enqueue scripts and styles. | |
*/ | |
function THEMENAME_scripts_styles() { | |
global $wp_styles; | |
/* | |
* Adds JavaScript to pages with the comment form to support |
This file contains 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
/** | |
* $ARROW | |
*/ | |
@mixin arrow($position, $size, $color, $border-size: 0, $border-color: transparent) { | |
// Box we're adding the arrow to. | |
position: relative; | |
background: $color; | |
@if $border-size != 0 { | |
border: $border-size solid $border-color; | |
} |
This file contains 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
{ | |
"require": { | |
"twig/twig": "1.*" | |
} | |
} |
OlderNewer