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( $ ) { | |
function getStyles(selector) { | |
return selector+" .modal-dialog {margin-top: 15%;}" +selector+" .modal-dialog .modal-content {border: 1px solid black; border-radius: 0;}" +selector+" .modal-dialog .modal-content .modal-header {padding: 22px;} "+selector+" .modal-dialog .modal-content .close {color: white; background: black;opacity: 1;padding: 3px; margin: -22px;} "+selector+" .modal-dialog .modal-content input.form-control { padding: 19px 10px; display:block; border: 1px solid black; border-radius: 0; width:100%; } @media (min-width: 768px) {.modal-dialog { width: 550px;margin: 30px auto;} } input[type='text'] {box-sizing: border-box;} .input-block-level {display: block;width: 100%; min-height: 28px; } input.form-control {box-sizing:border-box !important;} " +selector+" .modal-dialog .modal-content .modal-body {position: relative; padding: 0 10% 10%;}" +selector+" .modal-dialog .modal-content .btn {padding:9px 12px; font-size:12px; text-transform: none;}" +selector+" .modal-dialog .moda |
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
class VoShortCodes { | |
public static function typeFeaturedHomepage() { | |
$cache = new Cache(); | |
$listings = []; | |
$searchMult = new VoSearchMult; | |
$types = ['RE','LA']; |
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
poopoo.directive('fixedHeader', function() { | |
return { | |
// Restrict it to be an attribute in this case | |
restrict: 'A', | |
link: function(scope, element, attrs) { | |
window.scrollmything = function() { | |
var window = this; | |
window.elementHeight = element.height(); | |
window.activate(); | |
$(window).on('scroll', this.activate); |
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
var child_array = [$('.views-widget'), $('.views-operator')]; | |
for ( var i = 0; i < child_array.length; i++ ) { | |
var child = $(child_array[i] + ' .button'); | |
} | |
child.click(function() { | |
$(this).closest('form').submit(); | |
return false; | |
}); |
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 | |
function apci_groups_favorite_settings_form(&$form_state) { | |
$default_option = FALSE; | |
$form['options'] = array( | |
'#title' => t('Favorite'), | |
'#type' => 'checkbox', | |
'#default_value' => $default_option, | |
); |
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
/** | |
* Modals for group roster options. | |
*/ | |
Drupal.behaviors.apci_show_hide_roster_options = function(context) { | |
var modals = $('.apci-modal'); | |
$(window).load(function(){ | |
modals.appendTo('body'); | |
}); |