【问题标题】:Wrapping a Joomla website into a div将 Joomla 网站包装成 div
【发布时间】:2012-09-13 02:24:45
【问题描述】:

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

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

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

对第一部分有什么想法吗?

【问题讨论】:

    标签: joomla2.5


    【解决方案1】:

    如果您只想使用 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,如果您使用非默认配置文件)编辑文件。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-12-29
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-03-02
      相关资源
      最近更新 更多