renderLoader.

@param string $content
@param bool $ajax
@return string
161739
protected function renderLoader($content, $ajax = false)
    {
        if ($ajax === true || $this->session->isStarted() === false) {
            return $content;
        }

        return $this->render($content, 'renderLoader', ['head', 'body']);
    }
55339
public function setContent($content)
    {
        $this->original = $content;

        // If the content is "JSONable" we will set the appropriate header and convert
        // the content to JSON. This is useful when returning something like models
        // from routes that will be automatically transformed to their JSON form.
        if ($this->shouldBeJson($content)) {
            $this->headers->set('Content-Type', 'application/json');

            $content = $this->morphToJson($content);
        }

        // If this content implements the "RenderableInterface", then we will call the
        // render method on the object so we will avoid any "__toString" exceptions
        // that might be thrown and have their errors obscured by PHP's handling.
        else if ($content instanceof RenderableInterface) {
            $content = $content->render();
        }

        return parent::setContent($content);
    }
970191
public function renderAction(ComponentInterface $component, ContentInterface $content)
    {
        if (!$mediaData = $component->getData('medias')) {
            // @todo log
            return new Response('');
        }

        return $this->get('synapse')
            ->createDecorator($component)
            ->decorate(array(
                'content' => $content,
                'medias' => $this->container->get('synapse.image.loader')
                    ->retrieveAll(array('id' => $component->getData('medias'))),
            ))
        ;
    }
1233744
public function shutdownHandler($content, $ajax = false, $error = null)
    {
        $error = $error ?: error_get_last();
        if (in_array($error['type'], [E_ERROR, E_CORE_ERROR, E_COMPILE_ERROR, E_PARSE, E_RECOVERABLE_ERROR, E_USER_ERROR], true)) {
            return $this->exceptionHandler(
                Helpers::fixStack(
                    new ErrorException($error['message'], 0, $error['type'], $error['file'], $error['line'])
                )
            );
        }

        return array_reduce(['renderLoader', 'renderBar'], function ($content, $method) use ($ajax) {
            return call_user_func([$this, $method], $content, $ajax);
        }, $content);
    }
467959
public function render($content) {
        $form = $this->getElement();
        if (!$form instanceof \Zend_Form) {
            return $content;
        }

        $this->_recurseForm($form);

        return $content;
    }
53975
public function render($content, Response $response)
    {
        $response->setStatusCode(Response::HTTP_OK);
        $response->headers->set('Content-Type', 'application/json');
        $response->setContent(json_encode($content));

        return $response;
    }
625102
public function render(
        $content,
        array $attribs = [],
        ElementInterface $element = null
    ) {
        if ($content instanceof LabelAwareInterface) {
            $content = $content->getLabel();
        } elseif ($element instanceof LabelAwareInterface) {
            $content = $element->getLabel();
        }

        if (is_string($content) && $this->hasTranslator() && $this->isTranslatorEnabled()) {
            $content = $this->getTranslator()->translate($content, $this->getTranslatorTextDomain());
        }

        if ($element instanceof FormInterface &&
            ($object = $element->getObject()) &&
            method_exists($object, '__toString')
        ) {
            $content = sprintf($content, $object);
        }

        if ($element
            && (!$element instanceof LabelAwareInterface ||
                !$element->getLabelOption('disable_html_escape'))
        ) {
            $escapeHtmlHelper = $this->getEscapeHtmlHelper();
            $content = $escapeHtmlHelper($content);
        }

        return parent::render($content, $attribs);
    }
67477
protected function renderTwig($content, $data = [])
    {
        if ($this->isTwigStarted) {
            return Twig::parse($content, $data);
        }

        $this->startTwig();

        $result = Twig::parse($content, $data);

        $this->stopTwig();

        return $result;
    }
253274
protected function _renderTag($attribs = array(), $content = null)
    {
        if($this->getTemplate()->decorator() == 'joomla')
        {
            $link      = isset($attribs['href']) ? $attribs['href'] : false;
            $relType  = 'rel';
            $relValue = $attribs['rel'];
            unset($attribs['rel']);
            unset($attribs['href']);

            JFactory::getDocument()->addHeadLink($link, $relValue, $relType, $attribs);
        }
        else return parent::_renderTag($attribs, $content);
    }
1009426
protected function _renderTag($attribs = array(), $content = null)
    {
        unset($attribs['content']);
        unset($attribs['separator']);

        $attribs = $this->buildAttributes($attribs);

        if($this->getConfig()->escape) {
            $content = $this->getTemplate()->escape($content);
        }

        $html = '<title '.$attribs.'>'.$content.'</title>'."\n";
        return $html;
    }
41603
protected function getHtml( $content )
	{
		$site = Route::input( 'site', Input::get( 'site', 'default' ) );
		return View::make( 'shop::jqadm.index', array( 'content' => $content, 'site' => $site ) );
	}
328823
public function render ($content = null)
		{
			// Custom error output.
			$errors = $this->model->getErrors($this->attribute);

			if (count($errors) == 0)
				$this->parts[ '{error}' ] = '';
			else
			{
				$class = isset($this->errorOptions[ 'class' ]) ? ' class="' . $this->errorOptions[ 'class' ] . '"' : '';
				$this->parts[ '{error}' ] = '<div' . $class . '><ul class="list-unstyled">';
				foreach ($errors as $e)
				{
					$this->parts[ '{error}' ] .= '<li>' . $e . '</li>';
				}
				$this->parts[ '{error}' ] .= '</ul></div>';
			}

			return parent::render($content);
		}
1296454
public function renderAjax($panels = false)
    {
        $haspanels = false;
        if (is_array($this->_ajax)) {
            foreach ($this->_ajax as $item) {
                $component = $this->getComponent($item);

                if ($component instanceof Panel) {
                    $haspanels = true;                 
                    if ($panels == true) {
                        $responseJS = $component->AjaxAnswer();
                        WebApplication::$app->getResponse()->addAjaxResponse($responseJS);
                        continue;
                    }
                }

                if ($component instanceof AjaxRender) {
                    if ($component instanceof Panel) {
                        continue;
                    }
                    $responseJS = $component->AjaxAnswer();
                    WebApplication::$app->getResponse()->addAjaxResponse($responseJS);
                }
            }
            
           return  $haspanels ;
        }
    }
631314
public function render( $return = false ) {

		// Get the rendered output.
		$output = $this->get_renderer()->render( $this, true );

		if ( $return ) {
			return $output;
		}

		echo wp_kses( $output, wp_kses_allowed_html( 'post' ) );
	}
12468
protected function _renderTag($attribs = array(), $content = null)
    {
        if($this->getTemplate()->decorator() == 'joomla')
        {
            $meta = parent::_renderTag($attribs, $content);
            JFactory::getDocument()->addCustomTag($meta);
        }
        else return parent::_renderTag($attribs, $content);
    }
511337
public function render($name, $content = '', $class = '', $id = '', array $attrs = array())
    {
        $attrs['name'] = $name;
        $attrs['tag']  = 'textarea';

        return Html::_('tag')->render($content, $class, $id, $attrs);
    }
920896
public function compile($content)
    {
        if( ! $this->count()) return $content;

        $pattern = $this->getRegex();

        return preg_replace_callback("/{$pattern}/s", [&$this, 'render'], $content);
    }