رفتن به مطلب

نیازمند به وردپرس کار برای تغییر در قالب


پست های پیشنهاد شده

سلام دوستان نیازمند یک دوست هستم که تویه قالب یک ویرایش برام بکنه

می خوام فایل پکیج(منظورم عکس است در قسمت بالایه برچسب ها) که در قسمت زیر سایت هست می خوام بیاد بالایه قسمت اطلاعات تماس نمایش داده شود.

دوستان پیغام خصوصی بدید.

لینک

ویرایش شده توسط hamidrta
لینک به ارسال

سلام دوستان نیازمند یک دوست هستم که تویه قالب یک ویرایش برام بکنه

می خوام فایل پکیج(منظورم عکس است در قسمت بالایه برچسب ها) که در قسمت زیر سایت هست می خوام بیاد بالایه قسمت اطلاعات تماس نمایش داده شود.

دوستان پیغام خصوصی بدید.

لینک

سلام f12 بزنید , و بعد کنترل شیف c

ببنیند کد چیه تو صغحه ها یقالب سرچ کنید و و و کنارکد قسمت اطلاعات تماس هم همین کارو بکنید و جابگذاری انجام دهید

لینک به ارسال
سلام f12 بزنید , و بعد کنترل شیف c ببنیند کد چیه تو صغحه ها یقالب سرچ کنید و و و کنارکد قسمت اطلاعات تماس هم همین کارو بکنید و جابگذاری انجام دهید

ممنون عزیز یک کد عکس بهم می ده باید تویه کدوم پوشه برم کدها را جایگزین کنم؟فایل این صفحه اسمش چیه؟

سلام f12 بزنید , و بعد کنترل شیف c ببنیند کد چیه تو صغحه ها یقالب سرچ کنید و و و کنارکد قسمت اطلاعات تماس هم همین کارو بکنید و جابگذاری انجام دهید

من این کد را تونستم پیدا کنم هر جا می زارم ارور می دهد.


