name = esc_html__( 'Property Actions', 'propertyhive' ); $this->icon = '|'; $this->main_css_element = '%%order_class%%'; } public function get_fields() { $fields = array( 'display' => array( 'label' => __( 'Display As', 'propertyhive' ), 'type' => 'select', 'options' => [ 'list' => __( 'List', 'propertyhive' ), 'buttons' => __( 'Buttons', 'propertyhive' ), ], 'toggle_slug' => 'main_content', ), ); return $fields; } public function render( $attrs, $content, $render_slug ) { $post_id = get_the_ID(); $property = new PH_Property($post_id); if ( !isset($property->id) ) { return; } ob_start(); if ( isset($this->props['display']) && $this->props['display'] == 'buttons' ) { echo ''; } propertyhive_template_single_actions(); return $this->_render_module_wrapper( ob_get_clean(), $render_slug ); } }