Created
February 9, 2013 17:38
-
-
Save kaustavdm/4746229 to your computer and use it in GitHub Desktop.
Code of top_view.php for web-mode issue #26. The indentation here is how web-mode was indenting the code when I did `M-x indent-region` on the entire buffer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Common top view | |
*/ | |
if(base_url() == current_url()) { | |
$class = "front"; | |
} else { | |
$class = "not-front"; | |
} | |
?> | |
<!DOCTYPE html> | |
<!-- HTML5 Mobile Boilerplate --> | |
<!--[if IEMobile 7]><html class="no-js iem7"><![endif]--> | |
<!--[if (gt IEMobile 7)|!(IEMobile)]><!--><html class="no-js" lang="en"><!--<![endif]--> | |
<!-- HTML5 Boilerplate --> | |
<!--[if lt IE 7]><html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]--> | |
<!--[if (IE 7)&!(IEMobile)]><html class="no-js lt-ie9 lt-ie8" lang="en"><![endif]--> | |
<!--[if (IE 8)&!(IEMobile)]><html class="no-js lt-ie9" lang="en"><![endif]--> | |
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]--> | |
<head> | |
<meta charset="utf-8"> | |
<!-- Always force latest IE rendering engine (even in intranet) & Chrome Frame --> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
<title> | |
<?php | |
if(isset($title)) { | |
echo $title; | |
} else { | |
$title = "CodeBinders Web Development Services LLP"; | |
echo $title; | |
} ?> | |
</title> | |
<?php if (isset($description)): ?> | |
<meta name="description" content="<?php echo $description; ?>"> | |
<?php endif; ?> | |
<?php if (isset($keywords)): ?> | |
<meta name="keywords" content="<?php echo $keywords; ?>"> | |
<?php endif; ?> | |
<meta name="author" content="CodeBinders Web Development Services LLP"> | |
<meta name="robots" content="index, follow"> | |
<link rel="stylesheet" type="text/css" media="all" href="<?php echo base_url('css/normalize.css'); ?>"> | |
<link rel="stylesheet" type="text/css" media="all" href="<?php echo base_url('css/col.css'); ?>"> | |
<link rel="stylesheet" type="text/css" media="all" href="<?php echo base_url('css/12cols.css'); ?>"> | |
<link rel="stylesheet" type="text/css" media="all" href="<?php echo base_url('css/styles.css'); ?>"> | |
<script type="text/javascript">var baseUrl = <?php echo "'" . base_url() . "'"; ?>;</script> | |
<script type="text/javascript" src="<?php echo base_url('js/modernizr.custom.00782.js'); ?>"></script> | |
</head> | |
<body class="cb-body <?php echo $class; ?>"> | |
<div id="container"> | |
<div id="logo"> | |
<a id="logo-link" href="<?php echo site_url(); ?>" rel="Home" title="CodeBinders"> | |
<img src="/images/cb_logo.png" alt="CodeBinders Web Development Services LLP"></a> | |
</div><!-- /#logo --> | |
<div id="nav"> | |
<a href="<?php echo site_url(); ?>" class="nav-link home" title="Home">Home</a> | |
<a href="<?php echo site_url('about'); ?>" class="nav-link about" title="About Us">History</a> | |
<a href="<?php echo site_url('portfolio'); ?>" class="nav-link portfolio" title="Our Portfolio">Museum</a> | |
<a href="<?php echo site_url('services'); ?>" class="nav-link services" title="Our Services">Wizardry</a> | |
<a href="<?php echo site_url('contact'); ?>" class="nav-link contact" title="Contact Us">Get in Touch</a> | |
</div><!-- /#navigation --> | |
<div id="content-box" <?php if ($class == "front") { | |
echo "class='hidden'"; | |
} ?>> | |
<div id="content"> | |
<?php if ($class=="front") { | |
echo "<h1 id='page_title' class='hidden'>CodeBinders</h1><p class='hidden'>CodeBinders Web Development Services LLP is a web development company based in Kolkata, India.</p>"; | |
} ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment