Returns the xhtml code to be included
@return string
@throws Error
13831
public function Code(Environment $environment, $name, $type, $version = 'latest', $params = null)
    {
        $type = strtolower($type);

        //Gets type for local file
        $local = false;
        if ('local' == $type) {
            $local = true;
            $type = strtolower(substr($name, strrpos($name, '.') + 1));
        }

        //Defines fragment to use
        $fragment = null;
        if ('css' == $type) {
            $fragment = '@c975LIncludeLibrary/fragments/css.html.twig';
        } elseif ('js' == $type || 'javascript' == $type || 'jscript' == $type || 'script' == $type) {
            $fragment = '@c975LIncludeLibrary/fragments/javascript.html.twig';
            $type = 'javascript';
        }

        //Gets data for local file
        if ($local) {
            $data = 'css' == $type ? array('href' => $name) : array('src' => $name);
        //Gets data for external library
        } else {
            $data = $this->includeLibraryService->getData($name, $type, $version);
        }

        //Returns xhtml code
        if (null != $fragment && null != $data) {
            $render = $environment->render($fragment, array(
                'data' => $data,
                'params' => $params,
                ));

            return str_replace(array("\n", '  ', '  ', '  ', '  ', '  '), ' ', $render);
        }

        //Throws an error if not found
        throw new Error('The Library "' . $name . ' (' . $type . ') version ' . $version . '" requested via "inc_lib()" was not found. Please check name and supported library/versions.');
    }
471709
public function __toHtml()
    {
        return $this->toHtml($submitted = false, $blnSimpleLayout = false, $blnLabel = true, $blnDisplayError = true);
    }
52672
public static function getHTML() {
        $classes = PageHead::getInstance()->getBodyCssClasses();
		return self::getHead() . '<body' . ($classes ? ' class="' . implode(' ', $classes) . '"' : '') . '>' . self::getBody() . self::getTail() . '</body></html>';
	}
1046413
public function getHtml() : ?string 
    {
        if ( ! $this->hasHtml()) {
            $this->setHtml($this->getDefaultHtml());
        }
        return $this->html;
    }
966582
public function getHTML()
    {
        $details = $this->getHTMLDetails();
        extract($details);
        
        $options = null;
        foreach ($this['options'] as $optValue => $optText) {
            $options .= "<option value='{$optValue}'"
                . (($this['value'] == $optValue)
                    ? " selected=\"selected\""
                    : null)
                . ">{$optText}</option>\n";
        }

        return <<<EOD
<p>
<label for='$id'>$label</label>$brAfterLabel
<select id='$id'{$class}{$name}{$autofocus}{$required}{$readonly}{$checked}{$title}>
{$options}
</select>
{$messages}
</p>
<p class='cf-desc'>{$description}</p>
EOD;
    }
191743
public function getHtml()
	{
		$s = '';
		foreach ($this->children as $child) {
			if (is_object($child)) {
				$s .= $child->render();
			} else {
				$s .= $child;
			}
		}

		return $s;
	}
212477
public function getHtml(): string
  {
    $this->attributes['type']    = 'checkbox';
    $this->attributes['name']    = $this->submitName;
    $this->attributes['checked'] = !empty($this->value);

    $html = $this->prefix;
    $html .= $this->getHtmlPrefixLabel();
    $html .= Html::generateVoidElement('input', $this->attributes);
    $html .= $this->getHtmlPostfixLabel();
    $html .= $this->postfix;

    return $html;
  }
569106
public function getHtml(): string
    {
        return $this->environment->render($this->template, ValueUtils::val($this->context));
    }
1164343
public function getHtml(): string
  {
    $ret = $this->getHtmlStartTag();
    $ret .= $this->getHtmlLegend();
    $ret .= parent::getHtml();
    $ret .= $this->getHtmlEndTag();

    return $ret;
  }
1093766
public function getHTML()
    {
        $details = $this->getHTMLDetails();
        extract($details);

        $label = isset($this['label'])
            ? " value='{$this['label']}'"
            : null;
        $classSubmit = isset($this['class-submit'])
            ? " class='{$this['class-submit']}'"
            : null;

        return <<<EOD
<{$wrapperElement}{$wrapperClass}>
<input id='$id' type='search'{$class}{$name}{$value}{$autofocus}{$required}{$readonly}{$placeholder}/>
<input id='do-{$id}' type='submit'{$classSubmit}{$label}{$readonly}{$title}/>
</{$wrapperElement}>
<p class='cf-desc'>{$description}</p>
EOD;
    }
294007
public function getHtml(): string
  {
    if (!isset($this->attributes['action']))
    {
      $this->attributes['action'] = Abc::$request->getRequestUri();
    }

    $this->prepare();

    $html = $this->getHtmlStartTag();

    $html .= $this->getHtmlBody();

    $html .= $this->getHtmlEndTag();

    return $html;
  }
1079004
public function getGroupedHtml()
    {
        $name = $this->getNameInLayout();
        $htmlId = uniqid($name);

        $types = [];
        foreach ($this->_usedStorageTypes as $type) {
            $type = $this->getVarnishMessageModel()->getMessageTypeByStorage($type);
            if (!$type) {
                continue;
            }
            $types[] = $type;
        }

        return sprintf(
            $this->getMessageContainerFormat(),
            json_encode($htmlId),
            json_encode($this->getUrl('varnish/ajax/message', array(
                '_secure' => Mage::app()->getStore()->isCurrentlySecure()
            ))),
            json_encode($types),
            json_encode(EcomDev_Varnish_Model_Message::COOKIE_NAME),
            json_encode(array(
                'path' => Mage::getSingleton('core/cookie')->getPath(),
                'domain' => Mage::getSingleton('core/cookie')->getDomain()
            ))
        );
    }
630432
public function getHTML()
    {
        $this->cb->set(function () {

            // if virtual page callback is triggered
            if ($type = $this->cb->triggered()) {

                // process callback
                if ($this->fx) {
                    call_user_func($this->fx, $this);
                }

                // special treatment for popup
                if ($type == 'popup') {
                    $this->app->html->template->set('title', $this->app->title);
                    $this->app->html->template->setHTML('Content', parent::getHTML());
                    $this->app->html->template->appendHTML('HEAD', $this->getJS());

                    $this->app->terminate($this->app->html->template->render());
                }

                // render and terminate
                if (isset($_GET['json'])) {
                    $this->app->terminate($this->renderJSON());
                }

                // do not terminate if callback supplied (no cutting)
                if ($type != 'callback') {
                    $this->app->terminate($this->render());
                }
            }

            // Remove all elements from inside the Content
            foreach ($this->app->layout->elements as $key => $view) {
                if ($view instanceof View && $view->region == 'Content') {
                    unset($this->app->layout->elements[$key]);
                }
            }

            $this->app->layout->template->setHTML('Content', parent::getHTML());
            $this->app->layout->_js_actions = array_merge($this->app->layout->_js_actions, $this->_js_actions);

            $this->app->html->template->setHTML('Content', $this->app->layout->getHTML());
            $this->app->html->template->appendHTML('HEAD', $this->app->layout->getJS());

            $this->app->terminate($this->app->html->template->render());
        });
    }
932848
public function GetHtmlHeadIncludes()
    {
        $aIncludes = parent::GetHtmlHeadIncludes();

        if (isset($this->oActiveShippingGroup)) {
            $oPaymentMethodList = TShopBasket::GetInstance()->GetAvailablePaymentMethods();
            if ($oPaymentMethodList) {
                while ($oPaymentMethod = $oPaymentMethodList->Next()) {
                    $oPaymentHandler = $oPaymentMethod->GetFieldShopPaymentHandler();

                    if (method_exists($oPaymentHandler, 'GetHtmlHeadIncludes')) {
                        $aAdditionalIncludes = $oPaymentHandler->GetHtmlHeadIncludes();
                        if (count($aAdditionalIncludes) > 0) {
                            $aIncludes = array_merge($aIncludes, $aAdditionalIncludes);
                        }
                    }
                }
            }
        }

        return $aIncludes;
    }
1197076
public function getHTML()
    {
        $e = $this;

        $o = '<div class="atk-layout">';

        $o .= $this->getHTMLHeader();

        $o .= $this->getHTMLSolution();

        //$o.=$this->getHTMLBody();

        $o .= '<div class="atk-layout-row"><div class="atk-wrapper atk-section-small">';
        if (isset($e->more_info)) {
            $o .= '<h3>Additional information:</h3>';
            $o .= $this->print_r($e->more_info, '<ul>', '</ul>', '<li>', '</li>', ' ');
        }
        if (method_exists($e, 'getMyFile')) {
            $o .= '<div class="atk-effect-info">'.$e->getMyFile().':'.$e->getMyLine().'</div>';
        }

        if (method_exists($e, 'getMyTrace')) {
            $o .= $this->backtrace(3, $e->getMyTrace());
        } else {
            $o .= $this->backtrace(@$e->shift, $e->getTrace());
        }

        if (isset($e->by_exception)) {
            $o .= '<h3>This error was triggered by the following error:</h3>';
            if ($e->by_exception instanceof self) {
                $o .= $e->by_exception->getHTML();
            } elseif ($e->by_exception instanceof Exception) {
                $o .= $e->by_exception->getMessage();
            }
        }
        $o .= '</div></div>';

        return $o;
    }
1314008
public function getHtmlContent()
    {
        if ($this->htmlContent === null) {
            try {
                if (($content = $this->getContent()) === '') {
                    return $this->htmlContent = false;
                }

                $errors = libxml_use_internal_errors(true);
                $this->htmlContent = new \DOMDocument();

                if ((mb_detect_encoding($content) === 'UTF-8') && mb_check_encoding($content, 'UTF-8')) {
                    $content = mb_convert_encoding($content, 'HTML-ENTITIES', 'UTF-8');
                    $content = preg_replace('/<head[^>]*>/', '<head><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">', $content);
                }

                //Remove all script elements, CDATA sections and comments (thanks https://github.com/jasny)
                //$content = preg_replace(['%<!--(?:[^-]++|-)*?-->|<!\[CDATA\[(?:[^\]]++|\])*?\]\]>%si', '%<script\b(?:"(?:[^"\\\\]++|\\\\.)*+"|\'(?:[^\'\\\\]++|\\\\.)*+\'|[^>"\']++)*>(?:[^<]++|<)*?</\s*script\s*>%si'], '', $content);

                $this->htmlContent->loadHTML($content);
                libxml_use_internal_errors($errors);
            } catch (\Exception $E) {
                return $this->htmlContent = false;
            }
        }

        return $this->htmlContent;
    }
