1

关于 joomla 模板,我有一个非常直接的问题。最终结果是:http ://css3playground.com/flip-card.php

从某种意义上说,我想做的很简单,但需要知道在哪里看;我希望将整个页面包含在两个 div 中,所有 PHP 代码,我可以在 css 中定义的类并放入一些 javascrpt 以便我可以将页面转换应用于该 div。除了在哪里做之外,所有这些我都知道怎么做,joomla 的 PHP 结构对我来说是新的。

而且,在第一步完成后,在内容之后创建第二个 div,该内容将动态加载来自模板内页面上单击链接的内容,但这同时是两个问题,哈哈。

第一部分有什么想法吗?

4

1 回答 1

0

如果您只想使用 div 来包含整个模板,请执行以下操作:将模板包装在 div 中并为其提供自定义类或 id:

<html>
    <head>
        //stuff here
    </head>

    <body>
        //insert the wrapper here
        <div id="wrapper">
            //template structure here
        </div>
    </body>
</html>

您要编辑的文件可能会命名为index.php位于public_html/templates/your_template/index.php.

对于某些模板,例如 Yootheme 的模板,您将希望在public_html/templates/your_template/layouts/template.php(或者/public_html/templates/your_template/styles/current_profile/layouts/template.php如果您使用的配置文件不是默认配置文件)编辑文件。

于 2012-09-13T02:40:16.493 回答