tpl文件错误或php版本错误

问题描述 投票:0回答:1

我试图找到类似我的问题,但似乎没有运气。我有php7.1的cs-cart multivendor经过正常主题工作测试,但是当我安装新主题站点时,直到我在管理面板上登录时,我才进行测试。因此,这意味着我在管理面板网站上登录后进入白屏状态。我试图弄清楚,我在主题文件夹中的index.tpl文件中总是空着。因此,要使站点再次工作,我必须再次替换index.tpl文件。这是index.tpl文件的代码。您能告诉我,如果谁在关闭站点文件中存在某些错误?谢谢!

{capture name =“ page_title”} {hook name =“ index:title”} {如果$ page_title}{$ page_title} {else}{如果$ language_direction ==“ rtl”}{foreach from = $ breadcrumbs | @array_reverse item = i name =“ bkt”}{if!$ smarty.foreach.bkt.last} {if!$ smarty.foreach.bkt.last &&!$ smarty.foreach.bkt.first} ::{/if}{$i.title|strip_tags}{/if}{/ foreach}{其他}{foreach from = $ breadcrumbs item = i name =“ bkt”}{if!$ smarty.foreach.bkt.first} {$ i.title | strip_tags} {if!$ smarty.foreach.bkt.last} :: {/ if} {/ if}{/ foreach}{/如果}{if!$ skip_page_title && $ location_data.title} {if $ breadcrumbs | count> 1}-{/if}{$location_data.title}{/if} {/ if}{/ hook} {/ capture} {$ smarty.capture.page_title | strip | trimnofilter} {include file =“ meta.tpl”} {hook name =“ index:links”}{/ hook} {include file =“ common / styles.tpl” include_dropdown = true} {如果“ DEVELOPMENT” |定义了&& $ smarty.const.DEVELOPMENT == true}window.jsErrors = [];window.onerror =函数(消息,源代码,lineno,colno,错误){var verboseMessage =消息;如果(来源){verboseMessage =源+'@'+ lineno +':'+ colno +“ \ n \ n” +消息;}

console.error(verboseMessage);

if (error && error.stack) {
    console.log(error.stack);
}

document.write('<pre data-ca-debug="1" style="border: 2px solid red; margin: 2px;">'
    + verboseMessage + "\n\n"
    + (error && error.stack ? error.stack : '')
    + '</pre>'
); }; </script> <!--[if lt IE 9]><script src="https://cdnjs.cloudflare.com/ajax/libs/es5-shim/4.1.9/es5-shim.min.js"></script><![endif]-->

{/ if} {hook name =“ index:head_scripts”} {/ hook}

{hook name =“ index:body”}{如果$ runtime.customization_mode.design}{include file =“ common / toolbar.tpl” title = (“ on_site_template_editing”)href =“ customization.disable_mode?type = design”}{/如果}{如果$ runtime.customization_mode.live_editor}{include file =“ common / toolbar.tpl” title =(“ on_site_live_editing”)href =“ customization.disable_mode?type = live_editor”}{/如果}{如果“ THEMES_PANEL” |定义了&&!$ runtime.customization_mode.live_editor}{include file =“ demo_theme_selector.tpl”}{/如果}

    <div class="ty-tygh {if $runtime.customization_mode.theme_editor}te-mode{/if} {if

$ runtime.customization_mode.live_editor ||$ runtime.customization_mode.design ||$ smarty.const.THEMES_PANEL}顶部面板填充{/ if}”id =“ tygh_container”>

    {include file="common/loading_box.tpl"}
    {include file="common/notification.tpl"}

    <div class="ty-helper-container" id="tygh_main_container">
        {hook name="index:content"}
            {hook name="index:et_content"}{/hook}
        {/hook}
    <!--tygh_main_container--></div>

    {hook name="index:footer"}{/hook}
    <!--tygh_container--></div>

    {include file="common/scripts.tpl"}

    {if $runtime.customization_mode.design}
        {include file="backend:common/template_editor.tpl"}
    {/if}
    {if $runtime.customization_mode.theme_editor}
        {include file="backend:common/theme_editor.tpl"}
    {/if}
{/hook} </body>

cs-cart
1个回答
0
投票

请检查您使用的主题的许可证

© www.soinside.com 2019 - 2024. All rights reserved.