<?php
wp_reset_query();
while (have_posts()) {
the_post();
?>
<?php the_content(); ?>

لینک به ارسال

سلام و وقت بخیر ،

این عکس رو از طریق توضیحات نوشته (باکس اصلی نوشته ها) میذارید یا از طریق زمینه دلخواه یا چیز های دیگه؟

علاوه بر پاسخ سؤال بالا کد های فایل single.phpتون رو داخل BBCode مخصوص Longbox بذارید تا چک کنیم.

فکر نکنم نیازی به پرداخت هزینه باشه ، ولی اگر واقعاً توانا در انجام اینکار نیستید میتونید از طریق پیام خصوصی با من در ارتباط باشید.

موفّق باشید.

لینک به ارسال

سلام و وقت بخیر ،

این عکس رو از طریق توضیحات نوشته (باکس اصلی نوشته ها) میذارید یا از طریق زمینه دلخواه یا چیز های دیگه؟

علاوه بر پاسخ سؤال بالا کد های فایل single.phpتون رو داخل BBCode مخصوص Longbox بذارید تا چک کنیم.

فکر نکنم نیازی به پرداخت هزینه باشه ، ولی اگر واقعاً توانا در انجام اینکار نیستید میتونید از طریق پیام خصوصی با من در ارتباط باشید.

موفّق باشید.

سلام از طریق نوشته ها می ذارم.

چشم اینم کد.


<?php wp_reset_query(); ?>
<div class="zt_boxArea_12 ">
<div class="single_ADS_B1">
<?php zt_get_element('ADS_B1'); ?>
</div>
<div class="clear"></div>
<div class="zt_content">
<div class="zt_widgetHead">
<div class="zt_widgetHeadTitle">
<h2>
<?php wp_reset_query();?>
<?php the_title(); ?>
</h2>
</div>
<div class="zt_widgetHeadArchive">
<!--<a href="">
لیست کامل
<i class=""></i></a>-->
</div>
<div class="clear"></div>
</div>
<div class="zt_widgetBody zt_tour">
<?php
wp_reset_query();
while (have_posts()) {
the_post();
zt_tour_check_expire(get_the_ID());
$views = get_post_meta(get_the_ID(), 'views', TRUE);
$views = intval($views)+1;
add_post_meta(get_the_ID(), 'views', $views, TRUE)
OR update_post_meta(get_the_ID(), 'views', $views);
$is_feature = get_post_meta(get_the_ID(), 'zttour_is_feature', true);
$is_active = get_post_meta(get_the_ID(), 'zttour_is_active', true);
$is_last_tiem = get_post_meta(get_the_ID(), 'zttour_is_last_time', true);
$is_nowruz = get_post_meta(get_the_ID(), 'zttour_is_nowruz', true);
?>
<div class="single_tour <?php echo ($is_feature == 1) ? 'zttour_featured' : ''; ?> <?php echo ($is_last_tiem == 1) ? 'zttour_last_time' : ''; ?> <?php echo ($is_nowruz == 1) ? 'zttour_nowruz' : ''; ?>">
<div class="tour_content">
<?php
if ($is_active == 0) {
echo '<div class="zttour_expired">' . __('این تور منقضی شده است', 'ztframe_tour') . '</div>';
}
?>
<div class="tabletitle"><h4>اطلاعات تور</h4></div>
<table class="table" cellpadding="0" cellspacing="0" width="100%">
<tbody>
<tr>
<td class="rightcolumn tour_vert_title">از</td>
<td class="tour_vert_value" align="right"><?php echo get_post_meta(get_the_ID(), 'zttour_source', TRUE); ?><br></td>
</tr>
<tr>
<td class="rightcolumn tour_vert_title">نوع سفر</td>
<?php
$trans = get_post_meta(get_the_ID(), 'zttour_transport', TRUE);
$trans_name = array('1' => 'هوایی', '2' => 'دریایی', '3' => 'زمینی با قطار', '4' => 'زمینی با اتوبوس');
$transer = get_post_meta(get_the_ID(), 'zttour_transporter', TRUE);
?>
<td class="tour_vert_value" align="right"><?php echo $trans_name[$trans] . ' - ' . $transer; ?></td>
</tr>
<tr>
<td class="rightcolumn tour_vert_title">قیمت از</td>
<?php
$price_from = get_post_meta(get_the_ID(), 'zttour_price_from', TRUE);
$price_dolar = get_post_meta(get_the_ID(), 'zttour_price_by_dolar', TRUE);
?>
<td class="tour_vert_value" align="right">
<?php
$price_from_ech = (is_numeric($price_from))?number_format($price_from):$price_from;
echo '<span class="number">'.$price_from_ech .'</span> تومان';
if (!empty($price_dolar)) {
echo ' + <span class="number">' . $price_dolar . '</span>';
}
?>
</td>
</tr>
<tr>
<td class="rightcolumn tour_vert_title">تاریخ</td>
<td class="tour_vert_value" align="right">
<span class="tour_start_date">
<?php
$from_date=get_post_meta(get_the_ID(), 'zttour_start_date', TRUE);
$from_date=jdate('j F Y',zt_strtotime($from_date));
echo 'تاریخ شروع تور : <span class="date">' . $from_date . '</span>';
?>
</span>
<span class="tour_end_date">
<?php
$to_date=get_post_meta(get_the_ID(), 'zttour_end_date', TRUE);
$to_date=jdate('j F Y',zt_strtotime($to_date));
echo ' ، تاریخ پایان تور : <span class="date">' . $to_date . '</span>'; ?>
</span>
</td>
</tr>
<tr>
<td class="rightcolumn tour_vert_title">مدارک لازم</td>
<td class="tour_vert_value" align="right"><?php echo nl2br(get_post_meta(get_the_ID(), 'zttour_docs', TRUE)); ?><br>
</td>
</tr>
<tr>
<td class="rightcolumn tour_vert_title">خدمات آژانس</td>
<td class="tour_vert_value" align="right"><?php echo nl2br(get_post_meta(get_the_ID(), 'zttour_service', TRUE)); ?></td>
</tr>
<tr>
<td class="rightcolumn tour_vert_title">توضيحات</td>
<td class="tour_vert_value" align="right"><?php echo nl2br(get_post_meta(get_the_ID(), 'zttour_description', TRUE)); ?></td>
</tr>
<?php if (function_exists('wprp')) { ?>
<tr>
<td class="rightcolumn tour_vert_title">گزارش تخلف</td>
<td class="tour_vert_value" align="right"><?php wprp(true); ?></td>
</tr>
<?php } ?>
</tbody>
</table>
<?php if ($is_active == 1) { ?>
<div class="tabletitle"><h4>اطلاعات تماس</h4></div>
<table class="table " cellpadding="0" cellspacing="0" width="100%">
<tbody>
<tr>
<td class="rightcolumn tour_vert_title">نام آژانس</td>
<td class="tour_vert_value" align="right">
<?php /* * * /?>
<a href="<?php echo get_author_posts_url(get_the_author_ID()); ?>"><?php echo get_the_author(); ?></a>
<?php /* * */ ?>
<a href="<?php echo get_author_posts_url(get_the_author_ID()); ?>"><?php echo get_user_meta(get_the_author_ID(), 'agency_name', true); ?></a>
</td>
</tr>
<tr>
<td class="rightcolumn tour_vert_title">تلفن</td>
<td class="tour_vert_value" align="right"><?php the_author_meta('tel'); ?></td>
</tr>
<?php /**/?>
<tr>
<td class="rightcolumn tour_vert_title">ایمیل</td>
<td class="tour_vert_value" align="right"><a href="mailto:<?php the_author_email(); ?>" target="_blank"><?php the_author_email(); ?></a></td>
</tr>
<?php /**/?>
<tr>
<td class="rightcolumn tour_vert_title">وب سایت</td>
<td class="tour_vert_value" align="right"><a href="<?php the_author_meta('url'); ?>" target="_blank"><?php the_author_meta('url'); ?></a></td>
</tr>
</tbody>
</table>
<?php } ?>
<div class="tabletitle"><h4>به</h4></div>
<table class="table tour_table tour_destination" cellpadding="0" cellspacing="0" width="100%">
<tbody>
<tr class="tablerow">
<td class="horis_title">نام</td>
<td class="horis_title">مدت اقامت</td>
<td class="horis_title">توضيحات</td>
</tr>
<?php
$destination = get_post_meta(get_the_ID(), 'zttour_destination', TRUE);
$stay = get_post_meta(get_the_ID(), 'zttour_stay', TRUE);
$dest_description = get_post_meta(get_the_ID(), 'zttour_dest_description', TRUE);
if(is_array($destination))
foreach ($destination as $dk => $dst) {
?>
<tr>
<td><?php echo $dst; ?></td>
<td><?php echo $stay[$dk]; ?> شب</td>
<td><?php echo $dest_description[$dk]; ?></td>
</tr>
<?php
}
?>
</tbody>
</table>
<div class="tabletitle"><h4>هتل‌ها</h4></div>
<table class="table tour_table tour_hotel" cellpadding="0" cellspacing="0" width="100%">
<tbody>
<?php
$h_name = get_post_meta(get_the_ID(), 'zttour_hotel_name', TRUE);
$h_rate = get_post_meta(get_the_ID(), 'zttour_hotel_rate', TRUE);
$h_service = get_post_meta(get_the_ID(), 'zttour_hotel_service', TRUE);
$h_link = get_post_meta(get_the_ID(), 'zttour_hotel_link', TRUE);
$h_description = get_post_meta(get_the_ID(), 'zttour_hotel_description', TRUE);
$hotel_title_1 = get_post_meta(get_the_ID(), 'zttour_hotel_title_1', TRUE);
$hotel_price_1 = get_post_meta(get_the_ID(), 'zttour_hotel_price_1', TRUE);
$hotel_title_2 = get_post_meta(get_the_ID(), 'zttour_hotel_title_2', TRUE);
$hotel_price_2 = get_post_meta(get_the_ID(), 'zttour_hotel_price_2', TRUE);
$hotel_title_3 = get_post_meta(get_the_ID(), 'zttour_hotel_title_3', TRUE);
$hotel_price_3 = get_post_meta(get_the_ID(), 'zttour_hotel_price_3', TRUE);
$hotel_title_4 = get_post_meta(get_the_ID(), 'zttour_hotel_title_4', TRUE);
$hotel_price_4 = get_post_meta(get_the_ID(), 'zttour_hotel_price_4', TRUE);
$hotel_title_5 = get_post_meta(get_the_ID(), 'zttour_hotel_title_5', TRUE);
$hotel_price_5 = get_post_meta(get_the_ID(), 'zttour_hotel_price_5', TRUE);
$title_array = array_filter(array($hotel_title_1[0], $hotel_title_2[0], $hotel_title_3[0], $hotel_title_4[0], $hotel_title_5[0]));
$price_array = array($hotel_price_1, $hotel_price_2, $hotel_price_3, $hotel_price_4, $hotel_price_5);
?>
<tr class="tablerow">
<td class="horis_title hotel_name">نام هتل</td>
<td class="horis_title">خدمات هتل</td>
<?php
if(is_array($title_array))
foreach ($title_array as $title) {
echo '<td class="horis_title">' . $title . '</td>';
}
?>
<td class="horis_title">توضيحات</td>
</tr>
<?php
if(is_array($h_name))
foreach ($h_name as $hk => $hotel_name) {
?>
<tr>
<td class="hotel_names">
<?php foreach ($hotel_name as $k => $v) { ?>
<p class="a_hotel">
<?php
$temp_link = $h_link[$hk][$k];
if(empty($temp_link)){
$temp_link='#';
}elseif(strpos($temp_link, 'http://')===FALSE AND strpos($temp_link, 'https://')===FALSE ){
$temp_link='http://'.$temp_link;
}
?>
<a href="<?php echo $temp_link; ?>" target="_blank"><?php echo $v; ?></a>
<br/>
<span class="hotel_stars">
<?php
if (!is_numeric($h_rate[$hk][$k])) {
echo '<span class="h_n_type">' . $h_rate[$hk][$k] . '</span>';
} else {
?>
<?php for ($s = 1; $s <= $h_rate[$hk][$k]; $s++) { ?>
<i class="fa fa-star"></i>
<?php
}
}
?>
</span>
</p>
<?php } ?>
</td>
<td class="hotel_services">
<?php foreach ($hotel_name as $k => $v) { ?>
<p class="a_hotel hotel_service">
<?php echo $h_service[$hk][$k]; ?>
</p>
<?php } ?>
</td>
<?php
foreach ($title_array as $tk => $title) {
$price = (is_numeric($price_array[$tk][$hk]))? number_format($price_array[$tk][$hk]):$price_array[$tk][$hk];
echo '<td class="hotel_price">';
echo '<span class="number">'.$price.' تومان </span>';
echo '</td>';
}
?>
<td class="hotel_desc"><?php echo $h_description[$hk]; ?></td>
</tr>
<?php } ?>
</tbody>
</table>
</div>
</div>
<?php } ?>
<div class="tour_relateds">
<?php zt_get_element('tour_related'); ?>
<?php zt_get_element('tour_latest'); ?>
</div>
<div class="single_ADS_B2">
<?php zt_get_element('ADS_B2'); ?>
</div>
<div class="clear"></div>
<?php
wp_reset_query();
while (have_posts()) {
the_post();
?>
<?php the_content(); ?>
<div class="clear"></div>
<div class="tour_tags">
<div class="comment_title"><h4>برچسب ها</h4></div>
<div class="tour_tag">
<?php the_tags('','','') ?>
</div>
</div>
<div class="clear"></div>
<div class="tour_comments">
<div class="comment_title"><h4>نظرات</h4></div>
<div class="comment_title">
<?php zt_get_comment() ?>
</div>
</div>
<?php } ?>
</div>
<div class="zt_widgetFoot"></div>
<div class="clear"></div>
</div>
</div>

واقعا ممنون هستم بهتون پیغام خصوصی خواهم داد.

لینک به ارسال

این بخش از کد های شما هست که اون عکس و نظرات و برچسب ها رو چاپ میکنه


<?php
wp_reset_query();
while (have_posts()) {
the_post();
?>
<?php the_content(); ?>
<div class="clear"></div>
<div class="tour_tags">
<div class="comment_title"><h4>برچسب ها</h4></div>
<div class="tour_tag">
<?php the_tags('','','') ?>
</div>
</div>
<div class="clear"></div>
<div class="tour_comments">
<div class="comment_title"><h4>نظرات</h4></div>
<div class="comment_title">
<?php zt_get_comment() ?>
</div>
</div>
<?php } ?>

میتونید کدتون رو به بالای ترین بخش ببرید (یعنی خط 23 که wp_reset_query کرده)

لینک به ارسال

این بخش از کد های شما هست که اون عکس و نظرات و برچسب ها رو چاپ میکنه


<?php
wp_reset_query();
while (have_posts()) {
the_post();
?>
<?php the_content(); ?>
<div class="clear"></div>
<div class="tour_tags">
<div class="comment_title"><h4>برچسب ها</h4></div>
<div class="tour_tag">
<?php the_tags('','','') ?>
</div>
</div>
<div class="clear"></div>
<div class="tour_comments">
<div class="comment_title"><h4>نظرات</h4></div>
<div class="comment_title">
<?php zt_get_comment() ?>
</div>
</div>
<?php } ?>

میتونید کدتون رو به بالای ترین بخش ببرید (یعنی خط 23 که wp_reset_query کرده)

مشکل من دقیقا همینجا است این کد را هر جا می برم مثلا بالایه قسمت اطلاعات تماس سایت ارور می ده و باز نمیشه!یک نمونه ویرایشش رو بزارید بالایه قیمت اطلاعات تماس من بزارم ببینم درست میشه!

هر کار می کنم ارور می دهد.!

لینک به ارسال

این بخش از کد های شما هست که اون عکس و نظرات و برچسب ها رو چاپ میکنه


<?php
wp_reset_query();
while (have_posts()) {
the_post();
?>
<?php the_content(); ?>
<div class="clear"></div>
<div class="tour_tags">
<div class="comment_title"><h4>برچسب ها</h4></div>
<div class="tour_tag">
<?php the_tags('','','') ?>
</div>
</div>
<div class="clear"></div>
<div class="tour_comments">
<div class="comment_title"><h4>نظرات</h4></div>
<div class="comment_title">
<?php zt_get_comment() ?>
</div>
</div>
<?php } ?>

میتونید کدتون رو به بالای ترین بخش ببرید (یعنی خط 23 که wp_reset_query کرده)

عزیز کدی که داخل پیغام خصوصی بهم دادین ارور نمی ده.

ولی قسمت برپسب و نظرات و همچنین عکس را برده بالاترین قسمت که من همچین چیزی نمی خوام.

فقط می خوام عکس بره بالایه قسمت اطلاعات تماس نه بالایه بالا. و قسمت برچسب و نظرات سر جاش بمونه.

باتشکر

لینک به ارسال

این بخش از کد های شما هست که اون عکس و نظرات و برچسب ها رو چاپ میکنه


<?php
wp_reset_query();
while (have_posts()) {
the_post();
?>
<?php the_content(); ?>
<div class="clear"></div>
<div class="tour_tags">
<div class="comment_title"><h4>برچسب ها</h4></div>
<div class="tour_tag">
<?php the_tags('','','') ?>
</div>
</div>
<div class="clear"></div>
<div class="tour_comments">
<div class="comment_title"><h4>نظرات</h4></div>
<div class="comment_title">
<?php zt_get_comment() ?>
</div>
</div>
<?php } ?>

میتونید کدتون رو به بالای ترین بخش ببرید (یعنی خط 23 که wp_reset_query کرده)

کدی که من تونستم تغییر بدم اینه با کمک شما


<?php wp_reset_query(); ?>
<div class="zt_boxArea_12 ">
<div class="single_ADS_B1">
<?php zt_get_element('ADS_B1'); ?>
</div>
<div class="clear"></div>
<div class="zt_content">
<div class="zt_widgetHead">
<div class="zt_widgetHeadTitle">
<h2>
<?php wp_reset_query();?>
<?php the_title(); ?>
</h2>
</div>
<div class="zt_widgetHeadArchive">
<!--<a href="">
لیست کامل
<i class=""></i></a>-->
</div>
<div class="clear"></div>
</div>
<div class="zt_widgetBody zt_tour">
<?php
wp_reset_query();
while (have_posts()) {
the_post();
?>
<?php the_content(); ?>

<?php } ?>
<?php
wp_reset_query();
while (have_posts()) {
the_post();
zt_tour_check_expire(get_the_ID());
$views = get_post_meta(get_the_ID(), 'views', TRUE);
$views = intval($views)+1;
add_post_meta(get_the_ID(), 'views', $views, TRUE)
OR update_post_meta(get_the_ID(), 'views', $views);
$is_feature = get_post_meta(get_the_ID(), 'zttour_is_feature', true);
$is_active = get_post_meta(get_the_ID(), 'zttour_is_active', true);
$is_last_tiem = get_post_meta(get_the_ID(), 'zttour_is_last_time', true);
$is_nowruz = get_post_meta(get_the_ID(), 'zttour_is_nowruz', true);
?>
<div class="single_tour <?php echo ($is_feature == 1) ? 'zttour_featured' : ''; ?> <?php echo ($is_last_tiem == 1) ? 'zttour_last_time' : ''; ?> <?php echo ($is_nowruz == 1) ? 'zttour_nowruz' : ''; ?>">
<div class="tour_content">
<?php
if ($is_active == 0) {
echo '<div class="zttour_expired">' . __('این تور منقضی شده است', 'ztframe_tour') . '</div>';
}
?>
<div class="tabletitle"><h4>اطلاعات تور</h4></div>
<table class="table" cellpadding="0" cellspacing="0" width="100%">
<tbody>
<tr>
<td class="rightcolumn tour_vert_title">از</td>
<td class="tour_vert_value" align="right"><?php echo get_post_meta(get_the_ID(), 'zttour_source', TRUE); ?><br></td>
</tr>
<tr>
<td class="rightcolumn tour_vert_title">نوع سفر</td>
<?php
$trans = get_post_meta(get_the_ID(), 'zttour_transport', TRUE);
$trans_name = array('1' => 'هوایی', '2' => 'دریایی', '3' => 'زمینی با قطار', '4' => 'زمینی با اتوبوس');
$transer = get_post_meta(get_the_ID(), 'zttour_transporter', TRUE);
?>
<td class="tour_vert_value" align="right"><?php echo $trans_name[$trans] . ' - ' . $transer; ?></td>
</tr>
<tr>
<td class="rightcolumn tour_vert_title">قیمت از</td>
<?php
$price_from = get_post_meta(get_the_ID(), 'zttour_price_from', TRUE);
$price_dolar = get_post_meta(get_the_ID(), 'zttour_price_by_dolar', TRUE);
?>
<td class="tour_vert_value" align="right">
<?php
$price_from_ech = (is_numeric($price_from))?number_format($price_from):$price_from;
echo '<span class="number">'.$price_from_ech .'</span> تومان';
if (!empty($price_dolar)) {
echo ' + <span class="number">' . $price_dolar . '</span>';
}
?>
</td>
</tr>
<tr>
<td class="rightcolumn tour_vert_title">تاریخ</td>
<td class="tour_vert_value" align="right">
<span class="tour_start_date">
<?php
$from_date=get_post_meta(get_the_ID(), 'zttour_start_date', TRUE);
$from_date=jdate('j F Y',zt_strtotime($from_date));
echo 'تاریخ شروع تور : <span class="date">' . $from_date . '</span>';
?>
</span>
<span class="tour_end_date">
<?php
$to_date=get_post_meta(get_the_ID(), 'zttour_end_date', TRUE);
$to_date=jdate('j F Y',zt_strtotime($to_date));
echo ' ، تاریخ پایان تور : <span class="date">' . $to_date . '</span>'; ?>
</span>
</td>
</tr>
<tr>
<td class="rightcolumn tour_vert_title">مدارک لازم</td>
<td class="tour_vert_value" align="right"><?php echo nl2br(get_post_meta(get_the_ID(), 'zttour_docs', TRUE)); ?><br>
</td>
</tr>
<tr>
<td class="rightcolumn tour_vert_title">خدمات آژانس</td>
<td class="tour_vert_value" align="right"><?php echo nl2br(get_post_meta(get_the_ID(), 'zttour_service', TRUE)); ?></td>
</tr>
<tr>
<td class="rightcolumn tour_vert_title">توضيحات</td>
<td class="tour_vert_value" align="right"><?php echo nl2br(get_post_meta(get_the_ID(), 'zttour_description', TRUE)); ?></td>
</tr>
<?php if (function_exists('wprp')) { ?>
<tr>
<td class="rightcolumn tour_vert_title">گزارش تخلف</td>
<td class="tour_vert_value" align="right"><?php wprp(true); ?></td>
</tr>
<?php } ?>
</tbody>
</table>
<?php if ($is_active == 1) { ?>
<div class="tabletitle"><h4>اطلاعات تماس</h4></div>
<table class="table " cellpadding="0" cellspacing="0" width="100%">
<tbody>
<tr>
<td class="rightcolumn tour_vert_title">نام آژانس</td>
<td class="tour_vert_value" align="right">
<?php /* * * /?>
<a href="<?php echo get_author_posts_url(get_the_author_ID()); ?>"><?php echo get_the_author(); ?></a>
<?php /* * */ ?>
<a href="<?php echo get_author_posts_url(get_the_author_ID()); ?>"><?php echo get_user_meta(get_the_author_ID(), 'agency_name', true); ?></a>
</td>
</tr>
<tr>
<td class="rightcolumn tour_vert_title">تلفن</td>
<td class="tour_vert_value" align="right"><?php the_author_meta('tel'); ?></td>
</tr>
<?php /**/?>
<tr>
<td class="rightcolumn tour_vert_title">ایمیل</td>
<td class="tour_vert_value" align="right"><a href="mailto:<?php the_author_email(); ?>" target="_blank"><?php the_author_email(); ?></a></td>
</tr>
<?php /**/?>
<tr>
<td class="rightcolumn tour_vert_title">وب سایت</td>
<td class="tour_vert_value" align="right"><a href="<?php the_author_meta('url'); ?>" target="_blank"><?php the_author_meta('url'); ?></a></td>
</tr>
</tbody>
</table>
<?php } ?>
<div class="tabletitle"><h4>به</h4></div>
<table class="table tour_table tour_destination" cellpadding="0" cellspacing="0" width="100%">
<tbody>
<tr class="tablerow">
<td class="horis_title">نام</td>
<td class="horis_title">مدت اقامت</td>
<td class="horis_title">توضيحات</td>
</tr>
<?php
$destination = get_post_meta(get_the_ID(), 'zttour_destination', TRUE);
$stay = get_post_meta(get_the_ID(), 'zttour_stay', TRUE);
$dest_description = get_post_meta(get_the_ID(), 'zttour_dest_description', TRUE);
if(is_array($destination))
foreach ($destination as $dk => $dst) {
?>
<tr>
<td><?php echo $dst; ?></td>
<td><?php echo $stay[$dk]; ?> شب</td>
<td><?php echo $dest_description[$dk]; ?></td>
</tr>
<?php
}
?>
</tbody>
</table>
<div class="tabletitle"><h4>هتل‌ها</h4></div>
<table class="table tour_table tour_hotel" cellpadding="0" cellspacing="0" width="100%">
<tbody>
<?php
$h_name = get_post_meta(get_the_ID(), 'zttour_hotel_name', TRUE);
$h_rate = get_post_meta(get_the_ID(), 'zttour_hotel_rate', TRUE);
$h_service = get_post_meta(get_the_ID(), 'zttour_hotel_service', TRUE);
$h_link = get_post_meta(get_the_ID(), 'zttour_hotel_link', TRUE);
$h_description = get_post_meta(get_the_ID(), 'zttour_hotel_description', TRUE);
$hotel_title_1 = get_post_meta(get_the_ID(), 'zttour_hotel_title_1', TRUE);
$hotel_price_1 = get_post_meta(get_the_ID(), 'zttour_hotel_price_1', TRUE);
$hotel_title_2 = get_post_meta(get_the_ID(), 'zttour_hotel_title_2', TRUE);
$hotel_price_2 = get_post_meta(get_the_ID(), 'zttour_hotel_price_2', TRUE);
$hotel_title_3 = get_post_meta(get_the_ID(), 'zttour_hotel_title_3', TRUE);
$hotel_price_3 = get_post_meta(get_the_ID(), 'zttour_hotel_price_3', TRUE);
$hotel_title_4 = get_post_meta(get_the_ID(), 'zttour_hotel_title_4', TRUE);
$hotel_price_4 = get_post_meta(get_the_ID(), 'zttour_hotel_price_4', TRUE);
$hotel_title_5 = get_post_meta(get_the_ID(), 'zttour_hotel_title_5', TRUE);
$hotel_price_5 = get_post_meta(get_the_ID(), 'zttour_hotel_price_5', TRUE);
$title_array = array_filter(array($hotel_title_1[0], $hotel_title_2[0], $hotel_title_3[0], $hotel_title_4[0], $hotel_title_5[0]));
$price_array = array($hotel_price_1, $hotel_price_2, $hotel_price_3, $hotel_price_4, $hotel_price_5);
?>
<tr class="tablerow">
<td class="horis_title hotel_name">نام هتل</td>
<td class="horis_title">خدمات هتل</td>
<?php
if(is_array($title_array))
foreach ($title_array as $title) {
echo '<td class="horis_title">' . $title . '</td>';
}
?>
<td class="horis_title">توضيحات</td>
</tr>
<?php
if(is_array($h_name))
foreach ($h_name as $hk => $hotel_name) {
?>
<tr>
<td class="hotel_names">
<?php foreach ($hotel_name as $k => $v) { ?>
<p class="a_hotel">
<?php
$temp_link = $h_link[$hk][$k];
if(empty($temp_link)){
$temp_link='#';
}elseif(strpos($temp_link, 'http://')===FALSE AND strpos($temp_link, 'https://')===FALSE ){
$temp_link='http://'.$temp_link;
}
?>
<a href="<?php echo $temp_link; ?>" target="_blank"><?php echo $v; ?></a>
<br/>
<span class="hotel_stars">
<?php
if (!is_numeric($h_rate[$hk][$k])) {
echo '<span class="h_n_type">' . $h_rate[$hk][$k] . '</span>';
} else {
?>
<?php for ($s = 1; $s <= $h_rate[$hk][$k]; $s++) { ?>
<i class="fa fa-star"></i>
<?php
}
}
?>
</span>
</p>
<?php } ?>
</td>
<td class="hotel_services">
<?php foreach ($hotel_name as $k => $v) { ?>
<p class="a_hotel hotel_service">
<?php echo $h_service[$hk][$k]; ?>
</p>
<?php } ?>
</td>
<?php
foreach ($title_array as $tk => $title) {
$price = (is_numeric($price_array[$tk][$hk]))? number_format($price_array[$tk][$hk]):$price_array[$tk][$hk];
echo '<td class="hotel_price">';
echo '<span class="number">'.$price.' تومان </span>';
echo '</td>';
}
?>
<td class="hotel_desc"><?php echo $h_description[$hk]; ?></td>
</tr>
<?php } ?>
</tbody>
</table>
</div>
</div>
<?php } ?>
<div class="tour_relateds">
<?php zt_get_element('tour_related'); ?>
<?php zt_get_element('tour_latest'); ?>
</div>
<div class="single_ADS_B2">
<?php zt_get_element('ADS_B2'); ?>
</div>
<div class="clear"></div>
<?php
wp_reset_query();
while (have_posts()) {
the_post();
?>
<?php the_content(); ?>
<div class="clear"></div>
<div class="tour_tags">
<div class="comment_title"><h4>برچسب ها</h4></div>
<div class="tour_tag">
<?php the_tags('','','') ?>
</div>
</div>
<div class="clear"></div>
<div class="tour_comments">
<div class="comment_title"><h4>نظرات</h4></div>
<div class="comment_title">
<?php zt_get_comment() ?>
</div>
</div>
<?php } ?>
</div>
<div class="zt_widgetFoot"></div>
<div class="clear"></div>
</div>
</div>

اما می خوام عکس پایین حذف بشه و همین عکس که الان بالا نمایش داده میشه. بالایه قسمت اطلاعات تماس نمایش داده بشه. نه اطلاعات تور

ممنون میشم

لینک به ارسال

من متوجه نشدم

این تاپیک اگر تو بخش خرید هست باید سوالات و موارد در پیام خصوصی دنبال بشه

وگرنه باید تو بخش عمومی زده بشه!

لینک به ارسال

کدی که من تونستم تغییر بدم اینه با کمک شما


<?php wp_reset_query(); ?>
<div class="zt_boxArea_12 ">
<div class="single_ADS_B1">
<?php zt_get_element('ADS_B1'); ?>
</div>
<div class="clear"></div>
<div class="zt_content">
<div class="zt_widgetHead">
<div class="zt_widgetHeadTitle">
<h2>
<?php wp_reset_query();?>
<?php the_title(); ?>
</h2>
</div>
<div class="zt_widgetHeadArchive">
<!--<a href="">
لیست کامل
<i class=""></i></a>-->
</div>
<div class="clear"></div>
</div>
<div class="zt_widgetBody zt_tour">
<?php
wp_reset_query();
while (have_posts()) {
the_post();
?>
<?php the_content(); ?>

<?php } ?>
<?php
wp_reset_query();
while (have_posts()) {
the_post();
zt_tour_check_expire(get_the_ID());
$views = get_post_meta(get_the_ID(), 'views', TRUE);
$views = intval($views)+1;
add_post_meta(get_the_ID(), 'views', $views, TRUE)
OR update_post_meta(get_the_ID(), 'views', $views);
$is_feature = get_post_meta(get_the_ID(), 'zttour_is_feature', true);
$is_active = get_post_meta(get_the_ID(), 'zttour_is_active', true);
$is_last_tiem = get_post_meta(get_the_ID(), 'zttour_is_last_time', true);
$is_nowruz = get_post_meta(get_the_ID(), 'zttour_is_nowruz', true);
?>
<div class="single_tour <?php echo ($is_feature == 1) ? 'zttour_featured' : ''; ?> <?php echo ($is_last_tiem == 1) ? 'zttour_last_time' : ''; ?> <?php echo ($is_nowruz == 1) ? 'zttour_nowruz' : ''; ?>">
<div class="tour_content">
<?php
if ($is_active == 0) {
echo '<div class="zttour_expired">' . __('این تور منقضی شده است', 'ztframe_tour') . '</div>';
}
?>
<div class="tabletitle"><h4>اطلاعات تور</h4></div>
<table class="table" cellpadding="0" cellspacing="0" width="100%">
<tbody>
<tr>
<td class="rightcolumn tour_vert_title">از</td>
<td class="tour_vert_value" align="right"><?php echo get_post_meta(get_the_ID(), 'zttour_source', TRUE); ?><br></td>
</tr>
<tr>
<td class="rightcolumn tour_vert_title">نوع سفر</td>
<?php
$trans = get_post_meta(get_the_ID(), 'zttour_transport', TRUE);
$trans_name = array('1' => 'هوایی', '2' => 'دریایی', '3' => 'زمینی با قطار', '4' => 'زمینی با اتوبوس');
$transer = get_post_meta(get_the_ID(), 'zttour_transporter', TRUE);
?>
<td class="tour_vert_value" align="right"><?php echo $trans_name[$trans] . ' - ' . $transer; ?></td>
</tr>
<tr>
<td class="rightcolumn tour_vert_title">قیمت از</td>
<?php
$price_from = get_post_meta(get_the_ID(), 'zttour_price_from', TRUE);
$price_dolar = get_post_meta(get_the_ID(), 'zttour_price_by_dolar', TRUE);
?>
<td class="tour_vert_value" align="right">
<?php
$price_from_ech = (is_numeric($price_from))?number_format($price_from):$price_from;
echo '<span class="number">'.$price_from_ech .'</span> تومان';
if (!empty($price_dolar)) {
echo ' + <span class="number">' . $price_dolar . '</span>';
}
?>
</td>
</tr>
<tr>
<td class="rightcolumn tour_vert_title">تاریخ</td>
<td class="tour_vert_value" align="right">
<span class="tour_start_date">
<?php
$from_date=get_post_meta(get_the_ID(), 'zttour_start_date', TRUE);
$from_date=jdate('j F Y',zt_strtotime($from_date));
echo 'تاریخ شروع تور : <span class="date">' . $from_date . '</span>';
?>
</span>
<span class="tour_end_date">
<?php
$to_date=get_post_meta(get_the_ID(), 'zttour_end_date', TRUE);
$to_date=jdate('j F Y',zt_strtotime($to_date));
echo ' ، تاریخ پایان تور : <span class="date">' . $to_date . '</span>'; ?>
</span>
</td>
</tr>
<tr>
<td class="rightcolumn tour_vert_title">مدارک لازم</td>
<td class="tour_vert_value" align="right"><?php echo nl2br(get_post_meta(get_the_ID(), 'zttour_docs', TRUE)); ?><br>
</td>
</tr>
<tr>
<td class="rightcolumn tour_vert_title">خدمات آژانس</td>
<td class="tour_vert_value" align="right"><?php echo nl2br(get_post_meta(get_the_ID(), 'zttour_service', TRUE)); ?></td>
</tr>
<tr>
<td class="rightcolumn tour_vert_title">توضيحات</td>
<td class="tour_vert_value" align="right"><?php echo nl2br(get_post_meta(get_the_ID(), 'zttour_description', TRUE)); ?></td>
</tr>
<?php if (function_exists('wprp')) { ?>
<tr>
<td class="rightcolumn tour_vert_title">گزارش تخلف</td>
<td class="tour_vert_value" align="right"><?php wprp(true); ?></td>
</tr>
<?php } ?>
</tbody>
</table>
<?php if ($is_active == 1) { ?>
<div class="tabletitle"><h4>اطلاعات تماس</h4></div>
<table class="table " cellpadding="0" cellspacing="0" width="100%">
<tbody>
<tr>
<td class="rightcolumn tour_vert_title">نام آژانس</td>
<td class="tour_vert_value" align="right">
<?php /* * * /?>
<a href="<?php echo get_author_posts_url(get_the_author_ID()); ?>"><?php echo get_the_author(); ?></a>
<?php /* * */ ?>
<a href="<?php echo get_author_posts_url(get_the_author_ID()); ?>"><?php echo get_user_meta(get_the_author_ID(), 'agency_name', true); ?></a>
</td>
</tr>
<tr>
<td class="rightcolumn tour_vert_title">تلفن</td>
<td class="tour_vert_value" align="right"><?php the_author_meta('tel'); ?></td>
</tr>
<?php /**/?>
<tr>
<td class="rightcolumn tour_vert_title">ایمیل</td>
<td class="tour_vert_value" align="right"><a href="mailto:<?php the_author_email(); ?>" target="_blank"><?php the_author_email(); ?></a></td>
</tr>
<?php /**/?>
<tr>
<td class="rightcolumn tour_vert_title">وب سایت</td>
<td class="tour_vert_value" align="right"><a href="<?php the_author_meta('url'); ?>" target="_blank"><?php the_author_meta('url'); ?></a></td>
</tr>
</tbody>
</table>
<?php } ?>
<div class="tabletitle"><h4>به</h4></div>
<table class="table tour_table tour_destination" cellpadding="0" cellspacing="0" width="100%">
<tbody>
<tr class="tablerow">
<td class="horis_title">نام</td>
<td class="horis_title">مدت اقامت</td>
<td class="horis_title">توضيحات</td>
</tr>
<?php
$destination = get_post_meta(get_the_ID(), 'zttour_destination', TRUE);
$stay = get_post_meta(get_the_ID(), 'zttour_stay', TRUE);
$dest_description = get_post_meta(get_the_ID(), 'zttour_dest_description', TRUE);
if(is_array($destination))
foreach ($destination as $dk => $dst) {
?>
<tr>
<td><?php echo $dst; ?></td>
<td><?php echo $stay[$dk]; ?> شب</td>
<td><?php echo $dest_description[$dk]; ?></td>
</tr>
<?php
}
?>
</tbody>
</table>
<div class="tabletitle"><h4>هتل‌ها</h4></div>
<table class="table tour_table tour_hotel" cellpadding="0" cellspacing="0" width="100%">
<tbody>
<?php
$h_name = get_post_meta(get_the_ID(), 'zttour_hotel_name', TRUE);
$h_rate = get_post_meta(get_the_ID(), 'zttour_hotel_rate', TRUE);
$h_service = get_post_meta(get_the_ID(), 'zttour_hotel_service', TRUE);
$h_link = get_post_meta(get_the_ID(), 'zttour_hotel_link', TRUE);
$h_description = get_post_meta(get_the_ID(), 'zttour_hotel_description', TRUE);
$hotel_title_1 = get_post_meta(get_the_ID(), 'zttour_hotel_title_1', TRUE);
$hotel_price_1 = get_post_meta(get_the_ID(), 'zttour_hotel_price_1', TRUE);
$hotel_title_2 = get_post_meta(get_the_ID(), 'zttour_hotel_title_2', TRUE);
$hotel_price_2 = get_post_meta(get_the_ID(), 'zttour_hotel_price_2', TRUE);
$hotel_title_3 = get_post_meta(get_the_ID(), 'zttour_hotel_title_3', TRUE);
$hotel_price_3 = get_post_meta(get_the_ID(), 'zttour_hotel_price_3', TRUE);
$hotel_title_4 = get_post_meta(get_the_ID(), 'zttour_hotel_title_4', TRUE);
$hotel_price_4 = get_post_meta(get_the_ID(), 'zttour_hotel_price_4', TRUE);
$hotel_title_5 = get_post_meta(get_the_ID(), 'zttour_hotel_title_5', TRUE);
$hotel_price_5 = get_post_meta(get_the_ID(), 'zttour_hotel_price_5', TRUE);
$title_array = array_filter(array($hotel_title_1[0], $hotel_title_2[0], $hotel_title_3[0], $hotel_title_4[0], $hotel_title_5[0]));
$price_array = array($hotel_price_1, $hotel_price_2, $hotel_price_3, $hotel_price_4, $hotel_price_5);
?>
<tr class="tablerow">
<td class="horis_title hotel_name">نام هتل</td>
<td class="horis_title">خدمات هتل</td>
<?php
if(is_array($title_array))
foreach ($title_array as $title) {
echo '<td class="horis_title">' . $title . '</td>';
}
?>
<td class="horis_title">توضيحات</td>
</tr>
<?php
if(is_array($h_name))
foreach ($h_name as $hk => $hotel_name) {
?>
<tr>
<td class="hotel_names">
<?php foreach ($hotel_name as $k => $v) { ?>
<p class="a_hotel">
<?php
$temp_link = $h_link[$hk][$k];
if(empty($temp_link)){
$temp_link='#';
}elseif(strpos($temp_link, 'http://')===FALSE AND strpos($temp_link, 'https://')===FALSE ){
$temp_link='http://'.$temp_link;
}
?>
<a href="<?php echo $temp_link; ?>" target="_blank"><?php echo $v; ?></a>
<br/>
<span class="hotel_stars">
<?php
if (!is_numeric($h_rate[$hk][$k])) {
echo '<span class="h_n_type">' . $h_rate[$hk][$k] . '</span>';
} else {
?>
<?php for ($s = 1; $s <= $h_rate[$hk][$k]; $s++) { ?>
<i class="fa fa-star"></i>
<?php
}
}
?>
</span>
</p>
<?php } ?>
</td>
<td class="hotel_services">
<?php foreach ($hotel_name as $k => $v) { ?>
<p class="a_hotel hotel_service">
<?php echo $h_service[$hk][$k]; ?>
</p>
<?php } ?>
</td>
<?php
foreach ($title_array as $tk => $title) {
$price = (is_numeric($price_array[$tk][$hk]))? number_format($price_array[$tk][$hk]):$price_array[$tk][$hk];
echo '<td class="hotel_price">';
echo '<span class="number">'.$price.' تومان </span>';
echo '</td>';
}
?>
<td class="hotel_desc"><?php echo $h_description[$hk]; ?></td>
</tr>
<?php } ?>
</tbody>
</table>
</div>
</div>
<?php } ?>
<div class="tour_relateds">
<?php zt_get_element('tour_related'); ?>
<?php zt_get_element('tour_latest'); ?>
</div>
<div class="single_ADS_B2">
<?php zt_get_element('ADS_B2'); ?>
</div>
<div class="clear"></div>
<?php
wp_reset_query();
while (have_posts()) {
the_post();
?>
<?php the_content(); ?>
<div class="clear"></div>
<div class="tour_tags">
<div class="comment_title"><h4>برچسب ها</h4></div>
<div class="tour_tag">
<?php the_tags('','','') ?>
</div>
</div>
<div class="clear"></div>
<div class="tour_comments">
<div class="comment_title"><h4>نظرات</h4></div>
<div class="comment_title">
<?php zt_get_comment() ?>
</div>
</div>
<?php } ?>
</div>
<div class="zt_widgetFoot"></div>
<div class="clear"></div>
</div>
</div>

اما می خوام عکس پایین حذف بشه و همین عکس که الان بالا نمایش داده میشه. بالایه قسمت اطلاعات تماس نمایش داده بشه. نه اطلاعات تور

ممنون میشم

<?php wp_reset_query(); ?>

<div class="zt_boxArea_12 ">

<div class="single_ADS_B1">

<?php zt_get_element('ADS_B1'); ?>

</div>

<div class="clear"></div>

<div class="zt_content">

<div class="zt_widgetHead">

<div class="zt_widgetHeadTitle">

<h2>

<?php wp_reset_query();?>

<?php the_title(); ?>

</h2>

</div>

<div class="zt_widgetHeadArchive">

<!--<a href="">

لیست کامل

<i class=""></i></a>-->

</div>

<div class="clear"></div>

</div>

<div class="zt_widgetBody zt_tour">

<?php

wp_reset_query();

while (have_posts()) {

the_post();

?>

<?php the_content(); ?>

<?php } ?>

<?php

wp_reset_query();

while (have_posts()) {

the_post();

zt_tour_check_expire(get_the_ID());

$views = get_post_meta(get_the_ID(), 'views', TRUE);

$views = intval($views)+1;

add_post_meta(get_the_ID(), 'views', $views, TRUE)

OR update_post_meta(get_the_ID(), 'views', $views);

$is_feature = get_post_meta(get_the_ID(), 'zttour_is_feature', true);

$is_active = get_post_meta(get_the_ID(), 'zttour_is_active', true);

$is_last_tiem = get_post_meta(get_the_ID(), 'zttour_is_last_time', true);

$is_nowruz = get_post_meta(get_the_ID(), 'zttour_is_nowruz', true);

?>

<div class="single_tour <?php echo ($is_feature == 1) ? 'zttour_featured' : ''; ?> <?php echo ($is_last_tiem == 1) ? 'zttour_last_time' : ''; ?> <?php echo ($is_nowruz == 1) ? 'zttour_nowruz' : ''; ?>">

<div class="tour_content">

<?php

if ($is_active == 0) {

echo '<div class="zttour_expired">' . __('این تور منقضی شده است', 'ztframe_tour') . '</div>';

}

?>

<div class="tabletitle"><h4>اطلاعات تور</h4></div>

<table class="table" cellpadding="0" cellspacing="0" width="100%">

<tbody>

<tr>

<td class="rightcolumn tour_vert_title">از</td>

<td class="tour_vert_value" align="right"><?php echo get_post_meta(get_the_ID(), 'zttour_source', TRUE); ?><br></td>

</tr>

<tr>

<td class="rightcolumn tour_vert_title">نوع سفر</td>

<?php

$trans = get_post_meta(get_the_ID(), 'zttour_transport', TRUE);

$trans_name = array('1' => 'هوایی', '2' => 'دریایی', '3' => 'زمینی با قطار', '4' => 'زمینی با اتوبوس');

$transer = get_post_meta(get_the_ID(), 'zttour_transporter', TRUE);

?>

<td class="tour_vert_value" align="right"><?php echo $trans_name[$trans] . ' - ' . $transer; ?></td>

</tr>

<tr>

<td class="rightcolumn tour_vert_title">قیمت از</td>

<?php

$price_from = get_post_meta(get_the_ID(), 'zttour_price_from', TRUE);

$price_dolar = get_post_meta(get_the_ID(), 'zttour_price_by_dolar', TRUE);

?>

<td class="tour_vert_value" align="right">

<?php

$price_from_ech = (is_numeric($price_from))?number_format($price_from):$price_from;

echo '<span class="number">'.$price_from_ech .'</span> تومان';

if (!empty($price_dolar)) {

echo ' + <span class="number">' . $price_dolar . '</span>';

}

?>

</td>

</tr>

<tr>

<td class="rightcolumn tour_vert_title">تاریخ</td>

<td class="tour_vert_value" align="right">

<span class="tour_start_date">

<?php

$from_date=get_post_meta(get_the_ID(), 'zttour_start_date', TRUE);

$from_date=jdate('j F Y',zt_strtotime($from_date));

echo 'تاریخ شروع تور : <span class="date">' . $from_date . '</span>';

?>

</span>

<span class="tour_end_date">

<?php

$to_date=get_post_meta(get_the_ID(), 'zttour_end_date', TRUE);

$to_date=jdate('j F Y',zt_strtotime($to_date));

echo ' ، تاریخ پایان تور : <span class="date">' . $to_date . '</span>'; ?>

</span>

</td>

</tr>

<tr>

<td class="rightcolumn tour_vert_title">مدارک لازم</td>

<td class="tour_vert_value" align="right"><?php echo nl2br(get_post_meta(get_the_ID(), 'zttour_docs', TRUE)); ?><br>

</td>

</tr>

<tr>

<td class="rightcolumn tour_vert_title">خدمات آژانس</td>

<td class="tour_vert_value" align="right"><?php echo nl2br(get_post_meta(get_the_ID(), 'zttour_service', TRUE)); ?></td>

</tr>

<tr>

<td class="rightcolumn tour_vert_title">توضيحات</td>

<td class="tour_vert_value" align="right"><?php echo nl2br(get_post_meta(get_the_ID(), 'zttour_description', TRUE)); ?></td>

</tr>

<?php if (function_exists('wprp')) { ?>

<tr>

<td class="rightcolumn tour_vert_title">گزارش تخلف</td>

<td class="tour_vert_value" align="right"><?php wprp(true); ?></td>

</tr>

<?php } ?>

</tbody>

</table>

<?php if ($is_active == 1) { ?>

<div class="tabletitle"><h4>اطلاعات تماس</h4></div>

<table class="table " cellpadding="0" cellspacing="0" width="100%">

<tbody>

<tr>

<td class="rightcolumn tour_vert_title">نام آژانس</td>

<td class="tour_vert_value" align="right">

<?php /* * * /?>

<a href="<?php echo get_author_posts_url(get_the_author_ID()); ?>"><?php echo get_the_author(); ?></a>

<?php /* * */ ?>

<a href="<?php echo get_author_posts_url(get_the_author_ID()); ?>"><?php echo get_user_meta(get_the_author_ID(), 'agency_name', true); ?></a>

</td>

</tr>

<tr>

<td class="rightcolumn tour_vert_title">تلفن</td>

<td class="tour_vert_value" align="right"><?php the_author_meta('tel'); ?></td>

</tr>

<?php /**/?>

<tr>

<td class="rightcolumn tour_vert_title">ایمیل</td>

<td class="tour_vert_value" align="right"><a href="mailto:<?php the_author_email(); ?>" target="_blank"><?php the_author_email(); ?></a></td>

</tr>

<?php /**/?>

<tr>

<td class="rightcolumn tour_vert_title">وب سایت</td>

<td class="tour_vert_value" align="right"><a href="<?php the_author_meta('url'); ?>" target="_blank"><?php the_author_meta('url'); ?></a></td>

</tr>

</tbody>

</table>

<?php } ?>

<div class="tabletitle"><h4>به</h4></div>

<table class="table tour_table tour_destination" cellpadding="0" cellspacing="0" width="100%">

<tbody>

<tr class="tablerow">

<td class="horis_title">نام</td>

<td class="horis_title">مدت اقامت</td>

<td class="horis_title">توضيحات</td>

</tr>

<?php

$destination = get_post_meta(get_the_ID(), 'zttour_destination', TRUE);

$stay = get_post_meta(get_the_ID(), 'zttour_stay', TRUE);

$dest_description = get_post_meta(get_the_ID(), 'zttour_dest_description', TRUE);

if(is_array($destination))

foreach ($destination as $dk => $dst) {

?>

<tr>

<td><?php echo $dst; ?></td>

<td><?php echo $stay[$dk]; ?> شب</td>

<td><?php echo $dest_description[$dk]; ?></td>

</tr>

<?php

}

?>

</tbody>

</table>

<div class="tabletitle"><h4>هتل‌ها</h4></div>

<table class="table tour_table tour_hotel" cellpadding="0" cellspacing="0" width="100%">

<tbody>

<?php

$h_name = get_post_meta(get_the_ID(), 'zttour_hotel_name', TRUE);

$h_rate = get_post_meta(get_the_ID(), 'zttour_hotel_rate', TRUE);

$h_service = get_post_meta(get_the_ID(), 'zttour_hotel_service', TRUE);

$h_link = get_post_meta(get_the_ID(), 'zttour_hotel_link', TRUE);

$h_description = get_post_meta(get_the_ID(), 'zttour_hotel_description', TRUE);

$hotel_title_1 = get_post_meta(get_the_ID(), 'zttour_hotel_title_1', TRUE);

$hotel_price_1 = get_post_meta(get_the_ID(), 'zttour_hotel_price_1', TRUE);

$hotel_title_2 = get_post_meta(get_the_ID(), 'zttour_hotel_title_2', TRUE);

$hotel_price_2 = get_post_meta(get_the_ID(), 'zttour_hotel_price_2', TRUE);

$hotel_title_3 = get_post_meta(get_the_ID(), 'zttour_hotel_title_3', TRUE);

$hotel_price_3 = get_post_meta(get_the_ID(), 'zttour_hotel_price_3', TRUE);

$hotel_title_4 = get_post_meta(get_the_ID(), 'zttour_hotel_title_4', TRUE);

$hotel_price_4 = get_post_meta(get_the_ID(), 'zttour_hotel_price_4', TRUE);

$hotel_title_5 = get_post_meta(get_the_ID(), 'zttour_hotel_title_5', TRUE);

$hotel_price_5 = get_post_meta(get_the_ID(), 'zttour_hotel_price_5', TRUE);

$title_array = array_filter(array($hotel_title_1[0], $hotel_title_2[0], $hotel_title_3[0], $hotel_title_4[0], $hotel_title_5[0]));

$price_array = array($hotel_price_1, $hotel_price_2, $hotel_price_3, $hotel_price_4, $hotel_price_5);

?>

<tr class="tablerow">

<td class="horis_title hotel_name">نام هتل</td>

<td class="horis_title">خدمات هتل</td>

<?php

if(is_array($title_array))

foreach ($title_array as $title) {

echo '<td class="horis_title">' . $title . '</td>';

}

?>

<td class="horis_title">توضيحات</td>

</tr>

<?php

if(is_array($h_name))

foreach ($h_name as $hk => $hotel_name) {

?>

<tr>

<td class="hotel_names">

<?php foreach ($hotel_name as $k => $v) { ?>

<p class="a_hotel">

<?php

$temp_link = $h_link[$hk][$k];

if(empty($temp_link)){

$temp_link='#';

}elseif(strpos($temp_link, 'http://')===FALSE AND strpos($temp_link, 'https://')===FALSE ){

$temp_link='http://'.$temp_link;

}

?>

<a href="<?php echo $temp_link; ?>" target="_blank"><?php echo $v; ?></a>

<br/>

<span class="hotel_stars">

<?php

if (!is_numeric($h_rate[$hk][$k])) {

echo '<span class="h_n_type">' . $h_rate[$hk][$k] . '</span>';

} else {

?>

<?php for ($s = 1; $s <= $h_rate[$hk][$k]; $s++) { ?>

<i class="fa fa-star"></i>

<?php

}

}

?>

</span>

</p>

<?php } ?>

</td>

<td class="hotel_services">

<?php foreach ($hotel_name as $k => $v) { ?>

<p class="a_hotel hotel_service">

<?php echo $h_service[$hk][$k]; ?>

</p>

<?php } ?>

</td>

<?php

foreach ($title_array as $tk => $title) {

$price = (is_numeric($price_array[$tk][$hk]))? number_format($price_array[$tk][$hk]):$price_array[$tk][$hk];

echo '<td class="hotel_price">';

echo '<span class="number">'.$price.' تومان </span>';

echo '</td>';

}

?>

<td class="hotel_desc"><?php echo $h_description[$hk]; ?></td>

</tr>

<?php } ?>

</tbody>

</table>

</div>

</div>

<?php } ?>

<div class="tour_relateds">

<?php zt_get_element('tour_related'); ?>

<?php zt_get_element('tour_latest'); ?>

</div>

<div class="single_ADS_B2">

<?php zt_get_element('ADS_B2'); ?>

</div>

<div class="clear"></div>

<?php

wp_reset_query();

while (have_posts()) {

the_post();

?>

<div class="clear"></div>

<div class="tour_tags">

<div class="comment_title"><h4>برچسب ها</h4></div>

<div class="tour_tag">

<?php the_tags('','','') ?>

</div>

</div>

<div class="clear"></div>

<div class="tour_comments">

<div class="comment_title"><h4>نظرات</h4></div>

<div class="comment_title">

<?php zt_get_comment() ?>

</div>

</div>

<?php } ?>

</div>

<div class="zt_widgetFoot"></div>

<div class="clear"></div>

</div>

</div>

من متوجه نشدم

این تاپیک اگر تو بخش خرید هست باید سوالات و موارد در پیام خصوصی دنبال بشه

وگرنه باید تو بخش عمومی زده بشه!

بله ، لطفاً تاپیک رو به بخش مربوطه انتقال بدید.

لینک به ارسال

' . __('این تور منقضی شده است', 'ztframe_tour') . ''; } ?>

اطلاعات تور

'هوایی', '2' => 'دریایی', '3' => 'زمینی با قطار', '4' => 'زمینی با اتوبوس'); $transer = get_post_meta(get_the_ID(), 'zttour_transporter', TRUE); ?> از نوع سفر قیمت از '.$price_from_ech .' تومان'; if (!empty($price_dolar)) { echo ' + ' . $price_dolar . ''; } ?> تاریخ ' . $from_date . ''; ?> ' . $to_date . ''; ?> مدارک لازم خدمات آژانس توضيحات گزارش تخلف

