本文整理汇总了PHP中templ_thumbimage_filter函数的典型用法代码示例。如果您正苦于以下问题:PHP templ_thumbimage_filter函数的具体用法?PHP templ_thumbimage_filter怎么用?PHP templ_thumbimage_filter使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了templ_thumbimage_filter函数的18个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: get_post_custom_for_listing_page
function get_post_custom_for_listing_page($pid, $paten_str, $fields_name = '')
{
global $wpdb, $custom_post_meta_db_table_name;
$sql = "select * from {$custom_post_meta_db_table_name} where is_active=1 and show_on_listing=1 ";
if ($fields_name) {
$fields_name = '"' . str_replace(',', '","', $fields_name) . '"';
$sql .= " and htmlvar_name in ({$fields_name}) ";
}
$sql .= " order by sort_order asc,admin_title asc";
$post_meta_info = $wpdb->get_results($sql);
$return_str = '';
$search_arr = array('{#TITLE#}', '{#VALUE#}');
$replace_arr = array();
if ($post_meta_info) {
foreach ($post_meta_info as $post_meta_info_obj) {
if ($post_meta_info_obj->site_title) {
$replace_arr[] = $post_meta_info_obj->site_title;
}
if ($post_meta_info_obj->ctype != 'upload') {
//$image_var = get_post_meta($pid,$post_meta_info_obj->htmlvar_name,true);
$image_var = "<img src='" . templ_thumbimage_filter(get_post_meta($pid, $post_meta_info_obj->htmlvar_name, true), 100, 100) . "' width='100' heigh='100'/>";
$replace_arr = array($post_meta_info_obj->site_title, $image_var);
$replace_arr = array($post_meta_info_obj->site_title, get_post_meta($pid, $post_meta_info_obj->htmlvar_name, true));
if (get_post_meta($pid, $post_meta_info_obj->htmlvar_name, true)) {
$return_str .= str_replace($search_arr, $replace_arr, $paten_str);
}
}
}
}
return $return_str;
}
开发者ID:annguyenit,项目名称:getdeal,代码行数:31,代码来源:functions_custom_field.php
示例2: get_custom_usermeta_single_page
function get_custom_usermeta_single_page($pid, $paten_str, $fields_name = '')
{
global $wpdb, $custom_usermeta_db_table_name;
$sql = "select * from {$custom_usermeta_db_table_name} where is_active=1 and show_on_detail=1 ";
if ($fields_name) {
$fields_name = '"' . str_replace(',', '","', $fields_name) . '"';
$sql .= " and htmlvar_name in ({$fields_name}) ";
}
$sql .= " and ctype!='upload' and ctype!='texteditor' order by sort_order asc,admin_title asc";
$post_meta_info = $wpdb->get_results($sql);
$return_str = '';
$search_arr = array('{#TITLE#}', '{#VALUE#}');
$replace_arr = array();
if ($post_meta_info) {
foreach ($post_meta_info as $user_meta_info_obj) {
if ($user_meta_info_obj->site_title) {
$replace_arr[] = $user_meta_info_obj->site_title;
}
if ($user_meta_info_obj->ctype == 'upload') {
//$image_var = get_usermeta($pid,$user_meta_info_obj->htmlvar_name,true);
$image_var = "<img src='" . templ_thumbimage_filter(get_usermeta($pid, $user_meta_info_obj->htmlvar_name, true), 100, 100) . "'/>";
$replace_arr = array($user_meta_info_obj->site_title, $image_var);
}
if ($user_meta_info_obj->ctype == 'multicheckbox') {
$val_category = get_usermeta($pid, $user_meta_info_obj->htmlvar_name, true);
if (is_array($val_category)) {
$val_category_value = implode(",", $val_category);
} else {
$val_category_value = $val_category;
}
$replace_arr = array($user_meta_info_obj->site_title, $val_category_value);
$return_str .= str_replace($search_arr, $replace_arr, $paten_str);
} else {
$replace_arr = array($user_meta_info_obj->site_title, get_usermeta($pid, $user_meta_info_obj->htmlvar_name, true));
if (get_usermeta($pid, $user_meta_info_obj->htmlvar_name, true)) {
$return_str .= str_replace($search_arr, $replace_arr, $paten_str);
}
}
}
}
return $return_str;
}
开发者ID:annguyenit,项目名称:getdeal,代码行数:42,代码来源:custom_usermeta_functions.php
示例3: templ_thumbimage_filter
<input type="hidden" name="did" value="<?php
echo $did;
?>
" />
</div>
<!-- BOF Listing -->
<div class="content_left">
<?php
if ($_SESSION['file_name'] != "" || $_REQUEST['dealsession_image'] != "") {
?>
<img src="<?php
echo templ_thumbimage_filter($_SESSION['file_name'], 285, 275);
?>
" />
<?php
} else {
?>
<img src="<?php
echo get_template_directory_uri() . "/images/no-image.png";
?>
" width="285" height="275" alt="" />
<?php
}
?>
</div>
<div class="content_right">
开发者ID:annguyenit,项目名称:getdeal,代码行数:31,代码来源:preview.php
示例4: widget
//.........这里部分代码省略.........
$tardate1 = date("F d, Y", get_post_meta($post->ID, 'coupon_end_date_time', true));
$enddate1 = date("Y-m-d H:i:s", get_post_meta($post->ID, 'coupon_end_date_time', true));
if (date("Y-m-d H:i:s") >= $enddate1 && get_post_meta($post->ID, 'enddate', true) != '0') {
if (get_post_meta($post->ID, 'is_expired', true) == '0' || get_post_meta($post->ID, 'is_expired', true) == '') {
update_post_meta($post->ID, 'is_expired', '1');
}
}
} else {
if (get_post_meta($post->ID, 'enddate', true) != '0' && get_post_meta($post->ID, 'no_of_coupon', true) == $sellsqlinfo) {
if (get_post_meta($post->ID, 'is_expired', true) == '0' || get_post_meta($post->ID, 'is_expired', true) == '') {
update_post_meta($post->ID, 'is_expired', '1');
}
}
}
}
$stdate = date("F d, Y H:i:s", get_post_meta($post->ID, 'coupon_start_date_time', true));
$no_of_coupon = get_post_meta($post->ID, 'no_of_coupon', true);
?>
<div <?php
post_class('post posts_deals');
?>
id="post_<?php
the_ID();
?>
" >
<div class="product_image "> <a href="<?php
the_permalink();
?>
">
<?php
if (get_post_meta($post->ID, 'file_name', true) != "") {
?>
<img src="<?php
echo templ_thumbimage_filter(get_post_meta($post->ID, 'file_name', true), 260, 180);
?>
" alt="" />
<?php
} else {
?>
<img src="<?php
echo get_template_directory_uri() . "/images/no-image.png";
?>
" width="260" height="180" alt="" />
<?php
}
?>
</a></div>
<div class="product_image grid_img"> <a href="<?php
the_permalink();
?>
">
<?php
if (get_post_meta($post->ID, 'file_name', true) != "") {
?>
<img src="<?php
echo templ_thumbimage_filter(get_post_meta($post->ID, 'file_name', true), 280, 180);
?>
" alt="" />
<?php
} else {
?>
<div class="noimg"><?php
_e('Image <br />not available', 'templatic');
?>
</div>
<?php
开发者ID:annguyenit,项目名称:getdeal,代码行数:67,代码来源:deal_widget.php
示例5: get_post_meta
?>
</small><?php
echo get_post_meta($post->ID, 'our_price', true);
?>
</strong></div>
</div>
</div>
<div class="product_image grid_img"> <a href="<?php
the_permalink();
?>
">
<?php
if (get_post_meta($post->ID, 'file_name', true) != "") {
?>
<img src="<?php
echo templ_thumbimage_filter(get_post_meta($post->ID, 'file_name', true), 280, 180);
?>
" width="280" height="180" alt="" />
<?php
} else {
?>
<div class="noimg"> <?php
echo IMAGE_NOT_AVAILABLE;
?>
</div>
<?php
}
?>
</a> </div>
<div class="content_right content_right_inner">
开发者ID:annguyenit,项目名称:getdeal,代码行数:30,代码来源:expired_deal.php
示例6: foreach
foreach ($dealcnt_sql as $total_deals_obj) {
?>
<li>
<div class="posts_deal">
<div class="product_image"><a href="#" onclick="viewtransaction(<?php
echo $UID;
?>
,<?php
echo $total_deals_obj->ID;
?>
)">
<?php
if (get_post_meta($total_deals_obj->ID, 'file_name', true) != "") {
?>
<img src="<?php
echo templ_thumbimage_filter(get_post_meta($total_deals_obj->ID, 'file_name', true), 145, 160);
?>
" width="145" height="160" alt="deal image" />
<?php
} else {
?>
<img src="<?php
echo get_template_directory_uri() . "/images/no-image.png";
?>
" width="145" height="160" alt="deal image" />
<?php
}
?>
</a>
<div class="mp_deal_price">
<div class="mp_current_price"><span class="mp_redline"></span><?php
开发者ID:annguyenit,项目名称:getdeal,代码行数:31,代码来源:deal_provided.php
示例7: templ_thumbimage_filter
?>
<div class="posts_deal">
<li><div class="product_image">
<a href="#" onclick="viewtransaction(<?php
echo $UID;
?>
,<?php
echo $total_deals_obj->ID;
?>
)">
<?php
if (get_post_meta($total_deals_obj->ID, 'file_name', true) != "") {
?>
<img src="<?php
echo templ_thumbimage_filter($destination_path . get_post_meta($total_deals_obj->ID, 'file_name', true), 165, 180);
?>
" width="165" height="180" alt="" />
<?php
} else {
if (is_super_admin($UID)) {
echo display_deal_image($total_deals_obj->ID, 'thumbnail');
} else {
?>
<img src="<?php
echo get_template_directory_uri() . "/images/no-image.png";
?>
" width="165" height="180" alt="" />
<?php
}
?>
开发者ID:annguyenit,项目名称:getdeal,代码行数:31,代码来源:deal_provided.php
示例8: get_order_detailinfo_tableformat
function get_order_detailinfo_tableformat($orderId, $isshow_paydetail = 0)
{
global $Cart, $General, $wpdb, $transection_db_table_name;
$ordersql = "select * from {$transection_db_table_name} where trans_id=\"{$orderId}\"";
$orderinfo = $wpdb->get_results($ordersql);
$orderinfo = $orderinfo[0];
if ($isshow_paydetail) {
//$message = '<link rel="stylesheet" type="text/css" href="'.get_stylesheet_directory_uri().'/style.css" media="screen" />';
$message .= '<style>.address_info {width:400px;}</style>';
}
$billing_address = $orderinfo->billing_add;
$billing_address = str_replace(',', ',<br />', $billing_address);
$shipping_address = $orderinfo->shipping_add;
$shipping_address = str_replace(',', ',<br />', $shipping_address);
$message .= '
<table width="100%" align="center" cellpadding="0" cellspacing="0" border="0" style="border:0px;">
<tr>
<td colspan="2" align="left">
<div class="order_info">
<p> <span class="span"> ' . __('Order Number') . ' </span> : <strong>' . $orderinfo->trans_id . ' </strong> <br />
<span class="span"> ' . __('Order Date') . ' </span> : ' . date(get_option('date_format') . ' ' . get_option('time_format'), strtotime($orderinfo->ord_date)) . ' </p>
<p><span class="span">' . __('Order Status') . '</span> : <strong>' . fetch_order_status($orderinfo->trans_id) . '</strong> </p>
</div> <!--order_info -->
</td>
</tr>
<tr>
<td align="left" valign="top" colspan="2">
<div class="checkout_address" >
<div class="address_info address_info2 fl">
<h3>' . __('User Information') . '</h3>
<div class="address_row"> <b>' . $orderinfo->billing_name . ' </b></div>
<div class="address_row">' . $billing_address . ' </div>
</div>
</div>
</td>
</tr>
<tr>
<td align="left" valign="top" colspan="2">
<div class="checkout_address" >
<div class="address_info address_info2 fr">
<h3> ' . __('Shipping Address') . ' </h3>
<div class="address_row"> <b>' . $orderinfo->shipping_name . '</b></div>
<div class="address_row">' . $shipping_address . ' </div>
</div>
</div><!-- checkout Address -->
</td>
</tr>
<tr>
<td align="left" valign="top" colspan="2">
<div class="checkout_address" >
<div class="address_info address_info2 fr">
<h3> ' . __('Payment Information') . ' </h3>
<div class="address_row">' . get_payment_method($orderinfo->payment_method) . ' </div>
</div>
</div><!-- checkout Address -->
</td>
</tr>
<tr>
<td align="left" valign="top" colspan="2">
<div class="address_info address_info2 fr">
<h3> ' . __('Shipping Information') . ' </h3>
<div class="address_row">' . $orderinfo->shipping_method . ' </div>
</div><!-- checkout Address -->
</td>
</tr>
</table><br /><br />
<h3> ' . __('Products Information') . ' </h3>
<table width="100%" class="table " >
<tr>
<td width="5%" align="left" class="title" ><strong> ' . __('Image') . '</strong></td>
<td width="45%" align="left" class="title" ><strong> ' . __('Product Name') . '</strong></td>
<td width="23%" align="left" class="title" ><strong> ' . __('Qty') . '</strong></td>
<td width="23%" align="left" class="title" ><strong> ' . __('Prsdfice') . '</strong></td>
</tr>';
$prdsql = "select * from {$wpdb->posts} where ID=\"{$orderinfo->post_id}\"";
$prdsqlinfo = $wpdb->get_results($prdsql);
if ($prdsqlinfo) {
foreach ($prdsqlinfo as $prdinfoObj) {
$data = get_post_meta($prdinfoObj->pid, 'key', true);
$product_name = $wpdb->get_var("select post_title from {$wpdb->posts} where ID=\"" . $orderinfo->post_id . "\"");
global $Product;
$post->ID = $orderinfo->post_id;
//$product_image_arr = $Product->get_product_image($post);
//$product_image = $product_image_arr[0];
get_post_meta($post->ID, 'file_name', true);
$message .= '<tr>';
if (get_post_meta($post->ID, 'file_name', true) != "") {
$message .= '<td class="row1"><a href="' . get_permalink($orderinfo->post_id) . '"><img src="' . templ_thumbimage_filter(get_post_meta($post->ID, 'file_name', true), 75, 75) . '" width=60 height=60 /></a></td>';
} else {
$message .= '<td class="row1"><img src="' . get_template_directory_uri() . '/images/no-image.png" width=60 height=60 /></td>';
}
$message .= ' <td class="row1" ><strong><a href="' . get_permalink($orderinfo->post_id) . '">' . $product_name . '</a>';
if ($prdinfoObj->pdesc) {
$message .= '(' . $prdinfoObj->pdesc . ')';
}
if ($data['model']) {
//.........这里部分代码省略.........
开发者ID:annguyenit,项目名称:getdeal,代码行数:101,代码来源:custom_functions.php
示例9: templ_thumbimage_filter
$str .= '<span id="' . $key . '_error"></span>';
}
} else {
if ($val['type'] == 'checkbox') {
if ($fval) {
$seled = 'checked="checked"';
}
$str = '<input name="' . $key . '" type="checkbox" ' . $val['extra'] . ' value="1" ' . $seled . '>';
if ($val['is_require']) {
$str .= '<span id="' . $key . '_error"></span>';
}
} else {
if ($val['type'] == 'upload') {
$str = '<input name="' . $key . '" type="file" ' . $val['extra'] . ' ' . $uclass . ' value="' . $fval . '" > ';
if ($fval != '') {
$str .= '<img src="' . templ_thumbimage_filter($fval, '&w=121&h=115&zc=1&q=80') . '" alt="" />
<br />
<input type="hidden" name="prev_upload" value="' . $fval . '" />
';
}
if ($val['is_require']) {
$str .= '<span id="' . $key . '_error"></span>';
}
} else {
if ($val['type'] == 'radio') {
$options = $val['options'];
if ($options) {
$option_values_arr = explode(',', $options);
for ($i = 0; $i < count($option_values_arr); $i++) {
$seled = '';
if ($fval == $option_values_arr[$i]) {
开发者ID:annguyenit,项目名称:getdeal,代码行数:31,代码来源:profile.php
示例10: display_deal_grid_image
function display_deal_grid_image($deal_id, $width = '', $height = '')
{
$args = array('post_type' => 'attachment', 'numberposts' => 1, 'post_status' => 'inherit', 'post_parent' => $deal_id, 'orderby' => 'DESC', 'post_mime_type' => 'image/%');
$attachments = get_posts($args);
if ($attachments) {
foreach ($attachments as $attachment) {
?>
<img src="<?php
echo templ_thumbimage_filter($attachment->guid, $width, $height);
?>
" width="<?php
echo $width;
?>
" height="<?php
echo $height;
?>
" alt="" />
<?php
}
} else {
?>
<div class="noimg"> <?php
echo IMAGE_NOT_AVAILABLE;
?>
</div>
<?php
}
}
开发者ID:annguyenit,项目名称:getdeal,代码行数:28,代码来源:functions_deal.php
示例11: display_deal_image
}
?>
<input type="hidden" value="<?php
echo $_SESSION['deal_image'];
?>
" name="dealsession_image"/>
<?php
} else {
if (get_post_meta($edit_deal->ID, 'file_name', true) != '') {
if (is_super_admin($edit_deal->post_author)) {
echo display_deal_image($edit_deal->ID, 'thumbnail');
} else {
?>
<img src="<?php
echo templ_thumbimage_filter($destination_path . get_post_meta($edit_deal->ID, 'file_name', true), 168, 180);
?>
" width="168" height="180" alt="<?php
$edit_deal->post_title;
?>
" />
<?php
}
} else {
?>
<img src="<?php
echo get_template_directory_uri() . "/images/no-image2.png";
?>
" width="168" height="180" alt="No Image Available" />
<?php
}
开发者ID:annguyenit,项目名称:getdeal,代码行数:31,代码来源:post_deal.php
示例12: templ_thumbimage_filter
$str .= '<span id="' . $key . '_error"></span>';
}
} else {
if ($val['type'] == 'checkbox') {
if ($fval) {
$seled = 'checked="checked"';
}
$str = '<input name="' . $key . '" type="checkbox" ' . $val['extra'] . ' value="1" ' . $seled . '>';
if ($val['is_require']) {
$str .= '<span id="' . $key . '_error"></span>';
}
} else {
if ($val['type'] == 'upload') {
$str = '<input name="' . $key . '" type="file" ' . $val['extra'] . ' ' . $uclass . ' value="' . $fval . '" > ';
if ($fval != '') {
$str .= '<img src="' . templ_thumbimage_filter($fval, 121, 115) . '" alt="" />
<br />
<input type="hidden" name="prev_upload" value="' . $fval . '" />
';
}
if ($val['is_require']) {
$str .= '<span id="' . $key . '_error"></span>';
}
} else {
if ($val['type'] == 'radio') {
$options = $val['options'];
if ($options) {
$option_values_arr = explode(',', $options);
for ($i = 0; $i < count($option_values_arr); $i++) {
$seled = '';
if ($fval == $option_values_arr[$i]) {
开发者ID:annguyenit,项目名称:getdeal,代码行数:31,代码来源:edit_profile.php
示例13: mp_insert_image_src_rel_in_head
function mp_insert_image_src_rel_in_head()
{
global $post;
if (!is_singular()) {
return;
}
if (get_post_meta($post->ID, 'file_name', true) == "") {
$default_image = get_template_directory_uri() . "/images/de-beste-deals.png";
echo '<meta property="og:image" content="' . $default_image . '"/>';
} else {
$thumbnail_src = templ_thumbimage_filter(get_post_meta($post->ID, 'file_name', true), 165, 180);
echo '<meta property="og:image" content="' . esc_attr($thumbnail_src) . '"/>';
}
}
开发者ID:annguyenit,项目名称:getdeal,代码行数:14,代码来源:mp_getdeals_auto_facebook_post.php
示例14: templ_thumbimage_filter
$str .= '<span id="' . $key . '_error"></span>';
}
} else {
if ($val['type'] == 'checkbox') {
if ($fval) {
$seled = 'checked="checked"';
}
$str = '<input name="' . $key . '" type="checkbox" ' . $val['extra'] . ' value="1" ' . $seled . '>';
if ($val['is_require']) {
$str .= '<span id="' . $key . '_error"></span>';
}
} else {
if ($val['type'] == 'upload') {
$str = '<input name="' . $key . '" type="file" ' . $val['extra'] . ' ' . $uclass . ' value="' . $fval . '" > ';
if ($fval != '') {
$str .= '<img src="' . templ_thumbimage_filter($fval, 121, 115) . '" width="121" height="115" alt="" />
<br />
<input type="hidden" name="prev_upload" value="' . $fval . '" />
';
}
if ($val['is_require']) {
$str .= '<span id="' . $key . '_error"></span>';
}
} else {
if ($val['type'] == 'radio') {
$options = $val['options'];
if ($options) {
$option_values_arr = explode(',', $options);
for ($i = 0; $i < count($option_values_arr); $i++) {
$seled = '';
if ($fval == $option_values_arr[$i]) {
开发者ID:annguyenit,项目名称:getdeal,代码行数:31,代码来源:edit_profile.php
示例15: date
$tardate1 = date("F d, Y", get_post_meta($post->ID, 'coupon_end_date_time', true));
$geo_longitude = get_post_meta($post->ID, 'geo_longitude', true);
$geo_latitude = get_post_meta($post->ID, 'geo_latitude', true);
$shhiping_address = get_post_meta($post->ID, 'shhiping_address', true);
$coupon_type = get_post_meta($post->ID, 'coupon_type', true);
$no_of_coupon = get_post_meta($post->ID, 'no_of_coupon', true);
?>
<div class="content_left"> <a href="<?php
the_permalink();
?>
">
<?php
if (get_post_meta($post->ID, 'file_name', true) != "") {
?>
<img src="<?php
echo templ_thumbimage_filter($destination_url . get_post_meta($post->ID, 'file_name', true), 330, 250);
?>
" alt="" />
<?php
} else {
if (is_super_admin($post->post_author)) {
echo display_deal_image($post->ID, 'medium');
} else {
?>
<img src="<?php
echo get_template_directory_uri() . "/images/no-image.png";
?>
" width="330" height="250" alt="" />
<?php
}
?>
开发者ID:annguyenit,项目名称:getdeal,代码行数:31,代码来源:index.php
示例16: widget
function widget($args, $instance)
{
// prints the widget
extract($args, EXTR_SKIP);
echo $before_widget;
$title = empty($instance['title']) ? '' : apply_filters('widget_title', $instance['title']);
$category = empty($instance['category']) ? '' : apply_filters('widget_category', $instance['category']);
$category = empty($instance['category']) ? '' : apply_filters('widget_category', $instance['category']);
$number = empty($instance['number']) ? '5' : apply_filters('widget_number', $instance['number']);
$post_type = empty($instance['post_type']) ? 'post' : apply_filters('widget_post_type', $instance['post_type']);
?>
<?php
if ($title) {
?>
<h3 class="i_publication"><?php
echo $title;
?>
</h3> <?php
}
?>
<ul class="latest_posts">
<?php
global $post;
if ($category) {
$arg = "&category={$category}";
}
$arg = "&post_type={$post_type}";
$today_special = get_posts('numberposts=' . $number . $arg);
foreach ($today_special as $post) {
setup_postdata($post);
?>
<?php
$post_images = bdw_get_images($post->ID);
?>
<li>
<?php
if (get_the_post_thumbnail($post->ID)) {
?>
<a class="post_img" href="<?php
the_permalink();
?>
">
<?php
echo get_the_post_thumbnail($post->ID, array(50, 50), array('class' => ""));
?>
</a>
<?php
} elseif ($post_images = bdw_get_images($post->ID)) {
?>
<a class="post_img" href="<?php
the_permalink();
?>
">
<img src="<?php
echo templ_thumbimage_filter(get_post_meta($post->ID, 'file_name', true), 50, 50, 1);
?>
" alt="<?php
the_title();
?>
" title="<?php
the_title();
?>
" width="50" height="50" /> </a>
<?php
}
?>
<h4> <a class="widget-title" href="<?php
the_permalink();
?>
">
<?php
the_title();
?>
</a> <br /> <span class="post_author">by <?php
the_author_posts_link();
?>
at <?php
echo $post->post_date;
?>
/ <?php
comments_popup_link(__('No Comments', 'templatic'), __('1 Comment', 'templatic'), __('% Comments', 'templatic'), '', __('Comments Closed', 'templatic'));
?>
</span></h4>
<p> <?php
echo bm_better_excerpt(175, '');
?>
<a href="<?php
the_permalink();
?>
"> <?php
_e('more...', 'templatic');
?>
</a></p>
</li>
//.........这里部分代码省略.........
开发者ID:annguyenit,项目名称:getdeal,代码行数:101,代码来源:latest_posts.php
示例17: templ_thumbimage_filter
$transactiondeal = $wpdb->get_row("select * from {$deal_db_table_name} where deal_id = '" . $_REQUEST['transid'] . "'");
if ($current_user->data->ID == $deals_res->post_author) {
echo $dashboard_display;
} else {
echo $dashboard_display1;
}
?>
<ul class="deal_listing">
<li>
<div class="posts_deal">
<div class="product_image"><a href="#"><?php
if (get_post_meta($deals_res->ID, 'file_name', true) != "") {
?>
<img src="<?php
echo templ_thumbimage_filter(get_post_meta($deals_res->ID, 'file_name', true), 165, 180);
?>
" alt=""/>
<?php
} else {
?>
<img src="<?php
echo get_template_directory_uri() . "/images/no-image.png";
?>
" width="165" height="180" alt="" />
<?php
}
?>
</a>
</div>
<div class="content">
开发者ID:annguyenit,项目名称:getdeal,代码行数:31,代码来源:transaction_detail.php
示例18: extra_user_profile_fields
//.........这里部分代码省略.........
if ($val['type'] == 'catcheckbox') {
$fval_arr = explode(',', $fval);
$str .= $val['tag_before'] . get_categories_checkboxes_form(CUSTOM_CATEGORY_TYPE1, $fval_arr) . $oval . $val['tag_after'];
if ($val['is_require']) {
$str .= '<span id="' . $key . '_error"></span>';
}
} else {
if ($val['type'] == 'catradio') {
$args = array('taxonomy' => CUSTOM_CATEGORY_TYPE1);
$all_categories = get_categories($args);
foreach ($all_categories as $key1 => $cat) {
$seled = '';
if ($fval == $cat->term_id) {
$seled = 'checked="checked"';
}
$str .= $val['tag_before'] . '<input name="' . $key . '" type="radio" ' . $val['extra'] . ' value="' . $cat->name . '" ' . $seled . '> ' . $cat->name . $val['tag_after'];
}
if ($val['is_require']) {
$str .= '<span id="' . $key . '_error"></span>';
}
} else {
if ($val['type'] == 'checkbox') {
if ($fval) {
$seled = 'checked="checked"';
}
$str = '<input name="' . $key . '" type="checkbox" ' . $val['extra'] . ' value="1" ' . $seled . '>';
if ($val['is_require']) {
$str .= '<span id="' . $key . '_error"></span>';
}
|
请发表评论