当前位置: 首页>>代码示例>>PHP>>正文


PHP st_the_language函数代码示例

本文整理汇总了PHP中st_the_language函数的典型用法代码示例。如果您正苦于以下问题:PHP st_the_language函数的具体用法?PHP st_the_language怎么用?PHP st_the_language使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了st_the_language函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: st_the_language

<?php

/**
 * @package WordPress
 * @subpackage Traveler
 * @since 1.0
 *
 * User my activity
 *
 * Created by ShineTheme
 *
 */
?>
<div class="st-create">
    <h2  class="pull-left"><?php 
st_the_language('my_activities');
?>
</h2>
    <a class="btn btn-default pull-right" href="<?php 
echo esc_url(add_query_arg('sc', 'create-activity', get_permalink()));
?>
">
        <?php 
_e("Add New Activity", ST_TEXTDOMAIN);
?>
    </a>
</div>
<div class="msg">
    <?php 
echo STUser_f::get_msg();
?>
开发者ID:DaddyFool,项目名称:travelTest,代码行数:31,代码来源:user-my-activity.php

示例2: st_the_language

            </div>
        </div>
        <div class="col-md-4">
            <div class="form-group form-group-icon-left">
                <label><?php 
st_the_language('user_create_cruise_cabin_features_number');
?>
</label>
                <input id="title" name="features_number[]" type="text" class="form-control">
            </div>
        </div>
        <div class="col-md-3">
            <div class="form-group form-group-icon-left">
                <label><?php 
st_the_language('user_create_cruise_cabin_features_icon');
?>
</label>
                <input id="title" name="features_icon[]" type="text" class="form-control">
            </div>
        </div>
        <div class="col-md-1">
            <div class="form-group form-group-icon-left">
                <div class="btn btn-danger btn_del_program" style="margin-top: 27px">
                    <?php 
st_the_language('user_create_cruise_cabin_features_del');
?>
                </div>
            </div>
        </div>
    </div>
</div>
开发者ID:DaddyFool,项目名称:travelTest,代码行数:31,代码来源:user-create-cruise-cabin.php

示例3: esc_html

                        <?php 
        if ($address = get_post_meta(get_the_ID(), 'address', TRUE)) {
            ?>
                            <p class="mb0">
                                <small> <?php 
            echo esc_html($address);
            ?>
</small>
                            </p>
                        <?php 
        }
        ?>
                        <p class="mb0 text-darken"><span
                                class="text-lg lh1em"><?php 
        echo TravelHelper::format_money(STHotel::get_avg_price());
        ?>
</span>
                            <small> <?php 
        st_the_language('avg/night');
        ?>
</small>
                        </p>
                    </div>
                </div>
            </div>
        <?php 
    }
    ?>
    </div>
<?php 
}
开发者ID:HatchForce,项目名称:bachtraveller,代码行数:31,代码来源:loop.php

示例4: st_the_language

<?php

/**
 * @package WordPress
 * @subpackage Traveler
 * @since 1.0
 *
 * User my room
 *
 * Created by ShineTheme
 *
 */
?>
<div class="st-create">
    <h2><?php 
