{@inhericDoc}
@see \MyArtJaub\Webtrees\Mvc\View\AbstractView::renderContent()
761760
protected function renderContent() {
        
        /** @var AbstractModule $module  */
        $module = $this->data->get('module');        
        ?>        
        <ol class="breadcrumb small">
        	<li><a href="admin.php"><?php echo I18N::translate('Control panel'); ?></a></li>
			<li><a href="admin_modules.php"><?php echo I18N::translate('Module administration'); ?></a></li>
			<li class="active"><?php echo $this->data->get('title'); ?></li>
		</ol>
		
		<h1><?php echo $this->data->get('title'); ?></h1>

		<form method="post" class="form-horizontal">
			<?php echo Filter::getCsrf(); ?>
			<input type="hidden" name="action" value="update">
			
			<h3><?php echo I18N::translate('General'); ?></h3>
			
			<!--  MAJ_CERT_ROOTDIR -->        	
        	<div class="form-group">
        		<label class="control-label col-sm-3" for="MAJ_CERT_ROOTDIR">
        			<?php echo I18N::translate('Certificates directory'); ?>
        		</label>
        		<div class="col-sm-9">
        			<div class="input-group">
        				<span class="input-group-addon">
        					<?php echo WT_DATA_DIR; ?>
        				</span>
        				<input
        					class="form-control"
        					dir="ltr"
        					id="MAJ_CERT_ROOTDIR"
        					maxlength="255"
        					name="MAJ_CERT_ROOTDIR"
        					type="text"
        					value="<?php echo Filter::escapeHtml($module->getSetting('MAJ_CERT_ROOTDIR', 'certificates/')); ?>"
        					required
        				>
        			</div>
        			<p class="small text-muted">
        				<?php echo I18N::translate('This folder will be used to store the certificate files.'); ?>
        				<?php echo I18N::translate('If you select a different folder, you must also move any certificate files from the existing folder to the new one.'); ?>
        			</p>
        		</div>
        	</div>
        	
        	<!-- MAJ_SHOW_CERT -->
        	<div class="form-group">
        		<label class="control-label col-sm-3" for="MAJ_SHOW_CERT">
        			<?php echo I18N::translate('Show certificates'); ?>
        		</label>
        		<div class="col-sm-9">
        			<?php echo FunctionsEdit::editFieldAccessLevel('MAJ_SHOW_CERT', $module->getSetting('MAJ_SHOW_CERT', Auth::PRIV_HIDE), 'class="form-control"'); ?>
        			<p class="small text-muted">
        				<?php echo I18N::translate('Define access level required to display certificates in facts sources. By default, nobody can see the certificates.'); ?>
        			</p>
        		</div>
        	</div>
        	
        	<h3><?php echo I18N::translate('Watermarks'); ?></h3>
        	
        	<!-- MAJ_SHOW_NO_WATERMARK -->
        	<div class="form-group">
        		<label class="control-label col-sm-3" for="MAJ_SHOW_NO_WATERMARK">
        			<?php echo I18N::translate('Show certificates without watermark'); ?>
        		</label>
        		<div class="col-sm-9">
        			<?php echo FunctionsEdit::editFieldAccessLevel('MAJ_SHOW_NO_WATERMARK', $module->getSetting('MAJ_SHOW_NO_WATERMARK', Auth::PRIV_HIDE), 'class="form-control"'); ?>
        			<p class="small text-muted">
        				<?php echo I18N::translate('Define access level of users who can see certificates without any watermark. By default, everybody will see the watermark.'); ?>
        			</p>
        			<p class="small text-muted">
        				<?php echo I18N::translate('When displayed, the watermark is generated from the name of the repository and of the sources, if they exist. Otherwise, a default text is displayed.'); ?>
        			</p>
        		</div>
        	</div>
        	
        	<!--  MAJ_WM_DEFAULT -->
			<div class="form-group">			
        		<label for="MAJ_WM_DEFAULT" class="col-sm-3 control-label">
        			<?php echo I18N::translate('Default watermark'); ?>
        		</label>
    			<div class="col-sm-9">
    				<input type="text" class="form-control" dir="ltr" id="MAJ_WM_DEFAULT" name="MAJ_WM_DEFAULT" value="<?php echo Filter::escapeHtml($module->getSetting('MAJ_WM_DEFAULT')); ?>" maxlength="255" placeholder="<?php echo I18N::translate('This image is protected under copyright law.')?>">
        			<p class="small text-muted">
        				<?php echo I18N::translate('Text to be displayed by default if no source has been associated with the certificate.'); ?>
        			</p>
        		</div>        		
        	</div>
        	
        	<!--  MAJ_WM_FONT_COLOR -->
			<div class="form-group">			
        		<label for="MAJ_WM_FONT_COLOR" class="col-sm-3 control-label">
        			<?php echo I18N::translate('Watermark font color'); ?>
        		</label>
    			<div class="col-sm-9">
    				<div class="row">
    				    <!--  MAJ_WM_FONT_COLOR -->
        				<div class="col-sm-3">
        					<div class="input-group">
        						<label class="input-group-addon" for="MAJ_WM_FONT_COLOR">
        							<?php echo I18N::translate('Color'); ?>
        						</label>
        						<input type="color" class="form-control" dir="ltr" id="MAJ_WM_FONT_COLOR" name="MAJ_WM_FONT_COLOR" value="<?php echo Filter::escapeHtml($module->getSetting('MAJ_WM_FONT_COLOR', '#4D6DF3')); ?>" maxlength="11">
        					</div>
    					</div>
	   				</div>
    				<p class="small text-muted">
        				<?php echo I18N::translate('Font color for the watermark. By default, <span style="color:#4d6df3;">the color #4D6DF3</span> is used.'); ?>
        			</p>
        		</div>        		
        	</div>
        	        	
			<div class="form-group">
				<legend class="control-label col-sm-3">
					<?php echo I18N::translate('Watermark font size'); ?>
				</legend>
    			<div class="col-sm-9">    			
    				<div class="row">
    					<!--  MAJ_WM_FONT_MAXSIZE -->
    					<div class="col-sm-5">
        					<div class="input-group">
        						<label class="input-group-addon" for="MAJ_WM_FONT_MAXSIZE">
        							<?php echo I18N::translate('Maximum font size'); ?>
        						</label>
        						<input
        							class="form-control"
        							dir="ltr"
        							id="MAJ_WM_FONT_MAXSIZE"
        							maxlength="2"
        							name="MAJ_WM_FONT_MAXSIZE"
        							type="number"
        							placeholder="18"
        							value="<?php echo Filter::escapeHtml($module->getSetting('MAJ_WM_FONT_MAXSIZE')); ?>"
        							>        							
        						<span class="input-group-addon">
        							<?php echo I18N::translate('pixels'); ?>
        						</span>
        					</div>
    					</div>
    				</div>    			
    				<p class="small text-muted">
        				<?php echo I18N::translate('Watermark font size'); ?>
        			</p>
        		</div>        		
        	</div>
        	
        	<div class="form-group">
        		<div class="col-sm-offset-3 col-sm-9">
        			<button type="submit" class="btn btn-primary">
        				<i class="fa fa-check"></i>
        				<?php echo I18N::translate('save'); ?>
        			</button>
        		</div>
        	</div>
        	
        </form>
		
		<?php        
    }
