Пример #1
0
function activeTab($currentTab)
{
    $currentPageArray = explode('/', currPageURL());
    $currentPage = end($currentPageArray);
    if ($currentPage == $currentTab) {
        echo 'class="active"';
    }
}
Пример #2
0
">
<meta name="keywords" content="<?php 
keywords();
?>
">
<meta name="author" content="">

<!-- Le Facebook tags -->

<meta property="og:title" content="<?php 
title();
?>
" />
<meta property="og:type" content="website" />
<meta property="og:url" content="<?php 
currPageURL();
?>
" />
<meta property="og:image" content="http://placehold.it/300X300&text=Facebook Post Icon" />
<meta property="og:description" content="<?php 
description();
?>
" />

<!-- Le styles -->
<link href="css/bootstrap.css" rel="stylesheet">
<link href="css/custom.css" rel="stylesheet">
<link href="css/bootstrap-responsive.css" rel="stylesheet">

<!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
Пример #3
0
					<input class="embedCode" type="text" id="embed" value= "null" disabled = "true">
				</div>
			</div>
			
			<div class="row">
			    <footer class="footer">
					<div class="container">
						<p class="text-muted">MapSync is created by <a href="http://bellum128.weebly.com">bellum128 Productions</a></p>
					</div>
			    </footer>
			</div>	
		</div>

		<script>
			var url = <?php 
print '"' . htmlentities(currPageURL()) . '"';
?>
;
			function updateEmbedCode()
			{
				document.getElementById("embed").value = '<iframe style="width:100%;height:690px;border:none;", src="' + url + '/frame.php?map=' + document.getElementById("chkMap").checked +'&infobox='+ document.getElementById("chkInfo").checked +'">MapSync is not supported by this browser.</iframe>';
			}
			document.getElementById("chkMap").onclick = function() 
			{
				updateEmbedCode();
			}

			document.getElementById("chkInfo").onclick = function() 
			{
				updateEmbedCode();
			}