resize) { $extra_params['default_width'] = $ad->width; $extra_params['default_height'] = $ad->height; $extra_params['default_hidden'] = (isset($content->defaultHidden) && $content->defaultHidden)? true : false; if( isset( $content->media ) ) foreach ($content->media as $rule) { $exploded = explode(':', $rule); $new_rule = array( 'minw' => $exploded[0], 'w' => $exploded[1], 'h' => $exploded[2], ); $hidden = (isset($exploded[3]) && '1' == $exploded[3])? true : false; $new_rule['hidden'] = $hidden; $extra_params['at_media'][] = $new_rule; } } return $extra_params; } /** * Adds the manual css option to the list of available resizing mode. * @param arr $resize, associative array with the mode's slug as key and the displayed text (within a