Reply to thread

Now time for core template :) hope you like this one. Again depends on the coder and following structures and formats to core of vb but any who here is example. This is a live example by the way sorry didn't feel like changing it.


vb4 template simple:

    [code]<vb:if condition="$vboptions['piratepoker_topad']">

    <div class="blockhead" style="height:16px;padding-{vb:stylevar right}:{vb:math {vb:stylevar padding}/2-1};font-weight:bold">

        {vb:rawphrase pp_advertisement}

    </div>

    <div class="blockbody" style="padding:4px;margin:0px;border-top:0px;border-bottom:1px;border-{vb:stylevar left}:1px;border-{vb:stylevar right}:1px;border-color:{vb:stylevar shade_color};border-style:solid;">

        {vb:rawphrase pp_topad}

    </div>

    </vb:if>

[/code]


converts to xen:


    [code]<xen:if is="{$xenOptions.piratepoker_topad}">

        <div class="selection">

            <h2 class="heading">{xen:phrase pp_advertisement}</h2>

            <div class="sectionContent secondaryContent">

                {xen:phrase pp_topad}

            </div>

        </div>

        <br />

    </xen:if>

[/code]


converts ALL if statements to xen format so means opening and closing

[code]vb:if condition

to

xen:if is


/vb:if

to

/xen:if

[/code]


any div class blockhead is converted to open div with adding innhtml to the h2 format till close hard to explain.


    [code]<div class="blockhead" style="height:16px;padding-{vb:stylevar  right}:{vb:math {vb:stylevar padding}/2-1};font-weight:bold">

         {vb:rawphrase pp_advertisement}

     </div>

to

       <div class="selection">

             <h2 class="heading">{xen:phrase pp_advertisement}</h2>

[/code]


notice in above it converts the

[code]vb:rawphrase

to

xen:phrase

[/code]


then the div class blockbody is converted to open close itself with end close selection

[code]

    <div class="blockbody"  style="padding:4px;margin:0px;border-top:0px;border-bottom:1px;border-{vb:stylevar  left}:1px;border-{vb:stylevar right}:1px;border-color:{vb:stylevar  shade_color};border-style:solid;">

         {vb:rawphrase pp_topad}

     </div>

to

            <div class="sectionContent secondaryContent">

                 {xen:phrase pp_topad}

             </div>

         </div>

[/code]

notice again phrase conversion.


Again it does even more in depth then that just a quick example.


Back
Top Bottom