windhamdavid 2 years ago
parent
commit
e433c6d441
9 changed files with 2647 additions and 0 deletions
  1. 854 0
      rtl.css
  2. 49 0
      search.php
  3. 39 0
      servervars.php
  4. 236 0
      service-request.php
  5. 22 0
      sidebar.php
  6. 42 0
      single.php
  7. 1284 0
      style.css
  8. 60 0
      tag.php
  9. 61 0
      taxonomy-post_format.php

+ 854 - 0
rtl.css

@@ -0,0 +1,854 @@
+/*
+Theme Name: Twenty Fourteen
+Description: Adds support for languages written in a Right To Left (RTL) direction.
+It's easy, just a matter of overwriting all the horizontal positioning attributes
+of your CSS stylesheet in a separate stylesheet file named rtl.css.
+
+See http://codex.wordpress.org/Right_to_Left_Language_Support
+*/
+
+/**
+ * Table of Contents:
+ *
+ * 1.0 - Reset
+ * 2.0 - Repeatable Patterns
+ * 4.0 - Header
+ * 5.0 - Navigation
+ * 6.0 - Content
+ *   6.3 - Entry Meta
+ *   6.4 - Entry Content
+ *   6.5 - Galleries
+ *   6.7 - Post/Image/Paging Navigation
+ *   6.10 - Contributor Page
+ *   6.14 - Comments
+ * 7.0 - Sidebar
+ *   7.1 - Widgets
+ *   7.2 - Content Sidebar Widgets
+ * 9.0 - Featured Content
+ * 10.0 - Media Queries
+ * -----------------------------------------------------------------------------
+ */
+
+
+/**
+ * 1.0 Reset
+ * -----------------------------------------------------------------------------
+ */
+
+body {
+	direction: rtl;
+	unicode-bidi: embed;
+}
+
+a {
+	display: inline-block;
+}
+
+ul,
+ol {
+	margin: 0 20px 24px 0;
+}
+
+li > ul,
+li > ol {
+	margin: 0 20px 0 0;
+}
+
+caption,
+th,
+td {
+	text-align: right;
+}
+
+
+/**
+ * 2.0 Repeatable Patterns
+ * -----------------------------------------------------------------------------
+ */
+
+.wp-caption-text {
+	padding-left: 10px;
+	padding-right: 0;
+}
+
+.screen-reader-text:focus {
+	right: 5px;
+	left: auto;
+}
+
+
+/**
+ * 4.0 Header
+ * -----------------------------------------------------------------------------
+ */
+
+.site-title {
+	float: right;
+}
+
+.search-toggle {
+	float: left;
+	margin-left: 38px;
+	margin-right: auto;
+}
+
+.search-box .search-field {
+	float: left;
+	padding: 1px 6px 2px 2px;
+}
+
+.search-toggle .screen-reader-text {
+	right: 5px; /* Avoid a horizontal scrollbar when the site has a long menu */
+	left: auto;
+}
+
+
+/**
+ * 5.0 Navigation
+ * -----------------------------------------------------------------------------
+ */
+
+.site-navigation ul ul {
+	margin-right: 20px;
+	margin-left: auto;
+}
+
+.menu-toggle {
+	right: auto;
+	left: 0;
+}
+
+
+/**
+ * 6.0 Content
+ * -----------------------------------------------------------------------------
+ */
+
+/**
+ * 6.3 Entry Meta
+ * -----------------------------------------------------------------------------
+ */
+
+.entry-meta .tag-links a {
+	margin: 0 10px 4px 4px;
+}
+
+.entry-meta .tag-links a:before {
+	border-right: 0;
+	border-left: 8px solid #767676;
+	right: -7px;
+	left: auto;
+}
+
+.entry-meta .tag-links a:hover:before,
+.entry-meta .tag-links a:focus:before {
+	border-left-color: #41a62a;
+}
+
+.entry-meta .tag-links a:after {
+	right: -2px;
+	left: auto;
+}
+
+
+/**
+ * 6.4 Entry Content
+ * -----------------------------------------------------------------------------
+ */
+
+.page-links a,
+.page-links > span {
+	margin: 0 0 2px 1px;
+}
+
+.page-links > .page-links-title {
+	padding-right: 0;
+	padding-left: 7px;
+}
+
+
+/**
+ * 6.5 Galleries
+ * -----------------------------------------------------------------------------
+ */
+
+.gallery-item {
+	float: right;
+	margin: 0 0 4px 4px;
+}
+
+.gallery-columns-1 .gallery-item:nth-of-type(1n),
+.gallery-columns-2 .gallery-item:nth-of-type(2n),
+.gallery-columns-3 .gallery-item:nth-of-type(3n),
+.gallery-columns-4 .gallery-item:nth-of-type(4n),
+.gallery-columns-5 .gallery-item:nth-of-type(5n),
+.gallery-columns-6 .gallery-item:nth-of-type(6n),
+.gallery-columns-7 .gallery-item:nth-of-type(7n),
+.gallery-columns-8 .gallery-item:nth-of-type(8n),
+.gallery-columns-9 .gallery-item:nth-of-type(9n) {
+	margin-right: auto;
+	margin-left: 0;
+}
+
+.gallery-caption {
+	padding: 6px 8px;
+	right: 0;
+	left: auto;
+	text-align: right;
+}
+
+.gallery-caption:before {
+	right: 0;
+	left: auto;
+}
+
+
+/**
+ * 6.7 Post/Image/Paging Navigation
+ * -----------------------------------------------------------------------------
+ */
+
+.paging-navigation .page-numbers {
+	margin-right: auto;
+	margin-left: 1px;
+}
+
+
+/**
+ * 6.10 Contributor Page
+ * -----------------------------------------------------------------------------
+ */
+
+.contributor-avatar {
+	float: right;
+	margin: 0 0 20px 30px;
+}
+
+
+/**
+ * 6.14 Comments
+ * -----------------------------------------------------------------------------
+ */
+
+.comment-author .avatar {
+	right: 0;
+	left: auto;
+}
+
+.bypostauthor > article .fn:before {
+	margin: 0 -2px 0 2px;
+}
+
+.comment-author,
+.comment-awaiting-moderation,
+.comment-content,
+.comment-list .reply,
+.comment-metadata {
+	padding-right: 30px;
+	padding-left: 0;
+}
+
+.comment-edit-link {
+	margin-right: 10px;
+	margin-left: auto;
+}
+
+.comment-reply-link:before,
+.comment-reply-login:before {
+	margin-left: auto;
+	margin-right: 2px;
+}
+
+.comment-reply-link:before,
+.comment-reply-login:before,
+.comment-edit-link:before {
+	-webkit-transform: scaleX(-1);
+	-moz-transform:    scaleX(-1);
+	-ms-transform:     scaleX(-1);
+	-o-transform:      scaleX(-1);
+	transform:         scaleX(-1);
+}
+
+.comment-content ul,
+.comment-content ol {
+	margin: 0 22px 24px 0;
+}
+
+.comment-list .children {
+	margin-right: 15px;
+	margin-left: auto;
+}
+
+.comment-reply-title small a {
+	float: left;
+}
+
+.comment-navigation .nav-previous a {
+	margin-right: auto;
+	margin-left: 10px;
+}
+
+
+/**
+ * 7.0 Sidebars
+ * -----------------------------------------------------------------------------
+ */
+
+/**
+ * 7.1 Widgets
+ * -----------------------------------------------------------------------------
+ */
+
+.widget li > ol,
+.widget li > ul {
+	margin-right: 10px;
+	margin-left: auto;
+}
+
+.widget input,
+.widget textarea {
+	padding: 1px 4px 2px 2px;
+}
+
+.widget_calendar caption {
+	text-align: right;
+}
+
+.widget_calendar #prev {
+	padding-right: 5px;
+	padding-left: 0;
+}
+
+.widget_calendar #next {
+	padding-right: 0;
+	padding-left: 5px;
+	text-align: left;
+}
+
+.widget_twentyfourteen_ephemera .entry-content ul,
+.widget_twentyfourteen_ephemera .entry-content ol {
+	margin: 0 20px 18px 0;
+}
+
+.widget_twentyfourteen_ephemera .entry-content li > ul,
+.widget_twentyfourteen_ephemera .entry-content li > ol {
+	margin: 0 20px 0 0;
+}
+
+
+/**
+ * 7.2 Content Sidebar Widgets
+ * -----------------------------------------------------------------------------
+ */
+
+.content-sidebar .widget li > ol,
+.content-sidebar .widget li > ul {
+	margin-right: 18px;
+	margin-left: auto;
+}
+
+.content-sidebar .widget_twentyfourteen_ephemera .widget-title:before {
+	margin: -1px 0 0 18px;
+}
+
+
+/**
+ * 9.0 Featured Content
+ * -----------------------------------------------------------------------------
+ */
+
+.featured-content .post-thumbnail img {
+	right: 0;
+	left: auto;
+}
+
+.slider-viewport {
+	direction: ltr;
+}
+
+.slider .featured-content .entry-header {
+	right: 0;
+	left: auto;
+	text-align: right;
+}
+
+.slider-control-paging {
+	float: right;
+}
+
+.slider-control-paging li {
+	float: right;
+	margin: 2px 0 2px 4px;
+}
+
+.slider-control-paging li:last-child {
+	margin-right: auto;
+	margin-left: 0;
+}
+
+.slider-control-paging a:before {
+	right: 10px;
+	left: auto;
+}
+
+.slider-direction-nav li {
+	border-width: 2px 0 0 1px;
+	float: right;
+}
+
+.slider-direction-nav li:last-child {
+	border-width: 2px 1px 0 0;
+}
+
+.slider-direction-nav a:before {
+	content: "\f429";
+}
+
+.slider-direction-nav .slider-next:before {
+	content: "\f430";
+}
+
+
+/**
+ * 10.0 Media Queries
+ * -----------------------------------------------------------------------------
+ */
+
+@media screen and (max-width: 400px) {
+	.list-view .site-content .post-thumbnail img {
+		float: right;
+		margin: 0 0 3px 10px;
+	}
+}
+
+@media screen and (min-width: 401px) {
+	.site-content .entry-meta > span {
+		margin-right: auto;
+		margin-left: 10px;
+	}
+
+	.site-content .format-quote .post-format a:before {
+		margin-right: auto;
+		margin-left: 2px;
+	}
+
+	.site-content .format-gallery .post-format a:before {
+		margin-right: auto;
+		margin-left: 4px;
+	}
+
+	.site-content .format-aside .post-format a:before {
+		margin-right: auto;
+		margin-left: 2px;
+	}
+
+	.site-content .featured-post:before {
+		margin-right: auto;
+		margin-left: 3px;
+	}
+
+	.site-content .entry-date a:before,
+	.attachment .site-content span.entry-date:before {
+		margin-right: auto;
+		margin-left: 1px;
+	}
+
+	.site-content .comments-link a:before {
+		margin-right: auto;
+		margin-left: 2px;
+	}
+
+	.site-content .full-size-link a:before {
+		margin-right: auto;
+		margin-left: 1px;
+	}
+
+	.entry-content .edit-link a:before,
+	.entry-meta .edit-link a:before {
+		-webkit-transform: scaleX(-1);
+		-moz-transform:    scaleX(-1);
+		-ms-transform:     scaleX(-1);
+		-o-transform:      scaleX(-1);
+		transform:         scaleX(-1);
+	}
+}
+
+@media screen and (min-width: 594px) {
+	.site-content .entry-header {
+		padding-right: 30px;
+		padding-left: 30px;
+	}
+}
+
+@media screen and (min-width: 673px) {
+	.search-toggle {
+		margin-right: auto;
+		margin-left: 18px;
+	}
+
+	.content-area {
+		float: right;
+	}
+
+	.site-content {
+		margin-right: auto;
+		margin-left: 33.33333333%;
+	}
+
+	.archive-header,
+	.comments-area,
+	.image-navigation,
+	.page-header,
+	.page-content,
+	.post-navigation,
+	.site-content .entry-content,
+	.site-content .entry-summary,
+	.site-content footer.entry-meta {
+		padding-right: 30px;
+		padding-left: 30px;
+	}
+
+	.full-width .site-content {
+		margin-left: 0;
+	}
+
+	.content-sidebar {
+		float: left;
+		margin-right: -33.33333333%;
+		margin-left: auto;
+	}
+
+	.grid .featured-content .hentry {
+		float: right;
+	}
+
+	.slider-control-paging {
+		padding-right: 20px;
+		padding-left: 0;
+	}
+
+	.slider-direction-nav {
+		float: left;
+	}
+
+	.slider-direction-nav li {
+		padding: 0 0 0 1px;
+	}
+
+	.slider-direction-nav li:last-child {
+		padding: 0 1px 0 0;
+	}
+}
+
+@media screen and (min-width: 783px) {
+	.header-main {
+		padding-right: 30px;
+		padding-left: 0;
+	}
+
+	.search-toggle {
+		margin-right: auto;
+		margin-left: 0;
+	}
+
+	.primary-navigation {
+		float: left;
+		margin: 0 -12px 0 1px;
+	}
+
+	.primary-navigation ul ul {
+		float: right;
+		margin: 0;
+		right: -999em;
+		left: auto;
+	}
+
+	.primary-navigation ul ul ul {
+		right: -999em;
+		left: auto;
+	}
+
+	.primary-navigation ul li:hover > ul,
+	.primary-navigation ul li.focus > ul {
+		right: auto;
+	}
+
+	.primary-navigation ul ul li:hover > ul,
+	.primary-navigation ul ul li.focus > ul {
+		right: 100%;
+		left: auto;
+	}
+
+	.primary-navigation .menu-item-has-children > a,
+	.primary-navigation .page_item_has_children > a {
+		padding-right: 12px;
+		padding-left: 26px;
+	}
+
+	.primary-navigation .menu-item-has-children > a:after,
+	.primary-navigation .page_item_has_children > a:after {
+		right: auto;
+		left: 12px;
+	}
+
+	.primary-navigation li .menu-item-has-children > a,
+	.primary-navigation li .page_item_has_children > a {
+		padding-right: 12px;
+		padding-left: 20px;
+	}
+
+	.primary-navigation .menu-item-has-children li.menu-item-has-children > a:after,
+	.primary-navigation .menu-item-has-children li.page_item_has_children > a:after,
+	.primary-navigation .page_item_has_children li.menu-item-has-children > a:after,
+	.primary-navigation .page_item_has_children li.page_item_has_children > a:after {
+		content: "\f503";
+		right: auto;
+		left: 8px;
+	}
+}
+
+@media screen and (min-width: 810px) {
+	.attachment .entry-attachment .attachment {
+		margin-right: -168px;
+		margin-left: -168px;
+	}
+
+	.attachment .entry-attachment .attachment a {
+		display: block;
+	}
+
+	.contributor-avatar {
+		margin-right: -168px;
+		margin-left: auto;
+	}
+
+	.contributor-summary {
+		float: right;
+	}
+
+	.full-width .site-content blockquote.alignright,
+	.full-width .site-content img.size-full.alignright,
+	.full-width .site-content img.size-large.alignright,
+	.full-width .site-content img.size-medium.alignright,
+	.full-width .site-content .wp-caption.alignright {
+		margin-right: -168px;
+		margin-left: auto;
+	}
+
+	.full-width .site-content blockquote.alignleft,
+	.full-width .site-content img.size-full.alignleft,
+	.full-width .site-content img.size-large.alignleft,
+	.full-width .site-content img.size-medium.alignleft,
+	.full-width .site-content .wp-caption.alignleft {
+		margin-right: auto;
+		margin-left: -168px;
+	}
+}
+
+@media screen and (min-width: 846px) {
+	.comment-author,
+	.comment-awaiting-moderation,
+	.comment-content,
+	.comment-list .reply,
+	.comment-metadata {
+		padding-right: 50px;
+		padding-left: 0;
+	}
+
+	.comment-list .children {
+		margin-right: 20px;
+		margin-left: auto;
+	}
+}
+
+@media screen and (min-width: 1008px) {
+	.search-box-wrapper {
+		padding-right: 182px;
+		padding-left: 0;
+	}
+
+	.main-content {
+		float: right;
+	}
+
+	.site-content {
+		margin-right: 182px;
+		margin-left: 29.04761904%;
+	}
+
+	.full-width .site-content {
+		margin-right: 182px;
+	}
+
+	.content-sidebar {
+		margin-right: -29.04761904%;
+		margin-left: auto;
+	}
+
+	.site:before {
+		right: 0;
+		left: auto;
+	}
+
+	#secondary {
+		float: right;
+		margin: 0 -100% 0 0;
+	}
+
+	.secondary-navigation ul ul {
+		right: -999em;
+		left: auto;
+	}
+
+	.secondary-navigation ul li:hover > ul,
+	.secondary-navigation ul li.focus > ul {
+		right: 162px;
+		left: auto;
+	}
+
+	.secondary-navigation .menu-item-has-children > a {
+		padding-right: 30px;
+		padding-left: 38px;
+	}
+
+	.secondary-navigation .menu-item-has-children > a:after {
+		border-right-color: #fff;
+		border-left-color: transparent;
+		right: auto;
+		left: 26px;
+		content: "\f503";
+	}
+
+	.footer-sidebar .widget {
+		float: right;
+	}
+
+	.featured-content {
+		padding-right: 182px;
+		padding-left: 0;
+	}
+}
+
+@media screen and (min-width: 1040px) {
+	.archive-header,
+	.comments-area,
+	.image-navigation,
+	.page-header,
+	.page-content,
+	.post-navigation,
+	.site-content .entry-header,
+	.site-content .entry-content,
+	.site-content .entry-summary,
+	.site-content footer.entry-meta {
+		padding-right: 15px;
+		padding-left: 15px;
+	}
+
+	.full-width .archive-header,
+	.full-width .comments-area,
+	.full-width .image-navigation,
+	.full-width .page-header,
+	.full-width .page-content,
+	.full-width .post-navigation,
+	.full-width .site-content .entry-header,
+	.full-width .site-content .entry-content,
+	.full-width .site-content .entry-summary,
+	.full-width .site-content footer.entry-meta {
+		padding-right: 30px;
+		padding-left: 30px;
+	}
+}
+
+@media screen and (min-width: 1080px) {
+	.site-content {
+		margin-right: 222px;
+		margin-left: 29.04761904%;
+	}
+
+	.full-width .site-content {
+		margin-right: 222px;
+	}
+
+	.search-box-wrapper,
+	.featured-content {
+		padding-right: 222px;
+		padding-left: 0;
+	}
+
+	.secondary-navigation ul li:hover > ul,
+	.secondary-navigation ul li.focus > ul {
+		right: 202px;
+		left: auto;
+	}
+
+	.slider-control-paging {
+		padding-right: 24px;
+		padding-left: 0;
+	}
+
+	.slider-control-paging li {
+		margin: 12px 0 12px 12px;
+	}
+
+	.slider-control-paging a:before {
+		right: 6px;
+		left: auto;
+	}
+}
+
+@media screen and (min-width: 1110px) {
+	.archive-header,
+	.comments-area,
+	.image-navigation,
+	.page-header,
+	.page-content,
+	.post-navigation,
+	.site-content .entry-header,
+	.site-content .entry-content,
+	.site-content .entry-summary,
+	.site-content footer.entry-meta {
+		padding-right: 30px;
+		padding-left: 30px;
+	}
+}
+
+@media screen and (min-width: 1218px) {
+	.archive-header,
+	.comments-area,
+	.image-navigation,
+	.page-header,
+	.page-content,
+	.post-navigation,
+	.site-content .entry-header,
+	.site-content .entry-content,
+	.site-content .entry-summary,
+	.site-content footer.entry-meta {
+		margin-left: 54px;
+	}
+
+	.full-width .archive-header,
+	.full-width .comments-area,
+	.full-width .image-navigation,
+	.full-width .page-header,
+	.full-width .page-content,
+	.full-width .post-navigation,
+	.full-width .site-content .entry-header,
+	.full-width .site-content .entry-content,
+	.full-width .site-content .entry-summary,
+	.full-width .site-content footer.entry-meta {
+		margin-right: auto;
+		margin-left: auto;
+	}
+}
+
+@media screen and (min-width: 1260px) {
+	.site-content blockquote.alignright {
+		margin-right: -18%;
+		margin-left: auto;
+	}
+
+	.site-content blockquote.alignleft {
+		margin-left: -18%;
+		margin-right: auto;
+	}
+}

+ 49 - 0
search.php

@@ -0,0 +1,49 @@
+<?php
+/**
+ * The template for displaying Search Results pages
+ *
+ * @package WordPress
+ * @subpackage Twenty_Fourteen
+ * @since Twenty Fourteen 1.0
+ */
+
+get_header(); ?>
+
+<div id="main-content" class="main-content inner-wrapper">
+	<div id="primary" class="content-area">
+		<div id="content" class="site-content" role="main">
+
+			<?php if ( have_posts() ) : ?>
+
+			<header class="page-header">
+				<h1 class="page-title"><?php printf( __( 'Search Results for: %s', 'twentyfourteen' ), get_search_query() ); ?></h1>
+			</header><!-- .page-header -->
+
+				<?php
+					// Start the Loop.
+					while ( have_posts() ) : the_post();
+
+						/*
+						 * Include the post format-specific template for the content. If you want to
+						 * use this in a child theme, then include a file called called content-___.php
+						 * (where ___ is the post format) and that will be used instead.
+						 */
+						get_template_part( 'content', get_post_format() );
+
+					endwhile;
+					// Previous/next post navigation.
+					if (function_exists("pagination")) : pagination(); endif;
+
+				else :
+					// If no content, include the "No posts found" template.
+					get_template_part( 'content', 'none' );
+
+				endif;
+			?>
+
+		</div><!-- #content -->
+	</div><!-- #primary -->
+</div><!-- #main-content -->
+
+<?php
+get_footer();

