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
<ul> | |
$args = array( | |
'order' => 'DESC', | |
'orderby' => 'menu_order', | |
'post_type' => 'attachment', | |
'post_parent' => $post->ID, | |
'post_mime_type' => 'image', | |
'post_status' => null, | |
'numberposts' => -1, | |
); |
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($){ | |
$(document).ready(function(){ | |
// THEMANAV SPLIT DROPDOWN | |
$("#themas li ul").each(function() { | |
var aantal = $(this).children(' li').length; // tel aantal li's | |
if (aantal > 16 ) { |
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
/* DOUBLE SHADOW ON A GREY BGR */ | |
.class{ | |
border-left: 1px solid #fff; | |
box-shadow: -1px 0 0 0 #ccc; | |
} |
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
<?php | |
$options = array( | |
'attributes' => array('class' => 'fancybox btn'), | |
'query' => array('popup' => TRUE) | |
); | |
print l('Download patiëntenfolders', 'overzicht-folders/'.$node->nid, $options); | |
?> |
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 community_preprocess_html(&$vars) { | |
// set thema_[tid] class when on node detail | |
if(isset($vars['page']['content']['system_main']['nodes'])) { | |
$node = reset($vars['page']['content']['system_main']['nodes']); | |
if(isset($node['field_thema']['#items'][0]['tid'])){ | |
$vars['classes_array'][] = 'thema_' . $node['field_thema']['#items'][0]['tid']; | |
} | |
} | |
// set parent level thema_[tid] class on taxonomy detail |
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
<!DOCTYPE html > | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | |
<title>Bookmarklet </title> | |
</head> | |
<body> | |
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
print '<div class="visual" style="background-image: url(' . file_create_url($header_waarde['#item']['uri']) . ');"></div>'; | |
#crappycode :-) |
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
<?php if ($is_front): ?> | |
<img src="<?php print base_path() . path_to_theme(); ?>/img/logo-<?php print $activelang; ?>.png" class="logo" /> | |
<?php endif; ?> |
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
/** | |
* UPDATE JQUERY FOR FRONTEND ONLY | |
*/ | |
function MYTHEME_js_alter(&$javascript) { | |
// Swap out jQuery to use an updated version of the library. | |
$javascript['misc/jquery.js']['data'] = drupal_get_path('theme', 'MYTHEME').'/js/jquery-1.7.2.min.js'; | |
} |
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 MYTHEME_menu_tree__MY_MENU_NAME(&$variables) { | |
return '<div class="thespecialwrapperclassiwant"><ul class="menu nav">' . $variables['tree'] . '</ul></div>'; | |
} |
NewerOlder