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' );
?>
circuitry – Mz* Baltazar's Lab
Skip to the content
Toggle mobile menu
Toggle search field
Handcrafting Textile Sensors
: : : . : : : . : : :
http://www.plusea.at/
WHERE: Museumsquartier, Tagr TV / Transforming Freedom Space
WHEN: 7pm
WHO: women and trans only, free entry
This hands-on workshop introduces a range of low-cost materials and tools for building textile sensors. Participants will learn techniques for handcrafting textile sensors and circuitry that include sewing, knitting, crochet and embroidery.
The goal of the workshop is to familiarize participants with available electronic textile materials and introduce them to a variety of sensor and circuitry construction techniques.
Participants will also learn how to read the values of their sensors, using multimeters as well as Arduinos and Processing .