<?phpif(!function_exists('pmai_get_join_attr')):functionpmai_get_join_attr($attributes=false){// validateif(empty($attributes)){return'';}// vars$e=array();// loop through and renderforeach($attributesas$k=>$v){$e[]=$k.'="'.esc_attr($v).'"';}// echoreturnimplode(' ',$e);}endif;?>