1: <?php
2: /**
3: * SHORTCODE :: Listing [listing] class
4: *
5: * @package EPL
6: * @subpackage Classes/Listing
7: * @copyright Copyright (c) 2026, Merv Barrett
8: * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
9: * @since 3.6
10: */
11:
12: // Exit if accessed directly.
13: if ( ! defined( 'ABSPATH' ) ) {
14: exit;
15: }
16:
17: /**
18: * [listing] on the [listing_advanced] engine
19: *
20: * Same defaults, args filter (epl_shortcode_listing_args), sorting context and template
21: * as [listing] always had, plus every [listing_advanced] option: feature, feature_id,
22: * location_id, open_house, auction, commercial_listing_type, post__in, post__not_in,
23: * orderby_clause and wrap_template.
24: *
25: * @since 3.6
26: */
27: class EPL_Shortcode_Listing extends EPL_Advanced_Shortcode_Listing {
28:
29: /**
30: * Shortcode name.
31: *
32: * @since 3.6
33: * @var string $shortcode Shortcode name.
34: */
35: public $shortcode = 'listing';
36:
37: /**
38: * Default options: the [listing_advanced] ones, without the extra wrapper class
39: * [listing] never had.
40: *
41: * @since 3.6
42: *
43: * @return array
44: */
45: public function get_default_args() {
46: parent::get_default_args();
47: $this->default_args['class'] = '';
48:
49: return $this->default_args;
50: }
51: }
52: