<?#Register Src="~/Controls/Message.php" TagPrefix="php" TagName="Message"?>
<?#Register Src="~/Controls/TabControl.php" TagPrefix="php" TagName="TabControl"?>
<html xmlns:php="http://aleksey.nemiro.ru/php-webforms">
<body>
<php:Content ID="MainContent">
<h2>${Introduction}</h2>
<p>${IntroductionText1}</p>
<p>${IntroductionText2}</p>
<p>${IntroductionText3}</p>
<p>${IntroductionText4}</p>
<p>${IntroductionText5}</p>
<h3 id="contents">${Contents}</h3>
<ul>
<li><a href="#content">${ContentBlocks}</a></li>
<li><a href="#simple">${SimplePages}</a></li>
<li><a href="#html-php">${SeparationPHPAndHTML}</a></li>
<li><a href="#only-php">${OnlyPHP}</a></li>
<li>
<a href="#directives">${Directives}</a>
<ul>
<li><a href="#directive-page">${Directive} #Page</a></li>
<li><a href="#directive-register">${Directive} #Register</a></li>
</ul>
</li>
<li>
<a href="#class-page">${Class} Page</a>
<ul>
<li><a href="#properties">${Properties}</a></li>
<li>
<a href="#events">${Events}</a>
<ul>
<li><a href="#preload">PreLoad</a></li>
<li><a href="#load">Load</a></li>
<li><a href="#load?omplete">LoadComplete</a></li>
</ul>
</li>
</ul>
</li>
<li><a href="#localization">${Localization}</a></li>
</ul>
<h2 id="content">${ContentBlocks}</h2>
<p>${ContentBlocksText1}</p>
<pre><code class="html"><php:Content ID="${MarkerName}">${ContentBlockExample}</php:Content></code></pre>
<p>${ContentBlocksText2}</p>
<pre><code class="html">${ContentBlocksIgnoredText}
<php:Content ID="MainContent">
${ContentBlocksOuntputText}
</php:Content>
${ContentBlocksIgnoredText}</code></pre>
<p>${ContentBlocksText3}</p>
<p>${ContentBlocksText4}</p>
<php:TabControl>
<php:Items>
<php:TabItem Key="Layout1" Title="${Template} Layout1.php">
<pre><code class="html"><!DOCTYPE html>
<html xmlns:php="http://aleksey.nemiro.ru/php-webforms">
<head>
<title></title>
</head>
<body>
<div class="container">
<php:MainContent/>
</div>
</body>
</html></code></pre>
</php:TabItem>
<php:TabItem Key="Layout2" Title="${Template} Layout2.php">
<pre><code class="html"><!DOCTYPE html>
<html xmlns:php="http://aleksey.nemiro.ru/php-webforms">
<head>
<title></title>
</head>
<body>
<div class="container">
<div class="col-md-10">
<php:MainContent/>
</div>
<div class="col-md-2">
<php:RightPanel/>
</div>
</div>
</body>
</html></code></pre>
</php:TabItem>
<php:TabItem Key="Content" Title="${ContentPage}">
<pre><code class="html"><php:Content ID="MainContent">
${ContentFor} MainContent.
</php:Content>
<php:Content ID="RightPanel">
${ContentFor} RightPanel.
</php:Content></code></pre>
</php:TabItem>
<php:TabItem Key="Result1" Title="${Result} #1">
<pre><code class="html"><!DOCTYPE html>
<html xmlns:php="http://aleksey.nemiro.ru/php-webforms">
<head>
<title>${DefaultTitle}</title>
</head>
<body>
<div class="container">
${ContentFor} MainContent.
</div>
</body>
</html></code></pre>
</php:TabItem>
<php:TabItem Key="Result2" Title="${Result} #2">
<pre><code class="html"><!DOCTYPE html>
<html xmlns:php="http://aleksey.nemiro.ru/php-webforms">
<head>
<title>${DefaultTitle}</title>
</head>
<body>
<div class="container">
<div class="col-md-10">
${ContentFor} MainContent.
</div>
<div class="col-md-2">
${ContentFor} RightPanel.
</div>
</div>
</body>
</html></code></pre>
</php:TabItem>
</php:Items>
</php:TabControl>
<p>${ContentBlocksText5}</p>
<pre><code class="html"><php:Content ID="MainContent">
${ContentBlocksCloneText1}
</php:Content>
<php:Content ID="MainContent">
${ContentBlocksCloneText2}
</php:Content></code></pre>
<h2 id="simple">${SimplePages}</h2>
<p>${SimplePagesText1}</p>
<p>${SimplePagesText2}</p>
<p>${SimplePagesText3}</p>
<pre><code class="php"><?php
require_once 'global.php';
\Nemiro\App::Magic();
?></code></pre>
<p>${SimplePagesText4}</p>
<pre><code class="html"><?#Page Layout="~/Layouts/_Layout.php" Title="${SimplePagesTitle}"?>
<php:Content ID="MainContent">
<h2>${HelloWorld}</h2>
</php:Content>
<?php
require_once 'global.php';
Nemiro\App::Magic();
?></code></pre>
<p>${SimplePagesText5}</p>
<h2 id="html-php">${SeparationPHPAndHTML}</h2>
<p>${SeparationPHPAndHTMLText1}</p>
<p>${SeparationPHPAndHTMLText2}</p>
<p>${SeparationPHPAndHTMLText3}</p>
<pre><code class="php"><?php
require_once 'global.php';
class Index extends \Nemiro\UI\Page
{
}
\Nemiro\App::Magic();
?></code></pre>
<p>${SeparationPHPAndHTMLText4}</p>
<pre><code class="html"><php:Content ID="MainContent">
<h2>${HelloWorld}</h2>
</php:Content></code></pre>
<p>${SeparationPHPAndHTMLText5}</p>
<p>${SeparationPHPAndHTMLText6}</p>
<pre><code class="html"><php:Content ID="MainContent">
<h2>${PageTitleExample}: <?=$this->Title?></h2>
</php:Content></code></pre>
<p><a href="#class-page">${ReadMoreAboutPageClass}</a>.</p>
<h2 id="only-php">${OnlyPHP}</h2>
<p>${OnlyPHPText1}</p>
<p>${OnlyPHPText2}</p>
<pre><code class="php"><?php
require_once 'global.php';
class Index extends \Nemiro\UI\Page
{
function Load()
{
$this->Title = '${OnlyPHPText3}';
$this->Content['MainContent'] = '${OnlyPHPText4}';
}
}
\Nemiro\App::Magic();
?></code></pre>
<p>${OnlyPHPText5}</p>
<h2 id="directives">${Directives}</h2>
<h3 id="directive-page">${Directive} <?#Page ?></h3>
<p>${DirectivePageText1}</p>
<p>${DirectivePageText2}</p>
<p>${DirectivePageText3}</p>
<table class="table">
<thead>
<tr>
<th>${Parameter}</th>
<th><nobr>${ValueType}</nobr></th>
<th>${Description}</th>
</tr>
</thead>
<tbody>
<tr>
<td>Layout</td>
<td>${String}</td>
<td>${DirectivePageLayout}</td>
</tr>
<tr>
<td>Title</td>
<td>${String}</td>
<td>${DirectivePageTitle}</td>
</tr>
<tr>
<td>Optimized</td>
<td>${Boolean}</td>
<td>${DirectivePageOptimized}</td>
</tr>
<tr>
<td>Cache</td>
<td>${Boolean}</td>
<td>${DirectivePageCache}</td>
</tr>
<tr>
<td>Culture</td>
<td>${String}</td>
<td>${DirectivePageCulture}</td>
</tr>
</tbody>
</table>
<p>${DirectivePageText4}</p>
<pre><code class="html"><?#Page Title="${PageTitleExample}" Optimized="true" ?>
<php:Content ID="MainContent">
${HelloWorld}
</php:Content></code></pre>
<p>${DirectivePageText5}</p>
<h3 id="directive-register">${Directive} <?#Register ?></h3>
<p>${DirectiveRegister1}</p>
<p>${DirectiveRegister2}</p>
<table class="table">
<thead>
<tr>
<th>${Parameter}</th>
<th><nobr>${ValueType}</nobr></th>
<th>${Description}</th>
</tr>
</thead>
<tbody>
<tr>
<td>Src</td>
<td>${String}</td>
<td><strong>${Required}.</strong> ${DirectiveRegisterSrc}</td>
</tr>
<tr>
<td>TagPrefix</td>
<td>${String}</td>
<td>
<strong>${Required}.</strong> ${DirectiveRegisterTagPrefix}
</td>
</tr>
<tr>
<td>TagName</td>
<td>${String}</td>
<td>
<strong>${Required}.</strong> ${DirectiveRegisterTagName}
</td>
</tr>
<tr>
<td>ClassName</td>
<td>${String}</td>
<td>
<strong>${Optional}.</strong> ${DirectiveRegisterClassName}
</td>
</tr>
</tbody>
</table>
<p>${DirectiveRegister3}</p>
<p>${DirectiveRegister4}</p>
<php:TabControl>
<php:Items>
<php:TabItem Key="Content" Title="${ContentPage}">
<pre><code class="html"><?#Register Src="~/Controls/Message.php" TagPrefix="php" TagName="Message"?>
<?#Register Src="~/Controls/TabControl.php" TagPrefix="php" TagName="TabControl"?>
<php:Content ID="MainContent">
${HelloWorld}
<php:Message Type="success" Content="${AllOk}" />
<php:TabControl>
<php:Items>
<php:TabItem Key="Tab1" Title="${ExamplePleaseNote}">${ExampleTab1}</php:TabItem>
<php:TabItem Key="Tab2" Title="${ExampleBut}">${ExampleTab2}</php:TabItem>
</php:Items>
</php:TabControl>
</php:Content></code></pre>
</php:TabItem>
<php:TabItem Key="Result" Title="${Result}">
<pre><code class="html"><!DOCTYPE html>
<html xmlns:php="http://aleksey.nemiro.ru/php-webforms">
<head>
<title>${DefaultTitle}</title>
</head>
<body>
<div class="container">
<!--${StartOutputContentBlock} MainContent-->
${HelloWorld}
<!--${StartOutputElement} Message-->
<div class="alert alert-success">${AllOk}</div>
<!--${EndOutputElement} Message-->
<!--${StartOutputElement} TabControl-->
<ul class="nav nav-tabs" role="tablist">
<li class="active">
<a href="#Page_TabControl1_Tab1" aria-controls="Page_TabControl1_Tab1" role="tab" data-toggle="tab" aria-expanded="false">
${ExamplePleaseNote}
</a>
</li>
<li>
<a href="#Page_TabControl1_Tab2" aria-controls="Page_TabControl1_Tab2" role="tab" data-toggle="tab" aria-expanded="true">
${ExampleBut}
</a>
</li>
</ul>
<div class="tab-content">
<div role="tabpanel" class="tab-pane" id="Page_TabControl1_Tab1">
${ExampleTab1}
</div>
<div role="tabpanel" class="tab-pane" id="Page_TabControl1_Tab2">
${ExampleTab2}
</div>
</div>
<!--${EndOutputElement} TabControl-->
<!--${EndOutputContentBlock} MainContent-->
</div>
</body>
</html></code></pre>
</php:TabItem>
</php:Items>
</php:TabControl>
<h2 id="class-page">${Class} Page</h2>
<p>${ClassPageText1}</p>
<p>${ClassPageText2}</p>
<p>${ClassPageText3}</p>
<p>${ClassPageText4}</p>
<pre><code class="php"><?php
require_once 'global.php';
class Forum extends \Nemiro\UI\Page
{
}
\Nemiro\App::Magic();
?></code></pre>
<h3 id="properties">${Properties}</h3>
<p>${PropertiesText1}</p>
<table class="table">
<thead>
<tr>
<th>${Property}</th>
<th><nobr>${ValueType}</nobr></th>
<th>${Description}</th>
</tr>
</thead>
<tbody>
<tr>
<td>Optimized</td>
<td>${Boolean}</td>
<td>${PageClassOptimized}</td>
</tr>
<tr>
<td>Cache</td>
<td>${Boolean}</td>
<td>${PageClassCache}</td>
</tr>
<tr>
<td>Layout</td>
<td>${String}</td>
<td>${PageClassLayout}</td>
</tr>
<tr>
<td>Encode</td>
<td>${String}</td>
<td>${PageClassEncode}</td>
</tr>
<tr>
<td>Culture</td>
<td>${String}</td>
<td>${PageClassCulture}</td>
</tr>
<tr>
<td>Title</td>
<td>${String}</td>
<td>${PageClassTitle}</td>
</tr>
<tr>
<td>Content</td>
<td>${Dictionary}</td>
<td>${PageClassContent}</td>
</tr>
<tr>
<td>Meta</td>
<td>${Dictionary}</td>
<td>${PageClassMeta}</td>
</tr>
<tr>
<td>Scripts</td>
<td>${StringArray}</td>
<td>${PageClassScripts}</td>
</tr>
<tr>
<td>Controls</td>
<td>${Dictionary}</td>
<td>${PageClassControls}</td>
</tr>
<tr>
<td>Resources</td>
<td>${Dictionary}</td>
<td>${PageClassResources}</td>
</tr>
</tbody>
</table>
<p>${PropertiesText2}</p>
<php:Message Type="Warning">${PropertiesText3}</php:Message>
<h3 id="events">${Events}</h3>
<p>${EventsText1}</p>
<h4 id="preload">PreLoad</h4>
<p>${PreLoadText1}</p>
<p>${PreLoadText2}</p>
<p>${PreLoadText3}</p>
<p>${PreLoadText4}</p>
<pre><code class="php"><?php
require_once 'global.php';
class Index extends \Nemiro\UI\Page
{
function PreLoad()
{
$this->Layout = '/example.html';
}
}
\Nemiro\App::Magic();
?></code></pre>
<h4 id="load">Load</h4>
<p>${LoadText1}</p>
<p>${LoadText2}</p>
<p>${LoadText3}</p>
<pre><code class="php"><?php
require_once 'global.php';
class Index extends \Nemiro\UI\Page
{
function Load()
{
$this->Title = '${LoadText4}';
$this->SetDescription('${LoadText5}');
}
}
\Nemiro\App::Magic();
?></code></pre>
<h4 id="load?omplete">LoadComplete</h4>
<p>${LoadCompleteText1}</p>
<p>${LoadCompleteText2}</p>
<pre><code class="php"><?php
require_once 'global.php';
class Index extends \Nemiro\UI\Page
{
function LoadComplete()
{
echo '${LoadCompleteText3}';
}
}
\Nemiro\App::Magic();
?></code></pre>
<h2 id="localization">${Localization}</h2>
<p>${LocalizationText1}</p>
<p>${LocalizationText2}</p>
<p>${LocalizationText3}</p>
<p>${LocalizationText4}</p>
<p><a href="/localization.php${Lang}">${ReadMoreAboutLocalization}</a>.</p>
</php:Content>
</body>
</html>
|