Create the snippets content

This is a stub function either override getHtmlOutput() or override render()

@param \Zend_View_Abstract $view Just in case it is needed here
@return \MUtil_Html_HtmlInterface Something that can be rendered
16111
public function getHtmlOutput(\Zend_View_Abstract $view)
    {
        $htmlDiv = \MUtil_Html::div();

        $title = $this->getTitle();
        if ($title) {
            $htmlDiv->h3($title, array('class' => 'title'));
        }

        $form = parent::getHtmlOutput($view);

        $htmlDiv[] = $form;

        return $htmlDiv;
    }
937165
public function getHtmlOutput(\Zend_View_Abstract $view)
    {
        if ($this->request->isPost()) {
            $this->export->render(
                    $this->getRespondentIds(),
                    $this->request->getParam('group'),
                    $this->request->getParam('format')
                    );
        } else {
            $seq = new \MUtil_Html_Sequence();

            if ($this->formTitle) {
                $seq->h2($this->formTitle);
            }

            $form = $this->export->getForm($this->hideGroup);
            $div  = $seq->div(array('id' => 'mainform'), $form);
            $table = new \MUtil_Html_TableElement(array('class' => 'formTable'));
            $table->setAsFormLayout($form);

            $form->populate($this->request->getParams());

            return $seq;
        }
    }
1117226
public function getHtmlOutput(\Zend_View_Abstract $view)
    {
        $html = $this->getHtmlSequence();
        if ($this->trackName) {
            $html->h3(sprintf($this->_('Surveys in %s track'), $this->trackName));
        }

        $trackRepeater = $this->getRepeater($this->trackId);
        $table = $html->div(array('class' => 'table-container'))->table($trackRepeater, array('class' => 'browser table'));

        if ($link = $this->findMenuItem('project-tracks', 'questions')) {
            $table->tr()->onclick = array('location.href=\'', $link->toHRefAttribute($trackRepeater), '\';');
            $table->addColumn($link->toActionLinkLower($trackRepeater));
        }

        $surveyName[] = $trackRepeater->gsu_survey_name;
        $surveyName[] = \MUtil_Lazy::iif($trackRepeater->gro_icon_file, \MUtil_Html::create('img', array('src' => $trackRepeater->gro_icon_file, 'class' => 'icon')));

        $table->addColumn($surveyName,                           $this->_('Survey'));
        $table->addColumn($trackRepeater->gro_round_description, $this->_('Details'));
        $table->addColumn($trackRepeater->ggp_name,              $this->_('By'));
        $table->addColumn($trackRepeater->gsu_survey_description->call(array(__CLASS__, 'oneLine')),
                                                                 $this->_('Description'));
        return $html;
    }
1272626
public function getHtmlOutput(\Zend_View_Abstract $view)
    {
        $seq = $this->getHtmlSequence();

        $seq->h2($this->_('Checks'));

        $ul = $seq->ul();
        $ul->li($this->_('Executes respondent change event for all active respondents.'));

        $seq->pInfo($this->_(
                'Run this code when the respondent change event was changed or e.g. when a new "default" track was created.'
                ));

        return $seq;
    }
56057
public function renderViewElement(View $view): ?string
    {
        if (empty($this->viewElement)) {
            return null;
        }

        return call_user_func_array([$view, 'element'], $this->viewElement);
    }
492540
public function render($view, $params = array(), $context = null)
    {
        if ($context === null) {
            $context = $this->context;
        }

        return parent::render($view, $params, $context);
    }
1190254
public function render($data = [], $view = null)
    {
        $view = $view ? : MenuManager::PLUGIN_NAME . '::master_menu';

        return $this->manager->getView()->make($view, ['menu' => $this], $data)
            ->render();
    }
1272830
public function render(string $view, array $templateVars = []): string
    {
        return $this->renderer->render($view, $templateVars);
    }
532290
public function getHtmlOutput(\Zend_View_Abstract $view) {
        $form = parent::getHtmlOutput($view);

        $html = \MUtil_Html::create()->div(['id' => 'survey-compare']);

        $html->append($form);

        return $html;
    }
1090638
public function render($view)
    {
        extract($this->attributes);

        ob_start();
        require $view;

        return $this->minify === true
            ? $this->min(ob_get_clean())
            : ob_get_clean();
    }