254146
public function render()
    {
        $htmlContent = '';
        foreach (self::$scriptList->toArray() as $script) {
            if ($script[0] == 'script') {
                $htmlContent .= '<script type="text/javascript">' . $script[1] . '</script>' . PHP_EOL;
            } else {
                if (Configuration::read('html.script.test_file_existance') === true) {
                    $scriptPath = APP_ROOT . '/public' . $script[1];
                    if (!file_exists($scriptPath)) {
                        trigger_error('Script file "' . $scriptPath . '" doesn\'t exist.', E_USER_WARNING);
                    }
                }
                $htmlContent .= '<script src="' . $script[1] . '" type="text/javascript"></script>' . PHP_EOL;
            }
        }
        return $htmlContent;
    }
678097
protected function render()
	{
		if (empty($this->getContent())) {
			$parsed = simplexml_load_string($this->file->getContent(), "SimpleXMLElement", LIBXML_NOCDATA);
			$parsed = json_decode(json_encode($parsed), true);
			$this->setContent(is_array($parsed) ? $parsed : []);
		}
	}
999851
public function doRender($rawContent, array $attributes = [])
    {
        $renderer = $this->renderer;

        if ($renderer === null) {
            $rendered = $rawContent;
        } elseif ($renderer instanceof Renderer) {
            $rendered = $renderer->render($rawContent, $attributes);
        } elseif ($renderer instanceof \Closure) {
            $rendered = call_user_func($renderer, $rawContent, $attributes);
        } else {
            throw new \Exception('Invalid renderer given. Expecting null, instance of Gen\Renderer\Renderer or valid callback.');
        }

        return $this->renderedContent = $rendered;
    }
1035394
protected function renderContent()
    {
        foreach ($this->httpEquivs as $name => $content)
            echo CHtml::metaTag($content, null, $name);

        if ($this->_title !== null)
            echo CHtml::tag('title', array(), is_array($this->_title) ? implode($this->titleSeparator, $this->_title) : $this->_title);

        if ($this->_description !== null)
            echo CHtml::metaTag($this->_description, 'description');

        if ($this->_keywords !== null)
            echo CHtml::metaTag($this->_keywords, 'keywords');

        foreach ($this->_properties as $name => $content)
            echo CHtml::tag('meta', array('property' => $name, 'content' => $content));

        if ($this->_canonical !== null)
            echo CHtml::linkTag('canonical', null, $this->_canonical);
    }
606962
final public function render($content = null) {
        if ($content === null) {
            foreach ($this->view->getVariables() as $var => $val) {
                $$var = $val;
            }

            $viewFile = $this->view->getViewFile();
            if (!is_readable(MODULES . $viewFile[0] . DIRECTORY_SEPARATOR . 'View' .
                            DIRECTORY_SEPARATOR . 'views' . DIRECTORY_SEPARATOR .
                            $viewFile[1] . DIRECTORY_SEPARATOR . $viewFile[2] . '.phtml'))
                throw new Exception('View layout "' . join(DIRECTORY_SEPARATOR, $viewFile) . '" not found');

            // include action view
            ob_start();

            include_once MODULES . $viewFile[0] . DIRECTORY_SEPARATOR . 'View' .
                    DIRECTORY_SEPARATOR . 'views' . DIRECTORY_SEPARATOR .
                    $viewFile[1] . DIRECTORY_SEPARATOR . $viewFile[2] . '.phtml';

            $content = ob_get_clean();
            if (!$this->view->isPartial()) {
                // include controller layout
                $controllerLayout = self::getLayoutPath();
                if ($controllerLayout) {
                    ob_start();
                    include_once $controllerLayout;

                    $content = ob_get_clean();
                }
                else if (engineGet('config', 'defaults', 'defaultLayout', false)) {
                    ob_start();
                    $this->loadLayout(engineGet('config', 'defaults', 'defaultLayout'), array('content' => $content));
                    $content = ob_get_clean();
                }
                else {
                    throw new Exception('No layout found.');
                }
            }
        }
        else {
            if (!$errorLayout = engineGet('config', 'modules', $this->view->getModule(), 'defaults', 'errorLayout', false)) {
                if (!$errorLayout = engineGet('config', 'defaults', 'errorLayout', false)) {
                    throw new Exception('Error layout not found', true);
                }
            }

            if (is_array($errorLayout)) {
                if (!array_key_exists('guest', $errorLayout))
                    throw new Exception('Error layout not found for "guest"', true);

                if (array_key_exists($this->userIdentity()->getUser()->getRole(), $errorLayout))
                    $errorLayout = $errorLayout[$this->userIdentity()->getUser()->getRole()];
                else
                    $errorLayout = $errorLayout['guest'];
            }

            ob_start();
            $this->loadLayout($errorLayout, array_merge(array('content' => $content), $this->view->getVariables()));
            $content = ob_get_clean();
        }
        echo($content);
    }
