本文整理汇总了PHP中osc_item_contact_name函数的典型用法代码示例。如果您正苦于以下问题:PHP osc_item_contact_name函数的具体用法?PHP osc_item_contact_name怎么用?PHP osc_item_contact_name使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了osc_item_contact_name函数的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: _e
</a></h3>
<p class="user"><?php
_e('by', 'flatter');
?>
<?php
if (osc_item_user_id() != null) {
?>
<a href="<?php
echo osc_user_public_profile_url(osc_item_user_id());
?>
" ><?php
echo osc_item_contact_name();
?>
</a><?php
} else {
echo osc_item_contact_name();
}
?>
</p>
<p class="description"><?php
echo osc_highlight(strip_tags(osc_item_description()), 110);
?>
</p>
<div class="row">
<div class="col-md-5 col-sm-5 col-xs-5 price">
<?php
if (osc_price_enabled_at_items()) {
?>
<span><?php
echo osc_format_price(osc_item_price());
?>
示例2: _e
?>
<p class="name"><?php
_e('Name', 'bender');
?>
: <a href="<?php
echo osc_user_public_profile_url(osc_item_user_id());
?>
" ><?php
echo osc_item_contact_name();
?>
</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
}
?>
示例3: _e
?>
<div class="name"><?php
_e('Name', 'osclasswizards');
?>
: <a href="<?php
echo osc_user_public_profile_url(osc_item_user_id());
?>
"><?php
echo osc_item_contact_name();
?>
</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
}
?>
示例4: _e
?>
<p class="name"><?php
_e('Name', 'pop');
?>
: <a href="<?php
echo osc_user_public_profile_url(osc_item_user_id());
?>
" ><?php
echo osc_item_contact_name();
?>
</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
}
?>
示例5: oodle_realstate
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>';
}
示例6: osc_user_public_profile_url
" /></figure>
</div>
<h3 class="name">
<i class="fa fa-user"></i>
<a href="<?php
echo osc_user_public_profile_url(osc_item_user_id());
?>
" ><?php
echo osc_item_contact_name();
?>
</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
}
?>