Difference between revisions of "Syntax Example"

From WHMCS Documentation

(PHP Source Code)
(Pre-formatted Text)
Line 15: Line 15:
 
==Pre-formatted Text==
 
==Pre-formatted Text==
  
Some preformatted text
+
<div class="source-cli">
 +
Some preformatted text
 +
</div>
  
 
==Standout Text==
 
==Standout Text==

Revision as of 13:21, 4 May 2020

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 = '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';