function epl_property_author_box_simple_card_tall($d_image, $d_icons, $d_bio)
{
    global $property, $epl_author;
    if (is_null($epl_author)) {
        return;
    }
    $arg_list = get_defined_vars();
    epl_get_template_part('widget-content-author-tall.php', $arg_list);
    // Second Author
    if (is_single() && !is_null($property)) {
        $property_second_agent = $property->get_property_meta('property_second_agent');
        if ('' != $property_second_agent) {
            $second_author = get_user_by('login', $property_second_agent);
            if ($second_author !== false) {
                $epl_author = new EPL_Author_meta($second_author->ID);
                $arg_list = get_defined_vars();
                epl_get_template_part('widget-content-author-tall.php', $arg_list);
            }
            epl_reset_post_author();
        }
    }
}
Example #2
0
function epl_manage_listing_column_agent_callback()
{
    global $post, $property;
    printf('<a href="%s">%s</a>', esc_url(add_query_arg(array('post_type' => $post->post_type, 'author' => get_the_author_meta('ID')), 'edit.php')), get_the_author());
    $property_second_agent = $property->get_property_meta('property_second_agent');
    if ('' != $property_second_agent) {
        $second_author = get_user_by('login', $property_second_agent);
        if ($second_author !== false) {
            printf('<br><a href="%s">%s</a>', esc_url(add_query_arg(array('post_type' => $post->post_type, 'author' => $second_author->ID), 'edit.php')), get_the_author_meta('display_name', $second_author->ID));
        }
        epl_reset_post_author();
    }
}