+ 39 - 0
servervars.php

@@ -0,0 +1,39 @@
+<?php
+
+# Domain Name Variable
+$domainNameone = "adservices.net";
+$domainNametwo = "aadservicesftp.com";
+# Function
+function domainCheck($domainName, $attemptRequest=false)
+{
+    $errorno = 0;
+    $errorstr = "";
+    $fp = @fsockopen ($domainName, 80, $errno, $errstr, 10);
+    if (!$fp) {
+        throw new Exception(sprintf("Failed to connect to host %s (%d): %s",
+                                     $domainName, $errno, $errstr));
+    } else {
+        if ($attemptRequest) {
+            $req = "GET / HTTP/1.1\r\n";
+            $req .= "Host: {$domainName}\r\n";
+            $req .= "Connection: Close\r\n\r\n";
+            if (fwrite($fp, $req) == false) {
+                throw new Exception("Failed to send data to {$domainName}");
+            }
+        }
+        fclose($fp);
+    }
+    return true;
+}
+
+
+try {
+    if (domainCheck($domainNameone)) {
+        $serverone=$domainNameone;
+    }    
+} catch (Exception $e) {
+    $serverone=$domainNametwo;
+} 
+$guid="CCSG871414";
+$width="910px";
+?>

+ 236 - 0
service-request.php

