Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save rafpro/9890656 to your computer and use it in GitHub Desktop.
Save rafpro/9890656 to your computer and use it in GitHub Desktop.
<?php
/* Landing Page Boiler Plate */
$key = lp_get_parent_directory(dirname(__FILE__));
$path = LANDINGPAGES_UPLOADS_URLPATH ."$key/";
$url = plugins_url();
/* Define Landing Pages's custom pre-load hook for 3rd party plugin integration */
do_action('lp_init');
/* Load $post data and start normal WordPress Loop */
if (have_posts()) : while (have_posts()) : the_post();
$content = lp_content_area(null,null,true); // Main Content Area from wp_editor
// Template config variables go here
?>
<!DOCTYPE html>
<html class="no-js">
<head>
<title><?php wp_title(); ?></title>
<!--
<meta name="viewport" content="initial-scale=1,user-scalable=no,maximum-scale=1,width=device-width"> -->
<link rel="stylesheet" href="<?php echo $path;?>assets/style.css" type="text/css">
<?php wp_head(); // Load Regular WP Head
do_action('lp_head'); // Load Custom Landing Page Specific Header Items
?>
</head>
<body <?php body_class($class); ?>>
<!--[if lt IE 8]>
<p class="browsehappy">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</p>
<![endif]-->
<?php break;
endwhile; endif; // End wordpress loop
do_action('lp_footer');
wp_footer();
?>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment