本文整理汇总了PHP中osc_search_category_id函数的典型用法代码示例。如果您正苦于以下问题:PHP osc_search_category_id函数的具体用法?PHP osc_search_category_id怎么用?PHP osc_search_category_id使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了osc_search_category_id函数的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: osc_category_name
echo osc_category_name();
?>
</strong></label>
</li>
<?php
}
?>
</ul>
</div>
<?php
}
?>
</fieldset>
<?php
if (osc_search_category() != '') {
osc_run_hook('search_form', osc_search_category_id());
} else {
osc_run_hook('search_form');
}
?>
<button type="submit"><?php
_e('Search', 'masjob');
?>
</button>
</form>
</div>
</div>
<script type="text/javascript">
function checkEmptyCategories() {
var n = $("#sCategory:checked").length;
if(n>0) {
示例2: meta_title
function meta_title()
{
$location = Rewrite::newInstance()->get_location();
$section = Rewrite::newInstance()->get_section();
switch ($location) {
case 'item':
switch ($section) {
case 'item_add':
$text = __('Publish an item', 'modern') . ' - ' . osc_page_title();
break;
case 'item_edit':
$text = __('Edit your item', 'modern') . ' - ' . osc_page_title();
break;
case 'send_friend':
$text = __('Send to a friend', 'modern') . ' - ' . osc_item_title() . ' - ' . osc_page_title();
break;
case 'contact':
$text = __('Contact seller', 'modern') . ' - ' . osc_item_title() . ' - ' . osc_page_title();
break;
default:
$text = osc_item_title() . ' - ' . osc_page_title();
break;
}
break;
case 'page':
$text = osc_static_page_title() . ' - ' . osc_page_title();
break;
case 'error':
$text = __('Error', 'modern') . ' - ' . osc_page_title();
break;
case 'search':
$region = Params::getParam('sRegion');
$city = Params::getParam('sCity');
$pattern = Params::getParam('sPattern');
$category = osc_search_category_id();
$category = count($category) == 1 ? $category[0] : '';
$s_page = '';
$i_page = Params::getParam('iPage');
if ($i_page != '' && $i_page > 0) {
$s_page = __('page', 'modern') . ' ' . ($i_page + 1) . ' - ';
}
$b_show_all = $region == '' && $city == '' & $pattern == '' && $category == '';
$b_category = $category != '';
$b_pattern = $pattern != '';
$b_city = $city != '';
$b_region = $region != '';
if ($b_show_all) {
$text = __('Show all items', 'modern') . ' - ' . $s_page . osc_page_title();
}
$result = '';
if ($b_pattern) {
$result .= $pattern . ' » ';
}
if ($b_category) {
$list = array();
$aCategories = Category::newInstance()->toRootTree($category);
if (count($aCategories) > 0) {
foreach ($aCategories as $single) {
$list[] = $single['s_name'];
}
$result .= implode(' » ', $list) . ' » ';
}
}
if ($b_city) {
$result .= $city . ' » ';
}
if ($b_region) {
$result .= $region . ' » ';
}
$result = preg_replace('|\\s?»\\s$|', '', $result);
if ($result == '') {
$result = __('Search', 'modern');
}
$text = $result . ' - ' . $s_page . osc_page_title();
break;
case 'login':
switch ($section) {
case 'recover':
$text = __('Recover your password', 'modern') . ' - ' . osc_page_title();
default:
$text = __('Login', 'modern') . ' - ' . osc_page_title();
}
break;
case 'register':
$text = __('Create a new account', 'modern') . ' - ' . osc_page_title();
break;
case 'user':
switch ($section) {
case 'dashboard':
$text = __('Dashboard', 'modern') . ' - ' . osc_page_title();
break;
case 'items':
$text = __('Manage my items', 'modern') . ' - ' . osc_page_title();
break;
case 'alerts':
$text = __('Manage my alerts', 'modern') . ' - ' . osc_page_title();
break;
case 'profile':
$text = __('Update my profile', 'modern') . ' - ' . osc_page_title();
break;
//.........这里部分代码省略.........
示例3: breadcrumbs
function breadcrumbs($separator = '/')
{
$text = '';
$location = Rewrite::newInstance()->get_location();
$section = Rewrite::newInstance()->get_section();
$separator = ' ' . trim($separator) . ' ';
$page_title = '<a href="' . osc_base_url() . '"><span class="bc_root">' . osc_page_title() . '</span></a>';
switch ($location) {
case 'item':
switch ($section) {
case 'item_add':
break;
default:
$aCategories = Category::newInstance()->toRootTree((string) osc_item_category_id());
$category = '';
if (count($aCategories) == 0) {
break;
}
$deep = 1;
foreach ($aCategories as $aCategory) {
$list[] = '<a href="' . breadcrumbs_category_url($aCategory['pk_i_id']) . '"><span class="bc_level_' . $deep . '">' . $aCategory['s_name'] . '</span></a>';
$deep++;
}
$category = implode($separator, $list) . $separator;
$category = preg_replace('|' . trim($separator) . '\\s*$|', '', $category);
break;
}
switch ($section) {
case 'item_add':
$text = $page_title . $separator . '<span class="bc_last">' . __('Publish an item', 'breadcrumbs');
break;
case 'item_edit':
$text = $page_title . $separator . $category . $separator . '<a href="' . osc_item_url() . '"><span class="bc_item">' . osc_item_title() . '</span></a>' . $separator . '<span class="bc_last">' . __('Edit your item', 'breadcrumbs') . '</span>';
break;
case 'send_friend':
$text = $page_title . $separator . $category . $separator . '<a href="' . osc_item_url() . '"><span class="bc_item">' . osc_item_title() . '</span></a>' . $separator . '<span class="bc_last">' . __('Send to a friend', 'breadcrumbs') . '</span>';
break;
case 'contact':
$text = $page_title . $separator . $category . $separator . '<a href="' . osc_item_url() . '"><span class="bc_item">' . osc_item_title() . '</span></a>' . $separator . '<span class="bc_last">' . __('Contact seller', 'breadcrumbs') . '</span>';
break;
default:
$text = $page_title . $separator . $category . $separator . '<span class="bc_last">' . osc_item_title() . '</span>';
break;
}
break;
case 'page':
$text = $page_title . $separator . '<span class="bc_last">' . osc_static_page_title() . '</span>';
break;
case 'search':
$region = osc_search_region();
$city = osc_search_city();
$pattern = osc_search_pattern();
$category = osc_search_category_id();
$category = count($category) == 1 ? $category[0] : '';
$b_show_all = $pattern == '' && $category == '' && $region == '' && $city == '';
$b_category = $category != '';
$b_pattern = $pattern != '';
$b_region = $region != '';
$b_city = $city != '';
$b_location = $b_region || $b_city;
if ($b_show_all) {
$text = $page_title . $separator . '<span class="bc_last">' . __('Search', 'breadcrumbs') . '</span>';
break;
}
// init
$result = $page_title . $separator;
if ($b_category) {
$list = array();
$aCategories = Category::newInstance()->toRootTree($category);
if (count($aCategories) > 0) {
$deep = 1;
foreach ($aCategories as $single) {
$list[] = '<a href="' . breadcrumbs_category_url($single['pk_i_id']) . '"><span class="bc_level_' . $deep . '">' . $single['s_name'] . '</span></a>';
$deep++;
}
// remove last link
if (!$b_pattern && !$b_location) {
$list[count($list) - 1] = preg_replace('|<a href.*?>(.*?)</a>|', '$01', $list[count($list) - 1]);
}
$result .= implode($separator, $list) . $separator;
}
}
if ($b_location) {
$list = array();
$params = array();
if ($b_category) {
$params['sCategory'] = $category;
}
if ($b_city) {
$aCity = City::newInstance()->findByName($city);
if (count($aCity) == 0) {
$params['sCity'] = $city;
$list[] = '<a href="' . osc_search_url($params) . '"><span class="bc_city">' . $city . '</span></a>';
} else {
$aRegion = Region::newInstance()->findByPrimaryKey($aCity['fk_i_region_id']);
$params['sRegion'] = $aRegion['s_name'];
$list[] = '<a href="' . osc_search_url($params) . '"><span class="bc_region">' . $aRegion['s_name'] . '</span></a>';
$params['sCity'] = $aCity['s_name'];
$list[] = '<a href="' . osc_search_url($params) . '"><span class="bc_city">' . $aCity['s_name'] . '</span></a>';
}
//.........这里部分代码省略.........
示例4: allSeo_keywords_filter
function allSeo_keywords_filter($text)
{
// Listing page
if (osc_is_ad_page() and GetItemKeywords() != '') {
$text = GetItemKeywords();
}
// Static page
if (osc_is_static_page() and GetPageKeywords() != '') {
$text = GetPageKeywords();
}
// Search & Category page
if (osc_is_search_page()) {
$category = osc_search_category_id();
if (isset($category[0]) && GetCatKeywords($category[0]) != '') {
$text = GetCatKeywords($category[0]);
}
$text .= GetCtrKeywords(osc_search_country()) ? ', ' . GetCtrKeywords(osc_search_country()) : '';
$text .= GetRegKeywords(osc_search_region()) ? ', ' . GetRegKeywords(osc_search_region()) : '';
}
if (osc_get_preference('allSeo_keywords', 'plugin-all_in_one') != '') {
if ($text != '') {
$text .= ', ';
}
$text .= osc_get_preference('allSeo_keywords', 'plugin-all_in_one');
}
return $text;
}
示例5: twitter_breadcrumb
function twitter_breadcrumb($separator = '/')
{
$breadcrumb = array();
$text = '';
$location = Rewrite::newInstance()->get_location();
$section = Rewrite::newInstance()->get_section();
$separator = '<span class="divider">' . trim($separator) . '</span>';
$page_title = '<li><a href="' . osc_base_url() . '">' . osc_page_title() . '</a>' . $separator . '</li>';
switch ($location) {
case 'item':
switch ($section) {
case 'item_add':
break;
default:
$aCategories = Category::newInstance()->toRootTree((string) osc_item_category_id());
$category = '';
if (count($aCategories) == 0) {
break;
}
foreach ($aCategories as $aCategory) {
$list[] = '<li><a href="' . osc_item_category_url($aCategory['pk_i_id']) . '">' . $aCategory['s_name'] . '</a>' . $separator . '</li>';
}
$category = implode('', $list);
break;
}
switch ($section) {
case 'item_add':
$text = $page_title . '<li>' . __('Publish an item', 'twitter') . '</li>';
break;
case 'item_edit':
$text = $page_title . '<li><a href="' . osc_item_url() . '">' . osc_item_title() . '</a>' . $separator . '</li><li>' . __('Edit your item', 'twitter') . '</li>';
break;
case 'send_friend':
$text = $page_title . $category . '<li><a href="' . osc_item_url() . '">' . osc_item_title() . '</a>' . $separator . '</li><li>' . __('Send to a friend', 'twitter') . '</li>';
break;
case 'contact':
$text = $page_title . $category . '<li><a href="' . osc_item_url() . '">' . osc_item_title() . '</a>' . $separator . '<li><li>' . __('Contact seller', 'twitter') . '</li>';
break;
default:
$text = $page_title . $category . '<li>' . osc_item_title() . '</li>';
break;
}
break;
case 'page':
$text = $page_title . '<li>' . osc_static_page_title() . '</li>';
break;
case 'search':
$region = Params::getParam('sRegion');
$city = Params::getParam('sCity');
$pattern = Params::getParam('sPattern');
$category = osc_search_category_id();
$category = count($category) == 1 ? $category[0] : '';
$b_show_all = $pattern == '' && $category == '' && $region == '' && $city == '';
$b_category = $category != '';
$b_pattern = $pattern != '';
$b_region = $region != '';
$b_city = $city != '';
$b_location = $b_region || $b_city;
if ($b_show_all) {
$text = $page_title . '<li>' . __('Search', 'twitter') . '</li>';
break;
}
// init
$result = $page_title;
if ($b_category) {
$list = array();
$aCategories = Category::newInstance()->toRootTree($category);
if (count($aCategories) > 0) {
$deep = 1;
foreach ($aCategories as $single) {
$list[] = '<li><a href="' . osc_item_category_url($single['pk_i_id']) . '">' . $single['s_name'] . '</a>' . $separator . '</li>';
$deep++;
}
// remove last link
if (!$b_pattern && !$b_location) {
$list[count($list) - 1] = preg_replace('|<li><a href.*?>(.*?)</a>.*?</li>|', '$01', $list[count($list) - 1]);
}
$result .= implode('', $list);
}
}
if ($b_location) {
$list = array();
$params = array();
if ($b_category) {
$params['sCategory'] = $category;
}
if ($b_city) {
$aCity = City::newInstance()->findByName($city);
if (count($aCity) == 0) {
$params['sCity'] = $city;
$list[] = '<li><a href="' . osc_search_url($params) . '">' . $city . '</a>' . $separator . '</li>';
} else {
$aRegion = Region::newInstance()->findByPrimaryKey($aCity['fk_i_region_id']);
$params['sRegion'] = $aRegion['s_name'];
$list[] = '<li><a href="' . osc_search_url($params) . '">' . $aRegion['s_name'] . '</a>' . $separator . '</li>';
$params['sCity'] = $aCity['s_name'];
$list[] = '<li><a href="' . osc_search_url($params) . '">' . $aCity['s_name'] . '</a>' . $separator . '</li>';
}
if (!$b_pattern) {
$list[count($list) - 1] = preg_replace('|<li><a href.*?>(.*?)</a>.*?</li>|', '$01', $list[count($list) - 1]);
//.........这里部分代码省略.........
示例6: seo_meta_title_filter
function seo_meta_title_filter()
{
$location = Rewrite::newInstance()->get_location();
$section = Rewrite::newInstance()->get_section();
$text = '';
switch ($location) {
case 'item':
switch ($section) {
case 'item_add':
$text = __('Publish a listing') . seo_page_title_separator() . seo_page_title();
break;
case 'item_edit':
$text = __('Edit your listing') . seo_page_title_separator() . seo_page_title();
break;
case 'send_friend':
$text = __('Send to a friend') . seo_page_title_separator() . osc_item_title() . seo_page_title_separator() . seo_page_title();
break;
case 'contact':
$text = __('Contact seller') . seo_page_title_separator() . osc_item_title();
break;
default:
$detail = seo_get_row(osc_item_id());
if (empty($detail['seo_item_meta_title'])) {
$text = osc_item_title() . ' ' . osc_item_city() . seo_page_title_separator() . seo_page_title();
} else {
$text = $detail['seo_item_meta_title'];
$format = json_decode($detail['seo_item_meta_title_format']);
if (!empty($format)) {
foreach ($format as $value) {
if (!empty($value)) {
if (seo_format_value($value) != '') {
$text .= ' ' . seo_format_value($value);
}
}
}
} else {
$text .= ' ';
}
$text .= seo_page_title_separator() . seo_page_title();
}
break;
}
break;
case 'page':
if (!osc_get_preference('seo_title_page_' . osc_static_page_id(), 'seo_plugin')) {
$text = osc_static_page_title() . seo_page_title_separator() . seo_page_title();
} else {
$text = osc_get_preference('seo_title_page_' . osc_static_page_id(), 'seo_plugin') . seo_page_title_separator() . seo_page_title();
}
break;
case 'error':
$text = __('Error') . seo_page_title_separator() . seo_page_title();
break;
case 'search':
$region = osc_search_region();
$city = osc_search_city();
$pattern = osc_search_pattern();
$category = osc_search_category_id();
$s_page = '';
$i_page = Params::getParam('iPage');
if ($i_page != '' && $i_page > 1) {
$s_page = seo_page_title_separator() . __('page') . ' ' . $i_page;
}
$b_show_all = $region == '' && $city == '' && $pattern == '' && empty($category);
$b_category = !empty($category);
$b_pattern = $pattern != '';
$b_city = $city != '';
$b_region = $region != '';
if ($b_show_all) {
$text = __('Show all listings') . seo_page_title_separator() . $s_page . seo_page_title();
}
$result = '';
if ($b_pattern) {
$result .= $pattern . ' » ';
}
if ($b_category && is_array($category) && count($category) > 0) {
$cat = Category::newInstance()->findByPrimaryKey($category[0]);
if ($cat) {
$result .= $cat['s_name'] . ' ';
}
}
if ($b_city) {
$result .= $city . ' » ';
} else {
if ($b_region) {
$result .= $region . ' » ';
}
}
$result = preg_replace('|\\s?»\\s$|', '', $result);
if ($result == '') {
$result = __('Search results');
}
$text = '';
if (osc_get_preference('seo_title_keyword') != '') {
$text .= osc_get_preference('seo_title_keyword') . ' ' . seo_page_title_separator() . seo_page_title();
}
$text .= $result . $s_page . seo_page_title_separator() . seo_page_title();
break;
case 'login':
switch ($section) {
//.........这里部分代码省略.........
示例7: osc_footer_link_url
function osc_footer_link_url($f = null)
{
if ($f == null) {
if (View::newInstance()->_exists('footer_link')) {
$f = View::newInstance()->_get('footer_link');
} else {
return '';
}
} else {
View::newInstance()->_exportVariableToView('footer_link', $f);
}
$params = array();
$tmp = osc_search_category_id();
if (!empty($tmp)) {
$params['sCategory'] = $f['fk_i_category_id'];
}
if (osc_search_region() == '') {
$params['sRegion'] = $f['fk_i_region_id'];
} else {
$params['sCity'] = $f['fk_i_city_id'];
}
return osc_search_url($params);
}
示例8: meta_title
function meta_title()
{
$location = Rewrite::newInstance()->get_location();
$section = Rewrite::newInstance()->get_section();
switch ($location) {
case 'item':
switch ($section) {
case 'send_friend':
$text = __('Send to a friend', 'seeker') . ' - ' . osc_item_title() . ' - ' . osc_page_title();
break;
case 'contact':
$text = __('Apply for thhis job', 'seeker') . ' - ' . osc_item_title() . ' - ' . osc_page_title();
break;
default:
$text = osc_item_title() . ' - ' . osc_page_title();
break;
}
break;
case 'page':
$text = osc_static_page_title() . ' - ' . osc_page_title();
break;
case 'error':
$text = __('Error', 'seeker') . ' - ' . osc_page_title();
break;
case 'search':
$region = Params::getParam('sRegion');
$city = Params::getParam('sCity');
$pattern = Params::getParam('sPattern');
$category = osc_search_category_id();
$category = count($category) == 1 ? $category[0] : '';
$s_page = '';
$i_page = Params::getParam('iPage');
if ($i_page != '' && $i_page > 0) {
$s_page = __('page', 'seeker') . ' ' . ($i_page + 1) . ' - ';
}
$b_show_all = $region == '' && $city == '' & $pattern == '' && $category == '';
$b_category = $category != '';
$b_pattern = $pattern != '';
$b_city = $city != '';
$b_region = $region != '';
if ($b_show_all) {
$text = __('Show all items', 'seeker') . ' - ' . $s_page . osc_page_title();
}
$result = '';
if ($b_pattern) {
$result .= $pattern . ' » ';
}
if ($b_category) {
$list = array();
$aCategories = Category::newInstance()->toRootTree($category);
if (count($aCategories) > 0) {
foreach ($aCategories as $single) {
$list[] = $single['s_name'];
}
$result .= implode(' » ', $list) . ' » ';
}
}
if ($b_city) {
$result .= $city . ' » ';
}
if ($b_region) {
$result .= $region . ' » ';
}
$result = preg_replace('|\\s?»\\s$|', '', $result);
if ($result == '') {
$result = __('Search', 'seeker');
}
$text = $result . ' - ' . $s_page . osc_page_title();
break;
case 'contact':
$text = __('Upload your CV', 'seeker') . ' - ' . osc_page_title();
break;
default:
$text = osc_page_title();
break;
}
$text = str_replace("\n", '', $text);
$text = trim($text);
$text = osc_esc_html($text);
return $text;
}
示例9: osc_footer_link_title
function osc_footer_link_title()
{
$f = View::newInstance()->_get('footer_link');
$text = '';
if (osc_get_preference('seo_title_keyword') != '') {
$text .= osc_get_preference('seo_title_keyword') . ' ';
}
if (osc_search_category_id()) {
$cat = osc_get_category('id', $f['fk_i_category_id']);
$text .= strtolower($cat['s_name']) . ' ';
}
if (osc_search_region() == '') {
$text .= $f['s_region'];
} else {
$text .= $f['s_city'];
}
$text = trim($text);
return ucfirst($text);
}
示例10: init
public function init()
{
if (in_array($this->getLocation(), array('item', 'page', 'search', 'login', 'register', 'user', 'contact'))) {
$l = array('url' => osc_base_url(), 'title' => osc_page_title());
$this->addLevel($l);
}
switch ($this->getLocation()) {
case 'item':
if ($this->getSection() == 'item_add') {
$l = array('title' => $this->title['item_add']);
$this->addLevel($l);
break;
}
$aCategory = osc_get_category('id', osc_item_category_id());
// remove
View::newInstance()->_erase('categories');
View::newInstance()->_erase('subcategories');
View::newInstance()->_exportVariableToView('category', $aCategory);
$l = array('url' => osc_search_category_url(), 'title' => osc_category_name());
$this->addLevel($l);
switch ($this->getSection()) {
case 'item_edit':
$l = array('url' => osc_item_url(), 'title' => osc_item_title());
$this->addLevel($l);
$l = array('title' => $this->title['item_edit']);
$this->addLevel($l);
break;
case 'send_friend':
$l = array('url' => osc_item_url(), 'title' => osc_item_title());
$this->addLevel($l);
$l = array('title' => $this->title['item_send_friend']);
$this->addLevel($l);
break;
case 'contact':
$l = array('url' => osc_item_url(), 'title' => osc_item_title());
$this->addLevel($l);
$l = array('title' => $this->title['item_contact']);
$this->addLevel($l);
break;
case '':
$l = array('title' => osc_item_title());
$this->addLevel($l);
break;
}
break;
case 'search':
$region = osc_search_region();
$city = osc_search_city();
$pattern = osc_search_pattern();
$category = osc_search_category_id();
$category = count($category) == 1 ? $category[0] : '';
$b_show_all = $pattern == '' && $category == '' && $region == '' && $city == '';
$b_category = $category != '';
$b_pattern = $pattern != '';
$b_region = $region != '';
$b_city = $city != '';
$b_location = $b_region || $b_city;
// show all
if ($b_show_all) {
$l = array('title' => $this->title['search']);
$this->addLevel($l);
break;
}
// category
if ($b_category) {
$aCategories = Category::newInstance()->toRootTree($category);
foreach ($aCategories as $c) {
View::newInstance()->_erase('categories');
View::newInstance()->_erase('subcategories');
View::newInstance()->_exportVariableToView('category', $c);
$l = array('url' => osc_search_category_url(), 'title' => osc_category_name());
$this->addLevel($l);
}
}
// location
if ($b_location) {
$params = array();
if ($b_category) {
$params['sCategory'] = $category;
}
if ($b_city) {
//print_r("~~~~~~~~~~~~~~~~~~~".$city."~~~~~~~~~~~~~~~~~~~~");
$aCity = City::newInstance()->findByName($city);
if (count($aCity) == 0) {
$params['sCity'] = $city;
$l = array('url' => osc_search_url($params), 'title' => $city);
$this->addLevel($l);
} else {
$aRegion = Region::newInstance()->findByPrimaryKey($aCity['fk_i_region_id']);
$params['sRegion'] = $aRegion['s_name'];
$l = array('url' => osc_search_url($params), 'title' => $aRegion['s_name']);
$this->addLevel($l);
$params['sCity'] = $aCity['s_name'];
$l = array('url' => osc_search_url($params), 'title' => $aCity['s_name']);
$this->addLevel($l);
}
} else {
if ($b_region) {
$params['sRegion'] = $region;
$l = array('url' => osc_search_url($params), 'title' => $region);
//.........这里部分代码省略.........
示例11: pop_search_filters
//.........这里部分代码省略.........
<div>
<input class="input-text" type="text" id="city" name="sCity" value="<?php
echo osc_esc_html(osc_search_city());
?>
" />
<input type="hidden" id="cityId" name="cityId" />
</div>
</fieldset>
<?php
if (osc_images_enabled_at_items()) {
?>
<fieldset class="form-group">
<div class="checkbox">
<input type="checkbox" name="bPic" id="withPicture" value="1" <?php
echo osc_search_has_pic() ? 'checked' : '';
?>
/>
<label for="withPicture">
<?php
_e('Listings with pictures', 'pop');
?>
</label>
</div>
</fieldset>
<?php
}
?>
<?php
if (osc_price_enabled_at_items()) {
?>
<fieldset class="form-group">
<div class="price-slice">
<h6>
<?php
_e('Price', 'pop');
?>
</h6>
<ul class="row">
<li class="col-md-6"> <span>
<?php
_e('Min', 'pop');
?>
:</span>
<input class="input-text" type="text" id="priceMin" name="sPriceMin" value="<?php
echo osc_esc_html(osc_search_price_min());
?>
" size="6" maxlength="6" />
</li>
<li class="col-md-6"> <span>
<?php
_e('Max', 'pop');
?>
:</span>
<input class="input-text" type="text" id="priceMax" name="sPriceMax" value="<?php
echo osc_esc_html(osc_search_price_max());
?>
" size="6" maxlength="6" />
</li>
</ul>
</div>
</fieldset>
<?php
}
?>
<div class="form-group plugin-hooks">
<?php
if (osc_search_category_id()) {
osc_run_hook('search_form', osc_search_category_id());
} else {
osc_run_hook('search_form');
}
?>
</div>
<?php
$aCategories = osc_search_category();
foreach ($aCategories as $cat_id) {
?>
<input type="hidden" name="sCategory[]" value="<?php
echo osc_esc_html($cat_id);
?>
" />
<?php
}
?>
<div class="actions">
<button type="submit" class="btn btn-primary">
<?php
_e('Apply', 'pop');
?>
</button>
<a class="clear" onclick="formReset($('#filterForm'))">
<i class="fa fa-times"></i><?php
echo _e('Clear filters', 'pop');
?>
</a>
</div>
</form>
<?php
}
示例12: pop_add_body_class
}
$listClass = 'item';
pop_add_body_class('search');
osc_current_web_theme_path('header.php');
?>
<?php
View::newInstance()->_exportVariableToView("listType", 'items');
View::newInstance()->_exportVariableToView("listClass", $listClass);
$category = __get("category");
if (!isset($category['pk_i_id'])) {
$category['pk_i_id'] = null;
}
$current_category_id = '';
$current_category_parent = '';
$_current_category_id = osc_search_category_id();
if (count($_current_category_id) > 0) {
$current_category_id = $_current_category_id[0];
$_current_category = Category::newInstance()->findByPrimaryKey($current_category_id);
}
?>
<div class="container">
<div class="search-sidebar hidden-mobile">
<div class="box category">
<h4> <?php
_e('Categories', 'pop');
?>
</h4>
<div id="ssCategory" class="collapse in">
<?php