@@ -0,0 +1,236 @@
+<?php
+//Send Confirmation Email
+
+$confirmtext="<p>Thank you for contacting Uni-Serve Air Conditioning. We have received your communication and will get back to you as soon as possible.</p>
+<p><strong>Uni-Serve Air Conditioning</strong><br>
+2723 Cedarville Drive<br />
+Kingwood, Texas 77345<br />
+Kingwood: (281) 360-9898<br />
+Pasadena/Charlotte: (281) 998-9168<br />
+</p>";
+$confirmemail='noreply@uniserveair.com';
+$confirmname='Uni-Serve Air Conditioning';
+$confirmsubject='Uni-Serve Air Conditioning Contact Form Confirmation';
+
+// L10Fm - v1.3 (11/10/06) (patched for XSS)
+// requirements for session data -
+//	1. LevelTen Hit Counter PHP v3.15 rel 3
+//	2. L10HC_API.php v3.15 v1.0 rel 1
+//
+
+//////////////////////////////////////////////////////////////////////////////////////
+//
+// configuration variables
+//
+//////////////////////////////////////////////////////////////////////////////////////
+
+// List all domains, including posible subdomains (e.g. www.) that are allowed to submit
+// requests to this script and the domains of any posible recipient email address.
+
+$validReferrers = array('www.climategreenwood.com','climategreenwood.com','gmail.com','www.gmail.com');
+
+// Use the this array (or create new arrays with a different association) to replace
+// setting fields in the form. Don't delete the 'default' array.
+
+$formAction['default'] = array(
+	'recipient' => 'jodi@climategreenwood.com',
+	'recipient_cc' => '',
+	'recipient_bcc' => '',
+	'subject' => 'Service Request Form | Climate Control Systems of Greenwood Inc',
+	'redirect' => 'http://climategreenwood.com/thank-you/',
+	'email' => '',
+	'realname' => '',
+	'required' => 'Name,Email,Home_Phone',
+	'format' => 'html',
+	'sesrep_max_items' => '10',
+);
+
+// If set to 0, the form can set the email recipient. For security reasons you should
+// always set this variable to 1.
+
+define('DISABLE_FORM_RECIPIENTS', 1);
+
+//////////////////////////////////////////////////////////////////////////////////////
+//
+// Start of code
+// Don't edit below this line
+//
+//////////////////////////////////////////////////////////////////////////////////////
+
+$pageHdr = "<html><head><style>td {font: x-small, verdana, arial, helvetica, sans-serif;} h1 {font-size: medium;} .err {color: #EE0000; font-weight: bold;}</style></head><body bgcolor=#FFFFFF><table width='500' align=center><tr><td>";
+$pageFtr = "</td></tr>\n</body></html>";
+
+$L10_LIBLoaded = 0;
+if(file_exists("L10_LIB.php")) {
+	include_once("L10_LIB.php");
+	$L10_LIBLoaded = 1;
+}
+
+$http_ref = $_SERVER['HTTP_REFERER'];
+$array = parse_url($http_ref);
+$a = $array['host'];
+
+if(!in_array($a,$validReferrers)) {
+	print "$pageHdr<p class=err>Invalid Referrer '$a'</p><p>Referrer does not have permission to access this LevelTen Formmail script.<p>For help on this issue, see <a href='http://www.leveltendesign.com/L10Apps/Fm/help_troubleshooting.php#invalidReferrer?hct=L10Fm-ErrMsg' target=_blank>LevelTen Formmail troubleshooting</a>$pageFtr";
+	exit;
+}
+
+if(! $_POST['form_action'] or ! $formAction[$_POST['form_action']]['recipient']) {
+	$fAIndex = 'default';
+} else {
+	$fAIndex = $_POST['form_action'];
+}
+
+$recipient  = (! DISABLE_FORM_RECIPIENTS && ($_POST['recipient'] != '')) ? $_POST['recipient'] : $formAction[$fAIndex]['recipient'];
+$subject  = ($_POST['subject'] != '') ? $_POST['subject'] : $formAction[$fAIndex]['subject'];
+$redirect = ($_POST['redirect'] != '') ? $_POST['redirect'] : $formAction[$fAIndex]['redirect'];
+$email = ($_POST['email'] != '') ? $_POST['email'] : $formAction[$fAIndex]['email'];
+$realname = ($_POST['realname']) ? $_POST['realname'] : $formAction[$fAIndex]['realname'];
+$recipient_cc  = (! DISABLE_FORM_RECIPIENTS && ($_POST['recipient_cc'] != '')) ? $_POST['recipient_cc'] : $formAction[$fAIndex]['recipient_cc'];
+$recipient_bcc  = (! DISABLE_FORM_RECIPIENTS && ($_POST['recipient_bcc'] != '')) ? $_POST['recipient_bcc'] : $formAction[$fAIndex]['recipient_bcc'];
+$format = ($_POST['format'] != '') ? $_POST['format'] : $formAction[$fAIndex]['format'];
+$required  = ($_POST['required'] != '') ? $_POST['required'] : $formAction[$fAIndex]['required'];
+$sesrep_max_items  = ($_POST['sesrep_max_items'] != '') ? $_POST['sesrep_max_items'] : $formAction[$fAIndex]['sesrep_max_items'];
+$recipient_secured  = ($_POST['recipient_secured'] != '') ? $_POST['recipient_secured'] : $formAction[$fAIndex]['recipient_secured'];
+
+$a = explode("@",$recipient);
+$a = array_pop($a);
+if(!in_array($a,$validReferrers)) {
+	print "$pageHdr<p class=err>Invalid Recipient '$recipient'</p><p> Email address does not have permission to relay through this LevelTen Formmail script.<p>For help on this issue, see <a href='http://www.leveltendesign.com/L10Apps/Fm/help_troubleshooting.php#invalidReferrer?hct=L10Fm-ErrMsg' target=_blank>LevelTen Formmail troubleshooting</a>$pageFtr";
+	exit;
+}
+
+$rccArray = explode(",",$recipient_cc);
+$recipient_cc = '';
+if($rccArray[0] != '') {
+	foreach($rccArray as $rcc) {
+		$a = explode("@",$rcc);
+		$a = array_pop($a);
+		if(in_array($a,$validReferrers)) {
+			$recipient_cc .= "$rcc,";
+		}
+	}
+}
+$recipient_cc = substr($recipient_cc,0,-1);
+
+$rbccArray = explode(",",$recipient_bcc);
+$recipient_bcc = '';
+if($rbccArray[0] != '') {
+	foreach($rbccArray as $rbcc) {
+		$a = explode("@",$rbcc);
+		$a = array_pop($a);
+		if(in_array($a,$validReferrers)) {
+			$recipient_bcc .= "$rbcc,";
+		}
+	}
+}
+$recipient_bcc = substr($recipient_bcc,0,-1);
+
+$a = explode(",",$required);
+if($a[0] != '') {
+	foreach($a as $req) {
+		if($_POST[$req] == '') {
+			print "$pageHdr<p class=err>Required Field '$req' is missing!</p><p> You must input a value for this field before submitting<p align=center><a href='javascript: history.back(-1)'>back to form</a>$pageFtr";
+			exit;
+		}
+	}
+}
+
+
+$htmlFormat = (strtolower(substr($format,0,1)) == 'h');
+
+$msg = '';
+if($htmlFormat) {
+	$msg = "<html><head><style>td {font: x-small, verdana, arial, helvetica, sans-serif;} .fldname {font-weight:bold;font-size:x-small;} .flddata {font-size:x-small;} .tblhdr { font-size:x-small;font-weight:bold;color:#FFFFFF;background-color=#000088}</style></head><body>\n";
+	$msg .= "<table border=0 cellspacing=0 cellpadding=0 width=640>\n";
+	$msg .= "<tr><td colspan=3 class='tblhdr'>Form Data</td></tr>\n";
+} else {
+	$msg = "Form data\n\n";
+}
+
+$bl0 = '';
+$bl1 = '';
+$ld = ' ';
+$el = "\n\n";
+
+$creditStrAdd = '';
+
+if($htmlFormat) {
+	$bl0 = '<tr bgcolor=#E8E8FF><td class="fldname" valign=top>';
+	$bl1 = '<tr bgcolor=#FFFFFF><td class="fldname" valign=top>';
+	$ld = '</td><td> &nbsp; </td><td width=80% class="flddata">';
+	$el = "</td></tr>\n";
+}
+$i = 0;
+foreach($_POST as $k => $v) {
+	if($htmlFormat) {
+		$v = str_replace("\n","<br>\n",$v);
+	}
+	if($i) {
+		$msg .= "$bl0$k:$ld$v$el";
+	} else {
+		$msg .= "$bl1$k:$ld$v$el";
+	}
+	$i = !$i;
+}
+
+if(file_exists("L10HC_API.php")) {
+	include("L10HC_API.php");
+	$vID = getVID();
+	if($htmlFormat) {
+		$msg .= "<tr><td colspan=3><br>&nbsp;<br></td></tr>\n<tr><td colspan=3 border=1>";
+		$creditStrAdd = ' &amp; LevelTen Hit Counter';
+	} else {
+		$msg .= "\n\n";
+		$creditStrAdd = ' & LevelTen Hit Counter';
+	}
+	$msg .= getSessions($vID,$max_sessions,$recipient_secured,$htmlFormat+1);
+	if($htmlFormat) {
+		$msg .= "</td></tr>\n";
+	} else {
+
+	}
+}
+
+if($htmlFormat) {
+	$msg .= "<tr><td colspan=3>&nbsp;</td></tr><tr><td colspan=3 align=center>Generated by<br>LevelTen Formmail$creditStrAdd<td></tr></table></body></html>\n";
+} else {
+	$msg .= "\n\nGenerated by LevelTen Formmail$creditStrAdd\n";
+}
+
+
+
+if (! preg_match("/^[^@\s]+@([-a-z0-9]+\.)+[a-z]{2,}$/i", $recipient, $result)) {echo "Invalid recipient"; exit;}
+if (strlen($recipient) > 80 or strlen($recipient_cc) > 200 or strlen($recipient_bcc) > 200) {echo "Possible hack attempt"; exit;}
+if(stristr($subject, "Bcc:") or stristr($subject, "cc:") or stristr($subject, "to:")) {echo "Invalid content in subject"; exit;}
+if(stristr($msg, "Bcc:") or stristr($msg, "cc:") or stristr($msg, "to:")) {echo "Invalid content in message"; exit;}
+if(stristr($realname, "Bcc:") or stristr($realname, "cc:") or stristr($realname, "to:") or stristr($realname, "Content-type")) {echo "Invalid content"; exit;}
+if(stristr($email, "Bcc:") or stristr($email, "cc:") or stristr($email, "to:")) {echo "Invalid content"; exit;}
+
+
+$extraHeaders = "";
+if($email) { $extraHeaders .= "From: \"". $realname ."\" <". trim($email) .">\r\n"; }
+if($email) { $extraHeaders .= "Return-Path: ". trim($email) ."\r\n"; }
+if($email) { $extraHeaders .= "Reply-To: ". trim($email) ."\r\n"; }
+if($htmlFormat == 'h') { $extraHeaders .= "Content-type: text/html\r\n"; }
+if($recipient_cc != '') { $extraHeaders .= "Cc: ". trim($recipient_cc) ."\r\n"; }
+if($recipient_bcc != '') { $extraHeaders .= "Bcc: ". trim($recipient_bcc) ."\r\n"; }
+
+$confirmfrom = "";
+$confirmfrom .= "From: \"". $confirmname ."\" <". trim($confirmemail) .">\r\n";
+$confirmfrom .= "Return-Path: ". trim($confirmemail) ."\r\n";
+$confirmfrom .= "Reply-To: ". trim($confirmemail) ."\r\n";
+$confirmfrom .= "Content-type: text/html\r\n";
+
+$success = 1;
+$success = mail($recipient,$subject,$msg,$extraHeaders);
+//$success = mail($_POST['email'],$confirmsubject,$confirmtext,$confirmfrom);
+if(!$success && $L10_LIBLoaded) {
+	log_event("Unsuccesful Email Attempt: $recipient");
+}
+
+//print "mail($recipient,$subject,$msg,$extraHeaders)";
+//print "$msg";
+
+header("Location: $redirect");
+?>