اطلاعات تماس

نام آژانس تلفن ایمیل وب سایت

به

$dst) { ?> نام مدت اقامت توضيحات شب

هتل‌ها

' . $title . ''; } ?> $hotel_name) { ?> $title) { $price = (is_numeric($price_array[$tk][$hk]))? number_format($price_array[$tk][$hk]):$price_array[$tk][$hk]; echo ''; } ?> نام هتل خدمات هتل توضيحات $v) { ?>

' . $h_rate[$hk][$k] . ''; } else { ?> $v) { ?> '; echo ''.$price.' تومان '; echo '

برچسب ها

نظرات

بله ، لطفاً تاپیک رو به بخش مربوطه انتقال بدید.

عزیز ممنونم خیلی خوب شد فقط این عکس بالایه بالاست

می خوام بره قسمت بالایه اطلاعات تماس.

زیر گزارش تخلف عکس نمایش داده بشه ممنون میشم

خیلی لطف کردید

ویرایش شده توسط hamidrta
لینک به ارسال

عزیز ممنونم خیلی خوب شد فقط این عکس بالایه بالاست

می خوام بره قسمت بالایه اطلاعات تماس.

زیر گزارش تخلف عکس نمایش داده بشه ممنون میشم

خیلی لطف کردید

ممنون میشم کمک کنید اینم حل کنم

لینک به ارسال
  • 2 هفته بعد...

ممنون میشم کمک کنید اینم حل کنم

خب یکمم از خودتون خلاقیّت نشون بدید ، کار سختی نیست اگر کد ها رو بالا پایین ببرید ، برای خودتون هم تجربه میشه!

این رو تست کنید:

<?php wp_reset_query(); ?>

<div class="zt_boxArea_12 ">

<div class="single_ADS_B1">

<?php zt_get_element('ADS_B1'); ?>

</div>

<div class="clear"></div>

<div class="zt_content">

<div class="zt_widgetHead">

<div class="zt_widgetHeadTitle">

<h2>

<?php wp_reset_query();?>

<?php the_title(); ?>

</h2>

</div>

<div class="zt_widgetHeadArchive">

<!--<a href="">

لیست کامل

<i class=""></i></a>-->

</div>

<div class="clear"></div>

</div>

<div class="zt_widgetBody zt_tour">

<?php

wp_reset_query();

while (have_posts()) {

the_post();

zt_tour_check_expire(get_the_ID());

$views = get_post_meta(get_the_ID(), 'views', TRUE);

$views = intval($views)+1;

add_post_meta(get_the_ID(), 'views', $views, TRUE)

OR update_post_meta(get_the_ID(), 'views', $views);

$is_feature = get_post_meta(get_the_ID(), 'zttour_is_feature', true);

$is_active = get_post_meta(get_the_ID(), 'zttour_is_active', true);

$is_last_tiem = get_post_meta(get_the_ID(), 'zttour_is_last_time', true);

$is_nowruz = get_post_meta(get_the_ID(), 'zttour_is_nowruz', true);

?>

<div class="single_tour <?php echo ($is_feature == 1) ? 'zttour_featured' : ''; ?> <?php echo ($is_last_tiem == 1) ? 'zttour_last_time' : ''; ?> <?php echo ($is_nowruz == 1) ? 'zttour_nowruz' : ''; ?>">

<div class="tour_content">

<?php

if ($is_active == 0) {

echo '<div class="zttour_expired">' . __('این تور منقضی شده است', 'ztframe_tour') . '</div>';

}

?>

<div class="tabletitle"><h4>اطلاعات تور</h4></div>

<table class="table" cellpadding="0" cellspacing="0" width="100%">

<tbody>

<tr>

<td class="rightcolumn tour_vert_title">از</td>

<td class="tour_vert_value" align="right"><?php echo get_post_meta(get_the_ID(), 'zttour_source', TRUE); ?><br></td>

</tr>

<tr>

<td class="rightcolumn tour_vert_title">نوع سفر</td>

<?php

$trans = get_post_meta(get_the_ID(), 'zttour_transport', TRUE);

$trans_name = array('1' => 'هوایی', '2' => 'دریایی', '3' => 'زمینی با قطار', '4' => 'زمینی با اتوبوس');

$transer = get_post_meta(get_the_ID(), 'zttour_transporter', TRUE);

?>

<td class="tour_vert_value" align="right"><?php echo $trans_name[$trans] . ' - ' . $transer; ?></td>

</tr>

<tr>

<td class="rightcolumn tour_vert_title">قیمت از</td>

<?php

$price_from = get_post_meta(get_the_ID(), 'zttour_price_from', TRUE);

$price_dolar = get_post_meta(get_the_ID(), 'zttour_price_by_dolar', TRUE);

?>

<td class="tour_vert_value" align="right">

<?php

$price_from_ech = (is_numeric($price_from))?number_format($price_from):$price_from;

echo '<span class="number">'.$price_from_ech .'</span> تومان';

if (!empty($price_dolar)) {

echo ' + <span class="number">' . $price_dolar . '</span>';

}

?>

</td>

</tr>

<tr>

<td class="rightcolumn tour_vert_title">تاریخ</td>

<td class="tour_vert_value" align="right">

<span class="tour_start_date">

<?php

$from_date=get_post_meta(get_the_ID(), 'zttour_start_date', TRUE);

$from_date=jdate('j F Y',zt_strtotime($from_date));

echo 'تاریخ شروع تور : <span class="date">' . $from_date . '</span>';

?>

</span>

<span class="tour_end_date">

<?php

$to_date=get_post_meta(get_the_ID(), 'zttour_end_date', TRUE);

$to_date=jdate('j F Y',zt_strtotime($to_date));

echo ' ، تاریخ پایان تور : <span class="date">' . $to_date . '</span>'; ?>

</span>

</td>

</tr>

<tr>

<td class="rightcolumn tour_vert_title">مدارک لازم</td>

<td class="tour_vert_value" align="right"><?php echo nl2br(get_post_meta(get_the_ID(), 'zttour_docs', TRUE)); ?><br>

</td>

</tr>

<tr>

<td class="rightcolumn tour_vert_title">خدمات آژانس</td>

<td class="tour_vert_value" align="right"><?php echo nl2br(get_post_meta(get_the_ID(), 'zttour_service', TRUE)); ?></td>

</tr>

<tr>

<td class="rightcolumn tour_vert_title">توضيحات</td>

<td class="tour_vert_value" align="right"><?php echo nl2br(get_post_meta(get_the_ID(), 'zttour_description', TRUE)); ?></td>

</tr>

<?php if (function_exists('wprp')) { ?>

<tr>

<td class="rightcolumn tour_vert_title">گزارش تخلف</td>

<td class="tour_vert_value" align="right"><?php wprp(true); ?></td>

</tr>

<?php } ?>

</tbody>

</table>

<?php } ?>

<?php

wp_reset_query();

while (have_posts()) {

the_post();

?>

<?php the_content(); ?>

<?php } ?>

<?php if ($is_active == 1) { ?>

<div class="tabletitle"><h4>اطلاعات تماس</h4></div>

<table class="table " cellpadding="0" cellspacing="0" width="100%">

<tbody>

<tr>

<td class="rightcolumn tour_vert_title">نام آژانس</td>

<td class="tour_vert_value" align="right">

<?php /* * * /?>

<a href="<?php echo get_author_posts_url(get_the_author_ID()); ?>"><?php echo get_the_author(); ?></a>

<?php /* * */ ?>

<a href="<?php echo get_author_posts_url(get_the_author_ID()); ?>"><?php echo get_user_meta(get_the_author_ID(), 'agency_name', true); ?></a>

</td>

</tr>

<tr>

<td class="rightcolumn tour_vert_title">تلفن</td>

<td class="tour_vert_value" align="right"><?php the_author_meta('tel'); ?></td>

</tr>

<?php /**/?>

<tr>

<td class="rightcolumn tour_vert_title">ایمیل</td>

<td class="tour_vert_value" align="right"><a href="mailto:<?php the_author_email(); ?>" target="_blank"><?php the_author_email(); ?></a></td>

</tr>

<?php /**/?>

<tr>

<td class="rightcolumn tour_vert_title">وب سایت</td>

<td class="tour_vert_value" align="right"><a href="<?php the_author_meta('url'); ?>" target="_blank"><?php the_author_meta('url'); ?></a></td>

</tr>

</tbody>

</table>

<?php } ?>

<div class="tabletitle"><h4>به</h4></div>

<table class="table tour_table tour_destination" cellpadding="0" cellspacing="0" width="100%">

<tbody>

<tr class="tablerow">

<td class="horis_title">نام</td>

<td class="horis_title">مدت اقامت</td>

<td class="horis_title">توضيحات</td>

</tr>

<?php

$destination = get_post_meta(get_the_ID(), 'zttour_destination', TRUE);

$stay = get_post_meta(get_the_ID(), 'zttour_stay', TRUE);

$dest_description = get_post_meta(get_the_ID(), 'zttour_dest_description', TRUE);

if(is_array($destination))

foreach ($destination as $dk => $dst) {

?>

<tr>

<td><?php echo $dst; ?></td>

<td><?php echo $stay[$dk]; ?> شب</td>

<td><?php echo $dest_description[$dk]; ?></td>

</tr>

<?php

}

?>

</tbody>

</table>

<div class="tabletitle"><h4>هتل‌ها</h4></div>

<table class="table tour_table tour_hotel" cellpadding="0" cellspacing="0" width="100%">

<tbody>

<?php

$h_name = get_post_meta(get_the_ID(), 'zttour_hotel_name', TRUE);

$h_rate = get_post_meta(get_the_ID(), 'zttour_hotel_rate', TRUE);

$h_service = get_post_meta(get_the_ID(), 'zttour_hotel_service', TRUE);

$h_link = get_post_meta(get_the_ID(), 'zttour_hotel_link', TRUE);

$h_description = get_post_meta(get_the_ID(), 'zttour_hotel_description', TRUE);

$hotel_title_1 = get_post_meta(get_the_ID(), 'zttour_hotel_title_1', TRUE);

$hotel_price_1 = get_post_meta(get_the_ID(), 'zttour_hotel_price_1', TRUE);

$hotel_title_2 = get_post_meta(get_the_ID(), 'zttour_hotel_title_2', TRUE);

$hotel_price_2 = get_post_meta(get_the_ID(), 'zttour_hotel_price_2', TRUE);

$hotel_title_3 = get_post_meta(get_the_ID(), 'zttour_hotel_title_3', TRUE);

$hotel_price_3 = get_post_meta(get_the_ID(), 'zttour_hotel_price_3', TRUE);

$hotel_title_4 = get_post_meta(get_the_ID(), 'zttour_hotel_title_4', TRUE);

$hotel_price_4 = get_post_meta(get_the_ID(), 'zttour_hotel_price_4', TRUE);

$hotel_title_5 = get_post_meta(get_the_ID(), 'zttour_hotel_title_5', TRUE);

$hotel_price_5 = get_post_meta(get_the_ID(), 'zttour_hotel_price_5', TRUE);

$title_array = array_filter(array($hotel_title_1[0], $hotel_title_2[0], $hotel_title_3[0], $hotel_title_4[0], $hotel_title_5[0]));

$price_array = array($hotel_price_1, $hotel_price_2, $hotel_price_3, $hotel_price_4, $hotel_price_5);

?>

<tr class="tablerow">

<td class="horis_title hotel_name">نام هتل</td>

<td class="horis_title">خدمات هتل</td>

<?php

if(is_array($title_array))

foreach ($title_array as $title) {

echo '<td class="horis_title">' . $title . '</td>';

}

?>

<td class="horis_title">توضيحات</td>

</tr>

<?php

if(is_array($h_name))

foreach ($h_name as $hk => $hotel_name) {

?>

<tr>

<td class="hotel_names">

<?php foreach ($hotel_name as $k => $v) { ?>

<p class="a_hotel">

<?php

$temp_link = $h_link[$hk][$k];

if(empty($temp_link)){

$temp_link='#';

}elseif(strpos($temp_link, 'http://')===FALSE AND strpos($temp_link, 'https://')===FALSE ){

$temp_link='http://'.$temp_link;

}

?>

<a href="<?php echo $temp_link; ?>" target="_blank"><?php echo $v; ?></a>

<br/>

<span class="hotel_stars">

<?php

if (!is_numeric($h_rate[$hk][$k])) {

echo '<span class="h_n_type">' . $h_rate[$hk][$k] . '</span>';

} else {

?>

<?php for ($s = 1; $s <= $h_rate[$hk][$k]; $s++) { ?>

<i class="fa fa-star"></i>

<?php

}

}

?>

</span>

</p>

<?php } ?>

</td>

<td class="hotel_services">

<?php foreach ($hotel_name as $k => $v) { ?>

<p class="a_hotel hotel_service">

<?php echo $h_service[$hk][$k]; ?>

</p>

<?php } ?>

</td>

<?php

foreach ($title_array as $tk => $title) {

$price = (is_numeric($price_array[$tk][$hk]))? number_format($price_array[$tk][$hk]):$price_array[$tk][$hk];

echo '<td class="hotel_price">';

echo '<span class="number">'.$price.' تومان </span>';

echo '</td>';

}

?>

<td class="hotel_desc"><?php echo $h_description[$hk]; ?></td>

</tr>

<?php } ?>

</tbody>

</table>

</div>

</div>

<?php } ?>

<div class="tour_relateds">

<?php zt_get_element('tour_related'); ?>

<?php zt_get_element('tour_latest'); ?>

</div>

<div class="single_ADS_B2">

<?php zt_get_element('ADS_B2'); ?>

</div>

<div class="clear"></div>

<?php

wp_reset_query();

while (have_posts()) {

the_post();

?>

<div class="clear"></div>

<div class="tour_tags">

<div class="comment_title"><h4>برچسب ها</h4></div>

<div class="tour_tag">

<?php the_tags('','','') ?>

</div>

</div>

<div class="clear"></div>

<div class="tour_comments">

<div class="comment_title"><h4>نظرات</h4></div>

<div class="comment_title">

<?php zt_get_comment() ?>

</div>

</div>

<?php } ?>

</div>

<div class="zt_widgetFoot"></div>

<div class="clear"></div>

</div>

</div>

لینک به ارسال

خب یکمم از خودتون خلاقیّت نشون بدید ، کار سختی نیست اگر کد ها رو بالا پایین ببرید ، برای خودتون هم تجربه میشه!

این رو تست کنید:

<?php wp_reset_query(); ?>

<div class="zt_boxArea_12 ">

<div class="single_ADS_B1">

<?php zt_get_element('ADS_B1'); ?>

</div>

