Skip to content

Commit d0b817b

Browse files
Updated demo template file for PHP demos
1 parent 6dd513d commit d0b817b

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<?php
2+
// PHP script here
3+
?>

docs/demos/_demo-template/index.html

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
</script>
1515
<script src="../../../js/"></script>
1616
<script>
17-
// Script here
17+
// JavaScript here
1818
</script>
1919
<script id="myScript">
2020
// myScript
@@ -42,10 +42,11 @@ <h2>Heading</h2>
4242

4343
<h3>Subheading</h3>
4444

45-
<div data-demo-html="true" data-demo-js="true" data-demo-css="true">
45+
<div data-demo-html="true" data-demo-js="true" data-demo-css="true" data-demo-php="file-name">
4646
<!-- data-demo-html="true" to include the markup in this div in the source code view -->
4747
<!-- data-demo-js="true" to include scripts from the head in the source code view -->
48-
<!-- data-demo-css="true" to include style from the head in the source code view -->
48+
<!-- data-demo-css="true" to include style from the head in the source code view -->
49+
<!-- data-demo-php="fileName" to include PHP script from file-name.php in the source code view -->
4950
</div><!--/demo-html -->
5051

5152
<h3>Subheading</h3>

0 commit comments

Comments
 (0)