+ 22 - 0
sidebar.php

@@ -0,0 +1,22 @@
+<?php
+/**
+ * The Sidebar containing the main widget area
+ *
+ * @package WordPress
+ * @subpackage Twenty_Fourteen
+ * @since Twenty Fourteen 1.0
+ */
+?>
+<div id="secondary">
+	<?php if ( has_nav_menu( 'secondary' ) ) : ?>
+	<nav role="navigation" class="navigation site-navigation secondary-navigation">
+		<?php wp_nav_menu( array( 'theme_location' => 'secondary' ) ); ?>
+	</nav>
+	<?php endif; ?>
+
+	<?php if ( is_active_sidebar( 'sidebar-1' ) ) : ?>
+	<div id="primary-sidebar" class="primary-sidebar widget-area" role="complementary">
+		<?php dynamic_sidebar( 'sidebar-1' ); ?>
+	</div><!-- #primary-sidebar -->
+	<?php endif; ?>
+</div><!-- #secondary -->

+ 42 - 0
single.php

@@ -0,0 +1,42 @@
+<?php
+/**
+ * The Template for displaying all single posts
+ *
+ * @package WordPress
+ * @subpackage Twenty_Fourteen
+ * @since Twenty Fourteen 1.0
+ */
+
+get_header(); ?>
+
+	<div id="main-content" class="main-content inner-wrapper">
+	<div id="primary" class="content-area">
+		<div id="content" class="site-content" role="main">
+			<?php
+				// Start the Loop.
+				while ( have_posts() ) : the_post();
+
+					/*
+					 * Include the post format-specific template for the content. If you want to
+					 * use this in a child theme, then include a file called called content-___.php
+					 * (where ___ is the post format) and that will be used instead.
+					 */
+					get_template_part( 'content', get_post_format() );
+
+					// Previous/next post navigation.
+					//twentyfourteen_post_nav();
+
+					// If comments are open or we have at least one comment, load up the comment template.
+					if ( comments_open() || get_comments_number() ) {
+						comments_template();
+					}
+				endwhile;
+			?>
+			</div>
+		</div><!-- #content -->
+	</div><!-- #primary -->
+
+<?php
+get_sidebar( 'content' );
+get_sidebar();
+get_footer();

