[ Index ]

PHP Cross Reference of YOURLS

title

Body

[close]

/user/pages/ -> examplepage.php (source)

   1  <?php
   2  
   3  // Make sure we're in YOURLS context
   4  if( !defined( 'YOURLS_ABSPATH' ) ) {
   5      echo "Try using a URL without the /pages/ part";
   6      die();
   7  }
   8  
   9  // Display page content. Any PHP, HTML and YOURLS function can go here.
  10  $url = YOURLS_SITE . '/examplepage';
  11  
  12  yourls_html_head( 'examplepage', 'Example page' );
  13  
  14  ?>
  15  
  16  <p>This is an example page. Its URL is simply <?php echo $url; ?></p>
  17  
  18  <?php
  19  
  20  yourls_html_footer();
  21  


Generated: Thu Sep 19 05:10:04 2024 Cross-referenced by PHPXref 0.7.1