st_the_language('my_room');
?>
</h2>
</div>
<ul id="" class="booking-list booking-list-wishlist ">
<?php 
$paged = get_query_var('paged') ? get_query_var('paged') : 1;
$args = array('post_type' => 'hotel_room', 'post_status' => 'publish , draft , trash', 'author' => $data->ID, 'posts_per_page' => 10, 'paged' => $paged);
$query = new WP_Query($args);
if ($query->have_posts()) {
    while ($query->have_posts()) {
        $query->the_post();
        echo st()->load_template('user/loop/loop', 'room', get_object_vars($data));
    }
} else {
    echo '<h1>' . st_get_language('no_room') . '</h1>';
开发者ID:HatchForce,项目名称:bachtraveller,代码行数:31,代码来源:user-my-room.php

示例5: wp_nonce_field

      				</div>
      				<div class="form-group">
      					<input type="hidden" name="action" value="booking_form_submit">
      					<input type="hidden" name="booking_by" value="partner">
      					<input type="hidden" name="sc" value="<?php 
echo $_GET['sc'];
?>
">
      					<input type="hidden" name="st_payment_gateway" value="1"/>
      					<input value="1" name="term_condition" type="hidden"/>
      					<input type="hidden" name="allow_capcha" value="on">
      					<?php 
wp_nonce_field('submit_form_order', 'travel_order');
?>
					     <input name='st_payment_gateway_st_submit_form'  class="st_payment_gatewaw_submit" type="hidden" value="<?php 
st_the_language('submit_request');
?>
">    
      				</div>
      				<div class="form-group">
      					<a href="#" id="partner-booking-button" class="btn btn-primary"><?php 
echo __('Book Now', ST_TEXTDOMAIN);
?>
</a>
      				</div>
      				<div class="form-group">
      					<div class="alert form_alert hidden"></div>
      				</div>
      			</div>
      		</div>
      	</div>			
开发者ID:DaddyFool,项目名称:travelTest,代码行数:31,代码来源:user-add-hotel-booking.php

示例6: st_the_language

</form>
<div id="html_program" style="display: none">
    <div class="item">
        <div class="col-md-4">
            <div class="form-group form-group-icon-left">
                <label for="title"><?php 
st_the_language('user_create_tour_program_title');
?>
</label>
                <input id="title" name="program_title[]" type="text" class="form-control">
            </div>
        </div>
        <div class="col-md-7">
            <div class="form-group form-group-icon-left">
                <label for="program_desc"><?php 
st_the_language('user_create_tour_program_desc');
?>
</label>
                <textarea name="program_desc[]" class="form-control h_35"></textarea>
            </div>
        </div>
        <div class="col-md-1">
            <div class="form-group form-group-icon-left">
                <div class="btn btn-danger btn_del_program" style="margin-top: 27px">
                    X
                </div>
            </div>
        </div>
    </div>
</div>
<div id="html_discount_by_adult" style="display: none">
开发者ID:DaddyFool,项目名称:travelTest,代码行数:31,代码来源:user-edit-tours.php

示例7: get_post_meta

STLanguage::st_the_language('holiday_date');
?>
: </span>
                        <?php 
$type_holiday = get_post_meta(get_the_ID(), 'type_holiday', true);
if ($type_holiday == 'daily_holiday') {
    $day = STHoliday::get_duration_unit();
    echo esc_html($day);
} else {
    $check_in = get_post_meta(get_the_ID(), 'check_in', true);
    $check_out = get_post_meta(get_the_ID(), 'check_out', true);
    if (!empty($check_in) and !empty($check_out)) {
        $date = date_i18n(TravelHelper::getDateFormat(), strtotime($check_in)) . ' <i class="fa fa-long-arrow-right"></i> ' . date_i18n(TravelHelper::getDateFormat(), strtotime($check_out));
        echo balanceTags($date);
    } else {
        st_the_language('holiday_none');
    }
}
?>
                    </div>
                </div>
            </div>
            <div class="row mt10">
                <div class="col-md-6 col-sm-6 col-xs-6">
                   <p class="mb0 text-darken">
                       <i class="fa fa-money">&nbsp;</i>
                       <?php 
_e('Price', ST_TEXTDOMAIN);
?>
:
                      <span> <?php 
开发者ID:DaddyFool,项目名称:travelTest,代码行数:31,代码来源:holiday.php

示例8: st_the_language

                <label for="field-car-drive-name"><?php 
st_the_language('driver_name');
?>
 <span class="require">*</span></label>
                <input id="field-car-drive-name" name="driver_name" value="<?php 
echo STInput::request('driver_name');
?>
" type="text" placeholder="<?php 
st_the_language('driver_name');
?>
"  class="form-control">
            </div>
            <div class="form-group">
                <label for="field-car-drive-age"><?php 
st_the_language('driver_age');
?>
 <span class="require">*</span></label>
                <input id="field-car-drive-age" name="driver_age" value="<?php 
echo STInput::request('driver_age');
?>
" type="text" placeholder="<?php 
st_the_language('driver_age');
?>
"  class="form-control">
            </div>
        </div>

    </div>


</div>
开发者ID:DaddyFool,项目名称:travelTest,代码行数:31,代码来源:checkout_fields.php

示例9: next_comments_link

        ?>
</div>
                <div class="nav-next"><?php 
        next_comments_link(st_get_language('newer_comments'));
        ?>
</div>
            </nav><!-- .comment-navigation -->
        <?php 
    }
    // Check for comment navigation
    ?>
        <?php 
    if (!comments_open() && get_comments_number()) {
        ?>
            <p class="no-comments"><?php 
        st_the_language('comments_are_closed');
        ?>
</p>
        <?php 
    }
    ?>
    <?php 
}
// have_comments()
?>
    <div id="review_form_wrapper">
        <div id="review_form">
            <?php 
