Render the edit ui

@param bool|int $is_partial
515498
public function displayEditUI($is_partial = 0) {
		$image_id = esc_html(parse_req('image_id'));
		$current_preset = esc_html(parse_req('preset'));

		$partial = parse_req('partial', $is_partial);

		$size = esc_html(parse_req('size', 'full'));

		$meta = wp_get_attachment_metadata($image_id);

		$attrs = wp_get_attachment_image_src($image_id, $size);
		list($full_src, $full_width, $full_height, $full_cropped) = $attrs;


		$imgix_settings = [];

		$presets = get_option('ilab-imgix-presets');
		$sizePresets = get_option('ilab-imgix-size-presets');


		$presetsUI = $this->buildPresetsUI($image_id, $size);


		if($current_preset && $presets && isset($presets[$current_preset])) {
			$imgix_settings = $presets[$current_preset]['settings'];
			$full_src = $this->buildImgixImage($image_id, $size, $imgix_settings)[0];
		} else if($size == 'full') {
			if(!$imgix_settings) {
				if(isset($meta['imgix-params'])) {
					$imgix_settings = $meta['imgix-params'];
				}
			}
		} else {
			if(isset($meta['imgix-size-params'][$size])) {
				$imgix_settings = $meta['imgix-size-params'][$size];
			} else {
				if($presets && $sizePresets && isset($sizePresets[$size]) && isset($presets[$sizePresets[$size]])) {
					$imgix_settings = $presets[$sizePresets[$size]]['settings'];

					if(!$current_preset) {
						$current_preset = $sizePresets[$size];
					}
				}
			}

			if((!$imgix_settings) && (isset($meta['imgix-params']))) {
				$imgix_settings = $meta['imgix-params'];
			}
		}

		foreach($this->paramPropsByType['media-chooser'] as $key => $info) {
			if(isset($imgix_settings[$key]) && !empty($imgix_settings[$key])) {
				$media_id = $imgix_settings[$key];
				$imgix_settings[$key.'_url'] = wp_get_attachment_url($media_id);
			}
		}

		if(current_user_can('edit_post', $image_id)) {
			if(!$partial) {
				echo View::render_view('imgix/ilab-imgix-ui.php', [
					'partial' => $partial,
					'image_id' => $image_id,
					'modal_id' => gen_uuid(8),
					'size' => $size,
					'sizes' => ilab_get_image_sizes(),
					'meta' => $meta,
					'full_width' => $full_width,
					'full_height' => $full_height,
					'tool' => $this,
					'settings' => $imgix_settings,
					'src' => $full_src,
					'presets' => $presetsUI,
					'currentPreset' => $current_preset,
					'params' => $this->toolInfo['settings']['params'],
					'paramProps' => $this->paramProps
				]);
			} else {
				json_response([
					              'status' => 'ok',
					              'image_id' => $image_id,
					              'size' => $size,
					              'settings' => $imgix_settings,
					              'src' => $full_src,
					              'presets' => $presetsUI,
					              'currentPreset' => $current_preset,
					              'paramProps' => $this->paramProps
				              ]);
			}
		}


		die;
	}
511523
public function renderFilterCell()
    {
        if(yii::app()->editable->form != EditableConfig::FORM_BOOTSTRAP) {
            parent::renderFilterCell();
            return;
        }
                
        echo '<td><div class="filter-container">';
        $this->renderFilterCellContent();
        echo '</div></td>';
    }
