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_block_info(). | |
*/ | |
function the_aim_custom_block_info() { | |
$blocks['latest_product'] = array( | |
'info' => t('Latest product'), | |
); | |
return $blocks; | |
} |
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
/** | |
* Implements hook_commerce_currency_info_alter(). | |
* Euro symbol beefore price | |
*/ | |
function the_aim_custom_commerce_currency_info_alter(&$currencies, $langcode) { | |
$currencies['EUR']['symbol'] = '€ '; | |
$currencies['EUR']['symbol_placement'] = 'before'; | |
$currencies['EUR']['code_placement'] = ''; | |
} |
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 equalHeight(element) { | |
var currentTallest = 0, | |
currentRowStart = 0, | |
rowDivs = new Array(), | |
$el, | |
topPosition = 0; | |
$(element).each(function() { | |
$el = $(this); |
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
.arrow-up { | |
width: 0; | |
height: 0; | |
border-left: 5px solid transparent; | |
border-right: 5px solid transparent; | |
border-bottom: 5px solid black; | |
} | |
.arrow-down { |
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
/** | |
* Implements hook_views_query_alter | |
* FIX TAXONOMY | |
* Add language filter to views | |
*/ | |
function the_aim_custom_views_query_alter(&$view, &$query) { | |
if ($view->name == 'homepage_taxonomy_spotlight') { | |
$query->where[] = array( | |
'conditions' => array(array( | |
'field' => 'taxonomy_term_data.language', |
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
name = the AIM custom | |
package = the AIM | |
core = 7.x |
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 the_aim_custom_form_alter(&$form, &$form_state, $form_id) { | |
switch ($form_id) { | |
//apply for job form | |
case 'webform_client_form_38': | |
//get title of current node and insert into webform field | |
$current_object = menu_get_object(); | |
if(isset($current_object->title)) { | |
$job_title = $current_object->title; | |
$form['submitted']['vacature']['#default_value'] = $job_title; | |
} |