$commenter = wp_get_current_commenter();
$comment_form = array('title_reply' => have_comments() ? st_get_language('add_a_comment') : st_get_language('be_the_first_to_comment') . ' &ldquo;' . get_the_title() . '&rdquo;', 'title_reply_to' => st_get_language('leave_a_reply_to_s'), 'comment_notes_before' => '', 'fields' => array('author' => '<div class="row">
							                <div class="form-group">
开发者ID:DaddyFool,项目名称:travelTest,代码行数:31,代码来源:comments.php

示例10: st_the_language

<?php

/**
 * @package WordPress
 * @subpackage Traveler
 * @since 1.0
 *
 * User my tours
 *
 * Created by ShineTheme
 *
 */
?>
<div class="st-create">
    <h2  class="pull-left"><?php 
st_the_language('my_tours');
?>
</h2>
    <a class="btn btn-default pull-right" href="<?php 
echo esc_url(add_query_arg('sc', 'create-tours', get_permalink()));
?>
">
        <?php 
_e("Add New Tour", ST_TEXTDOMAIN);
?>
    </a>
</div>
<div class="msg">
    <?php 
echo STUser_f::get_msg();
?>
开发者ID:DaddyFool,项目名称:travelTest,代码行数:31,代码来源:user-my-tours.php

示例11: st_the_language

st_the_language('about_hotel');
?>
</h4>
            <?php 
echo do_shortcode('[st_hotel_logo]
[st_post_data field=excerpt]
[st_hotel_detail_attribute taxonomy="hotel_facilities"]
');
?>
        </div>
    </div>

    <div class="row">
        <div class="col-sm-12">
            <h3><?php 
st_the_language('hotel_reviews');
?>
</h3>
        </div>
        <div class="col-sm-8">
            <?php 
echo do_shortcode('[st_hotel_review]');
?>
        </div>
        <div class="col-sm-4">
            <?php 
echo do_shortcode('[st_hotel_nearby]');
?>
        </div>
    </div>
开发者ID:DaddyFool,项目名称:travelTest,代码行数:30,代码来源:single-default.php

示例12: esc_html

</span>
                        <span class="booking-item-price">
                            <?php 
    if (!empty($count_sale)) {
        ?>
                                <span class="text-lg lh1em sale_block onsale">
                                      <?php 
        echo TravelHelper::format_money($price_sale);
        ?>
                                 </span>
                            <?php 
    }
    ?>
                                    <?php 
    echo TravelHelper::format_money($price);
    ?>
                        </span>
                        <span>/<?php 
    echo esc_html(strtolower($price_type));
    ?>
</span>
                        <span class="btn btn-primary"><?php 
    st_the_language('user_book_now');
    ?>
</span>
                    </div>
                </div>
            </a>
        </li>
    <?php 
}
开发者ID:HatchForce,项目名称:bachtraveller,代码行数:31,代码来源:loop-wishlist.php

示例13: date

        ?>
                                                    <tr>
                                                        <td>
                                                            <?php 
        echo date('d/m/Y', strtotime($v['start']));
        ?>
                                                            <i class="fa fa-arrow-right "></i>
                                                            <?php 
        echo date('d/m/Y', strtotime($v['end']));
        ?>
                                                        </td>
                                                        <td><?php 
        echo TravelHelper::format_money($v['price']);
        ?>
/<small><?php 
        st_the_language('per_night');
        ?>
</small></td>
                                                    </tr>

                                                <?php 
    }
}
?>
                                        </table>
                                    </div>
                                </div>
                                <div class="form-row">
                                    <label class="form-label" for="st_note"><?php 
_e('Special Requirements', ST_TEXTDOMAIN);
?>
开发者ID:HatchForce,项目名称:bachtraveller,代码行数:31,代码来源:booking_edit.php

示例14: st_the_language

<?php

/**
 * @package WordPress
 * @subpackage Traveler
 * @since 1.0
 *
 * User my rental
 *
 * Created by ShineTheme
 *
 */
?>
<div class="st-create">
    <h2  class="pull-left"><?php 
st_the_language('my_rental');
?>
</h2>
    <a class="btn btn-default pull-right" href="<?php 
echo esc_url(add_query_arg('sc', 'create-rental', get_permalink()));
?>
">
        <?php 
_e("Add New Rental", ST_TEXTDOMAIN);
?>
    </a>
</div>
<div class="msg">
    <?php 
echo STUser_f::get_msg();
?>
开发者ID:DaddyFool,项目名称:travelTest,代码行数:31,代码来源:user-my-rental.php

示例15: esc_html

                            <?php 
        echo esc_html($day);
        ?>
                            
                        <?php 
    }
} else {
    ?>
                        <?php 
    $check_in = get_post_meta(get_the_ID(), 'check_in', true);
    $check_out = get_post_meta(get_the_ID(), 'check_out', true);
    if (!empty($check_out) and !empty($check_out)) {
        ?>
                            <i class="fa fa-calendar"></i>
                            <span class=""><?php 
        st_the_language('holiday_date');
        ?>
 : </span>
                            <?php 
        $format = TravelHelper::getDateFormat();
        $date = date_i18n($format, strtotime($check_in)) . ' <i class="fa fa-long-arrow-right"></i> ' . date_i18n($format, strtotime($check_out));
        echo balanceTags($date);
    }
    ?>
                    <?php 
}
?>
                </small>
            </p>
            <?php 
$is_st_show_number_user_book = st()->get_option('st_show_number_user_book', 'off');
开发者ID:DaddyFool,项目名称:travelTest,代码行数:31,代码来源:loop-2.php


注:本文中的st_the_language函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。