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 | |
function mytheme_preprocess_node(&$vars,$hook) { | |
// PRODUCTTABS | |
if($vars['type'] == 'products' && $vars['view_mode'] == 'full') { | |
// CHECK IF NODE HAS TECHINFO | |
if (isset($vars['field_technische_informatie'][0])) { |
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 ($element['#view_mode'] == "full") { // styling image in full display mode?> | |
<div class="flexslider"<?php print $attributes; ?>> | |
<ul class="slides"<?php print $content_attributes; ?>> | |
<?php foreach ($items as $delta => $item): ?> | |
<li<?php print $item_attributes[$delta]; ?>><?php print render($item); ?></li> | |
<?php endforeach; ?> | |
</ul> | |
</div> |
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
$(document).ready(function() { | |
/* FUNCTION TO READ QUERYSTRING PARAM */ | |
$.urlParam = function(name){ | |
var results = new RegExp('[\\?&]' + name + '=([^&#]*)').exec(window.location.href); | |
if (!results) { return 0; } | |
return results[1] || 0;} | |
/* GET URLPARAM MONTH */ |
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
/** | |
* THEMING BREADCRUMBS | |
*/ | |
function myubertheme_breadcrumb($variables) { | |
$breadcrumb = $variables['breadcrumb']; | |
if (!empty($breadcrumb)) { | |
// Provide a navigational heading to give context for breadcrumb links to | |
// screen-reader users. Make the heading invisible with .element-invisible. |
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>'; | |
} |
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
<?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
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
<!DOCTYPE html > | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | |
<title>Bookmarklet </title> | |
</head> | |
<body> | |
OlderNewer