Website Frontend

Following Codes will help in integrating the functions in to the website frontend

Home Page Settings

Home Page URL is index (it is not necessary to type index in front of your domain name )

yourdomain.com/index
yourdomain.com

Home Page variables

These variables will help you create an awesome Homepage:

General

Specific

Last 10 Deposits Loop

You can use Last Deposit on any page using the code below

(it is not necessary to use tables for loop purpose. you can use <div> too )

/{if $last_deposits}
<table cellspacing=0 cellpadding=2 border=0 width=100%>
    <thead>
        <tr>
            <td>Username</td>
            <td>Payment Method</td>
            <td>Amount</td>
            <td>Date</td>

        </tr>
    </thead>
    {foreach from=$last_deposits item=s}
    <tr>
        <td>{$s.username}</td>
        <td><img src="payment/{$s.ec}.png"></td>
        <td>{$currency_sign}{$s.amount}</td>
        <td>{$s.date}</td>
    </tr>
    {/foreach}
</table>
{/if}

Last 10 Withdrawals Loop

You can use Last Withdrawals on any page using the code below

(it is not necessary to use tables for loop purpose. you can use <div> too )

{if $last_withdrawals}
<table cellspacing=0 cellpadding=2 border=0 width=100%>
    <thead>
        <tr>
            <td>Username</td>
            <td>Payment Method</td>
            <td>Amount</td>
            <td>Date</td>

        </tr>
    </thead>
{foreach from=$last_withdrawals item=s}
    <tr>
        <td>{$s.username}</td>
        <td><img src="payment/{$s.ec}.png"></td>
        <td>{$currency_sign}{$s.amount}</td>
        <td>{$s.date}</td>
    </tr>
    {/foreach}
</table>
{/if}

Top 10 Investors Loop

You can use Top 10 Investors on any page using the code below

(it is not necessary to use tables for loop purpose. you can use <div> too )

<table cellspacing=0 cellpadding=2 border=0 width=100%>
    <thead>
        <tr>
            <td>Username</td>
            <td>Amount</td>
        </tr>
    </thead>
    {foreach from=$top_investors item=s}
    <tr>
        <td class=menutxt>{$s.username}</td>
        <td class=menutxt>{$currency_sign}{$s.amount}</td>
    </tr>
    {/foreach}
</table>

Top 10 Referrals Loop

You can use Top 10 Referrals on any page using the code below

(it is not nessessory to use tables for loop purpose. you can use <div> too )

<table cellspacing=0 cellpadding=2 border=0 width=100%>
    <thead>
        <tr>
            <td>Username</td>
            <td>Amount</td>
        </tr>
    </thead>
    {foreach from=$top_referrals item=s}
    <tr>
        <td class=menutxt>{$s.username}</td>
        <td class=menutxt>{$currency_sign}{$s.amount}</td>
    </tr>
    {/foreach}
</table>

Custom Pages

Custom Pages url is page/custom you can find a folder inside tmpl name pages You can add unlimited custom pages in that pages folder. filename extention must be .tpl eg: example.tpl

yourdomain.com/page/custom
yourdomain.com/page/example

Contact Page

In tmpl folder we have already added a file name customer-support.tpl you can check code there Your url for contact page will be

yourdomain.com/customer-support

For Alert code and it's usage please proceed to Alerts Section in Utilities

Form Input Field Names and Types:.
{include file="header.tpl"}
<style>
.banner-image-top img {
    width: 90%;
}
</style>
<!-- main banner FAQ start -->
<section class="main-banner">
    <div class="container">
        <div class="row">
            <div class="col-md-6 col-sm-6">
                <h1 class="welcome-heading">
                    {{$content.contact.content}}
                </h1>
                <p class="sub-text-banner">
                    {{$content.contact.text}}
                </p>
            </div>
            <div class="col-md-6 col-sm-6">
                <div class="banner-image-top">
                    <img src="./images/contact-image.png">
                </div>
            </div>
        </div>
    </div>
    <a href="#" class="join-telegram-link">
        <div class="join-telegram">
            <img src="./images/telegram.png" class="telegram-icon">
            <a href="#" class="join-telegram-link"><h3 class="small-heading">Join Our Telegram</h3></a>
        </div>
    </a>
</section>
<!-- main banner FAQ end -->

