Skip to content
This repository has been archived by the owner on Oct 8, 2021. It is now read-only.

Commit

Permalink
Updated PHP source code view in demo template.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaspermdegroot committed Dec 14, 2012
1 parent af8e011 commit 7c12806
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 22 deletions.
44 changes: 22 additions & 22 deletions docs/demos/_demo-template/index.html
Expand Up @@ -36,28 +36,28 @@ <h1>Demo title</h1>

<div data-role="content">

<div class="content-primary">
<h2>How does "view source code" work</h2>
<div data-demo-html="true" data-demo-js="true" data-demo-css="true" data-demo-php="file-name">
<p>This is a div with...</p>
<p>data-demo-html="true" to include the markup in this div in the source code view</p>
<p>data-demo-js="true" to include all scripts from the head in the source code view</p>
<p>data-demo-css="true" to include all style from the head in the source code view</p>
<p>data-demo-php="fileName" to include PHP script from file-name.php in the source code view</p>
</div><!--/demo-html -->

<h3>Specify which markup, script or style to show</h3>

<div data-demo-html="#myMarkup" data-demo-js="#myScript" data-demo-css="#myStyle">
<p>This is a div with...</p>
<p>data-demo-html="#myMarkup" to include specific markup in the source code view</p>
<p>data-demo-js="#myScript" to include a specific script from the head in the source code view</p>
<p>data-demo-css="#myStyle" to include a specific style from the head in the source code view</p>
</div><!--/demo-html -->
</div><!--/content-primary -->
<div class="content-primary">
<h2>How does "view source code" work</h2>
<div data-demo-html="true" data-demo-js="true" data-demo-css="true">
<p>This is a div with...</p>
<p>data-demo-html="true" to include the markup in this div in the source code view.</p>
<p>data-demo-js="true" to include all scripts from the head in the source code view.</p>
<p>data-demo-css="true" to include all style from the head in the source code view.</p>
</div><!--/demo-html -->
<h3>Specify which markup, script or style to show</h3>
<div data-demo-html="#myMarkup" data-demo-js="#myScript" data-demo-css="#myStyle" data-demo-php="source.php">
<p>This is a div with...</p>
<p>data-demo-html="#myMarkup" to include specific markup in the source code view.</p>
<p>data-demo-js="#myScript" to include a specific script from the head in the source code view.</p>
<p>data-demo-css="#myStyle" to include a specific style from the head in the source code view.</p>
<p>data-demo-php="source.php" to include PHP script from source.php, which is the plain text version of file-name.php, in the source code view (see files in this folder).</p>
</div><!--/demo-html -->
</div><!--/content-primary -->

</div><!-- /content -->

Expand Down
4 changes: 4 additions & 0 deletions docs/demos/_demo-template/source.php
@@ -0,0 +1,4 @@
<?php
header( "Content-Type: text/plain" );
echo( file_get_contents( "file-name.php" ) );
?>

0 comments on commit 7c12806

Please sign in to comment.