You are on page 1of 7

How to create your theme ?

1 - Copy/Paste the forder /themes/doorgets to /themes/mynewthemename

2 - Go to admin panel : Configuration / Theme

3 - Choose your new theme

4 - You can now edit template, css end js files

Learn to writte doorGets Template Code on 3 minutes !


Open/Close tags :
{{ }}

Return :
<?php ?>

Create a variable :

{{$hello = "Hello !";}}

Return :
<?php $hello = "Hello !"; ?>

Print variable content :


{{!$hello!}}

Return :
<?php echo $hello; ?>

Condition if :
{{?(isset($dgCode)):}} Your code {?}

Return :
<?php if(isset($dgCode)): ?> Your code <?php endif; ?>

Condition if..else.. :
{{?(isset($dgCode)):}} Your code 0 {??}

Your code 1 {?}

Return :
<?php if(isset($dgCode)): ?> Your code 0 <?php else: ?> Your code 1 <?php endif; ?>

Condition for.. :
{{-($i=0; $i<10; $i++):}} Your code position : {{!$i!}} {-}

Return :
<?php for($i=0; $i<10; $i++): ?> Your code position : <?php echo $i; ?> <?php endfor; ?>

Condition foreach.. :
{{/($array as $key=>$value):}} Key : {{!$key!}} / Value: {{!$value!}} {/}

Return :
<?php foreach($array as $key=>$value): ?> Key : <?php echo $key; ?> / Value: <?php echo $value; ?> <?php endforeach; ?>

You might also like