1189330
public function render(): void
	{
		$page = $this->paginator->page;
		if ($this->paginator->pageCount < 2) {
			$steps = [$page];
			$viewed = false;
		} else {
			$viewed = true;

			$f = $first = $page - $this->pageAround;
			$l = $last = $page + $this->pageAround;
			if ($f < $this->paginator->firstPage) {
				$last += ($this->paginator->firstPage - $f);
			}
			if ($l > $this->paginator->lastPage) {
				$first -= ($l - $this->paginator->lastPage);
			}
			$arr = range(max($this->paginator->firstPage, $first), min($this->paginator->lastPage, $last));

			if ($this->othersPage > 0) {
				$count = $this->othersPage * 2;
				$quotient = ($this->paginator->pageCount - 1) / $count;
				for ($i = 0; $i <= $count; $i++) {
					$arr[] = round($quotient * $i) + $this->paginator->firstPage;
				}
				sort($arr);
				$steps = array_values(array_unique($arr));
			} else {
				$steps = $arr;
			}
		}

		$this->template->viewed = $viewed;
		$this->template->steps = $steps;
		$this->template->paginator = $this->paginator;
		$this->template->isAjax = $this->isAjax;
		$this->template->noHistory = $this->noHistory;
		$this->template->prev = $this->prev;
		$this->template->next = $this->next;
		$this->template->other = $this->other;
		if (count($this->onClick ?? []) > 0) {
			$this->template->handle = 'click!';
		} else {
			$this->template->handle = 'this';
		}

		$this->template->setFile($this->templateFile);
		$this->template->render();
	}
1119818
def _render(self, contexts, partials):
        """"""
        val = self._lookup(self.value, contexts)
        if val:
            return EMPTYSTRING
        return self._render_children(contexts, partials)
997487
public function render(FormInterface $oForm, $sFormLayout = parent::LAYOUT_HORIZONTAL)
    {
        //Prepare form if needed
        if (method_exists($oForm, 'prepare')) {
            $oForm->prepare();
        }
		
		$sFormClass = $sFormLayout;
		if($sFormLayout === self::LAYOUT_VALUES || $sFormLayout === self::LAYOUT_VALUES_HIDDEN){
			$sFormLayout = parent::LAYOUT_HORIZONTAL;
		}
        $this->setFormClass($oForm, $sFormLayout);

        //Set form role
        if (!$oForm->getAttribute('role')) {
            $oForm->setAttribute('role', 'form');
        }

        $bHasColumnSizes = false;
        $sFormContent = '';
		//----- EDIT
        //$oRenderer = $this->getView();
		$collectionHelper = $this->getCollectionHelper();
		$rowHelper = $this->getRowHelper();
		//----- END
        foreach ($oForm as $oElement) {
            $aOptions = $oElement->getOptions();
            if (!$bHasColumnSizes && !empty($aOptions['column-size'])) {
                $bHasColumnSizes = true;
            }
            //Define layout option to form elements if not already defined
            if ($sFormLayout && empty($aOptions['twb-layout'])) {
                $aOptions['twb-layout'] = $sFormLayout;
                $oElement->setOptions($aOptions);
            }
			if($sFormClass === self::LAYOUT_VALUES || $sFormClass === self::LAYOUT_VALUES_HIDDEN){
				if($sFormClass === self::LAYOUT_VALUES || !($oElement instanceof \Zend\Form\Element\Button || $oElement instanceof \Zend\Form\Element\Submit)){
					// render buttons in LAYOUT_VALUES_HIDDEN, but not in LAYOUT_VALUES
					$oElement->setOption('value_only', true);
					if($sFormClass === self::LAYOUT_VALUES_HIDDEN){
						$oElement->setOption('add_hidden', true);
					}
					if($oElement instanceof \Zend\Form\Element\Checkbox){
						$oElement->setAttribute('type', 'text');
					}
				}
			}
			//------- EDIT
            //$sFormContent .= $oElement instanceof FieldsetInterface ? $oRenderer->formCollection($oElement) : $oRenderer->formRow($oElement);
            $sFormContent .= $oElement instanceof FieldsetInterface ? $collectionHelper($oElement) : $rowHelper($oElement);
			//------- END
        }
        if ($bHasColumnSizes && $sFormLayout !== parent::LAYOUT_HORIZONTAL) {
            $sFormContent = sprintf(self::$formRowFormat, $sFormContent);
        }
        return $this->openTag($oForm) . $sFormContent . $this->closeTag();
    }
1240127
protected function renderEditionTemplate()
    {
        return $this->render('customer-edit', array(
            "address_id"  => $this->getRequest()->get('address_id'),
            "page"        => $this->getRequest()->get('page'),
            "customer_id" => $this->getCustomerId()
        ));
    }
940425
def render_shareable(options = {}, &block)
      buttons = Shareable::Helpers::SocialButtons.new self, refine_options(options)
      buttons.to_s
    end
