예제 #1
1
파일: oodle.php 프로젝트: oanav/closetshare
function oodle_realstate()
{
    echo '<?xml version="1.0" encoding="utf-8"?><listings>';
    if (osc_count_items()) {
        while (osc_has_items()) {
            $item = feed_get_house_data(osc_item());
            $time = explode(" ", osc_item_pub_date());
            if (isset($item['s_square_meters'])) {
                $lot_size = $item['s_square_meters'] * 10.7639104;
            } else {
                $lot_size = 0;
            }
            $amenities = array();
            if (isset($item['b_heating']) && $item['b_heating']) {
                $amenities[] = __('Heating', 'extra_feeds');
            }
            if (isset($item['b_air_condition']) && $item['b_air_condition']) {
                $amenities[] = __('Air condition', 'extra_feeds');
            }
            if (isset($item['b_elevator']) && $item['b_elevator']) {
                $amenities[] = __('Elevator', 'extra_feeds');
            }
            if (isset($item['b_terrace']) && $item['b_terrace']) {
                $amenities[] = __('Terrace', 'extra_feeds');
            }
            if (isset($item['b_parking']) && $item['b_parking']) {
                $amenities[] = __('Parking', 'extra_feeds');
            }
            echo '<listing>
                <category>' . osc_item_category() . '</category> 
                <description><![CDATA[' . osc_item_description() . ']]></description> 
                <id>' . osc_item_id() . '</id> 
                <title><![CDATA[' . osc_item_title() . ']]></title> 
                <url>' . osc_item_url() . '</url> 
                <address>' . osc_item_address() . '</address> 
                <city>' . osc_item_city() . '</city> 
                <country>' . osc_item_country_code() . '</country> 
                <neighborhood>' . osc_item_city_area() . '</neighborhood> 
                <state>' . osc_item_region() . '</state> 
                <zip_code>' . osc_item_zip() . '</zip_code> 
                <longitude>' . osc_item_longitude() . '</longitude>
                <latitude>' . osc_item_latitude() . '</latitude>
                <amenities>' . implode(", ", $amenities) . '</amenities>
                <bathrooms>' . @$item['i_num_bathrooms'] . '</bathrooms>
                <bedrooms>' . @$item['i_num_rooms'] . '</bedrooms>
                <condition>' . @$item['e_status'] . '</condition>
                <create_time>' . $time[0] . '</create_time>
                <currency>' . osc_item_currency() . '</currency>
                <furnished>' . (@$item['b_furnished'] ? 'Furnished' : '') . '</furnished>';
            if (osc_count_item_resources() > 0) {
                if (strpos(osc_resource_type(), 'image') !== FALSE) {
                    echo '<image_url><![CDATA[' . osc_resource_path() . ']]></image_url>';
                }
            }
            echo '<lot_size>' . $lot_size . '</lot_size>
                <lot_size_units>square feet</lot_size_units>
                <price>' . osc_item_price() . '</price>
                <seller_email>' . osc_item_contact_email() . '</seller_email> 
                <seller_name><![CDATA[' . osc_item_contact_name() . ']]></seller_name> 
                <year>' . @$item['i_year'] . '</year>
        </listing>';
        }
    }
    echo '</listings>';
}
예제 #2
1
function logbee_header()
{
    $location = Rewrite::newInstance()->get_location();
    $section = Rewrite::newInstance()->get_section();
    if ($location == 'item' && $section == '') {
        echo '
<style type="text/css">
  .logbee ul { margin: 10px 0; list-style: none; }
  .logbee ul li { float: left; }
  .logbee .clear { clear:both; }
</style>';
        // meta-tags
        $address_array = array();
        if (osc_item_address() != "") {
            $address_array[] = osc_item_address();
        }
        if (osc_item_city_area() != "") {
            $address_array[] = osc_item_city_area();
        }
        if (osc_item_zip() != "") {
            $address_array[] = osc_item_zip();
        }
        if (osc_item_city() != "") {
            $address_array[] = osc_item_city();
        }
        if (osc_item_region() != "") {
            $address_array[] = osc_item_region();
        }
        if (osc_item_country() != "") {
            $address_array[] = osc_item_country();
        }
        $address = implode(", ", $address_array);
        $price = '';
        if (osc_item_formated_price() != "") {
            $price = osc_item_formated_price();
        }
        $email = '';
        if (osc_item_show_email()) {
            $email = osc_item_contact_email();
        }
        echo '
 <meta property="logbee:title" content="' . osc_esc_html(osc_item_title()) . '"/>
 <meta property="logbee:url"   content="' . osc_esc_html(osc_item_url()) . '"/>
 <meta property="logbee:desc"  content="' . osc_esc_html(osc_item_description()) . '"/>
 <meta property="logbee:addr"  content="' . osc_esc_html($address) . '"/>
 <meta property="logbee:email" content="' . osc_esc_html($email) . '"/>
 <meta property="logbee:price" content="' . osc_esc_html($price) . '"/>';
        // do we have the cars_plugin enabled?
        if (osc_plugin_is_enabled('cars_attributes/index.php')) {
            require_once osc_plugin_path('') . '/cars_attributes/ModelCars.php';
            if (osc_is_this_category('cars_plugin', osc_item_category_id())) {
                $detail = ModelCars::newInstance()->getCarAttr(osc_item_id());
                echo '
 <meta property="logbee:type" content="car"/>
 <meta property="logbee:mileage" content="' . osc_esc_html(@$detail['i_mileage']) . '"/>
 <meta property="logbee:firstreg" content="' . osc_esc_html(@$detail['i_year']) . '"/>';
            }
        }
        // do we have the realestate_plugin enabled?
        if (osc_plugin_is_enabled('realestate_attributes/index.php')) {
            require_once osc_plugin_path('') . '/realestate_attributes/ModelRealEstate.php';
            if (osc_is_this_category('realestate_plugin', osc_item_category_id())) {
                $detail = ModelRealEstate::newInstance()->getAttributes(osc_item_id());
                echo '
 <meta property="logbee:type" content="realty"/>
 <meta property="logbee:rooms" content="' . osc_esc_html(@$detail['i_num_rooms']) . '"/>
 <meta property="logbee:size" content="' . osc_esc_html(@$detail['s_square_meters']) . ' sqm"/>';
            }
        }
        // images
        osc_reset_resources();
        $images_array = array();
        for ($i = 0; osc_has_item_resources(); $i++) {
            $images_array[] = osc_esc_html(osc_resource_url());
        }
        $images = implode("|", $images_array);
        echo '
 <meta property="logbee:imgurl" content="' . $images . '"/>
 ';
        osc_reset_resources();
        echo "\n";
    }
}
예제 #3
0
</a></p>
            <?php 
            } else {
                ?>
                <p class="name"><?php 
                printf(__('Name: %s', 'bender'), osc_item_contact_name());
                ?>
</p>
            <?php 
            }
            ?>
            <?php 
            if (osc_item_show_email()) {
                ?>
                <p class="email"><?php 
                printf(__('E-mail: %s', 'bender'), osc_item_contact_email());
                ?>
</p>
            <?php 
            }
            ?>
            <?php 
            if (osc_user_phone() != '') {
                ?>
                <p class="phone"><?php 
                printf(__("Phone: %s", 'bender'), osc_user_phone());
                ?>
</p>
            <?php 
            }
            ?>
