aboutsummaryrefslogtreecommitdiff
path: root/pages/examplepage.php
blob: f02d6ec35ef0e7db9da08cb91a30438465ef14f6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?php

// Make sure we're in YOURLS context
if( !defined( 'YOURLS_ABSPATH' ) ) {
	echo "Try using a URL without the /pages/ part";
	die();
}

// Display page content. Any PHP, HTML and YOURLS function can go here.
$url = YOURLS_SITE . '/examplepage';

yourls_html_head( 'examplepage', 'Example page' );

?>

<p>This is an example page. Its URL is simply <?php echo $url; ?></p>

<?php

yourls_html_footer();