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
Drupal.behaviors.AjaxChecker = { | |
attach: function(context, settings) { | |
$('#views-exposed-form-prods-page').ajaxComplete(function(event, xhr, settings) { | |
$('.loader').hide(0); | |
}); | |
} | |
} |
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
function theme_status_messages($variables) { | |
$display = $variables['display']; | |
$output = ''; | |
$status_heading = array( | |
'status' => t('Status message'), | |
'error' => t('Error message'), | |
'warning' => t('Warning message'), | |
); | |
foreach (drupal_get_messages($display) as $type => $messages) { |
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
function webformSelect() { | |
$('.webform-component-select').each(function() { | |
var t = $(this); | |
var text = t.find('label').text().replace(' *',''); | |
t.find('option:first').addClass('first').text('Select ' + text); | |
t.find('select').live('change', function () { | |
if($(this).find('option:selected').hasClass('first')) $(this).addClass('idle'); | |
else $(this).removeClass('idle'); | |
}); | |
t.find('select').change(); |
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
.ckeditor_links, | |
.filter-guidelines, | |
.filter-help, | |
.filter-wrapper .form-type-select label { | |
display: none !important; | |
} |
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
$view = views_get_view('opengraph'); | |
$display_id = 'default'; | |
$view->set_display($display_id); | |
//$view->set_arguments(array($element['#object']->nid)); | |
$view->execute(); | |
//print dpr($view->result); | |
print $view->result[0]->node_title; |
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
$('img').each(function () { | |
var $this = $(this); | |
var parentH = $this.parent().height(); | |
var H = parentH - $this.height(); | |
$this.css('margin-top',H / 2); | |
}); |
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
/* parent */ | |
.youtube-url .field-item { | |
height: 0; | |
padding-bottom: 53.25%; | |
padding-top: 25px; | |
position: relative; | |
} | |
/* video iframe */ | |
.youtube-url iframe { |
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
// remove second password field (Confirm password) on registration page | |
function tmplt_form_user_register_form_alter(&$form, &$form_state, $form_id) { | |
$form['account']['pass']['#type'] = 'password'; | |
$form['account']['pass']['#title'] = 'Password'; | |
} |
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
.form-control::-webkit-input-placeholder { | |
color: #000; | |
} | |
.form-control:-moz-placeholder { | |
color: #000; | |
} | |
.form-control::-moz-placeholder { | |
color: #000; | |
} | |
.form-control:-ms-input-placeholder { |
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
.sticky-nav { | |
-webkit-transform: translateZ(0); | |
} |