<div class="clear"></div>

<div class="zt_content">

<div class="zt_widgetHead">

<div class="zt_widgetHeadTitle">

<h2>

<?php wp_reset_query();?>

<?php the_title(); ?>

</h2>

</div>

<div class="zt_widgetHeadArchive">

<!--<a href="">

لیست کامل

<i class=""></i></a>-->

</div>

<div class="clear"></div>

</div>

<div class="zt_widgetBody zt_tour">

<?php

wp_reset_query();

while (have_posts()) {

the_post();

zt_tour_check_expire(get_the_ID());

$views = get_post_meta(get_the_ID(), 'views', TRUE);

$views = intval($views)+1;

add_post_meta(get_the_ID(), 'views', $views, TRUE)

OR update_post_meta(get_the_ID(), 'views', $views);

$is_feature = get_post_meta(get_the_ID(), 'zttour_is_feature', true);

$is_active = get_post_meta(get_the_ID(), 'zttour_is_active', true);

$is_last_tiem = get_post_meta(get_the_ID(), 'zttour_is_last_time', true);

$is_nowruz = get_post_meta(get_the_ID(), 'zttour_is_nowruz', true);

?>

<div class="single_tour <?php echo ($is_feature == 1) ? 'zttour_featured' : ''; ?> <?php echo ($is_last_tiem == 1) ? 'zttour_last_time' : ''; ?> <?php echo ($is_nowruz == 1) ? 'zttour_nowruz' : ''; ?>">

<div class="tour_content">

<?php

if ($is_active == 0) {

echo '<div class="zttour_expired">' . __('این تور منقضی شده است', 'ztframe_tour') . '</div>';

}

?>

<div class="tabletitle"><h4>اطلاعات تور</h4></div>

<table class="table" cellpadding="0" cellspacing="0" width="100%">

<tbody>

<tr>

<td class="rightcolumn tour_vert_title">از</td>

<td class="tour_vert_value" align="right"><?php echo get_post_meta(get_the_ID(), 'zttour_source', TRUE); ?><br></td>

</tr>

<tr>

<td class="rightcolumn tour_vert_title">نوع سفر</td>

<?php

$trans = get_post_meta(get_the_ID(), 'zttour_transport', TRUE);

$trans_name = array('1' => 'هوایی', '2' => 'دریایی', '3' => 'زمینی با قطار', '4' => 'زمینی با اتوبوس');

$transer = get_post_meta(get_the_ID(), 'zttour_transporter', TRUE);

?>

<td class="tour_vert_value" align="right"><?php echo $trans_name[$trans] . ' - ' . $transer; ?></td>

</tr>

<tr>

<td class="rightcolumn tour_vert_title">قیمت از</td>

<?php

$price_from = get_post_meta(get_the_ID(), 'zttour_price_from', TRUE);

$price_dolar = get_post_meta(get_the_ID(), 'zttour_price_by_dolar', TRUE);

?>

<td class="tour_vert_value" align="right">

<?php

$price_from_ech = (is_numeric($price_from))?number_format($price_from):$price_from;

echo '<span class="number">'.$price_from_ech .'</span> تومان';

if (!empty($price_dolar)) {

echo ' + <span class="number">' . $price_dolar . '</span>';

}

?>

</td>

</tr>

<tr>

<td class="rightcolumn tour_vert_title">تاریخ</td>

<td class="tour_vert_value" align="right">

<span class="tour_start_date">

<?php

$from_date=get_post_meta(get_the_ID(), 'zttour_start_date', TRUE);

$from_date=jdate('j F Y',zt_strtotime($from_date));

echo 'تاریخ شروع تور : <span class="date">' . $from_date . '</span>';

?>

</span>

<span class="tour_end_date">

<?php

$to_date=get_post_meta(get_the_ID(), 'zttour_end_date', TRUE);

$to_date=jdate('j F Y',zt_strtotime($to_date));

echo ' ، تاریخ پایان تور : <span class="date">' . $to_date . '</span>'; ?>

</span>

</td>

</tr>

<tr>

<td class="rightcolumn tour_vert_title">مدارک لازم</td>

<td class="tour_vert_value" align="right"><?php echo nl2br(get_post_meta(get_the_ID(), 'zttour_docs', TRUE)); ?><br>

</td>

</tr>

<tr>

<td class="rightcolumn tour_vert_title">خدمات آژانس</td>

<td class="tour_vert_value" align="right"><?php echo nl2br(get_post_meta(get_the_ID(), 'zttour_service', TRUE)); ?></td>

</tr>

<tr>

<td class="rightcolumn tour_vert_title">توضيحات</td>

<td class="tour_vert_value" align="right"><?php echo nl2br(get_post_meta(get_the_ID(), 'zttour_description', TRUE)); ?></td>

</tr>

<?php if (function_exists('wprp')) { ?>

<tr>

<td class="rightcolumn tour_vert_title">گزارش تخلف</td>

<td class="tour_vert_value" align="right"><?php wprp(true); ?></td>

</tr>

<?php } ?>

</tbody>

</table>

<?php } ?>

