예제 #1
0
        $agent_office_fax = get_the_author_meta('fax_number');
        $agent_email = get_the_author_meta('user_email');
        $agent_title_text = __('أضيف بواسطة ', 'framework') . " " . get_the_author_meta('display_name');
    } else {
        $property_agent = get_post_meta($post->ID, 'REAL_HOMES_agents', true);
        if (!empty($property_agent) && intval($property_agent) > 0) {
            $hide_info_box = false;
            $agent_id = intval($property_agent);
            $post = get_post($agent_id);
            setup_postdata($post);
            $agent_mobile = get_post_meta($agent_id, 'REAL_HOMES_mobile_number', true);
            $agent_office_phone = get_post_meta($agent_id, 'REAL_HOMES_office_number', true);
            $agent_office_fax = get_post_meta($agent_id, 'REAL_HOMES_fax_number', true);
            $agent_email = get_post_meta($agent_id, 'REAL_HOMES_agent_email', true);
            $agent_title_text = __('وكيل', 'framework') . " " . get_the_title($agent_id);
            $agent_description = get_framework_excerpt(18);
            wp_reset_postdata();
        }
    }
    if (!$hide_info_box) {
        ?>
        <div class="agent-detail clearfix">

            <div class="left-box">
                <h3><?php 
        echo $agent_title_text;
        ?>
</h3>
                <?php 
        if ($display_author) {
            if (function_exists('get_avatar')) {
예제 #2
0
 function framework_excerpt($len = 15, $trim = "&hellip;")
 {
     echo get_framework_excerpt($len, $trim);
 }