本文整理汇总了PHP中BYT_Theme_Utils::render_submit_button方法的典型用法代码示例。如果您正苦于以下问题:PHP BYT_Theme_Utils::render_submit_button方法的具体用法?PHP BYT_Theme_Utils::render_submit_button怎么用?PHP BYT_Theme_Utils::render_submit_button使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类BYT_Theme_Utils
的用法示例。
在下文中一共展示了BYT_Theme_Utils::render_submit_button方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
<p><?php
_e('Total', 'bookyourtravel');
?>
</p>
<p class="step_1_total_holder"></p>
</div>
</div>
<h3><span>02 </span><?php
_e('Submit booking', 'bookyourtravel');
?>
</h3>
<div class="error" style="display:none;"><div><p></p></div></div>
<div class="row twins">
<div class="f-item">
<label for="first_name"><?php
_e('First name', 'bookyourtravel');
?>
</label>
<input type="text" id="first_name" name="first_name" data-required />
</div>
<div class="f-item">
<label for="last_name"><?php
_e('Last name', 'bookyourtravel');
?>
</label>
<input type="text" id="last_name" name="last_name" data-required />
</div>
</div>
<div class="row twins">
<div class="f-item">
示例2: foreach
<th><?php
_e('Element', 'bookyourtravel');
?>
</th>
<?php
for ($i = 1; $i <= 10; $i++) {
echo '<th>' . $i . '</th>';
}
?>
</tr>
<?php
foreach ($review_fields as $field) {
?>
<tr>
<th><?php
echo $field['label'];
?>
</th>
<?php
for ($i = 1; $i <= 10; $i++) {
echo '<td><input type="radio" id="reviewField_' . $field['id'] . '_' . $i . '" value="' . $i . '" name="reviewField_' . $field['id'] . '" /></td>';
}
?>
</tr>
<?php
}
?>
</table>
<h3><?php
echo sprintf(__('What did you like about the %s?', 'bookyourtravel'), $post_type);
?>
示例3:
<div class="f-item">
<label for="your_name"><?php
_e('Your name', 'bookyourtravel');
?>
</label>
<input type="text" name="your_name" id="your_name" />
</div>
</div>
<div class="row">
<div class="f-item">
<label for="your_email"><?php
_e('Your email', 'bookyourtravel');
?>
</label>
<input type="email" name="your_email" id="your_email" />
</div>
</div>
<div class="row">
<div class="f-item">
<label for="your_phone"><?php
_e('Your phone', 'bookyourtravel');
?>
</label>
<input type="text" name="your_phone" id="your_phone" />
</div>
</div>
<h3><?php
_e('What would you like to inquire about?', 'bookyourtravel');
?>
</h3>
<div class="f-item">
示例4:
</label>
<select id="car_booking_form_drop_off" name="car_booking_form_drop_off">
<?php
echo $locations_select_options;
?>
</select>
</div>
</div>
<div class="row twins">
<div class="f-item">
<label for="car_booking_form_first_name"><?php
_e('First name', 'bookyourtravel');
?>
</label>
<input type="text" id="car_booking_form_first_name" name="car_booking_form_first_name" data-required />
</div>
<div class="f-item">
<label for="car_booking_form_last_name"><?php
_e('Last name', 'bookyourtravel');
?>
</label>
<input type="text" id="car_booking_form_last_name" name="car_booking_form_last_name" data-required />
</div>
</div>
<div class="row twins">
<div class="f-item">
<label for="car_booking_form_email"><?php
_e('Email address', 'bookyourtravel');
?>
</label>
<input type="email" id="car_booking_form_email" name="car_booking_form_email" data-required />