1073024
@Override
	protected void renderContent(HttpServletRequest req, HttpServletResponse res)
			throws ServletException, IOException {
		log.trace("renderContent");

		Map<String, String> pageProps = new HashMap<String, String>();
		pageProps.put("message", "");
		pageProps.put("searchAllChecked", "");
		pageProps.put("resourceType", "");

		ComponentBindingsProviderFactoryImpl factoryImpl = (ComponentBindingsProviderFactoryImpl) factory;

		if ("true".equals(req.getParameter("reloadCache"))) {
			factoryImpl.reloadCache();
			pageProps.put("message", "Cache Reloaded");
		}
		List<ServiceReference> bindingProviders = new ArrayList<ServiceReference>();
		String resourceType = req.getParameter("resourceType");
		if (!StringUtils.isEmpty(resourceType)) {
			log.debug("Searching for resource type: {}", resourceType);
			pageProps.put("resourceType", resourceType);
			bindingProviders = factoryImpl.getReferences(req
					.getParameter("resourceType"));
		} else if ("true".equals(req.getParameter("searchAll"))) {
			pageProps.put("searchAllChecked", "checked");
			log.debug("Searching for all binding providers");
			for (String rt : factoryImpl.getLoadedResourceTypes()) {
				log.debug("Searching for resource type: {}", rt);
				for (ServiceReference reference : factoryImpl.getReferences(rt)) {
					if (!bindingProviders.contains(reference)) {
						bindingProviders.add(reference);
					}
				}
			}
		}

		renderBlock(res, "header.html", pageProps);
		renderBlock(res, "search.html", pageProps);

		for (int i = 0; i < bindingProviders.size(); i++) {
			Map<String, String> properties = loadProperties(bindingProviders
					.get(i));
			properties.put("state", (i + 1) % 2 == 0 ? "even" : "odd");
			renderBlock(res, "result.html", properties);
		}
		res.getWriter().write("</tbody></table>");

		res.getWriter()
				.write("<table><tr><th class=\"content ui-state-default\">Recent Exceptions</th></tr>");

		for (final Object obj : componentBindingsValuesProvider
				.getRecentExceptions()) {
			renderBlock(res, "exception.html", new HashMap<String, String>() {
				private static final long serialVersionUID = 1L;
				{
					put("ex", obj.toString());
				}
			});
		}
		res.getWriter().write("</table>");
	}
222552
public function getContent()
    {
        if ( $this->_render_completed )
        {
            return $this->_content;
        }

        foreach ( $this->_view_levels as $view_level )
        {
            if ( $view_level["is_disabled"] )
            {
                continue;
            }

            $this->_view_levels[$view_level["name"]]["is_disabled"] = true;

            if ( $view_level["cache_enabled"] != false )
            {
                $this->getCacheContent( $view_level );
                return;
            }

            include( $this->_views_dir . $view_level["file_name"] . ".phtml" );
            return;
        }
    }
269530
protected function renderTemplate($scopeItems, $innerContent)
    {
        // Extract the items into the current scope
        extract($scopeItems);

        ob_start();

        // Fire a `before` event
        $this->onBeforeGetContents();
        include $this->template;

        // Fire an `after` event
        $this->onAfterGetContents();
        $contents = ob_get_contents();
        ob_end_clean();

        return $contents;
    }
711612
function Render()
    {
        if (!self::Guard()->Allow(Action::Read(), $this->content))
        {
            return '';
        }
        ContentTranslator::Singleton()->SetContent($this->content);
        $module = ClassFinder::CreateFrontendModule($this->content->GetType());
        $module->SetTreeItem($this->tree, $this->item);
        return $module->Render();
    }
463698
function renderContent(data, context, parentView, key, isLayout, onRender) {
		// Render template against data as a tree of subviews (nested rendered template instances), or as a string (top-level template).
		// If the data is the parent view, treat as layout template, re-render with the same data context.
		var i, l, dataItem, newView, childView, itemResult, props, swapContent, tagCtx, tag_, outerOnRender, tmplName,
			self = this,
			tmpl = self,
			allowDataLink = !self.attr || self.attr === "html",
			result = "";

		if (key === TRUE) {
			swapContent = TRUE;
			key = 0;
		}
		if (self._is === "tag") {
			tag_ = self._;
			tmplName = self.tagName;
			tagCtx = self.tagCtx;
			// This is a call from renderTag
			tmpl = tagCtx.isElse ? tag_.elses[tagCtx.isElse-1] : tag_.tmpl;
			context = extendCtx(context, self.ctx);
			props = tagCtx.props;
			if ( props.link === FALSE ) {
				// link=false setting on block tag
				// We will override inherited value of link by the explicit setting link=false taken from props
				// The child views of an unlinked view are also unlinked. So setting child back to true will not have any effect.
				context =  context || {};
				context.link = FALSE;
			}
			parentView = parentView || tagCtx.view;
			data = data === undefined ?  parentView : data;
		} else {
			tmpl = self.jquery && (self[0] || error('Unknown template: "' + self.selector + '"')) // This is a call from $(selector).render
				|| self;
		}
		if (tmpl) {
			if (parentView) {
				onRender = onRender || parentView._.onRender;
				if (data === parentView) {
					// Inherit the data from the parent view.
					// This may be the contents of an {{if}} block
					// Set isLayout = true so we don't iterate the if block if the data is an array.
					data = parentView.data;
					isLayout = TRUE;
				}
				context = extendCtx(context, parentView.ctx);
			} else {
				(context = context || {}).root = data; // Provide ~root as shortcut to top-level data.
			}

			// Set additional context on views created here, (as modified context inherited from the parent, and to be inherited by child views)
			// Note: If no jQuery, $extend does not support chained copies - so limit extend() to two parameters

			if (!tmpl.fn) {
				tmpl = $templates[tmpl] || $templates(tmpl);
			}

			if (tmpl) {
				onRender = (context && context.link) !== FALSE && allowDataLink && onRender;
				// If link===false, do not call onRender, so no data-linking marker nodes
				outerOnRender = onRender;
				if (onRender === TRUE) {
					// Used by view.refresh(). Don't create a new wrapper view.
					outerOnRender = undefined;
					onRender = parentView._.onRender;
				}
				if ($.isArray(data) && !isLayout) {
					// Create a view for the array, whose child views correspond to each data item. (Note: if key and parentView are passed in
					// along with parent view, treat as insert -e.g. from view.addViews - so parentView is already the view item for array)
					newView = swapContent ? parentView : (key !== undefined && parentView) || View(context, "array", parentView, data, tmpl, key, onRender);
					for (i = 0, l = data.length; i < l; i++) {
						// Create a view for each data item.
						dataItem = data[i];
						childView = View(context, "item", newView, dataItem, tmpl, (key || 0) + i, onRender);
						itemResult = tmpl.fn(dataItem, childView, $views);
						result += newView._.onRender ? newView._.onRender(itemResult, childView) : itemResult;
					}
				} else {
					// Create a view for singleton data object. The type of the view will be the tag name, e.g. "if" or "myTag" except for
					// "item", "array" and "data" views. A "data" view is from programatic render(object) against a 'singleton'.
					newView = swapContent ? parentView : View(context, tmplName||"data", parentView, data, tmpl, key, onRender);
					if (tag_ && !self.flow) {
						newView.tag = self;
					}
					result += tmpl.fn(data, newView, $views);
				}
				return outerOnRender ? outerOnRender(result, newView) : result;
			}
		}
		return "";
	}
