featured-color.php
3 years ago
icon-select.php
3 years ago
media-select.php
3 years ago
query.php
6 years ago
visual-select.php
3 years ago
query.php
28 lines
| 1 | <?php |
| 2 | namespace Auxin\Plugin\CoreElements\Elementor\Controls; |
| 3 | |
| 4 | use Elementor\Control_Select2; |
| 5 | |
| 6 | if ( ! defined( 'ABSPATH' ) ) { |
| 7 | exit; // Exit if accessed directly |
| 8 | } |
| 9 | |
| 10 | class Query extends Control_Select2 { |
| 11 | |
| 12 | public function get_type() { |
| 13 | return 'aux-query'; |
| 14 | } |
| 15 | |
| 16 | /** |
| 17 | * 'query' can be used for passing query args in the structure and format used by WP_Query. |
| 18 | * @return array |
| 19 | */ |
| 20 | protected function get_default_settings() { |
| 21 | return array_merge( |
| 22 | parent::get_default_settings(), [ |
| 23 | 'query' => '', |
| 24 | ] |
| 25 | ); |
| 26 | } |
| 27 | } |
| 28 |