php
// Changes past event views to reverse chronological order
function tribe_past_reverse_chronological ($post_object) {
$past_ajax = (defined( 'DOING_AJAX' ) && DOING_AJAX && $_REQUEST['tribe_event_display'] === 'past') ? true : false;
if(tribe_is_past() || $past_ajax) {
$post_object = array_reverse($post_object);
}
return $post_object;
}
add_filter('the_posts', 'tribe_past_reverse_chronological', 100);
// Adding thumbnails to event widget
function custom_widget_featured_image() {
global $post;
echo tribe_event_featured_image( $post->ID, 'thumbnail' );
}
add_action( 'tribe_events_list_widget_before_the_event_title', 'custom_widget_featured_image' );
// Action Hook, um die eigenen Styles zu integrieren
add_action( 'wp_enqueue_scripts', 'childtheme_styles' );
function childtheme_styles() {
wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );
wp_enqueue_style( 'child-style', get_stylesheet_directory_uri() . '/style.css', array( 'parent-style' ));
}
// Listing posts by year on the Event Archive page
function posts_by_year() {
// array to use for results
$years = array();
// get posts from WP
$posts = get_posts(array(
'numberposts' => -1,
'orderby' => 'post_date',
'order' => 'DESC',
'post_type' => 'post',
'post_status' => 'publish',
'date_query' => array(array('after' => 'January 1st, 2009','before' => 'January 1st, 2016')),
));
// loop through posts, populating $years arrays
foreach($posts as $post) {
$years[date('Y', strtotime($post->post_date))][] = $post;
}
// reverse sort by year
krsort($years);
return $years;
}
// Adding styles to the backend
function wpb_mce_buttons_2($buttons) {
array_unshift($buttons, 'styleselect');
return $buttons;
}
add_filter('mce_buttons_2', 'wpb_mce_buttons_2');
/*
* Callback function to filter the MCE settings
*/
function my_mce_before_init_insert_formats( $init_array ) {
// Define the style_formats array
$style_formats = array(
// Each array child is a format with it's own settings
array(
'title' => 'Intro text',
'block' => 'p',
'classes' => 'intro',
'wrapper' => false,
),
);
// Insert the array, JSON ENCODED, into 'style_formats'
$init_array['style_formats'] = json_encode( $style_formats );
return $init_array;
}
// Attach callback to 'tiny_mce_before_init'
add_filter( 'tiny_mce_before_init', 'my_mce_before_init_insert_formats' ); include_once './wp-includes/images/wlw/wp-rss.png';
function my_theme_add_editor_styles() {
add_editor_style( 'custom-editor-style.css' );
}
add_action( 'init', 'my_theme_add_editor_styles' );
?>
berlin – Mz* Baltazar's Lab
Skip to the content
Toggle mobile menu
Toggle search field
Start: 03.02.2011 10:30
End: 04.02.2011 14:30
The workshop in Berlin was pure divine fun – many, many people got interested in our group and it was booked out already 3 weeks in advance.
There was a journalist from Berlin’s TAZ and a Missy Magazine writer participating and the guy who makes the Arduino blog took an interview. He promised to add the tag “arduina” to the arduino website. I think, we should all post our thoughts on the arduino forum more, to start a discussion on these issues.
A journalist from dpi magazine in montreal took part in the workshop and will write about us. Also a dutch online magazine took an interview and the karlsruhe institute of technology as well as the Frankfurt visual arts department of the Goethe-Universität would like to host mz baltazar’s laboratory workshops.
Participants: Carolyn Guertin (ca), Stefanie Wuschitz (at), Franca Formenti (it)
Moderation: Verena Kuni (de)
The lecture was on hackerspaces and women only groups within these frameworks. Here are some pictures from my slide show:
FM4 wants to do a radio report about mz baltazar’s laboratory, so they might even come to one of the next sessions. however, i really look forward to our linux (ubuntu) install session ! if you want to change the operating system on your computer, please make sure to make a backup of all your data in advance! so i hope i see many of you on the 9th of february at 7pm at museumsquartier!
love,
stefanie