Theme
With doorGets CMS ...

CSS

Structure

There are 2 CSS file for the site creates are

  • doorgets/css/doorgets.css
  • doorgets/css/doorgets.rtl.css (reversed entries)

Edit the CSS

Theme CSS step 1

To edit a CSS file simply select the file wanted with associated CSS selector

Then change the file open below with the amendments in block

Click on save

JavaScript

Structure

There is a single file that is  doorgets/js/doorgets.js

Edit a JavaScript

Theme JavaScript step 1

To change a JavaScript file simply select the file wanted with the selector associated with JavaScript

Then edit the file open below with modifications in the block

Templates

Templates in General:

 Templates in doorGets are structured in 2 distinct groups:

  • Website
  • websiteUSer

Theme template step 1

To move a Template simply select the Template wanted with the associated with the Template Selector, for example here  doorgets/template/website/wrapper.tpl.php

The wrapper.tpl.php Template structure:

Theme template step 2

The wrapper Template consists of 4 main parts:

  • The menu
  • The wrap
  • The jumbtron
  • The footer

All these elements find on all pages of the web site creates.

Structure of the Template:

Structure of Website

  All these files have path doorgets/template/website/  Here is the structure of the Website section:

  • wrapper.tpl.php
  • waitingpage.tpl.php
  • footer.tpl.php
  • header.tpl.php
  • Modules
    • blog
      • blog_content.tpl.php
      • blog_content.tpl.php
      • blog_listing.tpl.php
    • faq
      • faq_listing.tpl.php
    • image
      • image_content.tpl.php
      • image_last_contents.tpl.php
      • image_listing.tpl.php
    • inbox
      • inbox_form.tpl.php
    • multipage
      • multipage_listing.tpl.php
    • news
      • news_content.tpl.php
      • news_last_contents.tpl.php
      • news_listing.tpl.php
    • page
      • page_content.tpl.php
    • partner
      • partner_listing.tpl.php
    • sharedlinks
      • sharedlinks_content.tpl.php
      • sharedlinks_last_contents.tpl.php
      • sharedlinks_listing.tpl.php
    • video
      • video_content.tpl.php
      • video_last_contents.tpl.php
      • video_listing.tpl.php
  • user
    • user_badge.tpl.php
    • user_password.tpl.php
  • widgets
    • analytics.tpl.php
    • block.tpl.php
    • comment.tpl.php
    • comment_disqus.tpl.php
    • comment_facebook.tpl.php
    • comment_last.tpl.php
    • comment_listing.tpl.php
    • form.tpl.php
    • languages.tpl.php
    • module_categories.tpl.php
    • module_search.tpl.php
    • navigation.tpl.php
    • networks.tpl.php
    • newsletter.tpl.php
    • sharethis.tpl.php

Structure of websiteUser

All these files have path doorgets/template/websiteUSer/ Here is the structure of the Website section:

  • wrapper.tpl.php
  • footer.tpl.php
  • header.tpl.php
  • contact
    • contact.tpl.php
  • index
    • home.tpl.php
  • Modules
    • blog
      • blog_content.tpl.php
      • blog_content.tpl.php
      • blog_listing.tpl.php
    • image
      • image_content.tpl.php
      • image_last_contents.tpl.php
      • image_listing.tpl.php
    • news
      • news_content.tpl.php
      • news_last_contents.tpl.php
      • news_listing.tpl.php
    • sharedlinks
      • sharedlinks_content.tpl.php
      • sharedlinks_last_contents.tpl.php
      • sharedlinks_listing.tpl.php
    • video
      • video_content.tpl.php
      • video_last_contents.tpl.php
      • video_listing.tpl.php
  • user
    • user_badge_header.tpl.php
  • widgets
    • analytics.tpl.php
    • block.tpl.php
    • comment.tpl.php
    • comment_disqus.tpl.php
    • comment_facebook.tpl.php
    • comment_last.tpl.php
    • comment_listing.tpl.php
    • form.tpl.php
    • languages.tpl.php
    • module_categories.tpl.php
    • module_search.tpl.php
    • navigation.tpl.php
    • networks.tpl.php
    • newsletter.tpl.php
    • sharethis.tpl.php

Edit a Template

To edit a Template simply select the file wanted with the associated Template Selector

Theme Template step 1

Then change the file open below with the amendments in block

and click on save

Write doorGets code 
You can do what you want with the code doorGets

Tag of opening and closing:

[{ }]

Return :

<?php ?>

Create a variable :

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

Return :

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

Print a variable :

[{!$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; ?>

Follow us

  • http://www.facebook.com/doorgets
  • http://www.twitter.com/doorgets

2012-2017 © doorGets™