<?php

wp_reset_query();

while (have_posts()) {

the_post();

?>

<?php the_content(); ?>

<?php } ?>

<?php if ($is_active == 1) { ?>

<div class="tabletitle"><h4>اطلاعات تماس</h4></div>

<table class="table " cellpadding="0" cellspacing="0" width="100%">

<tbody>

<tr>

<td class="rightcolumn tour_vert_title">نام آژانس</td>

<td class="tour_vert_value" align="right">

<?php /* * * /?>

<a href="<?php echo get_author_posts_url(get_the_author_ID()); ?>"><?php echo get_the_author(); ?></a>

<?php /* * */ ?>

<a href="<?php echo get_author_posts_url(get_the_author_ID()); ?>"><?php echo get_user_meta(get_the_author_ID(), 'agency_name', true); ?></a>

</td>

</tr>

<tr>

<td class="rightcolumn tour_vert_title">تلفن</td>

<td class="tour_vert_value" align="right"><?php the_author_meta('tel'); ?></td>

</tr>

<?php /**/?>

<tr>

<td class="rightcolumn tour_vert_title">ایمیل</td>

<td class="tour_vert_value" align="right"><a href="mailto:<?php the_author_email(); ?>" target="_blank"><?php the_author_email(); ?></a></td>

</tr>

<?php /**/?>

<tr>

<td class="rightcolumn tour_vert_title">وب سایت</td>

<td class="tour_vert_value" align="right"><a href="<?php the_author_meta('url'); ?>" target="_blank"><?php the_author_meta('url'); ?></a></td>

</tr>

</tbody>

</table>

<?php } ?>

<div class="tabletitle"><h4>به</h4></div>

<table class="table tour_table tour_destination" cellpadding="0" cellspacing="0" width="100%">

<tbody>

<tr class="tablerow">

<td class="horis_title">نام</td>

<td class="horis_title">مدت اقامت</td>

<td class="horis_title">توضيحات</td>

</tr>

<?php

$destination = get_post_meta(get_the_ID(), 'zttour_destination', TRUE);

$stay = get_post_meta(get_the_ID(), 'zttour_stay', TRUE);

$dest_description = get_post_meta(get_the_ID(), 'zttour_dest_description', TRUE);

if(is_array($destination))

foreach ($destination as $dk => $dst) {

?>

<tr>

<td><?php echo $dst; ?></td>

<td><?php echo $stay[$dk]; ?> شب</td>

<td><?php echo $dest_description[$dk]; ?></td>

</tr>

<?php

}

?>

</tbody>

</table>

<div class="tabletitle"><h4>هتل‌ها</h4></div>

<table class="table tour_table tour_hotel" cellpadding="0" cellspacing="0" width="100%">

<tbody>

<?php

$h_name = get_post_meta(get_the_ID(), 'zttour_hotel_name', TRUE);

$h_rate = get_post_meta(get_the_ID(), 'zttour_hotel_rate', TRUE);

$h_service = get_post_meta(get_the_ID(), 'zttour_hotel_service', TRUE);

$h_link = get_post_meta(get_the_ID(), 'zttour_hotel_link', TRUE);

$h_description = get_post_meta(get_the_ID(), 'zttour_hotel_description', TRUE);

$hotel_title_1 = get_post_meta(get_the_ID(), 'zttour_hotel_title_1', TRUE);

$hotel_price_1 = get_post_meta(get_the_ID(), 'zttour_hotel_price_1', TRUE);

$hotel_title_2 = get_post_meta(get_the_ID(), 'zttour_hotel_title_2', TRUE);

$hotel_price_2 = get_post_meta(get_the_ID(), 'zttour_hotel_price_2', TRUE);

$hotel_title_3 = get_post_meta(get_the_ID(), 'zttour_hotel_title_3', TRUE);

$hotel_price_3 = get_post_meta(get_the_ID(), 'zttour_hotel_price_3', TRUE);

$hotel_title_4 = get_post_meta(get_the_ID(), 'zttour_hotel_title_4', TRUE);

$hotel_price_4 = get_post_meta(get_the_ID(), 'zttour_hotel_price_4', TRUE);

$hotel_title_5 = get_post_meta(get_the_ID(), 'zttour_hotel_title_5', TRUE);

$hotel_price_5 = get_post_meta(get_the_ID(), 'zttour_hotel_price_5', TRUE);

$title_array = array_filter(array($hotel_title_1[0], $hotel_title_2[0], $hotel_title_3[0], $hotel_title_4[0], $hotel_title_5[0]));

$price_array = array($hotel_price_1, $hotel_price_2, $hotel_price_3, $hotel_price_4, $hotel_price_5);

?>

<tr class="tablerow">

<td class="horis_title hotel_name">نام هتل</td>

<td class="horis_title">خدمات هتل</td>

<?php

if(is_array($title_array))

foreach ($title_array as $title) {

echo '<td class="horis_title">' . $title . '</td>';

}

?>

<td class="horis_title">توضيحات</td>

</tr>

<?php

if(is_array($h_name))

foreach ($h_name as $hk => $hotel_name) {

?>

<tr>

<td class="hotel_names">

<?php foreach ($hotel_name as $k => $v) { ?>

<p class="a_hotel">

<?php

$temp_link = $h_link[$hk][$k];

if(empty($temp_link)){

$temp_link='#';

}elseif(strpos($temp_link, 'http://')===FALSE AND strpos($temp_link, 'https://')===FALSE ){

$temp_link='http://'.$temp_link;

}

?>

<a href="<?php echo $temp_link; ?>" target="_blank"><?php echo $v; ?></a>

<br/>

<span class="hotel_stars">

<?php

if (!is_numeric($h_rate[$hk][$k])) {

echo '<span class="h_n_type">' . $h_rate[$hk][$k] . '</span>';

} else {

?>

<?php for ($s = 1; $s <= $h_rate[$hk][$k]; $s++) { ?>

<i class="fa fa-star"></i>

<?php

}

}

?>

</span>

</p>

<?php } ?>

</td>

<td class="hotel_services">

<?php foreach ($hotel_name as $k => $v) { ?>

<p class="a_hotel hotel_service">

<?php echo $h_service[$hk][$k]; ?>

</p>

<?php } ?>

</td>

<?php

foreach ($title_array as $tk => $title) {

$price = (is_numeric($price_array[$tk][$hk]))? number_format($price_array[$tk][$hk]):$price_array[$tk][$hk];

echo '<td class="hotel_price">';

echo '<span class="number">'.$price.' تومان </span>';

echo '</td>';

}

?>

<td class="hotel_desc"><?php echo $h_description[$hk]; ?></td>

</tr>

<?php } ?>

