eventsmanager

Boilerplate template for a theme iframe endpoint

Mar 14th, 2013
212
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. /**
  3.  * Template Name: Content Only
  4.  * @package WordPress
  5.  */
  6. /*
  7. This template can be used as a way to only show your events information without any template styling, which
  8. could come in useful if you were embedding an iframe on another site and displaying events that way.
  9.  
  10. You could add specific styling just for this page by modifying the code below.
  11.  
  12. To install, insert the whole contents of this snippet onto a new file such as "content-only-template.php" and add the file to your theme folder.
  13.  
  14. To use, create a page on your WordPress site, and select the template 'Content Only'. Add whatever content you want to the page such as EM shortcodes, and view the page.
  15. */
  16. ?>
  17. <!DOCTYPE html>
  18. <html <?php language_attributes(); ?>>
  19. <head>
  20. <meta charset="<?php bloginfo( 'charset' ); ?>" />
  21. <meta name="viewport" content="width=device-width" />
  22. <title><?php wp_title( '|', true, 'right' ); ?></title>
  23. <link rel="profile" href="http://gmpg.org/xfn/11" />
  24. <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
  25. </head>
  26.  
  27. <body>
  28.     <?php while ( have_posts() ) : the_post(); ?>
  29.         <?php the_content(); ?>
  30.     <?php endwhile; // end of the loop. ?>
  31. </body>
  32. </html>
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×