Fork me on GitHub

Rapport de message :*
 

Re: Comment mettre 3 informations dans chaque colonne distincte - WFDownloads

Titre du sujet : Re: Comment mettre 3 informations dans chaque colonne distincte - WFDownloads
par nendo sur 30/09/2014 21:19:23

Bonsoir Montuy

Ci-dessous le code que j'ai dans le bloc. (Par contre il peut y avoir des trucs pas très clair car je ne suis pas vraiment fort dans ce domaine )
<!--<div class="downloads-block">-->
<
div class="wfbrcolonne">
  <{foreach 
item=download from=$block.downloads}>
    <
div>
        <
div class=".wfbritemHead">
            <
span class="wfbritemTitle">
                <
a title="<{$download.title}>" href="<{$xoops_url}>/modules/<{$download.dirname}>/singlefile.php?cid=<{$download.cid}>&lid=<{$download.id}>" rel="directory" ><{$download.title}></a>
            </
span>
        </
div>
        <{if 
$download.publisher != ''}>
        <
div class="wfbritemInfo">
<!--            <
span class="wfbritemPoster"><{$smarty.const._MB_WFD_SUBMITTER}> : <{$download.submitter_uname}></span> -->
<!--            <
span class="wfbritemLicense"><{$smarty.const._MB_WFD_DOWNLICENSE}> : <{$download.license_desc}></span> | -->
            <
span class="wfbritemPostDate"><{$smarty.const._MB_WFD_SUBMITDATE}> : <{$download.date}></span> | 
<!--            <
span class=".wfbritemRating"><{$smarty.const._MB_WFD_RATINGC}>(<{$download.votes}>)</span> | -->
            <
span class="wfbritemHits"><{$smarty.const._MB_WFD_DOWNLOADHITS}> : <{$download.hits}> fois</span>

        </
div>
        <{/if}> 
        <{if 
$show_screenshot == true || $download.description}>
        <
div class="wfbritemBody"
            <
div class="wfbritemText"
              <{if 
$download.screenshot}> 
             <
img class="wfbrimageshot" width="<{$shotwidth}>" height="<{$shotheight}>" src="<{$xoops_url}>/modules/<{$download.dirname}>/images/screenshots/<{$download.screenshot}>" /> 
             <{/if}> 
             <{if 
$download.description != ""}> 
               <{
$download.summary}>
               <{/if}>
            </
div>
            <
div class="endline"></div>
        </
div>
        <{/if}> 
    </
div>
    <{/foreach}>
</
div>


et ensuite le code CSS en rapport
.wfbritemInfo padding1pxcolor#333; background-color: inherit; text-align: right; font-size: .8em; font-style: italic; }
.wfbritemPoster font-size100%; font-styleitaliccolor#8E8E8E; }
.wfbritemLicense font-size100%; font-styleitaliccolor#8E8E8E; }
.wfbritemPostDate font-size100%; font-styleitaliccolor#8E8E8E; }
.wfbritemRating font-size100%; font-styleitaliccolor#8E8E8E; }
.wfbritemHits font-size100%; font-styleitaliccolor#8E8E8E; }

.wfbritemHead padding2px 2px 2px 15pxborder-bottom1px solid #C6C6C6; color: #242424; background: #DFDFDF; font-weight: bold;}
.wfbritemTitle a font-size100%; font-weightboldfont-variantsmall-caps; }
.
wfbritemTitle a:hover color#fb8a04; }
.wfbritemBody padding-left5px; }
.
wfbrimageshot max-height:100pxmax-width:100px; }
.
wfbritemText margin-top1pxmargin-bottom30pxcolor#666; background-color: inherit; text-align: justify; }
.endline clearbothwidth100%;break-after:right; } 

.
wfbrcolonne {-moz-column-count:3;
-
webkit-column-count:3;
-
o-column-count:3;
column-count:3;
-
moz-column-gap:20px;
-
webkit-column-gap:20px;
-
o-column-gap:20px;
column-gap:20px;
-
webkit-column-rule-width:1px;
-
webkit-column-rule-color:#cbcefb;
-webkit-column-rule-style:dotted;
-
moz-column-rule-width:1px;
-
moz-column-rule-color:#cbcefb;
-moz-column-rule-style:dotted;
-
o-column-rule-width:1px;
-
o-column-rule-color:#cbcefb;
-o-column-rule-style:dotted;
column-rule-width:1px;
column-rule-color:#cbcefb;
column-rule-style:dotted;}

.
wfbrcolonne1{-moz-column-count:1;
-
webkit-column-count:1;
-
o-column-count:1;
column-count:1;
displayblock;}


Merci d'avance pour ton aide
Propulsé avec XOOPS | Graphisme adapté par Tatane, Grosdunord, Montuy337513

73 Personne(s) en ligne (60 Personne(s) connectée(s) sur Forum) | Utilisateur(s): 0 | Invité(s): 73 | Plus ...