</tbody>

</table>

</div>

</div>

<?php } ?>

<div class="tour_relateds">

<?php zt_get_element('tour_related'); ?>

<?php zt_get_element('tour_latest'); ?>

</div>

<div class="single_ADS_B2">

<?php zt_get_element('ADS_B2'); ?>

</div>

<div class="clear"></div>

<?php

wp_reset_query();

while (have_posts()) {

the_post();

?>

<div class="clear"></div>

<div class="tour_tags">

<div class="comment_title"><h4>برچسب ها</h4></div>

<div class="tour_tag">

<?php the_tags('','','') ?>

</div>

</div>

<div class="clear"></div>

<div class="tour_comments">

<div class="comment_title"><h4>نظرات</h4></div>

<div class="comment_title">

<?php zt_get_comment() ?>

</div>

</div>

<?php } ?>

</div>

<div class="zt_widgetFoot"></div>

<div class="clear"></div>

</div>

</div>

ممنون عزیز من خیلی کدها را جابجه کردم ارور می دهد الان کدی هم که شما دادی این ارور را نمایش داد:

Parse error: syntax error, unexpected '}' in /home3/rahparir/public_html/admincp/wp-content/themes/zakrot_tour/template/single.php on line 271

لینک به ارسال

ممنون عزیز من خیلی کدها را جابجه کردم ارور می دهد الان کدی هم که شما دادی این ارور را نمایش داد:

Parse error: syntax error, unexpected '}' in /home3/rahparir/public_html/admincp/wp-content/themes/zakrot_tour/template/single.php on line 271

بله من یه اشتباهی کرده بودم توی جا به جایی کد ها ولی بد نیست خودتون هم یکم با کد هاتون کار کنین ها ، ببینین خط 271 چه چیزی اضافه هست پاکش کنین

<?php wp_reset_query(); ?>

<div class="zt_boxArea_12 ">

<div class="single_ADS_B1">

<?php zt_get_element('ADS_B1'); ?>

</div>

<div class="clear"></div>

<div class="zt_content">

<div class="zt_widgetHead">

<div class="zt_widgetHeadTitle">

<h2>

<?php wp_reset_query();?>

<?php the_title(); ?>

</h2>

</div>

<div class="zt_widgetHeadArchive">

<!--<a href="">

لیست کامل

<i class=""></i></a>-->

</div>

<div class="clear"></div>

</div>

<div class="zt_widgetBody zt_tour">

<?php

wp_reset_query();

while (have_posts()) {

the_post();

zt_tour_check_expire(get_the_ID());

$views = get_post_meta(get_the_ID(), 'views', TRUE);

$views = intval($views)+1;

add_post_meta(get_the_ID(), 'views', $views, TRUE)

OR update_post_meta(get_the_ID(), 'views', $views);

$is_feature = get_post_meta(get_the_ID(), 'zttour_is_feature', true);

$is_active = get_post_meta(get_the_ID(), 'zttour_is_active', true);

$is_last_tiem = get_post_meta(get_the_ID(), 'zttour_is_last_time', true);

$is_nowruz = get_post_meta(get_the_ID(), 'zttour_is_nowruz', true);

?>

<div class="single_tour <?php echo ($is_feature == 1) ? 'zttour_featured' : ''; ?> <?php echo ($is_last_tiem == 1) ? 'zttour_last_time' : ''; ?> <?php echo ($is_nowruz == 1) ? 'zttour_nowruz' : ''; ?>">

<div class="tour_content">

<?php

if ($is_active == 0) {

echo '<div class="zttour_expired">' . __('این تور منقضی شده است', 'ztframe_tour') . '</div>';

}

?>

<div class="tabletitle"><h4>اطلاعات تور</h4></div>

<table class="table" cellpadding="0" cellspacing="0" width="100%">

<tbody>

<tr>

<td class="rightcolumn tour_vert_title">از</td>

<td class="tour_vert_value" align="right"><?php echo get_post_meta(get_the_ID(), 'zttour_source', TRUE); ?><br></td>

</tr>

<tr>

<td class="rightcolumn tour_vert_title">نوع سفر</td>

<?php

$trans = get_post_meta(get_the_ID(), 'zttour_transport', TRUE);

$trans_name = array('1' => 'هوایی', '2' => 'دریایی', '3' => 'زمینی با قطار', '4' => 'زمینی با اتوبوس');

$transer = get_post_meta(get_the_ID(), 'zttour_transporter', TRUE);

?>

<td class="tour_vert_value" align="right"><?php echo $trans_name[$trans] . ' - ' . $transer; ?></td>

</tr>

<tr>

<td class="rightcolumn tour_vert_title">قیمت از</td>

<?php

$price_from = get_post_meta(get_the_ID(), 'zttour_price_from', TRUE);

$price_dolar = get_post_meta(get_the_ID(), 'zttour_price_by_dolar', TRUE);

?>

<td class="tour_vert_value" align="right">

<?php

$price_from_ech = (is_numeric($price_from))?number_format($price_from):$price_from;

echo '<span class="number">'.$price_from_ech .'</span> تومان';

if (!empty($price_dolar)) {

echo ' + <span class="number">' . $price_dolar . '</span>';

}

?>

</td>

</tr>

<tr>

<td class="rightcolumn tour_vert_title">تاریخ</td>

<td class="tour_vert_value" align="right">

<span class="tour_start_date">

<?php

$from_date=get_post_meta(get_the_ID(), 'zttour_start_date', TRUE);

$from_date=jdate('j F Y',zt_strtotime($from_date));

echo 'تاریخ شروع تور : <span class="date">' . $from_date . '</span>';

?>

</span>

<span class="tour_end_date">

<?php

$to_date=get_post_meta(get_the_ID(), 'zttour_end_date', TRUE);

$to_date=jdate('j F Y',zt_strtotime($to_date));

echo ' ، تاریخ پایان تور : <span class="date">' . $to_date . '</span>'; ?>

</span>

</td>

</tr>

<tr>

<td class="rightcolumn tour_vert_title">مدارک لازم</td>

<td class="tour_vert_value" align="right"><?php echo nl2br(get_post_meta(get_the_ID(), 'zttour_docs', TRUE)); ?><br>

</td>

</tr>

<tr>

<td class="rightcolumn tour_vert_title">خدمات آژانس</td>

<td class="tour_vert_value" align="right"><?php echo nl2br(get_post_meta(get_the_ID(), 'zttour_service', TRUE)); ?></td>

</tr>

<tr>

<td class="rightcolumn tour_vert_title">توضيحات</td>

<td class="tour_vert_value" align="right"><?php echo nl2br(get_post_meta(get_the_ID(), 'zttour_description', TRUE)); ?></td>

</tr>

<?php if (function_exists('wprp')) { ?>

<tr>

<td class="rightcolumn tour_vert_title">گزارش تخلف</td>

<td class="tour_vert_value" align="right"><?php wprp(true); ?></td>

</tr>

<?php } ?>

</tbody>

</table>

<?php } ?>

<?php

wp_reset_query();

while (have_posts()) {

the_post();

?>

<?php the_content(); ?>

<?php } ?>

<?php if ($is_active == 1) { ?>

<div class="tabletitle"><h4>اطلاعات تماس</h4></div>

<table class="table " cellpadding="0" cellspacing="0" width="100%">

<tbody>

<tr>

<td class="rightcolumn tour_vert_title">نام آژانس</td>

<td class="tour_vert_value" align="right">

<?php /* * * /?>

<a href="<?php echo get_author_posts_url(get_the_author_ID()); ?>"><?php echo get_the_author(); ?></a>

<?php /* * */ ?>

<a href="<?php echo get_author_posts_url(get_the_author_ID()); ?>"><?php echo get_user_meta(get_the_author_ID(), 'agency_name', true); ?></a>

</td>

</tr>

<tr>

<td class="rightcolumn tour_vert_title">تلفن</td>

<td class="tour_vert_value" align="right"><?php the_author_meta('tel'); ?></td>

</tr>

<?php /**/?>

<tr>

<td class="rightcolumn tour_vert_title">ایمیل</td>

<td class="tour_vert_value" align="right"><a href="mailto:<?php the_author_email(); ?>" target="_blank"><?php the_author_email(); ?></a></td>

</tr>

<?php /**/?>

<tr>

<td class="rightcolumn tour_vert_title">وب سایت</td>

<td class="tour_vert_value" align="right"><a href="<?php the_author_meta('url'); ?>" target="_blank"><?php the_author_meta('url'); ?></a></td>

</tr>

</tbody>

</table>

<?php } ?>

<div class="tabletitle"><h4>به</h4></div>

<table class="table tour_table tour_destination" cellpadding="0" cellspacing="0" width="100%">

<tbody>

<tr class="tablerow">

<td class="horis_title">نام</td>

<td class="horis_title">مدت اقامت</td>

<td class="horis_title">توضيحات</td>

</tr>

<?php

$destination = get_post_meta(get_the_ID(), 'zttour_destination', TRUE);

$stay = get_post_meta(get_the_ID(), 'zttour_stay', TRUE);

$dest_description = get_post_meta(get_the_ID(), 'zttour_dest_description', TRUE);

if(is_array($destination))

foreach ($destination as $dk => $dst) {

?>

<tr>

<td><?php echo $dst; ?></td>

<td><?php echo $stay[$dk]; ?> شب</td>

<td><?php echo $dest_description[$dk]; ?></td>

</tr>

<?php

}

?>

</tbody>

</table>

<div class="tabletitle"><h4>هتل‌ها</h4></div>

<table class="table tour_table tour_hotel" cellpadding="0" cellspacing="0" width="100%">

<tbody>

<?php

$h_name = get_post_meta(get_the_ID(), 'zttour_hotel_name', TRUE);

$h_rate = get_post_meta(get_the_ID(), 'zttour_hotel_rate', TRUE);

$h_service = get_post_meta(get_the_ID(), 'zttour_hotel_service', TRUE);

$h_link = get_post_meta(get_the_ID(), 'zttour_hotel_link', TRUE);

$h_description = get_post_meta(get_the_ID(), 'zttour_hotel_description', TRUE);

$hotel_title_1 = get_post_meta(get_the_ID(), 'zttour_hotel_title_1', TRUE);

$hotel_price_1 = get_post_meta(get_the_ID(), 'zttour_hotel_price_1', TRUE);

$hotel_title_2 = get_post_meta(get_the_ID(), 'zttour_hotel_title_2', TRUE);

$hotel_price_2 = get_post_meta(get_the_ID(), 'zttour_hotel_price_2', TRUE);

$hotel_title_3 = get_post_meta(get_the_ID(), 'zttour_hotel_title_3', TRUE);

$hotel_price_3 = get_post_meta(get_the_ID(), 'zttour_hotel_price_3', TRUE);

$hotel_title_4 = get_post_meta(get_the_ID(), 'zttour_hotel_title_4', TRUE);

$hotel_price_4 = get_post_meta(get_the_ID(), 'zttour_hotel_price_4', TRUE);

$hotel_title_5 = get_post_meta(get_the_ID(), 'zttour_hotel_title_5', TRUE);

$hotel_price_5 = get_post_meta(get_the_ID(), 'zttour_hotel_price_5', TRUE);

$title_array = array_filter(array($hotel_title_1[0], $hotel_title_2[0], $hotel_title_3[0], $hotel_title_4[0], $hotel_title_5[0]));

$price_array = array($hotel_price_1, $hotel_price_2, $hotel_price_3, $hotel_price_4, $hotel_price_5);

?>

<tr class="tablerow">

<td class="horis_title hotel_name">نام هتل</td>

<td class="horis_title">خدمات هتل</td>

<?php

if(is_array($title_array))

foreach ($title_array as $title) {

echo '<td class="horis_title">' . $title . '</td>';

}

?>

<td class="horis_title">توضيحات</td>

</tr>

<?php

if(is_array($h_name))

foreach ($h_name as $hk => $hotel_name) {

?>

<tr>

<td class="hotel_names">

<?php foreach ($hotel_name as $k => $v) { ?>

<p class="a_hotel">

<?php

$temp_link = $h_link[$hk][$k];

if(empty($temp_link)){

$temp_link='#';

}elseif(strpos($temp_link, 'http://')===FALSE AND strpos($temp_link, 'https://')===FALSE ){

$temp_link='http://'.$temp_link;

}

?>

<a href="<?php echo $temp_link; ?>" target="_blank"><?php echo $v; ?></a>

<br/>

<span class="hotel_stars">

<?php

if (!is_numeric($h_rate[$hk][$k])) {

echo '<span class="h_n_type">' . $h_rate[$hk][$k] . '</span>';

} else {

?>

<?php for ($s = 1; $s <= $h_rate[$hk][$k]; $s++) { ?>

<i class="fa fa-star"></i>

<?php

}

}

?>

</span>

</p>

<?php } ?>

</td>

<td class="hotel_services">

<?php foreach ($hotel_name as $k => $v) { ?>

<p class="a_hotel hotel_service">

<?php echo $h_service[$hk][$k]; ?>

</p>

<?php } ?>

</td>

<?php

foreach ($title_array as $tk => $title) {

$price = (is_numeric($price_array[$tk][$hk]))? number_format($price_array[$tk][$hk]):$price_array[$tk][$hk];

echo '<td class="hotel_price">';

echo '<span class="number">'.$price.' تومان </span>';

echo '</td>';

}

?>

<td class="hotel_desc"><?php echo $h_description[$hk]; ?></td>

</tr>

<?php } ?>

</tbody>

</table>

</div>

</div>

<div class="tour_relateds">

<?php zt_get_element('tour_related'); ?>

<?php zt_get_element('tour_latest'); ?>

</div>

<div class="single_ADS_B2">

<?php zt_get_element('ADS_B2'); ?>

</div>

<div class="clear"></div>

<?php

wp_reset_query();

