PluginProbe
WP Directory Kit / trunk
WP Directory Kit vtrunk
1.5.6 1.5.5 1.5.4 1.5.3 trunk 1.1.0 1.1.6 1.1.8 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 1.2.9 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 1.3.6 1.3.8 1.4.0 1.4.1 All 35 releases
wpdirectorykit / application / controllers / Wdk_aisearch.php

Wdk_aisearch.php in WP Directory Kit trunk, at application/controllers/Wdk_aisearch.php

27 lines 663 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly;
3
4 class Wdk_aisearch extends Winter_MVC_Controller {
5
6 public function __construct(){
7 parent::__construct();
8 }
9
10 public function index()
11 {
12 $this->load->model('field_m');
13
14 $this->data['fields'] = $this->field_m->get();
15 $this->data['selected_fields'] = [];
16
17 $this->data['selected_fields'] = get_option('wdk_ai_search_fields', []);
18
19 if (!is_array($this->data['selected_fields'])) {
20 $this->data['selected_fields'] = [];
21 }
22
23 $this->load->view('wdk_aisearch/aisearch_edit', $this->data);
24 }
25
26 }
27