예제 #4
0
파일: item.php 프로젝트: oanav/closetshare
</a></div>
                <?php 
            } else {
                ?>
                <div class="name"><?php 
                printf(__('Name: %s', 'osclasswizards'), osc_item_contact_name());
                ?>
</div>
                <?php 
            }
            ?>
                <?php 
            if (osc_item_show_email()) {
                ?>
                <div class="email"><?php 
                printf(__('E-mail: %s', 'osclasswizards'), osc_item_contact_email());
                ?>
</div>
                <?php 
            }
            ?>
                <?php 
            if (osc_user_phone() != '') {
                ?>
                <div class="phone"><?php 
                printf(__("Phone: %s", 'osclasswizards'), osc_user_phone());
                ?>
</div>
                <?php 
            }
            ?>
</a></p>
        <?php 
            } else {
                ?>
            <p class="name"><?php 
                printf(__('Name: %s', 'pop'), osc_item_contact_name());
                ?>
</p>
        <?php 
            }
            ?>
        <?php 
            if (osc_item_show_email()) {
                ?>
            <p class="email"><?php 
                printf(__('E-mail: %s', 'pop'), osc_item_contact_email());
                ?>
</p>
        <?php 
            }
            ?>
        <?php 
            if (osc_user_phone() != '') {
                ?>
            <p class="phone"><?php 
                printf(__("Phone: %s", 'pop'), osc_user_phone());
                ?>
</p>
        <?php 
            }
            ?>
예제 #6
0
파일: item.php 프로젝트: nsswaga/OSClass
</h2>
                        <p class="name"><?php 
            _e('Name', 'modern');
            ?>
: <?php 
            echo osc_item_contact_name();
            ?>
</p>
                        <?php 
            if (osc_item_show_email()) {
                ?>
                        <p class="email"><?php 
                _e('E-mail', 'modern');
                ?>
: <?php 
                echo osc_item_contact_email();
                ?>
</p>
                        <?php 
            }
            ?>
                        <?php 
            if (osc_user_phone() != '') {
                ?>
                        <p class="phone"><?php 
                _e("Tel", 'modern');
                ?>
.: <?php 
                echo osc_user_phone();
                ?>
</p>
예제 #7
0
파일: dd-func.php 프로젝트: abhi143u11/ads
function dd_profilepic()
{
    if (function_exists("profile_picture_show")) {
        profile_picture_show();
    } else {
        ?>
     <img src="http://www.gravatar.com/avatar/<?php 
        echo md5(strtolower(trim(osc_item_contact_email())));
        ?>
?s=80&d=<?php 
        echo osc_current_web_theme_url('images/user-default.jpg');
        ?>
" />
<?php 
    }
}
예제 #8
0
</a></h3>
    <?php 
            } else {
                ?>
    <h3 class="name"><i class="fa fa-user"></i><?php 
                printf('%s', osc_item_contact_name());
                ?>
</h3>
    <?php 
            }
            ?>
    <?php 
            if (osc_item_show_email()) {
                ?>
    <p class="email"><?php 
                printf(__('E-mail: %s', OSCLASSWIZARDS_THEME_FOLDER), osc_item_contact_email());
                ?>
</p>
    <?php 
            }
            ?>
    <?php 
            if (osc_user_phone() != '') {
                ?>
    <p class="phone"><i class="fa fa-phone"></i><?php 
                printf('%s', osc_user_phone());
                ?>
</p>
    <?php 
            }
            ?>