Difference between revisions of "Syntax Example"

From WHMCS Documentation

(Icons)
Line 6: Line 6:
  
 
<i class="fa fa-wrench"></i> <i class="fa fa-gear"></i> <i class="fa fa-cube"></i>
 
<i class="fa fa-wrench"></i> <i class="fa fa-gear"></i> <i class="fa fa-cube"></i>
 +
 +
<source lang="php">
 +
<i class="fa fa-wrench"></i> <i class="fa fa-gear"></i> <i class="fa fa-cube"></i>
 +
</source>
  
 
See https://fortawesome.github.io/Font-Awesome/icons/ for a full list of possible icon values.
 
See https://fortawesome.github.io/Font-Awesome/icons/ for a full list of possible icon values.
Line 16: Line 20:
  
 
<div class="docs-related-pages">Text inside here will be centered. Use this to include links to related pages.</div>
 
<div class="docs-related-pages">Text inside here will be centered. Use this to include links to related pages.</div>
 +
 +
<source lang="php">
 +
<div class="docs-related-pages">Text inside here will be centered. Use this to include links to related pages.</div>
 +
</source>
  
 
==Alerts==
 
==Alerts==
Line 23: Line 31:
 
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
 
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
 
</div>
 
</div>
 +
 +
<source lang="php">
 +
<div class="docs-alert-success">
 +
<span class="title">xyz</span><br />
 +
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
 +
</div>
 +
</source>
  
 
<div class="docs-alert-info">
 
<div class="docs-alert-info">
Line 28: Line 43:
 
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
 
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
 
</div>
 
</div>
 +
 +
<source lang="php">
 +
<div class="docs-alert-info">
 +
<span class="title">xyz</span><br />
 +
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
 +
</div>
 +
</source>
  
 
<div class="docs-alert-warning">
 
<div class="docs-alert-warning">
Line 33: Line 55:
 
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
 
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
 
</div>
 
</div>
 +
 +
<source lang="php">
 +
<div class="docs-alert-warning">
 +
<span class="title">xyz</span><br />
 +
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
 +
</div>
 +
</source>
  
 
<div class="docs-alert-danger">
 
<div class="docs-alert-danger">
Line 38: Line 67:
 
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
 
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
 
</div>
 
</div>
 +
 +
<source lang="php">
 +
<div class="docs-alert-danger">
 +
<span class="title">xyz</span><br />
 +
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
 +
</div>
 +
</source>
  
 
==Tables==
 
==Tables==
Line 55: Line 91:
 
</tr>
 
</tr>
 
</table>
 
</table>
 +
 +
<source lang="php">
 +
<table class="table table-striped">
 +
<tr>
 +
<td>'''Field Title'''</td>
 +
<td>'''Another Field'''</td>
 +
</tr>
 +
<tr>
 +
<td>Row 1</td>
 +
<td>Some value</td>
 +
</tr>
 +
<tr>
 +
<td>Row 2</td>
 +
<td>Another value</td>
 +
</tr>
 +
</table>
 +
</source>
  
 
<table class="table table-bordered">
 
<table class="table table-bordered">
Line 70: Line 123:
 
</tr>
 
</tr>
 
</table>
 
</table>
 +
 +
<source lang="php">
 +
<table class="table table-bordered">
 +
<tr>
 +
<td>'''Field Title'''</td>
 +
<td>'''Another Field'''</td>
 +
</tr>
 +
<tr>
 +
<td>Row 1</td>
 +
<td>Some value</td>
 +
</tr>
 +
<tr>
 +
<td>Row 2</td>
 +
<td>Another value</td>
 +
</tr>
 +
</table>
 +
</source>
  
 
==Columns==
 
==Columns==
Line 83: Line 153:
 
</div>
 
</div>
 
</div>
 
</div>
 +
 +
<source lang="php">
 +
<div class="row">
 +
<div class="col-sm-6">
 +
Column 1 text goes here...
 +
</div>
 +
<div class="col-sm-6">
 +
Column 2 text goes here...
 +
</div>
 +
</div>
 +
</source>
  
 
'''3 Columns'''
 
'''3 Columns'''
Line 97: Line 178:
 
</div>
 
</div>
 
</div>
 
</div>
 +
 +
<source lang="php">
 +
<div class="row">
 +
<div class="col-sm-4">
 +
Column 1 text goes here...
 +
</div>
 +
<div class="col-sm-4">
 +
Column 2 text goes here...
 +
</div>
 +
<div class="col-sm-4">
 +
Column 3 text goes here...
 +
</div>
 +
</div>
 +
</source>
  
 
==Lists==
 
==Lists==

Revision as of 21:59, 28 November 2015

Text

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Icons

<i class="fa fa-wrench"></i> <i class="fa fa-gear"></i> <i class="fa fa-cube"></i>

See https://fortawesome.github.io/Font-Awesome/icons/ for a full list of possible icon values.

Pre-formatted Text

Some preformatted text

Standout Text

<div class="docs-related-pages">Text inside here will be centered. Use this to include links to related pages.</div>

Alerts

xyz
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

<div class="docs-alert-success">
<span class="title">xyz</span><br />
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
</div>

xyz
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

<div class="docs-alert-info">
<span class="title">xyz</span><br />
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
</div>

xyz
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

<div class="docs-alert-warning">
<span class="title">xyz</span><br />
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
</div>

xyz
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

<div class="docs-alert-danger">
<span class="title">xyz</span><br />
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
</div>

Tables

Field Title Another Field
Row 1 Some value
Row 2 Another value
<table class="table table-striped">
<tr>
<td>'''Field Title'''</td>
<td>'''Another Field'''</td>
</tr>
<tr>
<td>Row 1</td>
<td>Some value</td>
</tr>
<tr>
<td>Row 2</td>
<td>Another value</td>
</tr>
</table>
Field Title Another Field
Row 1 Some value
Row 2 Another value
<table class="table table-bordered">
<tr>
<td>'''Field Title'''</td>
<td>'''Another Field'''</td>
</tr>
<tr>
<td>Row 1</td>
<td>Some value</td>
</tr>
<tr>
<td>Row 2</td>
<td>Another value</td>
</tr>
</table>

Columns

2 Columns

Column 1 text goes here...

Column 2 text goes here...

<div class="row">
<div class="col-sm-6">
Column 1 text goes here...
</div>
<div class="col-sm-6">
Column 2 text goes here...
</div>
</div>

3 Columns

Column 1 text goes here...

Column 2 text goes here...

Column 3 text goes here...

<div class="row">
<div class="col-sm-4">
Column 1 text goes here...
</div>
<div class="col-sm-4">
Column 2 text goes here...
</div>
<div class="col-sm-4">
Column 3 text goes here...
</div>
</div>

Lists

  • This is a list
    • This is a list
    • This is a list
  • This is a list
  • This is a list
  1. This is a numbered list
  2. This is a numbered list
    1. This is a numbered list
    2. This is a numbered list
    3. This is a numbered list

PHP Source Code

<?php
$license = 'Dev-123456789';
$db_host = 'localhost';
$db_username = 'root';
$db_password = 'whmcs';
$db_name = 'whmcs';
$cc_encryption_hash = 'e07U55KUy40y38PWPfyXLPDQXG3P7TkcJhWEdwoCqf0keG7TLvHmaa2XHWCFGNHf';
$templates_compiledir = 'templates_c/';
$mysql_charset = 'utf8';

date_default_timezone_set('Europe/London');

define('DEMO_MODE', true);

//$display_errors = true;