drwdvftp423507 2014-04-10 23:24
浏览 32

使用smarty php调整网站的CSS

I am trying to adjust some boxes on a site using smarty.

three sections populate data to the boxes all three sections share the same class. I am trying to figure out where to go to add a new classes or remove them if necessary but this is gibberish to me.

If someone can make sense of this I would appreciate it.

this file seems to be calling all the classes that makes sense to me. Now how to change them beats me. classifieds.tpl

{if count($from)}
<div class="classifieds">
<div class="list">
{foreach from=$from item=item key=key name=tmp}
{if $item.featured}<div class="featured">{/if}
<div class="listItemDiv">
    <div class="listRowDiv">
        {if $item.photo}<div class="image">
            <div class="photo-photo">
                <div>
                    {html_image file="$url/photos/`$item.photo`"}
                </div>
            </div>
        </div>{/if}
        <div class="title"><a href="{$item.link}">{$item.title}</a></div>
        <div class="description">{$item.description}</div>
            {include file="$theme_template_root/items/actions.tpl"}
    </div>
</div>
{if $item.featured}</div>{/if}
{/foreach}
</div></div>

{else}
<div class="centerText">{$language.nothing_found}</div>
{/if}

This file seems to add the heading of each section but then call a function? maybe? To populate the box with the correct data?

<div class="columnSmall">

    {if $tip_message}

        {include file="boxes/tip.tpl" tip=$tip_message}

    {/if}

    {include file="boxes/greyTop/open.tpl" secheader=$language.quick_search}

    <div class="quickSearchForm">{include file="forms/simple.tpl" form="classifieds_qsearch"}</div>

    {include file="boxes/greyTop/close.tpl"}



    {if $banners.3}

    <div class="banner-side">{banner area="3"}</div>

    {/if}



</div>



<div class="columnWide">



    {include file="boxes/white/open.tpl"}



    <h2>{$language.featured_classifieds}</h2>

    {include file="lists/classifieds.tpl" from=$featured.cards}



    <h2>{$language.popular_classifieds}</h2>

    {include file="lists/classifieds.tpl" from=$popular.cards}



    <h2>{$language.new_classifieds}</h2>

    {include file="lists/classifieds.tpl" from=$new_classifieds.cards}



    {include file="boxes/white/close.tpl"}



</div>
  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 51单片机中C语言怎么做到下面类似的功能的函数(相关搜索:c语言)
    • ¥15 seatunnel 怎么配置Elasticsearch
    • ¥15 PSCAD安装问题 ERROR: Visual Studio 2013, 2015, 2017 or 2019 is not found in the system.
    • ¥15 (标签-MATLAB|关键词-多址)
    • ¥15 关于#MATLAB#的问题,如何解决?(相关搜索:信噪比,系统容量)
    • ¥500 52810做蓝牙接受端
    • ¥15 基于PLC的三轴机械手程序
    • ¥15 多址通信方式的抗噪声性能和系统容量对比
    • ¥15 winform的chart曲线生成时有凸起
    • ¥15 msix packaging tool打包问题