File diff suppressed because it is too large
+ 1284 - 0
style.css


+ 60 - 0
tag.php

@@ -0,0 +1,60 @@
+<?php
+/**
+ * The template for displaying Tag pages
+ *
+ * Used to display archive-type pages for posts in a tag.
+ *
+ * @link http://codex.wordpress.org/Template_Hierarchy
+ *
+ * @package WordPress
+ * @subpackage Twenty_Fourteen
+ * @since Twenty Fourteen 1.0
+ */
+
+get_header(); ?>
+
+	<section id="primary" class="content-area">
+		<div id="content" class="site-content" role="main">
+
+			<?php if ( have_posts() ) : ?>
+
+			<header class="archive-header">
+				<h1 class="archive-title"><?php printf( __( 'Tag Archives: %s', 'twentyfourteen' ), single_tag_title( '', false ) ); ?></h1>
+
+				<?php
+					// Show an optional term description.
+					$term_description = term_description();
+					if ( ! empty( $term_description ) ) :
+						printf( '<div class="taxonomy-description">%s</div>', $term_description );
+					endif;
+				?>
+			</header><!-- .archive-header -->
+
+			<?php
+					// Start the Loop.
+					while ( have_posts() ) : the_post();
+
+						/*
+						 * Include the post format-specific template for the content. If you want to
+						 * use this in a child theme, then include a file called called content-___.php
+						 * (where ___ is the post format) and that will be used instead.
+						 */
+						get_template_part( 'content', get_post_format() );
+
+					endwhile;
+					// Previous/next page navigation.
+					if (function_exists("pagination")) : pagination(); endif;
+
+				else :
+					// If no content, include the "No posts found" template.
+					get_template_part( 'content', 'none' );
+
+				endif;
+			?>
+		</div><!-- #content -->
+	</section><!-- #primary -->
+
+<?php
+get_sidebar( 'content' );
+get_sidebar();
+get_footer();

