t("Menu Children"), ); return $blocks; } function menu_children_block_view($delta) { $block = array(); switch ($delta) { case "children": $items = array(); $links = db_query(" SELECT ml1.weight, ml1.link_title, ml1.link_path, ml1.router_path FROM {menu_links} ml1 JOIN {menu_links} ml2 ON (ml2.mlid=ml1.plid AND ml2.link_path=CONCAT('node/', :nid)) ORDER BY ml1.weight ASC ", array(":nid" => arg(1))); $node = node_load( arg(1) ); $view_mode = field_extract_value( 'node', $node, 'field_children_display_type' ); if( $view_mode == "" ) $view_mode = "full"; $child_index = 0; // to give the children there index in parent. while ($link = $links->fetchObject()) { if ($link->router_path == "node/%") { // Do an access check $nid = substr($link->link_path, 5); $child_node = node_load( $nid ); $child_node->child_index = $child_index; if ($child_node->status == 1) { $node_view = node_view($child_node, $view_mode); //$items[] = render($node_view); $items[] = array( 'data' => render($node_view), //'class' => array('node-menu-child', 'node-menu-child-' . $child_index, ($child_index%2) ? "even" : "odd"), 'class' => array('node-menu-child', 'node-menu-child-' . $child_index), ); } } else { $items[] = l($link->link_title, $link->link_path); } $child_index++; } if (count($items) == 0) return $block; $block["content"] = theme("item_list", array("items" => $items)); } return $block; } 3, 'path' => drupal_get_path('module', 'responsive_blog') . '/views', ); } function responsive_blog_views_pre_render(&$view) { } function responsive_blog_preprocess_views_view_unformatted(&$vars) { foreach ($vars['classes_array'] as $index => $item) { if ($index % 2 + 1 == 2) $vars['classes_array'][$index] .= ' mod-two-last'; if ($index % 3 + 1 == 3) $vars['classes_array'][$index] .= ' mod-three-last'; if ($index % 4 + 1 == 4) $vars['classes_array'][$index] .= ' mod-four-last'; } } function responsive_blog_fb_comment() { return theme('fb_comment'); } function responsive_blog_social_sharing_items() { return theme('social_sharing_links'); } function responsive_blog_theme() { return array( 'fb_comment' => array( 'template' => 'templates/fb-comment', ), 'social_sharing_links' => array( 'template' => 'templates/social-sharing-items-vertical', ), ); } function responsive_blog_ds_fields_info($entity_type) { $fields = array(); $fields['fb_comment'] = array( 'title' => t('Place reaction'), 'field_type' => DS_FIELD_TYPE_FUNCTION, 'function' => 'responsive_blog_fb_comment', 'properties' => array( ) ); $fields['social'] = array( // title: title of the field 'title' => t('Share post'), // type: type of field // - DS_FIELD_TYPE_THEME : calls a theming function. // - DS_FIELD_TYPE_FUNCTION : calls a custom function. // - DS_FIELD_TYPE_CODE : calls ds_render_code_field(). // - DS_FIELD_TYPE_BLOCK : calls ds_render_block_field(). // - DS_FIELD_TYPE_PREPROCESS : calls nothing, just takes a key from the // variable field that is passed on. // - DS_FIELD_TYPE_IGNORE : calls nothing, use this if you simple want // to drag and drop. The field itself will have // a theme function. 'field_type' => DS_FIELD_TYPE_FUNCTION, // ui_limit : only used for the manage display screen so // you can limit fields to show based on bundles or view modes // the values are always in the form of $bundle|$view_mode // You may use * to select all. // Make sure you use the machine name. //'ui_limit' => array('*'), // file: an optional file in which the function resides. // Only for DS_FIELD_TYPE_FUNCTION. //'file' => 'optional_filename', // function: only for DS_FIELD_TYPE_FUNCTION. 'function' => 'responsive_blog_social_sharing_items', // properties: can have different keys. 'properties' => array( // formatters: optional if a function is used. // In case the field_type is DS_FIELD_TYPE_THEME, you also // need to register these formatters as a theming function // since the key will be called with theme('function'). // The value is the caption used in the selection config on Field UI. //'formatters' => array( //'node_title_nolink_h1' => t('H1 title'), //'node_title_link_h1' => t('H1 title, linked to node'), //), // settings & default: optional if you have a settings form for your field. //'settings' => array( //'wrapper' => array('type' => 'textfield', 'description' => t('Eg: h1, h2, p')), //'link' => array('type' => 'select', 'options' => array('yes', 'no')), //), //'default' => array('wrapper' => 'h2', 'link' => 0), // code: optional, only for code field. //'code' => 'my code here', // use_token: optional, only for code field. //'use_token' => TRUE, // or FALSE, // block: the module and delta of the block, only for block fields. //'block' => 'user-menu', // block_render: block render type, only for block fields. // - DS_BLOCK_CONTENT : render through block template file. // - DS_BLOCK_TITLE_CONTENT : render only title and content. // - DS_BLOCK_CONTENT : render only content. //'block_render' => DS_BLOCK_CONTENT, ) ); return array('node' => $fields); } function responsive_blog_block_info() { $blocks = array(); $blocks[0] = array( 'info' => t('Arrows'), 'region' => 'footer', //'status' => 1, //'cache' => DRUPAL_NO_CACHE, //'visibility' => BLOCK_VISIBILITY_NOTLISTED, //'pages' => array('user/register', 'action/*') ); return $blocks; } function responsive_blog_block_view($delta = '') { $block = array(); $node = node_load(arg(1)); $block['content'] = theme("get_next_orderable_view_node", array("view_id"=>"responsive_blog", "entity_id"=>$node->nid)) . theme("get_previous_orderable_view_node", array("view_id"=>"responsive_blog", "entity_id"=>$node->nid)); //$block['content'] = ''; return $block; } function responsive_blog_preprocess_page(&$variables) { // add "active-trail" class to main menu item on blog detail page. if(isset($variables['node']) && $variables['node']->type == 'blog' && $variables['page']['#type'] == "page"){ foreach ($variables['main_menu'] as $index => $item) { if( $item['href'] == "blog" ){ $variables['main_menu'][$index]['attributes']['class'] = array("active-trail"); break; } } } } '; $facebook_code .= ''; $variables["facebook_code"] = $facebook_code; // var to js: drupal_add_js('jQuery.extend(Drupal.settings, { "pathToTheme": "' . path_to_theme() . '" });', 'inline'); global $base_path; drupal_add_js('jQuery.extend(Drupal.settings, { "basePath": "' . $base_path . '" });', 'inline'); // facebook image: $element = array( '#tag' => 'link', ); $element['#attributes']['rel'] = 'image_src'; $element['#attributes']['href'] = 'http://www.amsterdamhalloween.nl/sites/default/files/amsterdam-halloween-site.png'; drupal_add_html_head($element, "head"); ////////////////////// ////////////////////// // meta description // ////////////////////// if (isset($variables['node'])) { $variables['theme_hook_suggestions'][] = 'page__'. render($variables['node'])->type; $element = array( '#tag' => 'meta', '#attributes' => array( 'name' => 'title', 'content' => $variables["node"]->title, ), ); drupal_add_html_head($element, "title"); if( isset($variables["node"]->body['und'][0]["summary"]) && !empty($variables["node"]->body['und'][0]["summary"]) ) $content = strip_tags($variables["node"]->body['und'][0]["summary"]); else if( isset($variables["node"]->body['und'][0]["value"]) && !empty($variables["node"]->body['und'][0]["value"]) ) $content = strip_tags($variables["node"]->body['und'][0]["value"]); if(!empty($content)){ $element = array( '#tag' => 'meta', '#attributes' => array( 'name' => 'description', 'content' => $content, ), ); } drupal_add_html_head($element, "body"); } } function halloween_theme_item_list($variables) { $items = $variables['items']; $title = $variables['title']; $type = $variables['type']; $attributes = $variables['attributes']; // Only output the list container and title, if there are any list items. // Check to see whether the block title exists before adding a header. // Empty headers are not semantic and present accessibility challenges. $output = '
'; if (isset($title) && $title !== '') { $output .= '

' . $title . '

'; } if (!empty($items)) { $output .= "<$type" . drupal_attributes($attributes) . '>'; $num_items = count($items); foreach ($items as $i => $item) { $attributes = array(); $children = array(); $data = ''; if (is_array($item)) { foreach ($item as $key => $value) { if ($key == 'data') { $data = $value; } elseif ($key == 'children') { $children = $value; } else { $attributes[$key] = $value; } } } else { $data = $item; } if (count($children) > 0) { // Render nested list. $data .= theme('item_list', array('items' => $children, 'title' => NULL, 'type' => $type, 'attributes' => $attributes)); } if ($i == 0) { $attributes['class'][] = 'first'; } if ($i % 2 == 0) { $attributes['class'][] = 'odd'; } else { $attributes['class'][] = 'even'; } $attributes['class'][] = halloween_theme_get_mod_class($i); if ($i == $num_items - 1) { $attributes['class'][] = 'last'; } $output .= '' . $data . "\n"; } $output .= ""; } $output .= '
'; return $output; } function halloween_theme_get_mod_class($index) { $output = ""; if ($index % 2 + 1 == 2) $output .= 'mod-two-last'; if ($index % 3 + 1 == 3) $output .= 'mod-three-last'; if ($index % 4 + 1 == 4) $output .= 'mod-four-last'; return $output; } function halloween_theme_css_alter(&$css) { if (isset($css['sites/all/modules/ds/layouts/ds_2col/ds_2col.css'])) { $css['sites/all/modules/ds/layouts/ds_2col/ds_2col.css']['data'] = ''; } } AMSTERDAM HALLOWEEN 2016 SUPERHEROES | www.amsterdamhalloween.nl

AMSTERDAM HALLOWEEN 2016 SUPERHEROES

Zaterdag 29 oktober 2016 | WesterUnie | Westerliefde | Transformatorhuis

Voor de 8ste keer op rij vindt Amsterdam Halloween plaats op het Westergasterrein in de hoofdstad van Nederland. De Westerunie, Transformatorhal, én de Westerliefde vormen tijdens dit Halloween weekend het toneel van intergalactische Super Helden.

Kom dit jaar als Spiderman en hang de hele nacht aan de bar terwijl Captain America de beveiliging een handje helpt. Invisible Man heeft de hele avond zelfservice achter de bar en bij Catwoman is elke vent in een handomdraai ‘whipped’. Lauw biertje? Gelukkig staat Iceman even verderop! Natuurlijk mogen bezoekers ook hun halloween fantasie de vrije loop laten, zolang ze maar verkleed komen.

Kris Kross, Benny Rodrigues, Cleavage & more!

Lotgenoten! Te gek dat jullie al met zovelen hebben besloten om de krachten te bundelen tijdens Amsterdam Halloween 2016! De Early Bats fladderden er binnen een paar dagen uit en ook de Group tickets zijn op. Inmiddels gaan de reguliere tickets sneller dan de Six Million Dollar Man, dus wees gewaarschuwd!

In het Transformatorhuis krijgen de heren van Kris Kross Amsterdam vrij spel. Samen met onder andere Walter Looks, Hitmeister Pim, en Kevin-D trakteren zij jullie op een dikke laserstraal van classics, 90’s en early 00’s dansklappers. De Westerunie staat onder leiding van ware (inter)nationale held en alleskunner Benny Rodrigues. Vergezeld door Luuk van Dijk en Cleavage brouwt hij speciaal voor Halloween een haunted tech-house elixer om dronken van te worden.

Zie hier de aftermovie van de Amsterdam Halloween Parade 2014.

De aftermovie van de FOX Amsterdam Halloween Parade & party. Check it out!