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 ----------------- | |
//---------------------------------------- | |
/* | |
* alter cklink to add language | |
*/ | |
function YOUR_MODULE_ckeditor_link_autocomplete_alter(&$results, &$string){ | |
if ($string !== '') { | |
$types = ckeditor_link_get_types(); | |
$results = 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
// add this to your html page (e.g. in a block) | |
<div id="map_canvas">map_canvas</div> |
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/video_embed_field.module b/video_embed_field.module | |
index 54491d4..8a45ebb 100755 | |
--- a/video_embed_field.module | |
+++ b/video_embed_field.module | |
@@ -354,7 +354,8 @@ function template_preprocess_video_embed_field_embed_code(&$variables) { | |
// Prepare embed code | |
if ($handler && isset($handler['function']) && function_exists($handler['function'])) { | |
- $variables['embed_code'] = drupal_render(call_user_func($handler['function'], $variables['url'], $variables['style_settings'])); | |
+ $embed_code = call_user_func($handler['function'], $variables['url'], $variables['style_settings']); |
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 | |
/** | |
* Implements theme_preprocess_menu_link() | |
*/ | |
function the_aim_theme_preprocess_menu_link(&$variables) { | |
$nofollowlinks = array(367); | |
$element = &$variables['element']; |
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($){ | |
$.fn.equalheights = function(options, settings){ | |
var max = 0, | |
that = this, | |
deBouncer = function($,cf,of, interval){ | |
var debounce = function (func, threshold, execAsap) { | |
var timeout; | |
return function debounced () { | |
var obj = this, args = arguments; |
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
@include at-breakpoint($break-2) { | |
a[href^=tel] { | |
color: grey !important; | |
cursor: text; | |
text-decoration: none !important; | |
&:hover { | |
text-decoration: 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
<div id="mobile-icons"> | |
<span class="mobile-icon mobile-icon-search">Search</span> | |
<span class="mobile-icon mobile-icon-menu">Menu</span> | |
</div> |
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 | |
/** | |
* Implements hook_user_login | |
*/ | |
function MODULE_form_user_login_alter(&$form, &$form_state) { | |
$form['already_customer'] = array( | |
'#type' => 'markup', | |
'#markup' => '<h3>' . t('I am already a customer') . '</h3>', | |
'#weight' => -10, |
NewerOlder