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
/** | |
* Add the domain module setup routine. | |
*/ | |
include DRUPAL_ROOT . '/sites/all/modules/domain/settings.inc'; |
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
# Ignore configuration files that may contain sensitive information. | |
sites/*/settings*.php | |
*.DS_Store | |
# Ignore paths that contain user-generated content. | |
sites/*/files | |
sites/*/private |
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
$file = file_save_upload('bg_upload'); | |
if ($form_state['values']['bgon'] == 1) { | |
if ($file) { | |
$parts = pathinfo($file->filename); | |
$destination = 'public://' . $parts['basename']; | |
$file->status = FILE_STATUS_PERMANENT; | |
if(file_copy($file, $destination, FILE_EXISTS_REPLACE)) { | |
$_POST['bg_path'] = $form_state['values']['bg_path'] = $destination; | |
// If new file has a different name than the old one, delete the old |
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
// News Hover | |
$('.view-id-news .views-field-title a').hoverIntent(function() { | |
var body = $(this).parents('li').children('.views-field-body'); | |
bodyHeight = -(body.height() + 22); | |
body.css('top', bodyHeight); | |
body.show(); | |
}, function() { | |
$(this).parents('li').children('.views-field-body').hide(); | |
}); |
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
/*------------------------------------------------------------ | |
Lightbox Stuff (replace POPUPBLOCK with name of pop-up div) | |
-----------------------------------------------------------*/ | |
#overlay { | |
background-color: #E0E1DC; | |
display: none; | |
height: 100%; | |
width: 100%; | |
position: fixed; | |
top: 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
// Open in Lightbox when clicked | |
Drupal.behaviors.popupLink = function (context) { | |
$('LINK').click(function() { | |
var url = $(this).attr('href') + ' .node .content'; | |
$('#overlay, .popup').remove(); | |
$('<div id="overlay"></div>').appendTo('body').css('opacity','0').show().animate({opacity:.5}); | |
$('<div class="popup"></div>').appendTo('body'); | |
$('.popup').load(url, function() { | |
var topCenter = ($(window).height() - $('.popup').outerHeight()) / 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
function qhr_menu_block_tweaks_menu_block_tree_alter(&$tree, &$config) { | |
foreach ($tree as $key => $item) { | |
if (isset($item['below'])) { | |
$key = current($item['below']); | |
if ($key['link']['link_path'] === '<view>') { | |
unset($key['link']['localized_options']['menu_views']); | |
} | |
} | |
} | |
} |
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
Array | |
( | |
[49950 Consulting 511] => Array | |
( | |
[link] => Array | |
( | |
[menu_name] => main-menu | |
[mlid] => 511 | |
[plid] => 0 | |
[link_path] => node/88 |
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
# ------ HTML5 Placeholder fallback --------- | |
unless Modernizr.input.placeholder | |
$("[placeholder]").focus(-> | |
input = $(this) | |
if input.val() is input.attr("placeholder") | |
input.val "" | |
input.removeClass "placeholder" | |
).blur(-> | |
input = $(this) | |
if input.val() is "" or input.val() is input.attr("placeholder") |
OlderNewer