php print mini-panel
<?php
$delta = 'userinfo';
$panel_mini = panels_mini_load($delta);
ctools_include('context');
$nid = arg(1);
$node = node_load($nid);
$uid = $node->uid;
$user = user_load($uid);
$context = ctools_context_create('entity:user', $user);
$contexts = ctools_context_match_required_contexts($panel_mini->requiredcontexts, array($context));
$panel_mini->context = $panel_mini->display->context = ctools_context_load_contexts($panel_mini, FALSE, $contexts);
$panel_mini->display->css_id = panels_mini_get_id($panel_mini->name);
// Here is the markup, to with with whatever you wish.
$markup = panels_render_display($panel_mini->display);
dpm($markup);
?>