]> CyberLeo.Net >> Repos - Github/YOURLS.git/blob - pages/examplepage.php
Rename example page to avoid overriding an actual page.
[Github/YOURLS.git] / pages / examplepage.php
1 <?php\r
2 \r
3 // Make sure we're in YOURLS context\r
4 if( !defined( 'YOURLS_ABSPATH' ) ) die();\r
5 \r
6 // Display page content. Any PHP, HTML and YOURLS function can go here.\r
7 $url = YOURLS_SITE . '/examplepage';\r
8 \r
9 yourls_html_head( 'examplepage', 'Example page' );\r
10 \r
11 ?>\r
12 \r
13 <p>This is an example page. Its URL is simply <?php echo $url; ?></p>\r
14 \r
15 <?php\r
16 \r
17 yourls_html_footer();\r
18 \r