Renders the widget.
17931
public function render()
    {
        try {
            $this->vars['all'] = $this->getCounts()['all'];
            $this->vars['counts'] = $this->getCounts()['counts'];

        } catch (Exception $ex) {
            $this->vars['error'] = $ex->getMessage();
            $this->vars['all'] = 0;
            $this->vars['counts'] = [];
        }

        return $this->makePartial('widget');
    }
74574
public function render()
    {
        if (!$this->visible) {
            return;
        }

        parent::render();

        if ($this->title !== null) {
            $label_tag = new SwatHtmlTag('label');
            $label_tag->for = $this->id . '_radio_button_' . $this->value;
            $label_tag->setContent($this->title, $this->content_type);
            $label_tag->open();
        }

        $radio_button_tag = new SwatHtmlTag('input');
        $radio_button_tag->type = 'radio';
        $radio_button_tag->name = $this->id;
        $radio_button_tag->id = $this->id . '_radio_button_' . $this->value;
        $radio_button_tag->value = $this->value;
        if (!$this->sensitive) {
            $radio_button_tag->disabled = 'disabled';
        }

        $view = $this->getFirstAncestor('SwatView');
        if ($view !== null) {
            $selection = $view->getSelection($this);
            if ($selection->contains($this->value)) {
                $radio_button_tag->checked = 'checked';
            }
        }

        echo '<span class="swat-radio-wrapper">';
        $radio_button_tag->display();
        echo '<span class="swat-radio-shim"></span>';
        echo '</span>';

        if ($this->title !== null) {
            $label_tag->displayContent();
            $label_tag->close();
        }
    }
626328
void render()
    {
        if (screen.isReady())
        {
            final Graphic g = screen.getGraphic();
            if (buf == null)
            {
                // Direct rendering
                target.render(g);
            }
            else
            {
                target.render(graphic);
                g.drawImage(filter.filter(buf), transform, 0, 0);
            }
        }
    }
379666
@Override
	public void render() {
		final HttpServletResponse response = Response.getServletResponse();
		response.setContentType(this.contentType);
		ServletOutputStream out = null;
		try {
			out = Response.getOutputStream();
			this.template.render(Request.getParamMap(), out);
		} catch (IOException e) {
			throw new IORuntimeException(e);
		} finally {
			IoUtil.close(out);
		}
	}
1148704
public function run()
	{
		foreach($this->tabs as $id=>$tab)
			if(isset($tab['visible']) && $tab['visible']==false)
				unset($this->tabs[$id]);

		if(empty($this->tabs))
			return;

		if($this->activeTab===null || !isset($this->tabs[$this->activeTab]))
		{
			reset($this->tabs);
			$this->activeTab = key($this->tabs);
		}

		$htmlOptions=$this->htmlOptions;
		if(isset($this->htmlOptions['id']))
			$this->id=$this->htmlOptions['id'];
		else
			$htmlOptions['id']=$this->id;
		if(!isset($htmlOptions['class']))
			$htmlOptions['class']=self::CSS_CLASS;

		$this->registerClientScript();

		echo CHtml::openTag('div',$htmlOptions)."\n";
		$this->renderHeader();
		$this->renderBody();
		echo CHtml::closeTag('div');
	}
226247
public function run()
	{
		$id = $this->getId();
		$this->htmlOptions['id'] = $id;
		// if no container is set, it will create one
		if ($this->containerId == null) {
			$this->containerId = 'div-chart' . $id;
			echo '<div ' . CHtml::renderAttributes($this->htmlOptions) . '></div>';
		}
		$this->registerClientScript();
	}
754183
public function renderWidget()
    {
        // BEGIN:nestable-box
        echo Html::beginTag('div', ['class' => 'nestable-box']);
        foreach ($this->items as $item) {
            $this->renderGroup($item);
        }
        // END:nestable-box
        echo Html::endTag('div');
        if ($this->hasModel()) {
            echo Html::activeHiddenInput($this->model, $this->attribute);
        } else {
            echo Html::hiddenInput($this->name);
        }
    }
719863
@Override
	public void render() {
		final String callback = Request.getParam(callbackParamName, Response.DEFAULT_CALLBACK_NAME);
		this.text = StrUtil.format("{}({})", callback, this.text);
		super.render();
	}
1316319
public function run()
    {
        // if there is no renderTo id, build the layer with current id and initialize renderTo option
        if (!isset($this->pluginOptions['chart']) || !isset($this->pluginOptions['chart']['renderTo'])) {
            echo CHtml::openTag('div', $this->htmlOptions);
            echo CHtml::closeTag('div');

            if (isset($this->pluginOptions['chart']) && is_array($this->pluginOptions['chart'])) {
                $this->pluginOptions['chart']['renderTo'] = $this->htmlOptions['id'];
            } else {
                $this->pluginOptions['chart'] = array('renderTo' => $this->htmlOptions['id']);
            }

        }
        $this->registerClientScript();
    }