469414
public function getLiveUpdateHTML()
    {
        $htmlCode = "";

        //add reference
        if (is_null($this->merchant)) {
            $htmlCode = "<!-- EPAYMENT ERROR: Invalid merchant id. -->";
        } else {
            $htmlCode .= $this->createHiddenField('merchant', $this->merchant, false);
        }


        //add reference
        if (!is_null($this->backRef)) {
            $htmlCode .= $this->createHiddenField('BACK_REF', $this->backRef, false);
        }

        //add external order ref
        if (!is_null($this->orderRef)) {
            $htmlCode .= $this->createHiddenField('order_ref', $this->orderRef, false);
        }

        //add order date
        if (is_null($this->orderDate)) {
            $htmlCode = "<!-- EPAYMENT ERROR: Invalid order date. -->";
        } else {
            $htmlCode .= $this->createHiddenField('order_date', $this->orderDate, false);
        }

        $sincronized = true;
        if ((count($this->orderPName) == count($this->orderPCode))
            && (count($this->orderPCode) == count($this->orderPrice))
            && (count($this->orderPCode) == count($this->orderPCode))
            && (count($this->orderQty) == count($this->orderVAT))
        ) {
            $count = count($this->orderPName);

            if (count($this->orderPInfo)) {
                if ($count != count($this->orderPInfo)) {
                    $sincronized = false;
                }
            }

            if (count($this->orderVer)) {
                if ($count != count($this->orderVer)) {
                    $sincronized = false;
                }
            }

            if (count($this->orderPGroup)) {
                if ($count != count($this->orderPGroup)) {
                    $sincronized = false;
                }
            }

            if (count($this->orderPType)) {
                if ($count != count($this->orderPType)) {
                    $sincronized = false;
                }
            }
        } else {
            $sincronized = false;
        }

        if ($sincronized) {
            //add order pname
            if (is_null($this->orderPName) || empty($this->orderPName)) {
                $htmlCode = "<!-- EPAYMENT ERROR: Invalid order name. -->";
            } else {
                $htmlCode .= $this->createHiddenField('order_pname', $this->orderPName);
            }

            //add order pcode
            if (is_null($this->orderPGroup)) {
                $htmlCode = "<!-- EPAYMENT ERROR: Invalid order group input. -->";
            } elseif (!empty($this->orderPGroup)) {
                $htmlCode .= $this->createHiddenField('ORDER_PGROUP', $this->orderPGroup);
            }

            //add order pcode
            if (is_null($this->orderPCode) || empty($this->orderPCode)) {
                $htmlCode = "<!-- EPAYMENT ERROR: Invalid product codes. -->";
            } else {
                $htmlCode .= $this->createHiddenField('order_pcode', $this->orderPCode);
            }

            //add order pinfo
            if (is_null($this->orderPInfo)) {
                $htmlCode = "<!-- EPAYMENT ERROR: Invalid product info. -->";
            } elseif (!empty($this->orderPInfo)) {
                $htmlCode .= $this->createHiddenField('order_pinfo', $this->orderPInfo);
            }

            //add order prices
            if (is_null($this->orderPrice) || empty($this->orderPrice)) {
                $htmlCode = "<!-- EPAYMENT ERROR: Invalid order prices. -->";
            } else {
                $htmlCode .= $this->createHiddenField('ORDER_PRICE', $this->orderPrice);
            }

            //add order price types
            if (is_null($this->orderPType)) {
                $htmlCode = "<!-- EPAYMENT ERROR: Invalid order price types. -->";
            } else {
                $htmlCode .= $this->createHiddenField('ORDER_PRICE_TYPE', $this->orderPType);
            }

            //add order qty
            if (is_null($this->orderQty) || empty($this->orderQty)) {
                $htmlCode = "<!-- EPAYMENT ERROR: Invalid quantity. -->";
            } else {
                $htmlCode .= $this->createHiddenField('order_qty', $this->orderQty);
            }

            //add order vat
            if (is_null($this->orderVAT) || empty($this->orderVAT)) {
                $htmlCode = "<!-- EPAYMENT ERROR: Invalid order vat. -->";
            } else {
                $htmlCode .= $this->createHiddenField('order_vat', $this->orderVAT);
            }

            //add order ver
            if (is_null($this->orderVer)) {
                $htmlCode = "<!-- EPAYMENT ERROR: Invalid product versions. -->";
            } elseif (!empty($this->orderVer)) {
                $htmlCode .= $this->createHiddenField('order_ver', $this->orderVer);
            }
        } else {
            return "<!-- EPAYMENT ERROR - sent arrays are not syncronized (variable length) -->";
        }

        //add shipping
        if (is_null($this->orderShipping)) {
            return "<!-- EPAYMENT ERROR: Invalid shipping value. -->";
        } elseif ((is_numeric($this->orderShipping)) && ($this->orderShipping >= 0)) {
            $htmlCode .= $this->createHiddenField('ORDER_SHIPPING', $this->orderShipping, false);
        } else {
            $htmlCode .= "";
        }


        //add currency
        if (!empty($this->pricesCurrency)) {
            $htmlCode .= $this->createHiddenField('PRICES_CURRENCY', $this->pricesCurrency, false);
        }

        //add discount
        if (is_null($this->discount)) {
            return "<!-- EPAYMENT ERROR: Invalid discount. -->";
        } elseif ($this->discount) {
            $htmlCode .= $this->createHiddenField('discount', $this->discount, false);
        }

        //add destination city
        if (is_null($this->destinationCity)) {
            $htmlCode = "<!-- EPAYMENT ERROR: Invalid destination city. -->";
        } elseif (!empty($this->destinationCity)) {
            $htmlCode .= $this->createHiddenField('DESTINATION_CITY', $this->destinationCity, false);
        }

        //add destination state
        if (is_null($this->destinationState)) {
            return "<!-- EPAYMENT ERROR: Invalid destination state. -->";
        } elseif (!empty($this->destinationState)) {
            $htmlCode .= $this->createHiddenField('DESTINATION_STATE', $this->destinationState, false);
        }

        //add destination country
        if (is_null($this->destinationCountry)) {
            return "<!-- EPAYMENT ERROR: Invalid destination country code. -->";
        } elseif (!empty($this->destinationCountry)) {
            $htmlCode .= $this->createHiddenField('DESTINATION_COUNTRY', $this->destinationCountry, false);
        }

        //add pay method
        if (!empty($this->payMethod)) {
            $htmlCode .= $this->createHiddenField('PAY_METHOD', $this->payMethod, false);
        }

        //add order hash
        $hmacHash = $this->hmac($this->getHmacString());
        $htmlCode .= $this->createHiddenField('ORDER_HASH', $hmacHash, false);

        //add test mode
        if ($this->testMode) {
            $htmlCode .= "<input name=\"TESTORDER\" type=\"hidden\" value=\"TRUE\">\n";
        }

        //add billing information if it is available
        if ($this->billingSet) {
            $billingFields = array(
                "billFName" => 'BILL_FNAME',
                "billLName" => 'BILL_LNAME',
                "billCISerial" => 'BILL_CISERIAL',
                "billCINumber" => 'BILL_CINUMBER',
                "billCIIssuer" => 'BILL_CIISSUER',
                "billCNP" => 'BILL_CNP',
                "billCompany" => 'BILL_COMPANY',
                "billFiscalCode" => 'BILL_FISCALCODE',
                "billRegNumber" => 'BILL_REGNUMBER',
                "billBank" => 'BILL_BANK',
                "billBankAccount" => 'BILL_BANKACCOUNT',
                "billEmail" => 'BILL_EMAIL',
                "billPhone" => 'BILL_PHONE',
                "billFax" => 'BILL_FAX',
                "billAddress1" => 'BILL_ADDRESS',
                "billAddress2" => 'BILL_ADDRESS2',
                "billZipCode" => 'BILL_ZIPCODE',
                "billCity" => 'BILL_CITY',
                "billState" => 'BILL_STATE',
                "billCountryCode" => 'BILL_COUNTRYCODE',
            );
            foreach ($this->billing as $key => $val) {
                $htmlCode .= $this->createHiddenField($billingFields[$key], $this->billing[$key], false);
            }
        }

        //add delivery information if it is available
        if ($this->deliverySet) {
            $deliveryFields = array(
                "deliveryFName" => 'DELIVERY_FNAME',
                "deliveryLName" => 'DELIVERY_LNAME',
                "deliveryCompany" => 'DELIVERY_COMPANY',
                "deliveryPhone" => 'DELIVERY_PHONE',
                "deliveryAddress1" => 'DELIVERY_ADDRESS',
                "deliveryAddress2" => 'DELIVERY_ADDRESS2',
                "deliveryZipCode" => 'DELIVERY_ZIPCODE',
                "deliveryCity" => 'DELIVERY_CITY',
                "deliveryState" => 'DELIVERY_STATE',
                "deliveryCountryCode" => 'DELIVERY_COUNTRYCODE',
            );
            foreach ($this->delivery as $key => $val) {
                $htmlCode .= $this->createHiddenField($deliveryFields[$key], $this->delivery[$key], false);
            }
        }

        if (is_string($this->currency) && !empty($this->currency)) {
            $htmlCode .= $this->createHiddenField('CURRENCY', $this->currency, false);
        }

        if (is_string($this->language) && !empty($this->language)) {
            $htmlCode .= $this->createHiddenField('LANGUAGE', $this->language, false);
        }

        return $htmlCode;
    }