1347232
protected function renderContent(ControllerContext $controllerContext)
    {
        $cacheTags = $this->cachingHelper->nodeTag($this->getNode()->getParent());
        foreach ($cacheTags as $tag) {
            $this->contentCache->flushByTag($tag);
        }

        $parentDomAddress = $this->getParentDomAddress();

        $fusionView = new FusionView();
        $fusionView->setControllerContext($controllerContext);

        $fusionView->assign('value', $this->getNode()->getParent());
        $fusionView->setFusionPath($parentDomAddress->getFusionPath());

        return $fusionView->render();
    }
495202
protected function renderContent(ControllerContext $controllerContext)
    {
        $cacheTags = $this->cachingHelper->nodeTag($this->getNode());
        foreach ($cacheTags as $tag) {
            $this->contentCache->flushByTag($tag);
        }

        $nodeDomAddress = $this->getNodeDomAddress();

        $fusionView = new FusionView();
        $fusionView->setControllerContext($controllerContext);

        $fusionView->assign('value', $this->getNode());
        $fusionView->setFusionPath($nodeDomAddress->getFusionPath());

        return $fusionView->render();
    }
802110
public function renderContentBegin()
    {
        echo CHtml::openTag('div', $this->htmlContentOptions);
        if (!empty($this->content)) {
            echo $this->content;
        }
    }
473500
protected function renderMainContent()
    {
        $items = [];
        foreach ($this->getClients() as $externalService) {
            $items[] = Html::tag('li', $this->clientLink($externalService));
        }
        return Html::tag('ul', implode('', $items), ['class' => 'auth-clients']);
    }
1171570
protected function renderMainContent()
    {
        echo Html::beginTag('div', ['class' => 'social-login']);

        echo Html::tag('h2', Yii::t('users', 'Add social service'));

        foreach ($this->getClients() as $externalService) {
            if (!in_array(get_class($externalService), array_keys($this->services))) {
                $socialServiceId = SocialService::classNameToId(get_class($externalService));
                $i18n = SocialService::i18nNameById($socialServiceId);
                $this->clientLink(
                    $externalService,
                    '<i class="demo-icon icon-basic-' . $externalService->getName() . '"></i>',
                    [
                        'class' => "social-login__social-network social-login__social-network--"
                            . $externalService->getName(),
                        'title' => $i18n,
                    ]
                );
            }
        }
        echo Html::endTag('div');

        echo Html::tag('div', '', ['class' => 'clearfix']);
    }
758302
public function renderContent($name, $id)
    {
        if ($column = $this->getColumn($name)) {
            $column->render($id);
        }
    }