发布日期:2022-12-10 浏览次数:次

这个wordpress主题Catch Responsive如何修改页脚的...
要修改Magento的页脚,我们必须改动两个地方:
一个是Magento 自己创建的,在ADMIN可以修改(CMS > Static Block); 另外一部分是以.phtml / .php / .xml 格式文件存于设计文件夹中。
XML文件位置:
app/design/frontendlayout/page.xml
你将找到关于页脚的代码:
app/design/frontendlayout/cms.xml
你将找到关于页脚的代码:
The content of this block is taken from the database by its block_id.
You can manage it in admin CMS -> Static Blocks
–>
你可以看到PAGE.XML调用页脚文件,是通过文件:
app/design/frontendtemplate/page/html/footer.phtml
这个文件包含了一个方法去调用些子HTML文件($this->getChildHtml();)
app/design/frontendtemplate/page/switch.phtml
app/design/frontendtemplate/page/template/links.phtml
一个重要的关于页脚的子HTML文件是:
结尾为 .phtml的文件 , 在BLOCK.PHP文件中可以找到 “$this->getLinks()” 这个方法,这个方法控制了模板的脚本调用。
所控制的模板对应位置在:
app/code/core/mage/page/Template/Links.php
但是,我们可以发现,这儿只能找到一部分的页脚链接,其他的在哪儿呢?
