Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
emrickj authored Apr 16, 2018
1 parent d38e723 commit 742d446
Show file tree
Hide file tree
Showing 30 changed files with 448 additions and 406 deletions.
28 changes: 15 additions & 13 deletions theme2.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<?php
//ini_set('display_errors', 'On');
//error_reporting(E_ALL);
Expand All @@ -17,9 +10,18 @@

$xml=simplexml_load_file("data/website".$b.".xml") or die("<br><br>Error: Cannot create object, please make sure that 'website".$b.".xml' is in the 'data' directory.");
$xml2=simplexml_load_file("data/website2.xml");
//print_r($xml);
//echo $xml->image[1];
$page=$xml->xpath("/website/page[position()=".$p."]");

$lang = $page[0]['language'];
if ($lang == "") $lang="en";
?>
<!DOCTYPE html>
<html lang="<?php echo $lang ?>">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<title><?php echo strip_tags($xml->title) ?></title>
<style>
t1 { white-space: pre-wrap;}
Expand Down Expand Up @@ -52,8 +54,8 @@
</div>
<div class="col-sm-8">
<?php
if(strlen($xml->page[$p-1]->image)>4)
echo "<img class='img-responsive' src='".$xml->page[$p-1]->image."'>\n";
if(strlen($page[0]->image)>4)
echo "<img class='img-responsive' src='".$page[0]->image."'>\n";
?>
<br>
</div>
Expand All @@ -68,7 +70,7 @@
if($name=="") dispContents($p,ltrim($b,"_"));
else if(sendEmail($name,$email,$subject,$message))
echo "Contact Information Submitted. Thank you.";
if($xml->page[$p-1]['type']=="form" && $name=="") {
if($page[0]['type']=="form" && $name=="") {
?>
<form class="form-horizontal" role="form" method="post">
<div class="form-group">
Expand Down Expand Up @@ -99,7 +101,7 @@
</div>
</form><?php
}
if($xml->page[$p-1]['type']=="comments" && $name=="") {
if($page[0]['type']=="comments" && $name=="") {
?>
<!-- begin htmlcommentbox.com -->
<div id="HCB_comment_box"><a href="https://www.htmlcommentbox.com">HTML Comment Box</a> is loading comments...</div>
Expand Down
28 changes: 15 additions & 13 deletions theme2cda.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<?php
//ini_set('display_errors', 'On');
//error_reporting(E_ALL);
Expand All @@ -17,9 +10,18 @@

$xml=simplexml_load_file("data/website".$b.".xml") or die("<br><br>Error: Cannot create object, please make sure that 'website".$b.".xml' is in the 'data' directory.");
$xml2=simplexml_load_file("data/website2.xml");
//print_r($xml);
//echo $xml->image[1];
$page=$xml->xpath("/website/page[position()=".$p."]");

$lang = $page[0]['language'];
if ($lang == "") $lang="en";
?>
<!DOCTYPE html>
<html lang="<?php echo $lang ?>">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<title><?php echo strip_tags($xml->title) ?></title>
<style>
@media (min-width: 576px) {
Expand All @@ -34,8 +36,8 @@
<div class="container-fluid" style="padding-top: 20px;padding-bottom: 20px;">
<div class="card bg-light">
<?php
if(strlen($xml->page[$p-1]->image)>4)
echo "<img class='card-img-top' src='".$xml->page[$p-1]->image."' alt='Card image'>\n";
if(strlen($page[0]->image)>4)
echo "<img class='card-img-top' src='".$page[0]->image."' alt='Card image'>\n";
?>
<nav class="navbar navbar-expand-md bg-primary navbar-dark">
<a class="navbar-brand" href="#"><?php echo $xml->title ?></a>
Expand All @@ -52,7 +54,7 @@
if($name=="") dispContents($p,ltrim($b,"_"));
else if(sendEmail($name,$email,$subject,$message))
echo "Contact Information Submitted. Thank you.";
if($xml->page[$p-1]['type']=="form" && $name=="") {
if($page[0]['type']=="form" && $name=="") {
?>
<form class="form-horizontal" role="form" method="post">
<div class="form-group row">
Expand Down Expand Up @@ -83,7 +85,7 @@
</div>
</form><?php
}
if($xml->page[$p-1]['type']=="comments" && $name=="") {
if($page[0]['type']=="comments" && $name=="") {
?>
<!-- begin htmlcommentbox.com -->
<div id="HCB_comment_box" style="background-color: transparent;"><a href="https://www.htmlcommentbox.com">HTML Comment Box</a> is loading comments...</div>
Expand Down
28 changes: 15 additions & 13 deletions theme2cdb.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<?php
//ini_set('display_errors', 'On');
//error_reporting(E_ALL);
Expand All @@ -17,9 +10,18 @@

$xml=simplexml_load_file("data/website".$b.".xml") or die("<br><br>Error: Cannot create object, please make sure that 'website".$b.".xml' is in the 'data' directory.");
$xml2=simplexml_load_file("data/website2.xml");
//print_r($xml);
//echo $xml->image[1];
$page=$xml->xpath("/website/page[position()=".$p."]");

$lang = $page[0]['language'];
if ($lang == "") $lang="en";
?>
<!DOCTYPE html>
<html lang="<?php echo $lang ?>">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<title><?php echo strip_tags($xml->title) ?></title>
<style>
@media (min-width: 576px) {
Expand All @@ -45,12 +47,12 @@
</div>
</nav>
<div class='card-body'><?php
if(strlen($xml->page[$p-1]->image)>4)
echo "<img class='img-fluid' style='display: block;margin: auto;' src='".$xml->page[$p-1]->image."'>\n";
if(strlen($page[0]->image)>4)
echo "<img class='img-fluid' style='display: block;margin: auto;' src='".$page[0]->image."'>\n";
if($name=="") dispContents($p,ltrim($b,"_"));
else if(sendEmail($name,$email,$subject,$message))
echo "Contact Information Submitted. Thank you.";
if($xml->page[$p-1]['type']=="form" && $name=="") {
if($page[0]['type']=="form" && $name=="") {
?>
<form class="form-horizontal" role="form" method="post">
<div class="form-group row">
Expand Down Expand Up @@ -81,7 +83,7 @@
</div>
</form><?php
}
if($xml->page[$p-1]['type']=="comments" && $name=="") {
if($page[0]['type']=="comments" && $name=="") {
?>
<!-- begin htmlcommentbox.com -->
<div id="HCB_comment_box" style="background-color: transparent;"><a href="https://www.htmlcommentbox.com">HTML Comment Box</a> is loading comments...</div>
Expand Down
28 changes: 15 additions & 13 deletions theme2cdsu.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<?php
//ini_set('display_errors', 'On');
//error_reporting(E_ALL);
Expand All @@ -17,8 +10,10 @@

$xml=simplexml_load_file("data/website".$b.".xml") or die("<br><br>Error: Cannot create object, please make sure that 'website".$b.".xml' is in the 'data' directory.");
$xml2=simplexml_load_file("data/website2.xml");
//print_r($xml);
//echo $xml->image[1];
$page=$xml->xpath("/website/page[position()=".$p."]");

$lang = $page[0]['language'];
if ($lang == "") $lang="en";

// function below is used for Bootstrap 4.0 Navigation Bar for this current theme

Expand All @@ -37,6 +32,13 @@ function displayMenu_nban($pn) {
}
}
?>
<!DOCTYPE html>
<html lang="<?php echo $lang ?>">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<title><?php echo strip_tags($xml->title) ?></title>
<style>
@media (min-width: 576px) {
Expand All @@ -51,8 +53,8 @@ function displayMenu_nban($pn) {
<div class="container-fluid" style="padding-top: 20px;padding-bottom: 20px;">
<div class="card bg-light">
<?php
if(strlen($xml->page[$p-1]->image)>4)
echo "<img class='card-img-top' id='pgimg' src='".$xml->page[$p-1]->image."' alt='Card image'>\n";
if(strlen($page[0]->image)>4)
echo "<img class='card-img-top' id='pgimg' src='".$page[0]->image."' alt='Card image'>\n";
?>
<nav class="navbar navbar-expand-md bg-primary navbar-dark">
<a class="navbar-brand" href="#"><?php echo $xml->title ?></a>
Expand All @@ -69,7 +71,7 @@ function displayMenu_nban($pn) {
if($name=="") dispContents($p,ltrim($b,"_"));
else if(sendEmail($name,$email,$subject,$message))
echo "Contact Information Submitted. Thank you.";
if($xml->page[$p-1]['type']=="form" && $name=="") {
if($page[0]['type']=="form" && $name=="") {
?>
<form class="form-horizontal" role="form" method="post">
<div class="form-group row">
Expand Down Expand Up @@ -100,7 +102,7 @@ function displayMenu_nban($pn) {
</div>
</form><?php
}
if($xml->page[$p-1]['type']=="comments" && $name=="") {
if($page[0]['type']=="comments" && $name=="") {
?>
<!-- begin htmlcommentbox.com -->
<div id="HCB_comment_box" style="background-color: transparent;"><a href="https://www.htmlcommentbox.com">HTML Comment Box</a> is loading comments...</div>
Expand Down
28 changes: 15 additions & 13 deletions theme2cs.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<?php
//ini_set('display_errors', 'On');
//error_reporting(E_ALL);
Expand All @@ -17,9 +10,18 @@

$xml=simplexml_load_file("data/website".$b.".xml") or die("<br><br>Error: Cannot create object, please make sure that 'website".$b.".xml' is in the 'data' directory.");
$xml2=simplexml_load_file("data/website2.xml");
//print_r($xml);
//echo $xml->image[1];
$page=$xml->xpath("/website/page[position()=".$p."]");

$lang = $page[0]['language'];
if ($lang == "") $lang="en";
?>
<!DOCTYPE html>
<html lang="<?php echo $lang ?>">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<title><?php echo strip_tags($xml->title) ?></title>
<style>
t1 { white-space: pre-wrap;}
Expand Down Expand Up @@ -53,15 +55,15 @@
<div class="col-sm-8">
<div class="panel panel-primary">
<?php
if(strlen($xml->page[$p-1]->image)>4)
echo "<img src='".$xml->page[$p-1]->image."' style='width: 100%;height: auto;'>\n";
if(strlen($page[0]->image)>4)
echo "<img src='".$page[0]->image."' style='width: 100%;height: auto;'>\n";
?>
<div class="panel-body">
<?php
if($name=="") dispContents($p,ltrim($b,"_"));
else if(sendEmail($name,$email,$subject,$message))
echo "Contact Information Submitted. Thank you.";
if($xml->page[$p-1]['type']=="form" && $name=="") {
if($page[0]['type']=="form" && $name=="") {
?>
<form class="form-horizontal" role="form" method="post">
<div class="form-group">
Expand Down Expand Up @@ -92,7 +94,7 @@
</div>
</form><?php
}
if($xml->page[$p-1]['type']=="comments" && $name=="") {
if($page[0]['type']=="comments" && $name=="") {
?>
<!-- begin htmlcommentbox.com -->
<div id="HCB_comment_box"><a href="https://www.htmlcommentbox.com">HTML Comment Box</a> is loading comments...</div>
Expand Down
28 changes: 15 additions & 13 deletions theme2dng.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<?php
//ini_set('display_errors', 'On');
//error_reporting(E_ALL);
Expand All @@ -17,9 +10,18 @@

$xml=simplexml_load_file("data/website".$b.".xml") or die("<br><br>Error: Cannot create object, please make sure that 'website".$b.".xml' is in the 'data' directory.");
$xml2=simplexml_load_file("data/website2.xml");
//print_r($xml);
//echo $xml->image[1];
$page=$xml->xpath("/website/page[position()=".$p."]");

$lang = $page[0]['language'];
if ($lang == "") $lang="en";
?>
<!DOCTYPE html>
<html lang="<?php echo $lang ?>">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<title><?php echo strip_tags($xml->title) ?></title>
<style>
@media (min-width: 576px) {
Expand Down Expand Up @@ -48,8 +50,8 @@
</div>
<div class="col-md-8">
<?php
if(strlen($xml->page[$p-1]->image)>4)
echo "<img class='img-fluid' src='".$xml->page[$p-1]->image."'>\n";
if(strlen($page[0]->image)>4)
echo "<img class='img-fluid' src='".$page[0]->image."'>\n";
?>
<br>
</div>
Expand All @@ -64,7 +66,7 @@
if($name=="") dispContents($p,ltrim($b,"_"));
else if(sendEmail($name,$email,$subject,$message))
echo "Contact Information Submitted. Thank you.";
if($xml->page[$p-1]['type']=="form" && $name=="") {
if($page[0]['type']=="form" && $name=="") {
?>
<form class="form-horizontal" role="form" method="post">
<div class="form-group row">
Expand Down Expand Up @@ -95,7 +97,7 @@
</div>
</form><?php
}
if($xml->page[$p-1]['type']=="comments" && $name=="") {
if($page[0]['type']=="comments" && $name=="") {
?>
<!-- begin htmlcommentbox.com -->
<div id="HCB_comment_box"><a href="https://www.htmlcommentbox.com">HTML Comment Box</a> is loading comments...</div>
Expand Down
Loading

0 comments on commit 742d446

Please sign in to comment.