src/Page/Page.php
public function renderSettings($setting)
    {
        // Set the setting value if any.
        $value = get_option($setting->getName(), null);

        if (! is_null($value)) {
            $setting->setValue($value);
        }

        $view = sprintf('%s.%s', $this->ui()->getTheme(), $setting->getView(false));

        echo $this->ui()->factory()->make($view)->with([
            '__field' => $setting,
            '__page' => $this
        ])->render();
    }
public function renderSettings($setting)
    {
        // Set the setting value if any.
        $value = get_option($setting->getName(), null);

        if (! is_null($value)) {
            $setting->setValue($value);
        }

        $view = sprintf('%s.%s', $this->ui()->getTheme(), $setting->getView(false));

        echo $this->ui()->factory()->make($view)->with([
            '__field' => $setting,
            '__page' => $this
        ])->render();
    }
public function renderSettings ( $ setting ) { // Set the setting value if any. $ value = get_option ( $ setting -> getName ( ) , null ) ; if ( ! is_null ( $ value ) ) { $ setting -> setValue ( $ value ) ; } $ view = sprintf ( '%s.%s' , $ this -> ui ( ) -> getTheme ( ) , $ setting -> getView ( false ) ) ; echo $ this -> ui ( ) -> factory ( ) -> make ( $ view ) -> with ( [ '__field' => $ setting , '__page' => $ this ] ) -> render ( ) ; }
Output the setting HTML.

@param FieldTypeInterface $setting
Output the setting HTML .