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();
        }
    }
}
Пример #2
0
function epl_property_blog_table_open()
{
    global $property, $epl_settings;
    if (is_null($property)) {
        return;
    }
    $property_status = $property->get_property_meta('property_status');
    // Status Removal
    if ($property_status == 'withdrawn' || $property_status == 'offmarket') {
        // Do Not Display Withdrawn or OffMarket listings
    } else {
        $option = '';
        if (!empty($epl_settings) && isset($epl_settings['epl_property_card_style'])) {
            $option = $epl_settings['epl_property_card_style'];
        }
        $action_check = has_action('epl_loop_template');
        if ($action_check != '' && $option !== 0) {
            do_action('epl_loop_template');
        } else {
            epl_get_template_part('loop-listing-blog-table-open.php');
        }
    }
    // End Status Removal
}