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
# | |
# This file is only needed for Compass/Sass integration. If you are not using | |
# Compass, you may safely ignore or delete this file. | |
# | |
# If you'd like to learn more about Sass and Compass, see the sass/README.txt | |
# file for more information. | |
# | |
# Change this to :production when ready to deploy the CSS to the live server. |
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
@6: 0.353em; | |
@7: 0.412em; | |
@8: 0.471em; | |
@9: 0.529em; | |
@10: 0.588em; | |
@11: 0.647em; | |
@12: 0.706em; | |
@13: 0.765em; | |
@14: 0.824em; | |
@15: 0.882em; |
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 | |
/** | |
* Implements hook_field_is_empty(). | |
*/ | |
function FOO_contact_field_is_empty($item, $field) { | |
unset($item['_weight']); | |
$null = array_filter($item, 'isempty'); | |
return empty($null); | |
} |
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
server { | |
server_name DOMAIN; | |
root /var/www/PATH; | |
index index.html index.htm index.php; | |
location = /favicon.ico { | |
log_not_found off; | |
access_log off; | |
} |
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 | |
'#default_value' => empty($form_state['values']['ajax_example_2']) ? | |
$node->ajax_example['example_2'] : | |
$form_state['values']['ajax_example_2'], |
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
if (!empty($fields['min']['date']) || !empty($fields['max']['date'])) { | |
//date logic | |
if(!empty($fields['min']['date'])){ | |
$min = new DateTime(); | |
$mindate = explode("/", $fields['min']['date']); | |
$min->setDate($mindate[0],$mindate[1],$mindate[2]); | |
$min->setTime(00, 00, 00); | |
} | |
else { | |
$min = new DateTime('19900101'); |
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 | |
$query = new EntityFieldQuery(); | |
$query | |
->entityCondition('entity_type', 'node') | |
->fieldCondition('field_campaign_filename', 'value', $value '=') | |
$result = $query->execute(); | |
?> |
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
$(document).ready(function() { | |
$('#register-product-form > input[name="nid"][value="324"]').ready(function() { | |
$("#register-product-form > .register").children(":not(.slider)").remove(); | |
$("#register-product-form > .submit-button").remove(); | |
}); | |
}); |
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
#auth_basic "Restricted"; | |
#auth_basic_user_file /www/ht-live.password; |
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
# Path to your oh-my-zsh configuration. | |
ZSH=$HOME/.oh-my-zsh | |
# Set name of the theme to load. | |
# Look in ~/.oh-my-zsh/themes/ | |
# Optionally, if you set this to "random", it'll load a random theme each | |
# time that oh-my-zsh is loaded. | |
ZSH_THEME="gallois" | |
# Example aliases |