function meta_obtain($value, $key, $post_id)
{
    $meta = get_post_meta($post_id, $key, true);
    $meta = meta_get($value, $meta);
    return $meta;
}
<?php

/******************/
/*   Item count   */
global $count;
/**************************/
/*   Getting item metas   */
$meta = get_post_meta($post->ID, '_retro_format_standard', true);
/***********************/
/*   Item attributes   */
$item = array('filter' => haku_nice_classes(get_the_terms('portfolio', 'portfolio_filter')), 'meta' => esc_url(meta_get('url', $meta)), 'href' => esc_url(meta_get('url', $meta, get_thumb_src($post->ID, 'full'))), 'new_tab' => meta_get('new_tab', $meta), 'span_class' => 'icon_camera', 'class' => array('item_li'), 'is_quote' => get_post_format() == 'quote' ? true : false, 'is_audio' => get_post_format() == 'audio' ? true : false);
/***********************/
/*   Item span class   */
if (haku_get_url_type($item['href']) == 'youtube' || haku_get_url_type($item['href']) == 'vimeo') {
    $item['span_class'] = 'icon_video';
} elseif (haku_get_url_type($item['href']) != 'image') {
    $item['span_class'] = 'icon_link';
}
if ($item['is_quote']) {
    $item['href'] = '#' . sanitize_title(get_the_title());
    $item['span_class'] = 'icon_text';
}
if ($item['is_audio']) {
    $item['href'] = '#' . sanitize_title(get_the_title());
    $item['span_class'] = 'icon_audio';
    // Javascript
    global $retro_enqueue_audio_js;
    $retro_enqueue_audio_js = true;
}
/******************/
/*   Item class   */