controls['template'] = array( 'type' => 'select', 'label' => esc_html__( 'Select Template', 'ultimate-post' ), 'options' => ultimate_post()->get_all_lists( 'ultp_templates' ), 'clearable' => false, 'default' => '', 'pasteStyles' => true, 'inline' => true, ); $this->controls['separator'] = array( 'type' => 'separator', ); $this->controls['help'] = array( 'type' => 'info', 'content' => 'Pick a Template from your saved ones. Or create a template from: Dashboard > PostX > Saved Templates', ); } // Render element HTML public function render() { $id = $this->settings['template']; $root_classes[] = 'bricks-postx-wrapper'; $this->set_attribute( '_root', 'class', $root_classes ); $current_url = isset( $_SERVER['REQUEST_URI'] ) ? esc_url( $_SERVER['REQUEST_URI'] ) : ''; //phpcs:ignore // Render element HTML echo "
render_attributes( '_root' )}>"; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Bricks API attribute string; the only attribute this element sets is the fixed class bricks-postx-wrapper. if ( $id ) { echo ultimate_post()->build_css_for_inline_print( $id, true ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped --