Created
December 12, 2016 13:16
-
-
Save Chriswilldo/3d889adb4be726bc54184f8a1c86b6f1 to your computer and use it in GitHub Desktop.
I don't think it'd be the problem but I switched the jquery and stuff to their latest versions. It's been pretty consistent so far.
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
<!-- Latest compiled and minified CSS --> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous"> | |
<!-- Optional theme --> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous"> | |
<link rel="stylesheet" href="//code.jquery.com/ui/1.12.1/themes/smoothness/jquery-ui.css"> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css"> | |
<style> | |
/* Sticky footer styles | |
-------------------------------------------------- */ | |
html, | |
body { | |
height: 100%; | |
} | |
#wrap { | |
min-height: 100%; | |
height: auto; | |
margin 0 auto -60px; padding: 0 0 60px;} | |
} | |
#footer { height: 60px; background-color: #f5f5f5; } | |
#btn-debug { position: absolute; }; | |
</style> |
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 | |
function data_page($dbc, $id) { | |
$q = "SELECT * FROM pages WHERE id = $id"; | |
$r = mysqli_query($dbc, $q); | |
$data = mysqli_fetch_assoc($r); | |
$data['body_nohtml']= strip_tags($data['body']); | |
if($data['body'] == $data['body_nohtml']) { | |
$data['body_formatted'] = '<p>'.$data['body'].'</p>'; | |
} else { | |
$data['body_formatted'] = $data['body']; | |
} | |
return $data; | |
} | |
?> |
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 | |
include('config/setup.php'); | |
?> | |
<!DOCTYPE html> | |
<html> | |
<head> | |
<title><?php echo $page['title'].' | '.$site_title; ?></title> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<?php include('config/css.php'); ?> | |
<?php include('config/js.php'); ?> | |
</head> | |
<body> | |
<div id="wrap"> | |
<?php include(D_TEMPLATE.'/navigation.php'); ?> | |
<div class="container"> | |
<h1><?php echo $page['header']; ?></h1> | |
<?php echo $page['body_formatted']; ?> | |
<?php if(isset($_GET['debug']) == 1) { ?> | |
<pre> | |
<?php print_r($page); ?> | |
</pre> | |
<?php } ?> | |
</div> | |
</div><!-- end wrap --> | |
<?php include(D_TEMPLATE.'/footer.php'); ?> | |
<div id="console-debug"> | |
Test debug window | |
</div> | |
</body> | |
</html> |
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 //javascript ?> | |
<!-- jquery --> | |
<script src="//code.jquery.com.com/jquery-3.1.0.min.js"</script> | |
<!-- jqueryui --> | |
<script src="//code.jquery.com.com/ui/1.12.1/jquery-ui.js"</script> | |
<!-- Latest compiled and minified JavaScript --> | |
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script> | |
<script> | |
$(document).ready(function() { | |
$("#console-debug").hide(); | |
}); | |
</script |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment