Frontend Template System

Bitders uses Smarty templating engine to display dynamic content. Here's a comprehensive guide to the main template loops and their usage.

Investment Plans Display

Display investment plans using this loop:

{foreach from=$index_plans item=p}

Available Variables:

  • {$p.name} - Plan name

  • {$p.etype} - Plan type (0: fixed, 1,2: range)

  • {$p.frequency} - Payout frequency

  • {$p.period} - Period duration

  • {$p.days} - Total days

Usage Example:

{foreach from=$index_plans item=p}
    <div class="card">
        <div class="card-header">
            {$p.name|escape:html}
        </div>
        <!-- Plan details here -->
    </div>
{/foreach}

Recent Transactions

Display recent transactions using:

Available Variables:

  • {$s.type} - Transaction type

  • {$s.datetime} - Transaction time

  • {$s.username} - User's name

  • {$s.currency} - Currency used

  • {$s.amount} - Transaction amount

Usage Example:

News Section

Display news items using:

Available Variables:

  • {$value.title} - News title

  • {$value.datetime} - Publication date

  • {$value.content} - News content

  • {$value.image_url} - News image

  • {$value.link} - Full article link

Usage Example:

User Reviews

Display user reviews using:

Available Variables:

  • {$s.uname} - Reviewer's name

  • {$s.datetime} - Review time

  • {$s.review} - Review content

Usage Example:

Affiliate Program Structure

Display affiliate program details using:

Available Variables:

  • {$tier.name} - Tier name

  • {$tier.level} - Commission levels

  • {$tier.invested} - Required investment

  • {$tier.investments} - Team investment

  • {$tier.referrals} - Required referrals

Usage Example:

Payment Methods

Display payment methods using:

Available Variables:

  • {$ps[p].id} - Payment method ID

  • {$ps[p].name} - Payment method name

Usage Example:

Important Notes

  1. All template files are stored in the templates directory

  2. Custom modifications should be made in child themes

  3. Always escape HTML output using |escape:html

  4. Use Bootstrap classes for responsive layouts

  5. Image paths are relative to the root directory

Support

For additional support or custom template modifications, please contact:

Last updated