?> ; </script> </head> <body> <div class="info-popup-wrapper"></div> <div style="position: absolute; right: 0; top: -20px"> <a href="/admin">вход для персонала</a> </div> <header onclick="location.href = '/'"> <h1>Овощи & Фрукты</h1> <h2>—— Интернет-магазин ——</h2> </header> <article> <?php require App::getTemplatePath($template); ?> </article> <footer> </footer> <pre class="aprt-data">window.APRT_DATA = <?php echo $aprtDataJson; ?> ;</pre> </body> </html><?php
echo $product->id; ?> &count=-1" class="btn-basket-remove" title="Убрать 1">×</a> </div> <div class="product-item-similar-products"> Похожие продукты:<br/> <?php foreach ($product->getSimilarProducts() as $similarProduct) { ?> <a href="/product?p=<?php echo $similarProduct->id; ?> " title="<?php echo $similarProduct->name; ?> "><img src="/img/small/<?php echo $similarProduct->image; ?> " style="zoom: 0.5"></a> <?php } ?> </div> <div style="clear: both"></div> </div> <?php require App::getTemplatePath('part_sitemap');
<?php namespace ScriptAcid; require_once $_SERVER["DOCUMENT_ROOT"] . "/scriptacid/core/application.php"; $fileApplicationTemplate = DOC_ROOT . '/' . App::getTemplatePath() . '/' . App::get()->TEMPLATE_FILENAME . '.php'; if (file_exists($fileApplicationTemplate)) { $strAppclicationTemplate = file_get_contents($fileApplicationTemplate); } else { echo 'Шаблон не найден' . endl; die; } $strAppclicationTemplate = trim($strAppclicationTemplate); $arPhpEntries = ComponentTools::parseString($strAppclicationTemplate, 'all'); $strResult = ''; foreach ($arPhpEntries['SPLIT_STRING'] as $key => &$arStrPart) { if ($arPhpEntries['MATCHES'][$key][1] < $arStrPart[1]) { $strResult .= $arPhpEntries['MATCHES'][$key][0] . $arStrPart[0]; } else { $strResult .= $arStrPart[0] . $arPhpEntries['MATCHES'][$key][0]; } } $strResult = trim($strResult); if (false) { echo '<!--' . "\n" . 'ORIG_FILE_CONTENT:' . "\n" . $strAppclicationTemplate . "\n\n" . 'GENERATED_AFTER_PART_CONTENT:' . "\n" . $strResult . '-->'; } if ($strResult == $strAppclicationTemplate) { echo "ok.\n"; } else { echo "error.\n"; }