本文整理汇总了PHP中TravelHelper::st_get_field_search方法的典型用法代码示例。如果您正苦于以下问题:PHP TravelHelper::st_get_field_search方法的具体用法?PHP TravelHelper::st_get_field_search怎么用?PHP TravelHelper::st_get_field_search使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TravelHelper
的用法示例。
在下文中一共展示了TravelHelper::st_get_field_search方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: vc_map
/*
* CAR
* */
vc_map(array("name" => __("ST Search Field Car", ST_TEXTDOMAIN), "base" => "st_search_field_car", "content_element" => true, "as_child" => array('only' => 'st_search_form'), "icon" => "icon-st", "params" => array(array("type" => "textfield", "heading" => __("Title", ST_TEXTDOMAIN), "param_name" => "st_title", "description" => __("Title field", ST_TEXTDOMAIN)), array("type" => "dropdown", "heading" => "Select field", "param_name" => "st_select_field", "description" => __("Select field", ST_TEXTDOMAIN), "value" => TravelHelper::st_get_field_search("st_cars")), array("type" => "dropdown", "heading" => "Select taxonomy", "param_name" => "st_select_taxonomy", "description" => __("Select taxonomy", ST_TEXTDOMAIN), "value" => st_get_post_taxonomy('st_cars', false), 'dependency' => array('element' => 'st_select_field', 'value' => array('taxonomy'))), array("type" => "dropdown", "heading" => __("Size Col", ST_TEXTDOMAIN), "param_name" => "st_col", "description" => __("Size Col", ST_TEXTDOMAIN), 'value' => array(__("1 column", ST_TEXTDOMAIN) => 'col-md-1', __("2 columns", ST_TEXTDOMAIN) => 'col-md-2', __("3 columns", ST_TEXTDOMAIN) => 'col-md-3', __("4 columns", ST_TEXTDOMAIN) => 'col-md-4', __("5 columns", ST_TEXTDOMAIN) => 'col-md-5', __("6 columns", ST_TEXTDOMAIN) => 'col-md-6', __("7 columns", ST_TEXTDOMAIN) => 'col-md-7', __("8 columns", ST_TEXTDOMAIN) => 'col-md-8', __("9 columns", ST_TEXTDOMAIN) => 'col-md-9', __("10 columns", ST_TEXTDOMAIN) => 'col-md-10', __("11 columns", ST_TEXTDOMAIN) => 'col-md-11', __("12 columns", ST_TEXTDOMAIN) => 'col-md-12')))));
/*
* TOUR
* */
vc_map(array("name" => __("ST Search Field Tour", ST_TEXTDOMAIN), "base" => "st_search_field_tour", "content_element" => true, "as_child" => array('only' => 'st_search_form'), "icon" => "icon-st", "params" => array(array("type" => "textfield", "heading" => __("Title", ST_TEXTDOMAIN), "param_name" => "st_title", "description" => __("Title field", ST_TEXTDOMAIN)), array("type" => "dropdown", "heading" => "Select field", "param_name" => "st_select_field", "description" => __("Select field", ST_TEXTDOMAIN), "value" => TravelHelper::st_get_field_search("st_tours")), array("type" => "dropdown", "heading" => "Select taxonomy", "param_name" => "st_select_taxonomy", "description" => __("Select taxonomy", ST_TEXTDOMAIN), "value" => st_get_post_taxonomy('st_tours', false), 'dependency' => array('element' => 'st_select_field', 'value' => array('taxonomy'))), array("type" => "dropdown", "heading" => __("Size Col", ST_TEXTDOMAIN), "param_name" => "st_col", "description" => __("Size Col", ST_TEXTDOMAIN), 'value' => array(__("1 column", ST_TEXTDOMAIN) => 'col-md-1', __("2 columns", ST_TEXTDOMAIN) => 'col-md-2', __("3 columns", ST_TEXTDOMAIN) => 'col-md-3', __("4 columns", ST_TEXTDOMAIN) => 'col-md-4', __("5 columns", ST_TEXTDOMAIN) => 'col-md-5', __("6 columns", ST_TEXTDOMAIN) => 'col-md-6', __("7 columns", ST_TEXTDOMAIN) => 'col-md-7', __("8 columns", ST_TEXTDOMAIN) => 'col-md-8', __("9 columns", ST_TEXTDOMAIN) => 'col-md-9', __("10 columns", ST_TEXTDOMAIN) => 'col-md-10', __("11 columns", ST_TEXTDOMAIN) => 'col-md-11', __("12 columns", ST_TEXTDOMAIN) => 'col-md-12')))));
/*
* HOLIDAY
* */
vc_map(array("name" => __("ST Search Field Holiday", ST_TEXTDOMAIN), "base" => "st_search_field_holiday", "content_element" => true, "as_child" => array('only' => 'st_search_form'), "icon" => "icon-st", "params" => array(array("type" => "textfield", "heading" => __("Title", ST_TEXTDOMAIN), "param_name" => "st_title", "description" => __("Title field", ST_TEXTDOMAIN)), array("type" => "dropdown", "heading" => "Select field", "param_name" => "st_select_field", "description" => __("Select field", ST_TEXTDOMAIN), "value" => TravelHelper::st_get_field_search("st_holidays")), array("type" => "dropdown", "heading" => "Select taxonomy", "param_name" => "st_select_taxonomy", "description" => __("Select taxonomy", ST_TEXTDOMAIN), "value" => st_get_post_taxonomy('st_holidays', false), 'dependency' => array('element' => 'st_select_field', 'value' => array('taxonomy'))), array("type" => "dropdown", "heading" => __("Size Col", ST_TEXTDOMAIN), "param_name" => "st_col", "description" => __("Size Col", ST_TEXTDOMAIN), 'value' => array(__("1 column", ST_TEXTDOMAIN) => 'col-md-1', __("2 columns", ST_TEXTDOMAIN) => 'col-md-2', __("3 columns", ST_TEXTDOMAIN) => 'col-md-3', __("4 columns", ST_TEXTDOMAIN) => 'col-md-4', __("5 columns", ST_TEXTDOMAIN) => 'col-md-5', __("6 columns", ST_TEXTDOMAIN) => 'col-md-6', __("7 columns", ST_TEXTDOMAIN) => 'col-md-7', __("8 columns", ST_TEXTDOMAIN) => 'col-md-8', __("9 columns", ST_TEXTDOMAIN) => 'col-md-9', __("10 columns", ST_TEXTDOMAIN) => 'col-md-10', __("11 columns", ST_TEXTDOMAIN) => 'col-md-11', __("12 columns", ST_TEXTDOMAIN) => 'col-md-12')))));
/*
* ACTIVITY
* */
vc_map(array("name" => __("ST Search Field Activity", ST_TEXTDOMAIN), "base" => "st_search_field_activity", "content_element" => true, "as_child" => array('only' => 'st_search_form'), "icon" => "icon-st", "params" => array(array("type" => "textfield", "heading" => __("Title", ST_TEXTDOMAIN), "param_name" => "st_title", "description" => __("Title field", ST_TEXTDOMAIN)), array("type" => "dropdown", "heading" => "Select field", "param_name" => "st_select_field", "description" => __("Select field", ST_TEXTDOMAIN), "value" => TravelHelper::st_get_field_search("st_activity")), array("type" => "dropdown", "heading" => "Select taxonomy", "param_name" => "st_select_taxonomy", "description" => __("Select taxonomy", ST_TEXTDOMAIN), "value" => st_get_post_taxonomy('st_activity', false), 'dependency' => array('element' => 'st_select_field', 'value' => array('taxonomy'))), array("type" => "dropdown", "heading" => __("Size Col", ST_TEXTDOMAIN), "param_name" => "st_col", "description" => __("Size Col", ST_TEXTDOMAIN), 'value' => array(__("1 column", ST_TEXTDOMAIN) => 'col-md-1', __("2 columns", ST_TEXTDOMAIN) => 'col-md-2', __("3 columns", ST_TEXTDOMAIN) => 'col-md-3', __("4 columns", ST_TEXTDOMAIN) => 'col-md-4', __("5 columns", ST_TEXTDOMAIN) => 'col-md-5', __("6 columns", ST_TEXTDOMAIN) => 'col-md-6', __("7 columns", ST_TEXTDOMAIN) => 'col-md-7', __("8 columns", ST_TEXTDOMAIN) => 'col-md-8', __("9 columns", ST_TEXTDOMAIN) => 'col-md-9', __("10 columns", ST_TEXTDOMAIN) => 'col-md-10', __("11 columns", ST_TEXTDOMAIN) => 'col-md-11', __("12 columns", ST_TEXTDOMAIN) => 'col-md-12')))));
}
if (class_exists('WPBakeryShortCodesContainer') and !class_exists('WPBakeryShortCode_st_search_form')) {
class WPBakeryShortCode_st_search_form extends WPBakeryShortCodesContainer
{
protected function content($arg, $content = null)
{
$data = shortcode_atts(array('st_title_form' => '', 'st_post_type' => "st_hotel", 'st_button_search' => __("Search", ST_TEXTDOMAIN)), $arg, 'st_search_form');
extract($data);
$content = st_remove_wpautop($content);
$text = ' <h2>' . $st_title_form . '</h2>
<form role="search" method="get" class="search" action="' . home_url('/') . '">
<input type="hidden" name="s" value="">
<input type="hidden" name="post_type" value="' . $st_post_type . '">
<input type="hidden" name="layout" value="' . STInput::get('layout') . '">
<div class="row">' . $content . '</div>