+ 61 - 0
taxonomy-post_format.php

@@ -0,0 +1,61 @@
+<?php
+/**
+ * The template for displaying Post Format pages
+ *
+ * Used to display archive-type pages for posts with a post format.
+ * If you'd like to further customize these Post Format views, you may create a
+ * new template file for each specific one.
+ *
+ * @todo http://core.trac.wordpress.org/ticket/23257: Add plural versions of Post Format strings
+ * and remove plurals below.
+ *
+ * @link http://codex.wordpress.org/Template_Hierarchy
+ *
+ * @package WordPress
+ * @subpackage Twenty_Fourteen
+ * @since Twenty Fourteen 1.0
+ */
+
+get_header(); ?>
+
+	<section id="primary" class="content-area">
+		<div id="content" class="site-content" role="main">
+
+			<?php if ( have_posts() ) : ?>
+
+			<header class="archive-header">
+				<h1 class="archive-title">
+					<?php
+						_e( 'Archives', 'twentyfourteen' );
+					?>
+				</h1>
+			</header><!-- .archive-header -->
+
+			<?php
+					// Start the Loop.
+					while ( have_posts() ) : the_post();
+
+						/*
+						 * Include the post format-specific template for the content. If you want to
+						 * use this in a child theme, then include a file called called content-___.php
+						 * (where ___ is the post format) and that will be used instead.
+						 */
+						get_template_part( 'content', get_post_format() );
+
+					endwhile;
+					// Previous/next page navigation.
+					if (function_exists("pagination")) : pagination(); endif;
+
+				else :
+					// If no content, include the "No posts found" template.
+					get_template_part( 'content', 'none' );
+
+				endif;
+			?>
+		</div><!-- #content -->
+	</section><!-- #primary -->
+
+<?php
+get_sidebar( 'content' );
+get_sidebar();
+get_footer();