<?php
if ( ! defined( 'ABSPATH' ) ) { exit; }
class piotnetgrid_Facet extends Base_Widget_piotnetgrid {
public $post_types;
public function __construct() {
parent::__construct();
$this->post_types = get_post_types();
}
public function get_type() {
return 'facet';
}
public function get_class_name() {
return 'piotnetgrid_Facet';
}
public function get_title() {
return 'Facet';
}
public function get_icon() {
return [
'type' => 'image',
'value' => plugin_dir_url( __FILE__ ) . '../../assets/icons/i-facet.svg',
];
}
public function get_categories() {
return [ 'piotnetgrid' ];
}
public function get_keywords() {
return [ 'facet' ];
}
public function register_controls() {
$this->start_tab( 'settings', 'Settings' );
$this->start_section( 'text_settings_section', 'Settings' );
$this->add_setting_controls();
$this->start_section('scroll_to_top_settings_section', 'Scroll To Top',
[
'conditions' => [
'terms' => [
[
'name' => 'facet_action',
'operator' => 'in',
'value' => ['load'],
],
[
'name' => 'loading_type',
'operator' => 'in',
'value' => ['pagination'],
],
],
]
]
);
$this->add_scroll_to_top_settings();
$this->start_section('show_more_and_show_less_section', 'Show more/Show less Options',
[
'conditions' => [
'terms' => [
[
'name' => 'facet_action',
'operator' => 'in',
'value' => ['filter'],
],
[
'name' => 'filter_type',
'operator' => 'in',
'value' => ['checkboxes','radio'],
],
],
]
]
);
$this->add_show_more_or_show_less_btn_controls();
$this->start_tab( 'style', 'Style' );
$this->start_section(
'facet_label_styles_section',
'Facet Label',
[
'conditions' => [
'terms' => [
[
'name' => 'facet_action',
'operator' => 'in',
'value' => ['filter','sort'],
]
],
],
]
);
$this->add_label_style_controls();
$this->start_section(
'facet_field_styles_section',
'Facet Field',
[
'conditions' => [
'terms' => [
[
'name' => 'facet_action',
'operator' => 'in',
'value' => ['filter','sort'],
],
[
'name' => 'filter_type',
'operator' => '!in',
'value' => ['slider','checkboxes', 'radio', 'buttons','color-picker','image-select','az'],
],
],
]
]
);
$this->add_field_style_controls();
$this->start_section(
'facet_slider_styles_section',
'Facet Slider',
[
'conditions' => [
'terms' => [
[
'name' => 'facet_action',
'operator' => 'in',
'value' => ['filter'],
],
[
'name' => 'filter_type',
'operator' => 'in',
'value' => ['slider'],
],
],
]
]
);
$this->add_slider_style_controls();
$this->start_section(
'facet_pagination_styles_section',
'Facet Pagination',
[
'conditions' => [
'terms' => [
[
'name' => 'facet_action',
'operator' => 'in',
'value' => ['load'],
],
[
'name' => 'loading_type',
'operator' => 'in',
'value' => ['pagination'],
],
],
]
]
);
$this->add_pagination_style_controls();
$this->start_section(
'facet_az_styles_section',
'Facet A-Z',
[
'conditions' => [
'terms' => [
[
'name' => 'facet_action',
'operator' => 'in',
'value' => ['filter'],
],
[
'name' => 'filter_type',
'operator' => 'in',
'value' => ['az'],
],
],
]
]
);
$this->add_a_z_style_controls();
$this->start_section(
'facet_load_more_styles_section',
'Facet Load More',
[
'conditions' => [
'terms' => [
[
'name' => 'facet_action',
'operator' => 'in',
'value' => ['load'],
],
[
'name' => 'loading_type',
'operator' => 'in',
'value' => ['load_more'],
],
],
]
]
);
$this->add_load_more_style_controls();
$this->start_section(
'result_counts_styles_section',
'Result Counts',
[
'conditions' => [
'terms' => [
[
'name' => 'facet_action',
'operator' => 'in',
'value' => ['load'],
],
[
'name' => 'loading_type',
'operator' => 'in',
'value' => ['result_counts'],
],
],
]
]
);
$this->add_result_counts_style_controls();
$this->start_section(
'facet_checkbox_styles_section',
'Facet Checkboxes / Radio',
[
'conditions' => [
'terms' => [
[
'name' => 'facet_action',
'operator' => 'in',
'value' => ['filter'],
],
[
'name' => 'filter_type',
'operator' => 'in',
'value' => ['checkboxes','radio'],
],
],
]
]
);
$this->add_checkbox_style_controls();
$this->start_section(
'facet_show_more_and_show_less_styles_section',
'Show more/Show less Button',
[
'conditions' => [
'terms' => [
[
'name' => 'facet_action',
'operator' => 'in',
'value' => ['filter'],
],
[
'name' => 'filter_type',
'operator' => 'in',
'value' => ['checkboxes','radio'],
],
],
]
]
);
$this->add_show_more_and_show_less_style_controls();
$this->start_section(
'facet_checkbox_advanced_style_section',
'Facet Buttons / Image Select',
[
'conditions' => [
'terms' => [
[
'name' => 'facet_action',
'operator' => 'in',
'value' => ['filter'],
],
[
'name' => 'filter_type',
'operator' => 'in',
'value' => ['buttons','image-select'],
],
],
]
]
);
$this->add_checkbox_advanced_style_controls();
$this->start_section(
'facet_color_picker_style_section',
'Facet Color Picker',
[
'conditions' => [
'terms' => [
[
'name' => 'facet_action',
'operator' => 'in',
'value' => ['filter'],
],
[
'name' => 'filter_type',
'operator' => 'in',
'value' => ['color-picker'],
],
],
]
]
);
$this->add_color_picker_style_controls();
$this->add_advanced_tab();
return $this->structure;
}
private function add_scroll_to_top_settings() {
$this->add_control(
'facet_scroll_to_top',
[
'label' => __( 'Enable', 'piotnetgrid' ),
'type' => 'switch',
'default' => '',
'label_on' => 'Ye
没有合适的资源?快使用搜索试试~ 我知道了~
【WordPress插件】2022年最新版完整功能demo+插件1.1.4 (NULLED).zip
共370个文件
php:98个
js:90个
svg:57个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 114 浏览量
2022-04-22
06:57:54
上传
评论
收藏 3.07MB ZIP 举报
温馨提示
"【WordPress插件】2022年最新版完整功能demo+插件1.1.4 (NULLED) Piotnet Grid Builder piotnet网格建设者" ---------- 泰森云每天更新发布最新WordPress主题、HTML主题、WordPress插件、shopify主题、opencart主题、PHP项目源码、安卓项目源码、ios项目源码,更有超10000个资源可供选择,如有需要请站内联系。
资源推荐
资源详情
资源评论
收起资源包目录
【WordPress插件】2022年最新版完整功能demo+插件1.1.4 (NULLED).zip (370个子文件)
admin.min.css 496KB
admin.css 376KB
fontawesome.css 57KB
fontawesome.min.css 57KB
frontend.min.css 38KB
frontend.css 33KB
flatpickr.css 19KB
animate.css 17KB
jquery-ui.css 16KB
photoswipe.css 16KB
flatpickr.min.css 14KB
selectize.css 12KB
admin-slider.css 11KB
photoswipe.min.css 9KB
selectize.min.css 8KB
admin-settings-page.css 5KB
animate.min.css 5KB
admin-piotnetforms-editor.css 4KB
slick.css 4KB
slick.min.css 4KB
frontend-button.css 3KB
admin-slider2.css 3KB
admin-perfect-scrollbar.css 3KB
frontend-icon-list.css 1KB
admin-controls-tabs.css 678B
editor-elementor.css 416B
frontend-forms.css 0B
fa-solid-900.eot 198KB
fa-brands-400.eot 130KB
fa-regular-400.eot 34KB
slick.eot 2KB
icomoon.eot 2KB
piotnet.eot 1KB
ajax-loader.gif 4KB
preloader.gif 866B
image.jpg 85KB
image.jpg 78KB
image.jpg 74KB
image.jpg 72KB
image.jpg 54KB
image.jpg 45KB
image.jpg 40KB
image.jpg 38KB
image.jpg 37KB
image.jpg 34KB
image.jpg 27KB
image.jpg 26KB
image.jpg 25KB
image.jpg 24KB
image.jpg 24KB
image.jpg 24KB
image.jpg 22KB
image.jpg 20KB
image.jpg 18KB
image.jpg 18KB
image.jpg 17KB
image.jpg 11KB
image.jpg 8KB
image.jpg 6KB
image.jpg 4KB
image.jpg 2KB
editor.min.js 442KB
editor.js 175KB
admin.min.js 96KB
frontend.min.js 77KB
preview.min.js 52KB
frontend.js 52KB
flatpickr.min.js 49KB
flatpickr.min.js 49KB
flatpickr.js 49KB
slick.js 42KB
photoswipe.js 41KB
photoswipe.js 41KB
jquery-ui.js 30KB
advanced.js 28KB
lazyload.js 25KB
nouislider.js 25KB
advanced.min.js 20KB
setting-generator.js 13KB
masonry.js 10KB
rslider.js 10KB
css-generator.js 8KB
piotnetgrid.js 7KB
admin.js 4KB
facet.js 4KB
template.js 4KB
grid.js 4KB
cy.js 2KB
ka.js 2KB
km.js 2KB
th.js 2KB
be.js 2KB
ru.js 2KB
gr.js 2KB
kz.js 2KB
cat.js 2KB
my.js 2KB
bn.js 2KB
si.js 2KB
mn.js 2KB
共 370 条
- 1
- 2
- 3
- 4
资源评论
Lee达森
- 粉丝: 969
- 资源: 1万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功