<section class="contact-section  section-pad-with-marg">
	<div class="container">
		<div class="row">
			<div class="col-md-12">
                <h3 class="contact-title"> {{$content.contact.title}} {$settings.site_name}</h3>

                {if $alert}
                <div class="{$alert_class}">
                    <span>{$alert_message}</span>
                </div>
                {/if}

                	<form  method="post" >
                {$token}
                        <div class="card-body">

	
		    <label> {{$content.fullname.text}}</label>
			<input name="name" class="form-control" placeholder="{{$content.fullname.text}}" id="YourName" type="text" required="required">
	<br>
			    <label>{{$content.email.text}}</label>
				<input name="email" class="form-control" placeholder="{{$content.email.text}}" id="EmailAddress" type="email" required="required">
		<br>
				    <label>{{$content.username.text}}</label>
					<input name="username" class="form-control
                            form-tel" placeholder="{{$content.username.text}}" id="UserName" type="text" required="required">
				<br>
				<br>
							<select name="topic" class="form-control" >
								<option class="bs-title-option" value="">Select your service topic</option>
								<option value="my_account">My account</option>
								<option value="order_purchase">Order purchase</option>
								<option value="listing">Listing</option>
								<option value="withdrawal">Withdrawal Issue</option>
								<option value="affiliate">Affiliate program</option>
								<option value="general">General</option>
							</select>
<br>
						<label for="PageMessage">{{$content.supportticket.text}}</label>
						<textarea name="message" class="form-control" placeholder="Start typing here..." onkeyup="countChar(this)" cols="30" rows="6" id="PageMessage" required="required"></textarea>
			
                {include file="captcha.tpl" action="login"}
       
                    </div>
                     
						<button type="submit" name="submit" class="normal-btn" >{{$content.save.text}}</button>
				
				</form>
			</div>
		</div>
	</div>
</section> 
{include file="footer.tpl"}

Authorization Pages

Following Instructions Should be followed for setting up the authorization pages in the website.

In tmpl folder we have already added a file name login.tpl you can check code there Your url for login page will be

yourdomain.com/login

For Alert code and it's usage please proceed to Alerts Section in Utilities

  • This code must be in login.tpl: {include file="auth.tpl"}

  • This code must be in login.tpl: {include file="captcha.tpl"}

Form Input Field Names and Types:

{include file="header.tpl"}

<section class="login-section">
    <div class="container">
        <div class="row">
             <div class="col-md-3"></div>
            <div class="col-md-6 login-form">
                <h3 class="login-title">{{$content.login.content}}</h3>
                {if $alert}
                <div class="{$alert_class}">
                    <span>{$alert_message}</span>
                </div>
                {/if}
                <form class="form-horizontal mt-3" action="login" id="signInFrm" method="post" enctype="multipart/form-data" onSubmit="checkForm()">
                    {$token}
                    <label>{{$content.username.title}}</label>
                    <input type="text" name="username" class="form-control" placeholder="{{$content.username.title}}" aria-label="{{$content.username.title}}">
                   
                    <label>{{$content.password.title}}</label>
                    <input type="password" name="password" class="form-control" placeholder="{{$content.password.title}}" aria-label="{{$content.password.title}}">
              {include file="captcha.tpl" action="login"}
                    <a href="forget" id="to-recover" class=""><i class="fa fa-lock mr-1"></i> {{$content.forget.title}}</a>
                <button class="normal-btn ml-auto" type="submit" name="login">{{$content.login.title}}</button>
                                      {if $settings.isp}
                    <button class="normal-btn ml-auto" href="#" onclick="isp_login_popup()">$   {{$content.login.title}} via InvestorsStartPage</button>
                    {/if}
                </form>
                </div>
            </div>
        </div>
    </div>
</section>
{include file="footer.tpl"}
{include file="auth.tpl"}

News Page

In tmpl folder we have already added a file name news.tpl you can check code there Your url for news page will be

yourdomain.com/news
For News Loops use this code

{if $news}
{foreach from=$news key=key item=value}
                
                <div class="panel panel-default">
                    <div class="panel-heading p-3 mb-3" role="tab" id="heading2">
                        <h3 class="panel-title">
        <a class="collapsed" role="button" title="" data-toggle="collapse" data-parent="#accordion" href="#collapse{{$key}}" aria-expanded="true" aria-controls="collapse2">
       {$value.title} - {$value.datetime}
        </a>
        </h3>
                    </div>
                    <div id="collapse{{$key}}" class="panel-collapse collapse" role="tabpanel" aria-labelledby="heading2">
                        <div class="panel-body px-3 mb-4">
                            <p>{$value.content}</p>
                        </div>
                    </div>
                </div>
                {/foreach}
                {else}

                    <div class="newsItem__title">No news found!<span>N/A</div>
                    <div class="newsItem__body">Visit this page regularly to keep yourself updated about latest company news & updates.</div>
               

{/if}

{/if}

Last updated