1139493
public function getHtmlOutput(\Zend_View_Abstract $view)
    {
        $html = $this->getHtmlSequence();

        $html->h3($this->_('Choose an organization'));

        $user = $this->loader->getCurrentUser();
        $url[$this->request->getControllerKey()] = 'organization';
        $url[$this->request->getActionKey()]     = 'change-ui';

        if ($orgs = $user->getRespondentOrganizations()) {
            $html->pInfo($this->_('This organization cannot have any respondents, please choose one that does:'));

            foreach ($orgs as $orgId => $name) {
                $url['org'] = $orgId;

                $html->pInfo()->actionLink($url, $name)->appendAttrib('class', 'larger');
            }
        } else {
            $html->pInfo($this->_('This organization cannot have any respondents.'));
        }

        return $html;
    }
377150
public function template(ViewFactory $view)
    {
        $markup = $view->make('Fielder::Tinymce/Tinymce', [
            'fingerprint' => $this->getFingerprint(),
        ])->render();

        return str_replace('name=', ':name=', $markup);
    }
681522
public function render($view = null)
    {
        if (is_null($view) and ! isset($this->templatePaths[$this->defaultLanguage])) {
            return '';
        }
        $return   = (is_null($view)) ? view($this->templatePaths[$this->defaultLanguage], $this->predefinedVariables) : view($view, $this->predefinedVariables);
        $adapter  = app(VariablesAdapter::class);
        $rendered = $adapter->fill($return->__toString());
        preg_match_all('/\[\[(.*?)\]\]/', $rendered, $matches);
        if (isset($matches[0]) && isset($matches[1])) {
            foreach ($matches[0] as $index => $variable) {
                $rendered = str_replace($variable, '{{ ' . $matches[1][$index] . ' }}', $rendered);
            }
            $twig = new Twig_Environment(new Twig_Loader_String());
            return $twig->render($rendered, $this->predefinedVariables);
        }

        return $rendered;
    }
585206
protected function render($view)
    {
        $view = parent::render($view);
        if (!\Staq\Util::isStack($view, 'Stack\\View')) {
            $page = new \Stack\View;
            $page['content'] = $view;
            $view = $page;
        }
        return $view->render();
    }
843535
public function render($view = null)
    {
        $this->findActivePage();
        $this->filterByAccessRights();
        $this->filterEmptyPages();

        $this->sort();

        if (is_null($view)) {
            $view = config('navigation.view.navigation', 'navigation::navigation');
        }

        return view($view, $this->toArray())->render();
    }
902200
public function getHtmlOutput(\Zend_View_Abstract $view)
    {
        if (! $this->patchLevels) {
            $this->addMessage($this->_('This new project has no structural changes to show.'));
            return;
        }

        $patchLevel = $this->getPatchLevel();

        $seq = $this->getHtmlSequence();

        $seq->append($this->_getSelectForm());

        $div = $seq->div(array('id' => 'autofilter_target'));
        $div->h2(sprintf($this->_('Structural changes in patch level %d'), $patchLevel));
        $div->pInfo($this->_('Download: '))
                ->a(
                        array('download' => 1, 'gpa_level' => $patchLevel),
                        sprintf('patchlevel.%d.sql', $patchLevel),
                        array('type' => 'application/download')
                        );

        $lastLocation = '';
        $lastName     = '';
        $noOutput     = true;

        foreach ($this->getStructuralPatches($patchLevel) as $patch) {
            if ($patch['gpa_location'] != $lastLocation) {
                $div->h3(sprintf($this->_('Group %s'), $patch['gpa_location']));
                $lastLocation = $patch['gpa_location'];
            }
            if ($patch['gpa_name'] != $lastName) {
                $div->h4(sprintf($this->_('Patch %s'), $patch['gpa_name']));
                $lastName = $patch['gpa_name'];
            }
            $div->pre(wordwrap($patch['gpa_sql'], 80, "\n    "));
            $noOutput = false;
        }

        if ($noOutput) {
            $div->pInfo(sprintf($this->_('No structural changes in patchlevel %d'), $patchLevel));
        }

        return $seq;
    }
138183
public function render(Zend_View_Interface $view = null)
	{
        $formTypes = array( // avaible form types of Twitter Bootstrap form (i.e. classes)
          'horizontal',
          'inline',
          'vertical',
          'search'
        );
        
        $set = false;
        
        foreach($formTypes as $type) {
            if($this->getAttrib($type)) {
                $this->addDecorator("Form", array("class" => "form-$type"));
                $set = true;
            } 
        }
        if(true !== $set) { // if neither type was set, we set the default vertical class
            $this->addDecorator("Form", array("class" => "form-vertical"));
        }

		return parent::render($view);
	}