zyx_join_flashvars

Description

located in the file / of the plugin. Uses the filter and the functions and . Pending and add .

A quick function to join an array to a FlashVars parameter (or any other URL-style). Mostly created to have a filter hook.

Synopsis

<?php zyx_join_flashvars( $args = array( 'foo' => 'foo_value' , 'bar' => 'bar_value' ); ?>

Source

<?php function zyx_join_flashvars( $args ){
	list( $params ) = array( array() );
	foreach( $args as $param => $param_val ){
		$params[] = esc_attr( (string)$param ) . '=' . esc_attr( (string)$param_val );
	};
	$ret_val = implode( '&' , $params );
	$ret_val = apply_filters( 'zyx_join_flashvars' , $ret_val , $args );
	return $ret_val;
}; ?>

Related

the_clocked_time

By the Web Warlock, Monday, 24/May/2010 20:11

<?php the_clocked_time( $width = '16' , $height = '16' , $echo = true , $args = NULL ); ?>