while (have_posts()) {

the_post();

?>

<div class="clear"></div>

<div class="tour_tags">

<div class="comment_title"><h4>برچسب ها</h4></div>

<div class="tour_tag">

<?php the_tags('','','') ?>

</div>

</div>

<div class="clear"></div>

<div class="tour_comments">

<div class="comment_title"><h4>نظرات</h4></div>

<div class="comment_title">

<?php zt_get_comment() ?>

</div>

</div>

<?php } ?>

</div>

<div class="zt_widgetFoot"></div>

<div class="clear"></div>

</div>

</div>

لینک به ارسال

بله من یه اشتباهی کرده بودم توی جا به جایی کد ها ولی بد نیست خودتون هم یکم با کد هاتون کار کنین ها ، ببینین خط 271 چه چیزی اضافه هست پاکش کنین

<?php wp_reset_query(); ?>

<div class="zt_boxArea_12 ">

<div class="single_ADS_B1">

<?php zt_get_element('ADS_B1'); ?>

</div>

<div class="clear"></div>

<div class="zt_content">

<div class="zt_widgetHead">

<div class="zt_widgetHeadTitle">

<h2>

<?php wp_reset_query();?>

<?php the_title(); ?>

</h2>

</div>

<div class="zt_widgetHeadArchive">

<!--<a href="">

لیست کامل

<i class=""></i></a>-->

</div>

<div class="clear"></div>

</div>

<div class="zt_widgetBody zt_tour">

<?php

wp_reset_query();

while (have_posts()) {

the_post();

zt_tour_check_expire(get_the_ID());

$views = get_post_meta(get_the_ID(), 'views', TRUE);

$views = intval($views)+1;

add_post_meta(get_the_ID(), 'views', $views, TRUE)

OR update_post_meta(get_the_ID(), 'views', $views);

$is_feature = get_post_meta(get_the_ID(), 'zttour_is_feature', true);

$is_active = get_post_meta(get_the_ID(), 'zttour_is_active', true);

$is_last_tiem = get_post_meta(get_the_ID(), 'zttour_is_last_time', true);

$is_nowruz = get_post_meta(get_the_ID(), 'zttour_is_nowruz', true);

?>

<div class="single_tour <?php echo ($is_feature == 1) ? 'zttour_featured' : ''; ?> <?php echo ($is_last_tiem == 1) ? 'zttour_last_time' : ''; ?> <?php echo ($is_nowruz == 1) ? 'zttour_nowruz' : ''; ?>">

<div class="tour_content">

<?php

if ($is_active == 0) {

echo '<div class="zttour_expired">' . __('این تور منقضی شده است', 'ztframe_tour') . '</div>';

}

?>

<div class="tabletitle"><h4>اطلاعات تور</h4></div>

<table class="table" cellpadding="0" cellspacing="0" width="100%">

<tbody>

<tr>

<td class="rightcolumn tour_vert_title">از</td>

<td class="tour_vert_value" align="right"><?php echo get_post_meta(get_the_ID(), 'zttour_source', TRUE); ?><br></td>

</tr>

<tr>

<td class="rightcolumn tour_vert_title">نوع سفر</td>

<?php

$trans = get_post_meta(get_the_ID(), 'zttour_transport', TRUE);

$trans_name = array('1' => 'هوایی', '2' => 'دریایی', '3' => 'زمینی با قطار', '4' => 'زمینی با اتوبوس');

$transer = get_post_meta(get_the_ID(), 'zttour_transporter', TRUE);

?>

<td class="tour_vert_value" align="right"><?php echo $trans_name[$trans] . ' - ' . $transer; ?></td>

</tr>

<tr>

<td class="rightcolumn tour_vert_title">قیمت از</td>

<?php

$price_from = get_post_meta(get_the_ID(), 'zttour_price_from', TRUE);

$price_dolar = get_post_meta(get_the_ID(), 'zttour_price_by_dolar', TRUE);

?>

<td class="tour_vert_value" align="right">

<?php

$price_from_ech = (is_numeric($price_from))?number_format($price_from):$price_from;

echo '<span class="number">'.$price_from_ech .'</span> تومان';

if (!empty($price_dolar)) {

echo ' + <span class="number">' . $price_dolar . '</span>';

}

?>

</td>

</tr>

<tr>

<td class="rightcolumn tour_vert_title">تاریخ</td>

<td class="tour_vert_value" align="right">

<span class="tour_start_date">

<?php

$from_date=get_post_meta(get_the_ID(), 'zttour_start_date', TRUE);

$from_date=jdate('j F Y',zt_strtotime($from_date));

echo 'تاریخ شروع تور : <span class="date">' . $from_date . '</span>';

?>

</span>

<span class="tour_end_date">

<?php

$to_date=get_post_meta(get_the_ID(), 'zttour_end_date', TRUE);

$to_date=jdate('j F Y',zt_strtotime($to_date));

echo ' ، تاریخ پایان تور : <span class="date">' . $to_date . '</span>'; ?>

</span>

</td>

</tr>

<tr>

<td class="rightcolumn tour_vert_title">مدارک لازم</td>

<td class="tour_vert_value" align="right"><?php echo nl2br(get_post_meta(get_the_ID(), 'zttour_docs', TRUE)); ?><br>

</td>

</tr>

<tr>

<td class="rightcolumn tour_vert_title">خدمات آژانس</td>

<td class="tour_vert_value" align="right"><?php echo nl2br(get_post_meta(get_the_ID(), 'zttour_service', TRUE)); ?></td>

</tr>

<tr>

<td class="rightcolumn tour_vert_title">توضيحات</td>

<td class="tour_vert_value" align="right"><?php echo nl2br(get_post_meta(get_the_ID(), 'zttour_description', TRUE)); ?></td>

</tr>

<?php if (function_exists('wprp')) { ?>

<tr>

<td class="rightcolumn tour_vert_title">گزارش تخلف</td>

<td class="tour_vert_value" align="right"><?php wprp(true); ?></td>

</tr>

<?php } ?>

</tbody>

</table>

<?php } ?>

<?php

wp_reset_query();

while (have_posts()) {

the_post();

?>

<?php the_content(); ?>

<?php } ?>

<?php if ($is_active == 1) { ?>

<div class="tabletitle"><h4>اطلاعات تماس</h4></div>

<table class="table " cellpadding="0" cellspacing="0" width="100%">

<tbody>

<tr>

<td class="rightcolumn tour_vert_title">نام آژانس</td>

<td class="tour_vert_value" align="right">

<?php /* * * /?>

<a href="<?php echo get_author_posts_url(get_the_author_ID()); ?>"><?php echo get_the_author(); ?></a>

<?php /* * */ ?>

<a href="<?php echo get_author_posts_url(get_the_author_ID()); ?>"><?php echo get_user_meta(get_the_author_ID(), 'agency_name', true); ?></a>

</td>

</tr>

<tr>

<td class="rightcolumn tour_vert_title">تلفن</td>

<td class="tour_vert_value" align="right"><?php the_author_meta('tel'); ?></td>

</tr>

<?php /**/?>

<tr>

<td class="rightcolumn tour_vert_title">ایمیل</td>

<td class="tour_vert_value" align="right"><a href="mailto:<?php the_author_email(); ?>" target="_blank"><?php the_author_email(); ?></a></td>

</tr>

<?php /**/?>

<tr>

<td class="rightcolumn tour_vert_title">وب سایت</td>

<td class="tour_vert_value" align="right"><a href="<?php the_author_meta('url'); ?>" target="_blank"><?php the_author_meta('url'); ?></a></td>

</tr>

</tbody>

</table>

<?php } ?>

<div class="tabletitle"><h4>به</h4></div>

<table class="table tour_table tour_destination" cellpadding="0" cellspacing="0" width="100%">

<tbody>

<tr class="tablerow">

<td class="horis_title">نام</td>

<td class="horis_title">مدت اقامت</td>

<td class="horis_title">توضيحات</td>

</tr>

<?php

$destination = get_post_meta(get_the_ID(), 'zttour_destination', TRUE);

$stay = get_post_meta(get_the_ID(), 'zttour_stay', TRUE);

$dest_description = get_post_meta(get_the_ID(), 'zttour_dest_description', TRUE);

if(is_array($destination))

foreach ($destination as $dk => $dst) {

?>

<tr>

<td><?php echo $dst; ?></td>

<td><?php echo $stay[$dk]; ?> شب</td>

<td><?php echo $dest_description[$dk]; ?></td>

</tr>

<?php

}

?>

</tbody>

</table>

<div class="tabletitle"><h4>هتل‌ها</h4></div>

<table class="table tour_table tour_hotel" cellpadding="0" cellspacing="0" width="100%">

<tbody>

<?php

$h_name = get_post_meta(get_the_ID(), 'zttour_hotel_name', TRUE);

$h_rate = get_post_meta(get_the_ID(), 'zttour_hotel_rate', TRUE);

$h_service = get_post_meta(get_the_ID(), 'zttour_hotel_service', TRUE);

$h_link = get_post_meta(get_the_ID(), 'zttour_hotel_link', TRUE);

$h_description = get_post_meta(get_the_ID(), 'zttour_hotel_description', TRUE);

$hotel_title_1 = get_post_meta(get_the_ID(), 'zttour_hotel_title_1', TRUE);

$hotel_price_1 = get_post_meta(get_the_ID(), 'zttour_hotel_price_1', TRUE);

$hotel_title_2 = get_post_meta(get_the_ID(), 'zttour_hotel_title_2', TRUE);

$hotel_price_2 = get_post_meta(get_the_ID(), 'zttour_hotel_price_2', TRUE);

$hotel_title_3 = get_post_meta(get_the_ID(), 'zttour_hotel_title_3', TRUE);

$hotel_price_3 = get_post_meta(get_the_ID(), 'zttour_hotel_price_3', TRUE);

$hotel_title_4 = get_post_meta(get_the_ID(), 'zttour_hotel_title_4', TRUE);

$hotel_price_4 = get_post_meta(get_the_ID(), 'zttour_hotel_price_4', TRUE);

$hotel_title_5 = get_post_meta(get_the_ID(), 'zttour_hotel_title_5', TRUE);

$hotel_price_5 = get_post_meta(get_the_ID(), 'zttour_hotel_price_5', TRUE);

$title_array = array_filter(array($hotel_title_1[0], $hotel_title_2[0], $hotel_title_3[0], $hotel_title_4[0], $hotel_title_5[0]));

$price_array = array($hotel_price_1, $hotel_price_2, $hotel_price_3, $hotel_price_4, $hotel_price_5);

?>

<tr class="tablerow">

<td class="horis_title hotel_name">نام هتل</td>

<td class="horis_title">خدمات هتل</td>

<?php

if(is_array($title_array))

foreach ($title_array as $title) {

echo '<td class="horis_title">' . $title . '</td>';

}

?>

<td class="horis_title">توضيحات</td>

</tr>

<?php

if(is_array($h_name))

foreach ($h_name as $hk => $hotel_name) {

?>

<tr>

<td class="hotel_names">

<?php foreach ($hotel_name as $k => $v) { ?>

<p class="a_hotel">

<?php

$temp_link = $h_link[$hk][$k];

if(empty($temp_link)){

$temp_link='#';

}elseif(strpos($temp_link, 'http://')===FALSE AND strpos($temp_link, 'https://')===FALSE ){

$temp_link='http://'.$temp_link;

}

?>

<a href="<?php echo $temp_link; ?>" target="_blank"><?php echo $v; ?></a>

<br/>

<span class="hotel_stars">

<?php

if (!is_numeric($h_rate[$hk][$k])) {

echo '<span class="h_n_type">' . $h_rate[$hk][$k] . '</span>';

} else {

?>

<?php for ($s = 1; $s <= $h_rate[$hk][$k]; $s++) { ?>

<i class="fa fa-star"></i>

<?php

}

}

?>

</span>

</p>

<?php } ?>

</td>

<td class="hotel_services">

<?php foreach ($hotel_name as $k => $v) { ?>

<p class="a_hotel hotel_service">

<?php echo $h_service[$hk][$k]; ?>

</p>

<?php } ?>

</td>

<?php

foreach ($title_array as $tk => $title) {

$price = (is_numeric($price_array[$tk][$hk]))? number_format($price_array[$tk][$hk]):$price_array[$tk][$hk];

echo '<td class="hotel_price">';

echo '<span class="number">'.$price.' تومان </span>';

echo '</td>';

}

?>

<td class="hotel_desc"><?php echo $h_description[$hk]; ?></td>

</tr>

<?php } ?>

</tbody>

</table>

</div>

</div>

<div class="tour_relateds">

<?php zt_get_element('tour_related'); ?>

<?php zt_get_element('tour_latest'); ?>

</div>

<div class="single_ADS_B2">

<?php zt_get_element('ADS_B2'); ?>

</div>

<div class="clear"></div>

<?php

wp_reset_query();

while (have_posts()) {

the_post();

?>

<div class="clear"></div>

<div class="tour_tags">

<div class="comment_title"><h4>برچسب ها</h4></div>

<div class="tour_tag">

<?php the_tags('','','') ?>

</div>

</div>

<div class="clear"></div>

<div class="tour_comments">

<div class="comment_title"><h4>نظرات</h4></div>

<div class="comment_title">

<?php zt_get_comment() ?>

</div>

</div>

<?php } ?>

</div>

<div class="zt_widgetFoot"></div>

<div class="clear"></div>

</div>

</div>

خیلی ممنون لطف کردید.

لینک به ارسال

به گفتگو بپیوندید

هم اکنون می توانید مطلب خود را ارسال نمایید و بعداً ثبت نام کنید. اگر حساب کاربری دارید، برای ارسال با حساب کاربری خود اکنون وارد شوید .

مهمان
ارسال پاسخ به این موضوع ...

×   شما در حال چسباندن محتوایی با قالب بندی هستید.   حذف قالب بندی

  تنها استفاده از 75 اموجی مجاز می باشد.

×   لینک شما به صورت اتوماتیک جای گذاری شد.   نمایش به صورت لینک

×   محتوای قبلی شما بازگردانی شد.   پاک کردن محتوای ویرایشگر

×   شما مستقیما نمی توانید تصویر خود را قرار دهید. یا آن را اینجا بارگذاری کنید یا از یک URL قرار دهید.

×
×
  • اضافه کردن...