Syntax Example

From WHMCS Documentation

Revision as of 13:39, 4 May 2020 by SarahK (talk | contribs)

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

<div class="source-cli">
Some preformatted text
</div>

Multi-line Code Block


Line
Line
Line
Line
Line

<div class="source-cli">
<br/>Line
<br/>Line
<br/>Line
<br/>Line
<br/>Line
</div>

PHP Source Code

<?php
$license = 'WHMCS-123456789';
$db_host = 'localhost';
$db_username = 'a_user';
$db_password = 'a_password';
$db_name = 'whmcs';
$cc_encryption_hash = 'abCU55KUy40y38PWPfyXLPDQXG3P7TkcJhWEdwoCqf0keG7TLvHmaa2XHWCFGXXx';
$templates_compiledir = 'templates_c/';
$mysql_charset = 'utf8';

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

**Below is the Preferred Method**

Column NameColumn Name
Value$2.00
Value$1.00
Value$0.50
<table class="table table-striped table-condensed">
<tr><th>Starting Quantity</th><th>Price per Database</th></tr>
<tr><td>0</td><td>$2.00</td></tr>
<tr><td>10</td><td>$1.00</td></tr>
<tr><td>20</td><td>$0.50</td></tr>
</table>
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