1034570
public function run()
    {
        $view = $this->container->make('view');

        $this->customizer($view->getTemplate()->getTemplate());
    }
852245
public function run()
	{

		// Setup the form
		$form = $this->beginWidget('cii.widgets.CiiActiveForm', array(
		    'id'=>get_class($this->model),
		    'enableAjaxValidation'=>true,
		    'action' => $this->action,
		    'htmlOptions' => array(
		    	'class' => 'pure-form pure-form-aligned'
		    )
		));

			// Main Content
			$this->renderMain($form);

		// Close the form
		$this->endWidget();
	}
951579
public function render()
    {
        try {
            $this->currentModule = Piwik::getModule();
            $this->currentAction = Piwik::getAction();

            $this->url = Common::sanitizeInputValue(Url::getCurrentUrl());
            $this->token_auth = Piwik::getCurrentUserTokenAuth();
            $this->userHasSomeAdminAccess = Piwik::isUserHasSomeAdminAccess();
            $this->userIsAnonymous = Piwik::isUserIsAnonymous();
            $this->userIsSuperUser = Piwik::hasUserSuperUserAccess();
            $this->latest_version_available = UpdateCheck::isNewestVersionAvailable();
            $this->showUpdateNotificationToUser = !SettingsPiwik::isShowUpdateNotificationToSuperUsersOnlyEnabled() || Piwik::hasUserSuperUserAccess();
            $this->disableLink = Common::getRequestVar('disableLink', 0, 'int');
            $this->isWidget = Common::getRequestVar('widget', 0, 'int');
            $this->isMultiServerEnvironment = SettingsPiwik::isMultiServerEnvironment();
            $this->isInternetEnabled = SettingsPiwik::isInternetEnabled();
            $this->shouldPropagateTokenAuth = $this->shouldPropagateTokenAuthInAjaxRequests();

            $piwikAds = StaticContainer::get('Piwik\ProfessionalServices\Advertising');
            $this->areAdsForProfessionalServicesEnabled = $piwikAds->areAdsForProfessionalServicesEnabled();

            if (Development::isEnabled()) {
                $cacheBuster = rand(0, 10000);
            } else {
                $cacheBuster = UIAssetCacheBuster::getInstance()->piwikVersionBasedCacheBuster();
            }
            $this->cacheBuster = $cacheBuster;

            $this->loginModule = Piwik::getLoginPluginName();

            $user = APIUsersManager::getInstance()->getUser($this->userLogin);
            $this->userAlias = $user['alias'];
        } catch (Exception $e) {
            Log::debug($e);

            // can fail, for example at installation (no plugin loaded yet)
        }

        ProxyHttp::overrideCacheControlHeaders('no-store');

        Common::sendHeader('Content-Type: ' . $this->contentType);
        // always sending this header, sometimes empty, to ensure that Dashboard embed loads
        // - when calling sendHeader() multiple times, the last one prevails
        if(!empty($this->xFrameOptions)) {
            Common::sendHeader('X-Frame-Options: ' . (string)$this->xFrameOptions);
        }

        return $this->renderTwigTemplate();
    }
393747
public function render() {
		?>
		<input name="<?php echo esc_attr( $this->get_id() ); ?>" id="<?php echo esc_attr( $this->get_id() ); ?>" type="text" value="<?php echo esc_attr( $this->get_value() ); ?>" class="regular-text" />
		<?php
		$this->render_help();
	}
230436
protected function render()
	{
		if (empty($this->getContent())) {
			$parsed = parse_ini_string($this->file->getContent(), true);
			$this->setContent(is_array($parsed) ? $parsed : []);
		}
	}
108255
public function render() {
        if (!$this->_enableXDebugOverlay) {
            ini_set('xdebug.overload_var_dump', 'off');
        }
        $debuggerCount = count($this->_debuggers);
        $this->setName(str_replace('{count}', '{' . $debuggerCount . '}', self::NAME));
        parent::render();
    }
1236251
public function run()
	{
		$id = $this->getId();

		// if there is no renderTo id, build the layer with current id and initialize renderTo option
		if (!isset($this->options['chart']) || !isset($this->options['chart']['renderTo'])) {
			$this->htmlOptions['id'] = $id;
			echo '<div ' . CHtml::renderAttributes($this->htmlOptions) . ' ></div>';

			if (isset($this->options['chart']) && is_array($this->options['chart'])) {
				$this->options['chart']['renderTo'] = $id;
			} else {
				$this->options['chart'] = array('renderTo' => $id);
			}
		}
		$this->registerClientScript();
	}
1222597
public function run()
  {
    $this->renderContent();
    $content=ob_get_clean();
    if($this->hideOnEmpty && trim($content)==='')
      return;
    echo $this->_beginTag;
    echo $content;
    echo '</div>';
    echo Html::endTag($this->tagName);    
  }