39131
def render_resource_editor(version)
      render partial: "decidim/shared/version_author",
             locals: {
               author: Decidim.traceability.version_editor(version)
             }
    end
491825
private function renderTemplate($isPartial = false, $isLayout = false)
    {
        $adapter = $this->determineWhichAdapterToUse($this->templateFile);
        $dirs = true === $isLayout ? $this->_layoutdir : $this->_scriptdir;

        if (null === $adapter) {
            throw new RendererException(sprintf(
                'Unable to manage file \'%s\' in path (%s)', $this->templateFile, implode(', ', $dirs)
            ), RendererException::SCRIPTFILE_ERROR);
        }

        $this->getApplication()->debug(sprintf('Rendering file `%s`.', $this->templateFile));
        if (false === $isPartial) {
            $this->triggerEvent();
        }

        return $adapter->renderTemplate(
            $this->templateFile,
            $dirs,
            $this->getParam(),
            array_merge($this->getAssignedVars(), $this->getBBVariable())
        );
    }
1308327
public function renderSettings()
    {

        $result = View::render_view( 'base/ilab-settings.php', [
            'title'=>$this->toolInfo['settings']['title'],
            'group'=>$this->options_group,
            'page'=>$this->options_page
        ]);

        $result = str_replace('<th scope="row">__CUSTOMREMOVE__</th>', '', $result);

        echo $result;
    }
442155
public function edit() {
        $ga_id = Filter::getInteger('ga_id');
        $ga = $this->provider->getGeoAnalysis($ga_id, false);
        
        $this->renderEdit($ga);
    }
1014092
public function renderTemplate()
    {
        $options = array(
            'id' => $this->htmlOptions['id'] . '-gallery',
            'class' => 'blueimp-gallery'
        );
        if ($this->displayControls) {
            TbHtml::addCssClass('blueimp-gallery-controls', $options);
        }
        echo CHtml::openTag('div', $options);
        echo '<div class="slides"></div>
		<h3 class="title"></h3>
		<a class="prev">‹</a>
		<a class="next">›</a>
		<a class="close">×</a>
		<a class="play-pause"></a>
		<ol class="indicator"></ol>';
        echo CHtml::closeTag('div');
    }
1343758
public function render() : void
    {
        $langRoot = $this->categoryRepository->findLangRoot($this->activeLang);

        $categories = [];

        if ($langRoot && $langRoot->getDescendants() instanceof ObjectCollection)
        {
            $root = $this->categoryRepository->findDescendants($langRoot);
            $left = (count($root) > 0) ? $root[0]->getLeftValue() - 1 : 0;
            $categories = $this->nested->getTree($root, $left);
        }

        $this->template->categories = $categories;
        $this->template->setFile(__DIR__ . '/templates/modal.latte');
        $this->template->render();
    }
490457
def bind_partial(self, *args, **kwargs):
        
        return self._bind(args, kwargs, partial=True)
264414
function _addons_page_render() {
            $this->_logger->entrance();

            $vars = array( 'id' => $this->_module_id );

            /**
             * Added filter to the template to allow developers wrapping the template
             * in custom HTML (e.g. within a wizard/tabs).
             *
             * @author Vova Feldman (@svovaf)
             * @since  1.2.1.6
             */
            echo $this->apply_filters( 'templates/add-ons.php', fs_get_template( 'add-ons.php', $vars ) );
        }
555959
public function render(Smarty_Internal_Template $_template)
    {
        if ($_template->source->handler->uncompiled) {
            if ($_template->smarty->debugging) {
                $_template->smarty->_debug->start_render($_template);
            }
            $this->handler->renderUncompiled($_template->source, $_template);
            if (isset($_template->parent) && $_template->parent->_objType == 2 && !empty($_template->tpl_function)) {
                $_template->parent->tpl_function =
                    array_merge($_template->parent->tpl_function, $_template->tpl_function);
            }
            if ($_template->smarty->debugging) {
                $_template->smarty->_debug->end_render($_template);
            }
        }
    }
18979
public function renderView()
    {
        if ($this->form) {
            $this->template->trySet('name', $this->short_name);
        }

        parent::renderView();
    }