﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled 1</title>
<style type="text/css">
.style1 {
				font-family: Verdana, Helvetica, sans-serif;
}
.style2 {
				font-family: Verdana, Helvetica, sans-serif;
				font-size: small;
}
.style3 {
				font-size: x-small;
}
.style4 {
				font-size: small;
}
</style>
</head>

<body>

<p><span class="style1"><span class="style4">/*<br />
Theme Name:Adventure Journal<br />
Theme 
URI:http://www.contextureintl.com/wordpress/adventure-journal-wordpress-theme/<br />
</span></span><span class="style4">License:GNU General Public License<br />
</span><span class="style3"><span class="style4">License URI:license.txt<br />
<br />
</span></span><span class="style4">Tags: peter sale, coral reef, ocean, our dying planet, books,
metapopulations, ecologist, environmental crisis, david suzuki, ecosystem<br />
<br />

*/<br />
/******************** Default HTML Styling *********************/<br />
* { padding:0; margin:0; }<br />
</span><span class="style4">html,body { width:100%; height:100%; }<br />
</span><span class="style3"><span class="style4">body { font-family:Verdana, 
Helvetica, sans-serif; font-size:14px; line-height:1.25; }<br />
</span></span><span class="style4">img { border:0; }<br />
</span><span class="style3"><span class="style4">font { font-family:Verdana, 
Geneva, sans-serif; }<br />
h1,h2,h3,h4,h5,h6, .h1, .h2,.h3,.h4,.h5,.h6 { font-family:&#39;VollkornRegular&#39;, 
Geneva, sans-serif; font-size:40px; font-style:normal; font-variant:normal; 
color:#0a566b; padding:0px; margin-top:0px; margin-right:0px; margin-bottom:0px; 
margin-left:0px; letter-spacing:-2px; }<br />
h1, .h1 { font-weight:normal; }<br />
h2, .h2 { font-size:28px; letter-spacing:-1px; }<br />
h3, .h3 { font-size:20px; letter-spacing:-0.5px; }<br />
h4, .h4 { letter-spacing:0px; font-family:Verdana, Helvetica, sans-serif; 
font-size:18px; }<br />
h5, .h5 { letter-spacing:0px; font-family:Verdana, Helvetica, sans-serif; 
font-size:16px; }<br />
h6, .h6 { letter-spacing:0px; font-family:Verdana, Helvetica, sans-serif; 
font-size:14px; }<br />
p { line-height:1.5em; margin-bottom:1em; }<br />
</span></span><span class="style4">ul,ol { margin-bottom:1em; padding:0; }<br />
</span><span class="style4">ul ul { padding-bottom:0px; margin-bottom:0px; }<br />
</span><span class="style4">li { margin-left:2.8em; padding:0px; 
margin-bottom:0.5em; }<br />
</span><span class="style4">ul li { list-style:square; }<br />
</span><span class="style4">ul ul li { list-style:disc; }<br />
</span><span class="style4">ul ul ul li { list-style:circle; }<br />
</span><span class="style4">ol { margin-bottom:1em; }<br />
</span><span class="style4">ol li { list-style:decimal; }<br />
</span><span class="style4">ol ol li { list-style:upper-alpha; }<br />
</span><span class="style4">ol ol ol li { list-style:lower-roman; }<br />
<br />
table { border-collapse:collapse; border-spacing:0; border:1px solid #E7E7E7; 
width:100%; font-size:14px; }<br />
</span><span class="style4">th { padding:4px; vertical-align:top; text-align:left; 
}<br />
td { padding:4px; vertical-align:top; text-align:left; border-top:1px solid 
#E7E7E7; }<br />
<br />
form { display:inline; }<br />
</span><span class="style4">fieldset { padding:10px; }<br />
</span><span class="style3"><span class="style4">input, textarea, select { font-family:Verdana, 
Helvetica, sans-serif; padding:4px; border-radius:5px; -moz-border-radius:5px; 
-webkit-border-radius:5px; border:1px solid #CCC; margin-bottom:3px; }<br />
</span></span><span class="style4">textarea { width:98%; }<br />
</span><span class="style4">input.button { color:#333333; font-size:16px; }<br />
</span><span class="style4">input.button:hover { background-color:#660000; 
color:#FFF; }<br />
</span><span class="style4">input.button:active { background-color:#F3E9E9; 
color:#000; }<br />
</span><span class="style4">input:hover, textarea:hover, select:hover { 
border:1px solid #660000; }<br />
</span><span class="style4">input:focus, textarea:focus { border:1px solid 
#660000; background:#F3E9E9; }<br />
select { }<br />
option { }<br />
pre { background-color:#F5F5F5; padding:10px; font-family:&quot;Courier 10 
Pitch&quot;,Courier,monospace; margin-bottom:10px; }<br />
</span><span class="style4">blockquote { font-style:italic; padding:7px; 
padding-left:50px; padding-bottom:0px; font-size:16px; }<br />
hr, .hr { margin-top:0em; margin-bottom:1em; height:1px; border-top-width:1px; 
border-top-style:dotted; border-right-style:none; border-bottom-style:none; 
border-left-style:none; border-top-color:#0F2A56; }<br />
dl { margin:0 0 24px 0; }<br />
</span><span class="style4">dt { font-weight:bold; }<br />
</span><span class="style4">dd { margin-bottom:18px; }<br />
</span><span class="style3"><span class="style4">big { font-size:131.25%; }<br />
ins { background:#FFF; text-decoration:none; }<br />
<br />
a:link { color:#0a566b; text-decoration:underline; }<br />
h1 a:link, h2 a:link, h3 a:link { color:#603913; }<br />
a:visited { color:#19196a; }<br />
a:hover { color:#000000; text-decoration:none; }<br />
a:active { }<br />
<br />
<br />
/******************** Fonts - Courtesy of FontSquirrel.com 
*********************/<br />
<br />
@font-face {<br />
font-family:&#39;VollkornRegular&#39;;<br />
</span></span><span class="style4">src:url(&#39;fonts/Vollkorn-Regular-webfont.eot&#39;);<br />
</span><span class="style4">src:local(&#39;?&#39;), url(&#39;fonts/Vollkorn-Regular-webfont.woff&#39;) 
format(&#39;woff&#39;), url(&#39;fonts/Vollkorn-Regular-webfont.ttf&#39;) format(&#39;truetype&#39;), 
url(&#39;fonts/Vollkorn-Regular-webfont.svg#webfonthQXI4kak&#39;) format(&#39;svg&#39;);<br />
font-weight:normal;<br />
font-style:normal;<br />
</span></span>}<span class="style1"><span class="style4"><br />
<br />
<br />
/********************* Library *********************/<br />
<br />
.txt-left { text-align:left; }<br />
.txt-right { text-align:right; }<br />
.txt-center { text-align:center; }<br />
<br />
.block { display:block; }<br />
.inline { display:inline; }<br />
<br />
</span></span>.<span class="style1"><span class="style4">centerme { margin-right:auto; 
margin-left:auto; }<br />
.float-left { float:left; }<br />
.float-right { float:right; }<br />
<br />
.clear, .clear-both { clear:both; }<br />
.clear-left { clear:left; }<br />
.clear-right { clear:right; }<br />
.hidden { display:none; }<br />
<br />
.pad-0 { padding:0; }<br />
.pad-3, .pad-sm { padding:3px; }<br />
.pad-5 { padding:5px; }<br />
.pad-7, .pad-med { padding:7px; }<br />
.pad-10, .pad-lot { padding:10px; }<br />
<br />
</span></span>.<span class="style1"><span class="style4">btn { display:block; 
overflow:hidden; text-indent:-999px; }<br />
<br />
</span></span>.<span class="style1"><span class="style4">img-left { float:left; 
margin-right:8px; margin-bottom:5px; }<br />
</span></span>.<span class="style1"><span class="style4">img-right { float:right; 
margin-left:8px; margin-bottom:5px; }<br />
<br />
.txt-largester { font-size:1.8em; }<br />
.txt-largest { font-size:1.6em; }<br />
.txt-larger { font-size:1.25em; }<br />
.txt-large { font-size:1.1em; }<br />
.txt-small { font-size:.9em; }<br />
.txt-smaller { font-size:.8em; }<br />
.txt-smallest { font-size:.5em; }<br />
<br />
.txt-smcaps { font-variant:small-caps; }<br />
.txt-uppercase { text-transform:uppercase; }<br />
<br />
.txt-dkred { color:#990000; }<br />
.txt-blue { color:#3A6E8F; }<br />
.txt-grey { color:#999999; }<br />
.txt-red { color:#8e2e06; }<br />
.txt-white { color:#FFFFFF; }<br />
<br />
.txt-reference { font-size:.8em; color:#666666; position:relative; top:-4px; }<br />
.txt-superscript { font-size:.6em; position:relative; top:-8px; }<br />
.txt-nobold { font-weight:normal; }<br />
.txt-bold { font-weight:bold; }<br />
.txt-italic { font-style:italic; }<br />
.txt-nodecorate { text-decoration:none; }<br />
.txt-underline { text-decoration:underline; }<br />
.txt-linethrough { text-decoration:line-through; }<br />
.txt-monospace { font-family:&quot;Courier New&quot;,monospace; }<br />
<br />
.round,<br />
.round-all { border-radius:5px; -moz-border-radius:5px; 
-webkit-border-radius:5px; }<br />
.round-top { border-radius:5px 5px 0 0; -moz-border-radius:5px 5px 0 0; 
-webkit-border-radius:5px 5px 0 0; }<br />
.round-bottom { border-radius:0 0 5px 5px; -moz-border-radius:0 0 5px 5px; 
-webkit-border-radius:0 0 5px 5px; }<br />
.round-left { border-radius:5px 0 0 5px; -moz-border-radius:5px 0 0 5px; 
-webkit-border-radius:5px 0 0 5px; }<br />
.round-right { border-radius:0 5px 5px 0; -moz-border-radius:0 5px 5px 0; 
-webkit-border-radius:0 5px 5px 0; }<br />
.round-topleft { border-radius:5px 0 0 0; -moz-border-radius:5px 0 0 0; 
-webkit-border-radius:5px 0 0 0; }<br />
.round-topright { border-radius:0 5px 0 0; -moz-border-radius:0 5px 0 0; 
-webkit-border-radius:0 5px 0 0; }<br />
.round-bottomleft { border-radius:0 0 0 5px; -moz-border-radius:0 0 0 5px; 
-webkit-border-radius:0 0 0 5px; }<br />
.round-bottomright { border-radius:0 0 5px 0; -moz-border-radius:0 0 5px 0; 
-webkit-border-radius:0 0 5px 0; }<br />
<br />
.round-more,<br />
.round-all-more { border-radius:10px; -moz-border-radius:10px; 
-webkit-border-radius:10px; }<br />
.round-top-more { border-radius:10px 10px 0 0; -moz-border-radius:10px 10px 0 0; 
-webkit-border-radius:10px 10px 0 0; }<br />
.round-bottom-more { border-radius:0 0 10px 10px; -moz-border-radius:0 0 10px 
10px; -webkit-border-radius:0 0 10px 10px; }<br />
.round-left-more { border-radius:10px 0 0 10px; -moz-border-radius:10px 0 0 
10px; -webkit-border-radius:10px 0 0 10px; }<br />
.round-right-more { border-radius:0 10px 10px 0; -moz-border-radius:0 10px 10px 
0; -webkit-border-radius:0 10px 10px 0; }<br />
.round-topleft-more { border-radius:10px 0 0 0; -moz-border-radius:10px 0 0 0; 
-webkit-border-radius:10px 0 0 0; }<br />
.round-topright-more { border-radius:0 10px 0 0; -moz-border-radius:0 10px 0 0; 
-webkit-border-radius:0 10px 0 0; }<br />
.round-bottomleft-more { border-radius:0 0 0 10px; -moz-border-radius:0 0 0 
10px; -webkit-border-radius:0 0 0 10px; }<br />
.round-bottomright-more { border-radius:0 0 10px 0; -moz-border-radius:0 0 10px 
0; -webkit-border-radius:0 0 10px 0; }<br />
<br />
.opacity,<br />
.opacity-50 { opacity:0.50; filter:alpha(opacity=50); }<br />
.opacity-75 { opacity:0.75; filter:alpha(opacity=75); }<br />
.opacity-25 { opacity:0.25; filter:alpha(opacity=25); }<br />
<br />
<br />
<br />
/******************** Default Wordpress Styling *********************/<br />
<br />
.entry-meta, .meta { margin-bottom:10px; font-size:11px; }<br />
.entry-title { margin-bottom:5px; }<br />
.entry-utility, .feedback { clear:both; background:#efe3d8; padding:8px; 
border-radius:3px; -moz-border-radius:3px; -webkit-border-radius:3px; }<br />
<br />
<br />
.post { margin-bottom:20px; padding-bottom:15px; padding-top:0px; 
position:relative; }<br />
.post img { display:block; }<br />
.page-link { margin-bottom:5px; }<br />
.page-link a:link, .page-link a:visited { background:#FFF; color:#0a566b; font-weight:normal; 
padding:3px 6px; text-decoration:none; border-radius:20px; 
-moz-border-radius:20px; -webkit-border-radius:20px; }<br />
.page-link a:hover { background:#7D3913; color:#FFF; }<br />
<br />
</span></span>#<span class="style1"><span class="style4">nav-above, #nav-below { 
margin-bottom:1em; font-size:11px; height:20px; background:#efe3d8; padding:5px 
10px; border-radius:3px; -webkit-border-radius:3px; -moz-border-radius:3px; }<br />
</span></span>.<span class="style1"><span class="style4">nav-next, .nav-previous 
{ font-weight:bold; /*padding:5px 10px; background:#603913; */}<br />
</span></span>.<span class="style1"><span class="style4">nav-previous { 
float:left; }<br />
</span></span>.<span class="style1"><span class="style4">nav-next { float:right; 
}<br />
</span></span>.<span class="style1"><span class="style4">nav-previous a, .nav-next 
a { color:#603913; font-size:1.2em; }<br />
<br />
.screen-reader-text { position:absolute; left:-9000px; }<br />
.read-excerpt { display:block; }<br />
.sticky, .bypostauthor { padding:10px; background:#fae8d4 url(images/paper-crumpled.jpg); 
border:1px solid #dacfba; box-shadow:3px 3px 5px rgba(0,0,0,0.2); 
-moz-box-shadow:3px 3px 5px rgba(0,0,0,0.2); -webkit-box-shadow:3px 3px 5px rgba(0,0,0,0.2); 
border-radius:2px; -moz-border-radius:2px; -webkit-border-radius:2px; }<br />
.sticky .entry-utility { background:rgba(198, 180, 153, .5); }<br />
.sticky .tape, .bypostauthor .tape { position:absolute; width:59px; height:69px; 
z-index:3; background:url(images/tape.gif) no-repeat; opacity:0.7; filter:alpha(opacity=70); 
z-index:13; }<br />
.sticky .tape.tr, .bypostauthor .tape.tr { right:-18px; top:-20px; }<br />
.sticky .tape.bl, .bypostauthor .tape.bl { left:-20px; bottom:-30px; }<br />
<br />
.paper-all .post, .bypostauthor { padding:10px; background:#fae8d4 url(images/paper-crumpled.jpg); 
border:1px solid #dacfba; box-shadow:3px 3px 5px rgba(0,0,0,0.2); 
-moz-box-shadow:3px 3px 5px rgba(0,0,0,0.2); -webkit-box-shadow:3px 3px 5px rgba(0,0,0,0.2); 
border-radius:2px; -moz-border-radius:2px; -webkit-border-radius:2px; }<br />
.paper-all .post .entry-utility { background:rgba(198, 180, 153, .5); }<br />
.paper-all .post .tape, .paper-all .bypostauthor .tape { position:absolute; 
width:59px; height:69px; z-index:3; background:url(images/tape.gif) no-repeat; 
opacity:0.7; filter:alpha(opacity=70); z-index:13; }<br />
.paper-all .post .tape.tr, .paper-all .bypostauthor .tape.tr { right:-18px; 
top:-20px; }<br />
.paper-all .post .tape.bl, .paper-all .bypostauthor .tape.bl { left:-20px; 
bottom:-30px; }<br />
/*width correction for featured images in sticky styling*/<br />
.paper-all .attachment-post-thumbnail, .sticky .attachment-post-thumbnail { 
width:99% !important; }<br />
<br />
.attachment img { max-width:900px; }<br />
</span></span>.<span class="style1"><span class="style4">alignleft, 
img.alignleft { display:inline; float:left; margin-right:24px !important; 
margin-top:4px !important; }<br />
</span></span>.<span class="style1"><span class="style4">alignright, 
img.alignright { display:inline; float:right; margin-left:24px !important; 
margin-top:4px !important; }<br />
</span></span>.<span class="style1"><span class="style4">aligncenter, 
img.aligncenter { clear:both; display:block; margin-left:auto !important; 
margin-right:auto !important; }<br />
</span><span class="style4">img.alignleft, img.alignright, img.aligncenter { 
margin-bottom:12px !important; }<br />
<br />
</span></span>.<span class="style1"><span class="style4">wp-caption { 
background:#EFE3D8; line-height:18px; margin-bottom:20px; padding:4px; text-align:center; 
}<br />
</span></span>.<span class="style1"><span class="style4">wp-caption img { 
margin:5px 5px 0; margin-left:auto; margin-right:auto; text-align:center; 
display:block; }<br />
</span></span>.<span class="style1"><span class="style4">wp-caption a { text-align:center; 
display:block; }<br />
</span></span>.<span class="style1"><span class="style4">wp-caption p.wp-caption-text 
{ color:#888; font-size:12px; margin:5px; }<br />
</span></span>.<span class="style1"><span class="style4">wp-smiley { margin:0; }<br />
<br />
</span><span class="style3"><span class="style4">.gallery { margin:0 auto 18px; 
}<br />
.gallery .gallery-item { float:left; margin-top:0; text-align:center; width:33%; 
}<br />
.gallery img { border:2px solid #cfcfcf; margin-left:auto; margin-right:auto; 
margin-bottom:6px; }<br />
.gallery .gallery-caption { color:#888; font-size:12px; margin:0 0 0px; }<br />
.gallery dl { margin:0; }<br />
.gallery br+br { display:none; }<br />
.attachment img { display:block; margin:0 auto; }<br />
<br />
</span></span></span>.<span class="style1"><span class="style4">bypostauthor { 
min-height:80px; }<br />
</span></span>.<span class="style1"><span class="style4">bypostauthor:after { 
content:url(images/tape.gif); opacity:0.5; position:absolute; /*left:623px; */ 
right:-18px; top:-20px; filter:alpha(opacity=60); }<br />
<br />
.comments-link { }<br />
.comment-date { font-size:10px; }<br />
<br />
/********************* Layout *********************/<br />
<br />
/* 1 Column Layout */<br />
#col-1 { }<br />
#col-1 #col-main { width:auto; margin:0px; }<br />
#col-1 #main-content { padding:30px; padding-bottom:40px; }<br />
#col-1 #col-left { display:none; }<br />
#col-1 #col-right { display:none; }<br />
<br />
/* 2 Column Layout with content on left*/<br />
#col-2-left { padding:10px; }<br />
#col-2-left #col-main { width:705px; float:left; padding-left:15px; }<br />
#col-2-left #main-content { padding:20px; padding-top:0px; padding-bottom:40px; 
}<br />
#col-3-left .attachment-post-thumbnail { max-width:640px; max-height:183px}<br />
/* #col-2-left #main-content img { max-width:640px; } */<br />
#col-2-left #col-left { width:220px; padding:0px; float:left; margin-left:0px }<br />
#col-2-left #col-right { display:none; }<br />
<br />
/* 2 Column Layout with content on right*/<br />
#col-2-right { padding-top:10px; padding-bottom:10px; }<br />
#col-2-right #col-main { width:705px; float:right; padding-right:20px; }<br />
#col-2-right #main-content { padding:20px; padding-top:0px; padding-bottom:40px; 
}<br />
#col-2-right .attachment-post-thumbnail { max-width:640px; max-height:183px}<br />
#col-2-right #col-left { width:220px; padding:0px; float:right; 
margin-right:0px; }<br />
#col-2-right #col-right { display:none; }<br />
<br />
/* 3 Column Layout */<br />
#col-3 { padding:10px; }<br />
#col-3 #col-main { float:left; width:100%; }<br />
#col-3 #main-content { margin:0 230px 0 225px; padding:10px; }/*Margins for 
content column. Should be &quot;0 RightColumnWidth 0 LeftColumnWidth*/<br />
#col-3 .attachment-post-thumbnail { max-width:475px; max-height:92px}<br />
#col-3 #col-left { float:left; padding:10px; width:220px; /*Width of left column 
in pixel*/margin-left:-965px; /*Set margin to that of -(MainContainerWidth)*/}<br />
#col-3 #col-right { float:left; padding:10px; width:220px; /*Width of right 
column*/margin-left:-240px; /*Set left margin to -(RightColumnWidth)*/}<br />
<br />
/* 3 Column Layout with content on left */<br />
#col-3-left { padding:10px; }<br />
#col-3-left #col-main { width:495px; float:left; }<br />
#col-3-left #main-content { padding:12px; padding-left:15px; padding-right:5px; 
}<br />
#col-3-left .attachment-post-thumbnail { max-width:475px; max-height:92px}<br />
#col-3-left #col-left { width:220px; padding:0px; margin-left:5px; float:left; }<br />
#col-3-left #col-right { width:220px; padding:0px; margin-left:5px; float:left; 
}<br />
<br />
/********************* Master Page *********************/<br />
<br />
body { background:url(images/mp-background-tile.jpg) center top; text-align:center; 
}<br />
</span></span>.<span class="style1"><span class="style4">siteframe { 
height:100%; }<br />
</span><span class="style3"><span class="style4">#container { background:url(images/mp-background-shading.png) 
center top; min-height:100%; }<br />
#ancestor-homepage { }<br />
#container2 { width:980px; margin-left:auto; margin-right:auto; text-align:left; 
}<br />
.content { background-image:url(images/mp-sprite-content-bg.png); background-repeat:repeat-y; 
background-position:center top; }<br />
<br />
#header { background:url(images/mp-sprite-header-bg2.png) repeat-y 3px 0px; 
text-align:left; padding-top:0px; position:relative; margin-top:35px; 
margin-bottom:0px; }<br />
#header2 { background:url(images/mp-sprite-header-bg2.png) no-repeat -1002px 
top; margin-top:0px; position:relative; top:-35px; }<br />
#header3 { background:url(images/mp-sprite-header-bg2.png) no-repeat -2007px 
bottom ; position:relative; top:35px; }<br />
#header4 { position:relative; top:-20px; padding-bottom:8px; padding-top:3px; 
min-height:100px; }<br />
<br />
#banner { margin-left:auto; margin-right:auto; position:relative; left:25px; 
z-index:5; }<br />
<br />
#logo { position:relative; z-index:10; top:-30px; left:7px; }<br />
#logo-2 { background:url(images/mp-sprite-master.png) no-repeat right -226px; 
padding-right:70px; height:133px; position:absolute; z-index:20; }<br />
#logo-3 { background:url(images/mp-sprite-master.png) no-repeat 0px -50px; 
padding-left:80px; height:133px; min-width:110px; text-align:center; float:left; 
line-height:normal; }<br />
#logo a:link, #logo a:visited { font-family:&#39;VollkornRegular&#39;, Geneva, 
sans-serif; color:#603913; text-decoration:none; color:#603913; 
letter-spacing:-1px; font-size:32px; white-space:nowrap; text-decoration:none; }<br />
#logo a:hover { text-decoration:underline; }<br />
#logo table, #logo td { border:0px; padding:0px; margin:0px; text-align:left; 
vertical-align:middle; height:120px; width:auto; }<br />
#site-title { margin-bottom:-12px; }<br />
#site-description { margin-top:12px; }<br />
<br />
#attrition { color:#FFF; text-decoration:none; -moz-text-shadow:1px 1px #000; 
-webkit-text-shadow:1px 1px #000; text-shadow:1px 1px #000; font-size:12px; 
float:left; }<br />
#attrition a { color:#FFF; }<br />
#attrition #contexture { background:url(&quot;images/contexture-international-logo-white.png&quot;) 
no-repeat scroll center center transparent; display:block; height:36px; 
margin-bottom:20px; overflow:hidden; text-indent:-9999px; width:138px; 
padding-top:6px; }<br />
<br />
#site-generator { float:right; font-size:12px; }<br />
#site-generator a { color:#FFF; text-decoration:none; -moz-text-shadow:1px 1px 
#000; -webkit-text-shadow:1px 1px #000; text-shadow:1px 1px #000; }<br />
<br />
/********************* Navigation *********************/<br />
<br />
h1 a:link, h1 a:visited, h2 a:link, h2 a:visited, h3 a:link, h3 a:visited { 
text-decoration:none; }<br />
h1 a:hover, h2 a:hover, h3 a:hover { text-decoration:underline; }<br />
<br />
/* Page Edit Link */<br />
.edit-link a, .post-edit-link,<br />
.edit-link a, .comment-edit-link { position:absolute; padding:3px; margin-left:0 
!important; margin-top:0 !important; left:-40px !important; top:0px !important; 
color:#FF0000; background-color:#F5F5F5; border:1px solid #999999; text-decoration:none 
!important; border-radius:5px; -moz-border-radius:5px; 
-webkit-border-radius:5px; box-shadow:2px 2px 5px rgba(0,0,0,0.2); 
-moz-box-shadow:2px 2px 5px rgba(0,0,0,0.2); -webkit-box-shadow:2px 2px 5px rgba(0,0,0,0.2); 
z-index:15; }<br />
.edit-link a:hover, .post-edit-link:hover,<br />
.edit-link a:hover, .comment-edit-link:hover { color:#FFF; 
background-color:#999; text-decoration:none; }<br />
/* Comment Edit Link */<br />
/*.edit-link a, .comment-edit-link { position:absolute; padding:3px; 
margin-left:0 !important; margin-top:0 !important; left:-40px !important; 
top:0px !important; color:#FF0000; background-color:#F5F5F5; border:1px solid 
#999999; text-decoration:none !important; border-radius:5px; 
-moz-border-radius:5px; -webkit-border-radius:5px; box-shadow:2px 2px 5px rgba(0,0,0,0.2); 
-moz-box-shadow:2px 2px 5px rgba(0,0,0,0.2); -webkit-box-shadow:2px 2px 5px rgba(0,0,0,0.2); 
}<br />
.edit-link a:hover, .comment-edit-link:hover { color:#FFF; 
background-color:#999; text-decoration:none; }*/<br />
<br />
<br />
</span></span></span>.<span class="style1"><span class="style4">nav-horz { 
margin:0px; padding:0px; clear:both; }<br />
</span></span>.<span class="style1"><span class="style4">nav-horz li { 
margin:0px; padding:0px; float:left; list-style-type:none; }<br />
<br />
</span></span>.<span class="style1"><span class="style4">nav-top a, .nav-main a, 
.nav-footer a { display:block; text-decoration:none; }<br />
</span></span>.<span class="style1"><span class="style4">nav-top li, .nav-main 
li, .nav-footer li { margin:0px; padding:0px; list-style-type:none; }<br />
<br />
/* Top Navigation Styling */<br />
</span></span>.<span class="style1"><span class="style4">nav-top { }<br />
</span></span>.<span class="style1"><span class="style4">nav-top li { }<br />
</span></span>.<span class="style1"><span class="style4">nav-top a:link, .nav-top 
a:visited { text-align:center; width:auto; padding-top:5px; padding-right:10px; 
padding-bottom:5px; padding-left:10px; }<br />
</span></span>.<span class="style1"><span class="style4">nav-top a:hover { }<br />
<br />
</span><span class="style3"><span class="style4">/* Main Navigation Styling */<br />
#menu { padding:0px; padding-bottom:20px; }<br />
</span></span></span>.<span class="style1"><span class="style4">nav-main .menu { 
max-height:49px; max-width:958px; }<br />
</span></span>.<span class="style1"><span class="style4">nav-main { float:right; 
}<br />
</span></span>.<span class="style1"><span class="style4">nav-main-left { 
background:url(images/mp-navigation-main-sprite.png) no-repeat 0px -188px; 
padding-left:11px; }<br />
</span></span>.<span class="style1"><span class="style4">nav-main-right { 
background:url(images/mp-navigation-main-sprite.png) no-repeat right -94px; 
padding-right:11px; }<br />
</span></span>.<span class="style1"><span class="style4">nav-main-bottom { 
background:url(images/mp-sprite-master.png) no-repeat left top; height:9px; 
margin-right:10px; position:relative; top:-5px; }<br />
</span></span>.<span class="style1"><span class="style4">nav-main ul { 
background:url(images/mp-navigation-main-sprite.png) repeat-x 0px 0px; 
height:48px; margin-bottom:0px; padding-left:4px; padding-right:6px; }<br />
</span></span>.<span class="style1"><span class="style4">nav-main li { 
margin:0px; padding:0px; }<br />
<br />
</span></span>.<span class="style1"><span class="style4">nav-main a:link, .nav-main 
a:visited { text-align:center; width:auto; padding-top:13px; padding-right:10px; 
padding-bottom:13px; padding-left:10px; color:#0a566b; font-weight:bold; }<br />
</span></span>.<span class="style1"><span class="style4">nav-main a:hover { }<br />
<br />
</span><span class="style3"><span class="style4">#menu .nav-main-right &gt; div &gt; 
ul,<br />
#menu .nav-main-right &gt; div &gt; ul ul,<br />
#menu .nav-main-right &gt; div &gt; ul li { position:relative; padding:0; margin:0; }<br />
#menu .nav-main-right &gt; div &gt; ul ul li { box-shadow:0px 3px 3px rgba(0,0,0,0.2); 
-moz-box-shadow:0px 3px 3px rgba(0,0,0,0.2); -webkit-box-shadow:0px 3px 3px rgba(0,0,0,0.2); 
}<br />
#menu .nav-main-right &gt; div &gt; ul ul a { padding:8px 0 8px 10px !important; text-align:left; 
}<br />
#menu .nav-main-right &gt; div &gt; ul ul { position:absolute !important; top:100%; 
left:0; display:none; width:180px; z-index:99999; background-image:none; 
padding:0px; margin:-1px 0 0 0; }<br />
/*.admin-bar #menu ul ul { top:68px !important; }*/<br />
#menu .nav-main-right &gt; div &gt; ul ul li { float:none; clear:both; 
min-width:180px; background:#EFE3D8; background-image:none; }<br />
#menu .nav-main-right &gt; div &gt; ul ul ul { left:100%; top:0; }<br />
#menu .nav-main-right &gt; div &gt; ul li:hover &gt; a,<br />
#menu .nav-main-right &gt; div &gt; ul ul :hover &gt; a { background:#F7F7F7; color:#000; 
}<br />
#menu .nav-main-right &gt; div &gt; ul li:hover &gt; ul { display:block; }<br />
#menu .nav-main-right &gt; div &gt; ul li.current_page_item &gt; a,<br />
#menu .nav-main-right &gt; div &gt; ul li.current-menu-ancestor &gt; a,<br />
#menu .nav-main-right &gt; div &gt; ul li.current-menu-item &gt; a,<br />
#menu .nav-main-right &gt; div &gt; ul li.current-menu-parent &gt; a { color:#000; text-decoration:underline; 
}<br />
* html #menu .nav-main-right &gt; div &gt; ul li.current_page_item a,<br />
* html #menu .nav-main-right &gt; div &gt; ul li.current-menu-ancestor a,<br />
* html #menu .nav-main-right &gt; div &gt; ul li.current-menu-item a,<br />
* html #menu .nav-main-right &gt; div &gt; ul li.current-menu-parent a,<br />
* html #menu .nav-main-right &gt; div &gt; ul li a:hover { color:#fff; }<br />
<br />
/* Styling for dynamic sidebar navigation, used in conjunction with the Simple 
Section Nav widget*/<br />
.sidebar { }<br />
.sidebar h3,.nav-sidebar .h3 { }<br />
.sidebar ul { margin:0px; padding:0px; margin-left:0em; }<br />
.sidebar ul ul { margin-top:5px; }<br />
.sidebar ul ul ul { margin-top:3px; margin-bottom:3px; }<br />
<br />
.sidebar li { margin:0px; padding:0px; list-style-type:none; font-weight:bold; 
color:#041A36; /*background-color:#efe3d8; */padding:15px; margin-bottom:20px; }<br />
.sidebar li li { list-style-type:disc; margin-left:15px; font-weight:normal; 
font-size:0.96em; padding:0px; margin-bottom:0px; }<br />
.sidebar li li li { list-style-type:circle; font-size:0.88em; }<br />
.sidebar li li li li { list-style-type:disc; font-size:1em; }<br />
<br />
.sidebar li.widget { background-image:url(images/sidebar-bg-bottom.gif),url(images/sidebar-bg-top.gif),url(images/sidebar-bg-middle.gif);<br />
background-repeat:no-repeat,no-repeat,repeat-y;<br />
background-position:bottom left, top left, top left;<br />
</span></span><span class="style4">position:relative;<br />
</span><span class="style3"><span class="style4">z-index:10; }<br />
<br />
.sidebar li li a:link, .sidebar li li a:visited { width:auto; padding-top:1px; 
padding-bottom:1px; text-decoration:none; display:block; }<br />
.sidebar li li a:hover { text-decoration:underline; }<br />
<br />
.sidebar ul ul .current_page_item { color:#F00!important; list-style-type:square!important; 
}<br />
<br />
/* Footer Navigation Styling */<br />
</span></span></span>.<span class="style1"><span class="style4">nav-footer { 
background:url(images/mp-sprite-header-bg.png) no-repeat -986px 0px; 
height:55px; position:relative; top:-25px; left:3px; padding-left:10px; 
padding-right:10px; }<br />
</span></span>.<span class="style1"><span class="style4">nav-footer ul ul { 
display:none; }<br />
</span></span>.<span class="style1"><span class="style4">nav-footer li { }<br />
</span></span>.<span class="style1"><span class="style4">nav-footer a:link, .nav-footer 
a:visited { text-align:center; width:auto; margin-top:10px; padding-top:12px; 
padding-right:10px; padding-bottom:13px; padding-left:10px; color:#0a566b; }<br />
</span></span>.<span class="style1"><span class="style4">nav-footer a:hover { 
background:#F7F7F7; color:#000; }<br />
<br />
</span><span class="style3"><span class="style4">/* =Browser Helper<br />
-------------------------------------------------------------- */<br />
#browser-helper {<br />
</span></span><span class="style4">position:relative;<br />
</span><span class="style3"><span class="style4">width:100%;<br />
height:100px !important;<br />
</span></span><span class="style4">clear:both;<br />
</span><span class="style3"><span class="style4">margin-bottom:1px;<br />
</span></span><span class="style4">display:none;<br />
</span></span>}<span class="style2"><br />
</span>#<span class="style1"><span class="style4">bh-bg {<br />
</span><span class="style3"><span class="style4">height:100px;<br />
text-align:center;<br />
background:#FAE8D4 url(images/bh-bg.jpg);<br />
border-bottom:1px solid white;<br />
</span></span></span>}<span class="style2"><br />
</span>#<span class="style1"><span class="style4">bh-icon-td {<br />
</span><span class="style3"><span class="style4">width:100px;<br />
</span></span></span>}<span class="style2"><br />
</span>#<span class="style1"><span class="style4">bh-copy {<br />
</span><span class="style3"><span class="style4">padding-top:10px;<br />
</span></span></span>}<span class="style2"><br />
</span>#<span class="style1"><span class="style4">bh-warning {<br />
</span><span class="style3"><span class="style4">white-space:nowrap;<br />
color:#e01f26;<br />
font-size:20px;<br />
font-weight:bold;<br />
</span></span></span>}<span class="style2"><br />
</span>#<span class="style1"><span class="style4">bh-notice {<br />
</span><span class="style4">border:none;<br />
</span><span class="style3"><span class="style4">margin-left:auto;<br />
margin-right:auto;<br />
width:980px;<br />
</span></span></span>}<span class="style2"><br />
</span>#<span class="style1"><span class="style4">bh-links {<br />
</span><span class="style4">border:none;<br />
</span><span class="style3"><span class="style4">padding-top:2px;<br />
padding-right:5px;<br />
text-align:right;<br />
</span></span></span>}<span class="style2"><br />
</span>#<span class="style1"><span class="style4">bh-links a {<br />
</span><span class="style3"><span class="style4">color:#075a97;<br />
/*text-decoration:none;*/<br />
</span></span></span>}<span class="style2"><br />
</span>#<span class="style1"><span class="style4">bh-links a:hover {<br />
</span><span class="style3"><span class="style4">color:#e01f26;<br />
/*text-decoration:underline;*/<br />
</span></span></span>}<span class="style2"><br />
</span>#<span class="style1"><span class="style4">bh-shadow {<br />
</span><span class="style4">display:none;<br />
</span></span>}<span class="style1"><span class="style4"><br />
</span><span class="style4">body.showing-browser-helper { background-position:0 
100px; }<br />
<br />
</span><span class="style3"><span class="style4">/********************* Comments 
Section *********************/<br />
<br />
#comments #respond { background:rgba(239, 227, 216, 0.5);padding:10px;border:1px 
solid 
#DACFBA;border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px;box-shadow:3px 
3px 5px rgba(0,0,0,0.2);-moz-box-shadow:3px 3px 5px rgba(0,0,0,0.2);-webkit-box-shadow:3px 
3px 5px rgba(0,0,0,0.2); }<br />
#comments .form-allowed-tags code { display:block;font-size:0.8em; }<br />
#cancel-comment-reply-link { 
float:right;text-decoration:underline;font-family:arial,helvetica,sans-serif; 
font-size:12px; }<br />
</span></span></span>#<span class="style1"><span class="style4">commentform {}<br />
</span></span>#<span class="style1"><span class="style4">commentform label { 
display:block;float:left;width:55px; }<br />
</span></span>#<span class="style1"><span class="style4">commentform 
label+.required { margin-right:5px; }<br />
</span></span>#<span class="style1"><span class="style4">commentform 
.comment-form-url label { width:65px; }<br />
</span></span>.<span class="style1"><span class="style4">commentlist { }<br />
</span></span>.<span class="style1"><span class="style4">commentlist &gt; li { 
margin-left:0px; list-style-type:none; clear:both; padding-bottom:20px; 
position:relative; margin-bottom:10px; }<br />
</span></span>.<span class="style1"><span class="style4">commentlist 
.comment-body { }<br />
</span></span>.<span class="style1"><span class="style4">commentlist .unapproved 
{ font-style:italic; color:#F00; }<br />
</span></span>.<span class="style1"><span class="style4">commentlist 
.comment-meta { float:left; width:75px; font-size:0.8em; font-style:italic; 
padding-bottom:20px; }<br />
</span></span>.<span class="style1"><span class="style4">commentlist 
.comment-meta img { margin-bottom:5px; }<br />
</span></span>.<span class="style1"><span class="style4">commentlist 
.comment-date a { text-decoration:none; }<br />
</span></span>.<span class="style1"><span class="style4">commentlist 
.comment-date a:hover { text-decoration:underline; }<br />
</span></span>.<span class="style1"><span class="style4">commentlist 
.comment-body { margin-left:85px; padding-bottom:10px; }<br />
<br />
</span><span class="style3"><span class="style4">.comments-paginate { 
padding-bottom:10px; padding-top:10px; font-size:0.9em; }<br />
.comments-paginate a { color:#000; background-color:#F4F4F4; text-decoration:none; 
padding-top:2px; padding-right:5px; padding-bottom:2px; padding-left:5px; }<br />
.comments-paginate a:hover { color:#FFF; background-color:#333; }<br />
.comments-paginate .current { text-decoration:none; padding-top:2px; 
padding-right:5px; padding-bottom:2px; padding-left:5px; background-color:#CCC; 
}<br />
<br />
/********************* Unique Page Content *********************/<br />
<br />
</span></span></span>#<span class="style1"><span class="style4">ctx-lightbox { 
position:absolute; left:0; top:0; width:100%; height:100%; z-index:9999; 
border:none; }<br />
</span></span>#<span class="style1"><span class="style4">ctx-lightbox td { 
vertical-align:middle; background:rgba(0,0,0,0.1); }<br />
</span></span>#<span class="style1"><span class="style4">ctx-lightbox .imagebox 
{ padding:10px; background:#fae8d4 url(images/paper-crumpled.jpg); border:1px 
solid #dacfba;<br />
box-shadow:5px 5px 5px rgba(0,0,0,0.5); -moz-box-shadow:5px 5px 5px rgba(0,0,0,0.5); 
-webkit-box-shadow:5px 5px 5px rgba(0,0,0,0.5); }<br />
</span></span>#<span class="style1"><span class="style4">ctx-lightbox .imagebox 
img { clear:both; }<br />
</span></span>#<span class="style1"><span class="style4">ctx-lightbox .imagebox 
p { clear:both; }<br />
<br />

*/</span></span></p>
<p class="style2">&nbsp;</p>
<p><span class="style1"><span class="style4">/*<br />
Lets face it, IE is the bane of web professionals everywhere... hence this 
stylesheet.<br />
*/<br />
.sidebar li.widget{<br />
background: #EFE3D8;<br />
</span></span>}<span class="style2"><br />
</span>#<span class="style1"><span class="style4">menu.nav-horz{<br />
</span><span class="style4">position:relative;<br />
</span><span class="style3"><span class="style4">z-index:99;<br />
</span></span></span>}<span class="style2"><br />
</span>#<span class="style1"><span class="style4">menu.nav-horz #menu-top li,<br />
</span></span>#<span class="style1"><span class="style4">menu.nav-horz #menu-top 
li a {<br />
height:33px !important;<br />
</span></span>}<span class="style1"><span class="style4"><br />
#header {<br />
</span><span class="style4">position:relative;<br />
</span><span class="style3"><span class="style4">z-index:1;<br />
</span></span></span>}<span class="style1"><span class="style4"><br />
.clear{<br />
padding-top:1px;<br />
}</span></span></p>
<p class="style2">&nbsp;</p>
<p class="style1"><span class="style4">&nbsp;&lt;?php<br />
/**<br />
* @package WordPress<br />
* @subpackage Adventure_Journal<br />
*/<br />
</span><span class="style4">get_header();<br />
</span><span class="style3"><span class="style4">?&gt;<br />
&lt;div class=&quot;content&quot; &lt;?php ctx_aj_getlayout(); ?&gt;&gt;<br />
&lt;div id=&quot;col-main&quot;&gt;<br />
&lt;div id=&quot;main-content&quot; &lt;?php ctx_aj_crinkled_paper(); ?&gt;&gt;<br />
&lt;!-- BEGIN Main Content--&gt;<br />
&lt;div id=&quot;post-0&quot; class=&quot;post error404 not-found&quot;&gt;<br />
&lt;h1 class=&quot;entry-title&quot;&gt;&lt;?php _e( &#39;Not Found&#39;, &#39;adventurejournal&#39; ); ?&gt;&lt;/h1&gt;<br />
&lt;div class=&quot;entry-content&quot;&gt;<br />
&lt;p&gt;&lt;?php _e( &#39;Apologies, but the page you requested could not be found. Perhaps 
searching will help.&#39;, &#39;adventurejournal&#39; ); ?&gt;&lt;/p&gt;<br />
&lt;?php get_search_form(); ?&gt;<br />
&lt;/div&gt;&lt;!-- .entry-content --&gt;<br />
&lt;/div&gt;<br />
&lt;!-- END Main Content--&gt;<br />
<br />
&lt;/div&gt;<br />
&lt;/div&gt;<br />
&lt;?php get_sidebar(); ?&gt;<br />
&lt;div class=&quot;clear&quot;&gt;&lt;/div&gt;<br />
&lt;/div&gt;<br />
&lt;?php get_footer(); ?&gt;</span></span></p>
<p class="style2">&nbsp;</p>
<p class="style1"><span class="style4">&lt;?php<br />
/**<br />
* @package WordPress<br />
* @subpackage Adventure_Journal<br />
*/<br />
</span><span class="style4">get_header();<br />
</span><span class="style3"><span class="style4">?&gt;<br />
&lt;div class=&quot;content&quot; &lt;?php ctx_aj_getlayout(); ?&gt;&gt;<br />
&lt;div id=&quot;col-main&quot;&gt;<br />
&lt;div id=&quot;main-content&quot; &lt;?php ctx_aj_crinkled_paper(); ?&gt;&gt;<br />
&lt;!-- BEGIN Main Content--&gt;<br />
&lt;?php if ( have_posts() ) the_post(); ?&gt;<br />
<br />
&lt;h1 class=&quot;page-title&quot;&gt;<br />
&lt;?php if ( is_day() ) : ?&gt;<br />
&lt;?php printf( __( &#39;Daily Archives: &lt;span&gt;%s&lt;/span&gt;&#39;, &#39;adventurejournal&#39; ), 
get_the_date() ); ?&gt;<br />
&lt;?php elseif ( is_month() ) : ?&gt;<br />
&lt;?php printf( __( &#39;Monthly Archives: &lt;span&gt;%s&lt;/span&gt;&#39;, &#39;adventurejournal&#39; ), 
get_the_date(&#39;F Y&#39;) ); ?&gt;<br />
&lt;?php elseif ( is_year() ) : ?&gt;<br />
&lt;?php printf( __( &#39;Yearly Archives: &lt;span&gt;%s&lt;/span&gt;&#39;, &#39;adventurejournal&#39; ), 
get_the_date(&#39;Y&#39;) ); ?&gt;<br />
&lt;?php else : ?&gt;<br />
&lt;?php _e( &#39;Blog Archives&#39;, &#39;adventurejournal&#39; ); ?&gt;<br />
&lt;?php endif; ?&gt;<br />
&lt;/h1&gt;<br />
<br />
&lt;?php<br />
</span></span><span class="style4">rewind_posts();<br />
</span><span class="style4">get_template_part( &#39;loop&#39;, &#39;archive&#39; );<br />
</span><span class="style3"><span class="style4">?&gt; &lt;!-- END Main Content--&gt;<br />
<br />
&lt;/div&gt;<br />
&lt;/div&gt;<br />
&lt;?php get_sidebar(); ?&gt;<br />
&lt;div class=&quot;clear&quot;&gt;&lt;/div&gt;<br />
&lt;/div&gt;<br />
&lt;?php get_footer(); ?&gt;</span></span></p>
<p class="style2">&nbsp;</p>
<p><span class="style1"><span class="style4">&lt;?php<br />
/**<br />
* @package WordPress<br />
* @subpackage Adventure_Journal<br />
*/<br />
</span><span class="style4">get_header(); ?&gt;<br />
<br />
</span><span class="style3"><span class="style4">&lt;div class=&quot;content&quot; &lt;?php 
ctx_aj_getlayout(); ?&gt;&gt;<br />
&lt;div id=&quot;col-main&quot;&gt;<br />
&lt;div id=&quot;main-content&quot; &lt;?php ctx_aj_crinkled_paper(); ?&gt;&gt;<br />
&lt;!-- BEGIN Main Content--&gt;<br />
&lt;?php<br />
/* Queue the first post, that way we know who<br />
* the author is when we try to get their name,<br />
* URL, description, avatar, etc.<br />
</span></span></span>*<span class="style1"><span class="style4"><br />
* We reset this later so we can run the loop<br />
* properly with a call to rewind_posts().<br />
*/<br />
if ( have_posts() )<br />
</span><span class="style4">the_post();<br />
</span><span class="style3"><span class="style4">?&gt;<br />
&lt;h1 class=&quot;page-title author&quot;&gt;&lt;?php printf( __( &#39;Author Archives: %s&#39;, &#39;adventurejournal&#39; 
), &quot;&lt;span class=&#39;vcard&#39;&gt;&lt;a class=&#39;url fn n&#39; href=&#39;&quot; . get_author_posts_url( 
get_the_author_meta( &#39;ID&#39; ) ) . &quot;&#39; title=&#39;&quot; . esc_attr( get_the_author() ) . &quot;&#39; 
rel=&#39;me&#39;&gt;&quot; . get_the_author() . &quot;&lt;/a&gt;&lt;/span&gt;&quot; ); ?&gt;&lt;/h1&gt;<br />
&lt;?php<br />
// If a user has filled out their description, show a bio on their entries.<br />
if ( get_the_author_meta( &#39;description&#39; ) ) : ?&gt;<br />
&lt;div id=&quot;entry-author-info&quot;&gt;<br />
&lt;div id=&quot;author-avatar&quot;&gt; &lt;?php echo get_avatar( get_the_author_meta( &#39;user_email&#39; 
), apply_filters( &#39;ctx_aj_author_bio_avatar_size&#39;, 60 ) ); ?&gt; &lt;/div&gt;<br />
&lt;!-- #author-avatar --&gt;<br />
&lt;div id=&quot;author-description&quot;&gt;<br />
&lt;h2&gt;&lt;?php printf( __( &#39;About %s&#39;, &#39;adventurejournal&#39; ), get_the_author() ); 
?&gt;&lt;/h2&gt;<br />
&lt;?php the_author_meta( &#39;description&#39; ); ?&gt;<br />
&lt;/div&gt;<br />
&lt;!-- #author-description --&gt;<br />
&lt;/div&gt;<br />
&lt;!-- #entry-author-info --&gt;<br />
&lt;?php endif; ?&gt;<br />
&lt;?php<br />
/* Since we called the_post() above, we need to<br />
* rewind the loop back to the beginning that way<br />
* we can run the loop properly, in full.<br />
*/<br />
</span></span><span class="style4">rewind_posts();<br />
<br />
</span><span class="style3"><span class="style4">/* Run the loop for the author 
archive page to output the authors posts<br />
* If you want to overload this in a child theme then include a file<br />
* called loop-author.php and that will be used instead.<br />
*/<br />
</span></span><span class="style4">get_template_part( &#39;loop&#39;, &#39;author&#39; );<br />
</span><span class="style3"><span class="style4">?&gt;<br />
&lt;!-- END Main Content--&gt;<br />
&lt;/div&gt;<br />
&lt;/div&gt;<br />
&lt;?php get_sidebar(); ?&gt;<br />
&lt;div class=&quot;clear&quot;&gt;&lt;/div&gt;<br />
&lt;/div&gt;<br />
&lt;?php get_footer(); ?&gt;<br />
</span></span></span></p>
<p class="style2">&nbsp;</p>
<p><span class="style1"><span class="style4">&lt;?php<br />
/**<br />
* @package WordPress<br />
* @subpackage Adventure_Journal<br />
*/<br />
<br />
</span><span class="style4">get_header(); ?&gt;<br />
<br />
</span><span class="style3"><span class="style4">&lt;div class=&quot;content&quot; &lt;?php 
ctx_aj_getlayout(); ?&gt;&gt;<br />
&lt;div id=&quot;col-main&quot;&gt;<br />
&lt;div id=&quot;main-content&quot; &lt;?php ctx_aj_crinkled_paper(); ?&gt;&gt;<br />
&lt;!-- BEGIN Main Content--&gt;<br />
&lt;h1&gt;&lt;?php echo &#39;&lt;span&gt;&#39;.single_cat_title(&#39;&#39;,false).&#39;&lt;/span&gt;&#39;;?&gt;&lt;/h1&gt;<br />
&lt;?php<br />
</span></span></span>$<span class="style1"><span class="style4">category_description 
= category_description();<br />
if ( ! empty( $category_description ) )<br />
echo &#39;&lt;div class=&quot;archive-meta&quot;&gt;&#39; . $category_description . &#39;&lt;/div&gt;&#39;;<br />
<br />
/* Run the loop for the category page to output the posts.<br />
* If you want to overload this in a child theme then include a file<br />
* called loop-category.php and that will be used instead.<br />
*/<br />
</span><span class="style4">get_template_part( &#39;loop&#39;, &#39;category&#39; );<br />
</span><span class="style3"><span class="style4">?&gt;<br />
&lt;!-- END Main Content--&gt;<br />
&lt;/div&gt;<br />
&lt;/div&gt;<br />
&lt;?php get_sidebar(); ?&gt;<br />
&lt;div class=&quot;clear&quot;&gt;&lt;/div&gt;<br />
&lt;/div&gt;<br />
&lt;?php get_footer(); ?&gt;<br />
</span></span></span></p>
<p class="style2">&nbsp;</p>
<p><span class="style1"><span class="style4">&lt;?php<br />
/**<br />
* @package WordPress<br />
* @subpackage Adventure_Journal<br />
*/<br />
?&gt;<br />
<br />
&lt;div id=&quot;comments&quot;&gt;<br />
&lt;?php if ( post_password_required() ) : ?&gt;<br />
&lt;p class=&quot;nopassword&quot;&gt;&lt;?php _e( &#39;This post is password protected. Enter the 
password to view any comments.&#39;, &#39;adventurejournal&#39; ); ?&gt;&lt;/p&gt;<br />
&lt;/div&gt;&lt;!-- #comments --&gt;<br />
&lt;?php<br />
/* Stop the rest of comments.php from being processed,<br />
* but don&#39;t kill the script entirely -- we still have<br />
* to fully load the template.<br />
*/<br />
return;<br />
</span><span class="style4">endif;<br />
<br />
</span><span class="style3"><span class="style4">if ( have_comments() ) : ?&gt;<br />
&lt;h3 id=&quot;comments-title&quot;&gt;&lt;?php<br />
</span></span><span class="style4">printf( _n( &#39;One Response to %2$s&#39;, &#39;%1$s 
Responses to %2$s&#39;, get_comments_number(), &#39;adventurejournal&#39; ),<br />
number_format_i18n( get_comments_number() ), &#39;&lt;em&gt;&#39; . get_the_title() . &#39;&lt;/em&gt;&#39; 
);<br />
?&gt;&lt;/h3&gt;<br />
<br />
&lt;?php if ( get_comment_pages_count() &gt; 1 &amp;&amp; get_option( &#39;page_comments&#39; ) ) : // 
Are there comments to navigate through? ?&gt;<br />
&lt;div class=&quot;navigation&quot;&gt;<br />
&lt;div class=&quot;nav-previous&quot;&gt;&lt;?php previous_comments_link( __( &#39;&lt;span class=&quot;meta-nav&quot;&gt;&amp;larr;&lt;/span&gt; 
Older Comments&#39;, &#39;adventurejournal&#39; ) ); ?&gt;&lt;/div&gt;<br />
&lt;div class=&quot;nav-next&quot;&gt;&lt;?php next_comments_link( __( &#39;Newer Comments &lt;span 
class=&quot;meta-nav&quot;&gt;&amp;rarr;&lt;/span&gt;&#39;, &#39;adventurejournal&#39; ) ); ?&gt;&lt;/div&gt;<br />
&lt;/div&gt; &lt;!-- .navigation --&gt;<br />
&lt;?php endif; // check for comment navigation ?&gt;<br />
<br />
</span></span>&lt;<span class="style1"><span class="style4">ol class=&quot;commentlist&quot;&gt;<br />
&lt;?php<br />
/* Loop through and list the comments. Tell wp_list_comments()<br />
* to use adventurejournal_comment() to format the comments.<br />
* If you want to overload this in a child theme then you can<br />
* define adventurejournal_comment() and that will be used instead.<br />
* See adventurejournal_comment() in adventurejournal/functions.php for more.<br />
*/<br />
</span><span class="style4">wp_list_comments(&#39;type=comment&amp;callback=ctx_aj_get_comments&#39;);<br />
?&gt;<br />
&lt;/ol&gt;<br />
<br />
&lt;?php if ( get_comment_pages_count() &gt; 1 &amp;&amp; get_option( &#39;page_comments&#39; ) ) : // 
Are there comments to navigate through? ?&gt;<br />
&lt;div class=&quot;navigation&quot;&gt;<br />
&lt;div class=&quot;nav-previous&quot;&gt;&lt;?php previous_comments_link( __( &#39;&lt;span class=&quot;meta-nav&quot;&gt;&amp;larr;&lt;/span&gt; 
Older Comments&#39;, &#39;adventurejournal&#39; ) ); ?&gt;&lt;/div&gt;<br />
&lt;div class=&quot;nav-next&quot;&gt;&lt;?php next_comments_link( __( &#39;Newer Comments &lt;span 
class=&quot;meta-nav&quot;&gt;&amp;rarr;&lt;/span&gt;&#39;, &#39;adventurejournal&#39; ) ); ?&gt;&lt;/div&gt;<br />
&lt;/div&gt;&lt;!-- .navigation --&gt;<br />
&lt;?php endif; // check for comment navigation ?&gt;<br />
<br />
&lt;?php else : // or, if we don&#39;t have comments:<br />
<br />
/* If there are no comments and comments are closed,<br />
* let&#39;s leave a little note, shall we?<br />
*/<br />
if ( ! comments_open() ) :<br />
?&gt;<br />
&lt;p class=&quot;nocomments&quot;&gt;&lt;?php _e( &#39;Comments are closed.&#39;, &#39;adventurejournal&#39; ); 
?&gt;&lt;/p&gt;<br />
&lt;?php endif; // end ! comments_open() ?&gt;<br />
<br />
&lt;?php endif; // end have_comments() ?&gt;<br />
<br />
&lt;?php comment_form($defaults); ?&gt;<br />
<br />
&lt;/div&gt;&lt;!-- #comments --&gt;<br />
</span></span></p>
<p class="style2">&nbsp;</p>
<p class="style2">&lt;?php<br />
/**<br />
* @package WordPress<br />
* @subpackage Adventure_Journal<br />
*/<br />
?&gt;<br />
&lt;!-- begin footer --&gt;<br />
&lt;div class=&quot;clear&quot;&gt;&lt;/div&gt;<br />
&lt;div id=&quot;footer&quot;&gt;<br />
&lt;div class=&quot;nav-horz nav-footer&quot;&gt;&lt;?php wp_nav_menu( array( &#39;theme_location&#39; =&gt; 
&#39;footer-menu&#39; ) ); ?&gt;&lt;/div&gt;<br />
&lt;?php wp_footer(); ?&gt;<br />
&lt;div class=&quot;clear&quot;&gt;&lt;/div&gt; <br />
&lt;/div&gt;<br />
&lt;/div&gt;<br />
&lt;/div&gt;<br />
&lt;/div&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;</p>
<p class="style2">&nbsp;</p>
<p><span class="style1"><span class="style4">&lt;?php<br />
/**<br />
* @package WordPress<br />
* @subpackage Adventure_Journal<br />
*/<br />
$AJOpts = get_option(&#39;ctx-adventurejournal-options&#39;);<br />
?&gt;<br />
&lt;!DOCTYPE html&gt;<br />
&lt;html &lt;?php language_attributes(); ?&gt;&gt;<br />
&lt;head&gt;<br />
&lt;meta charset=&quot;&lt;?php bloginfo( &#39;charset&#39; ); ?&gt;&quot; /&gt;<br />
&lt;title&gt;&lt;?php<br />
/*Print the &lt;title&gt; tag based on what is being viewed.*/<br />
global $page, $paged;<br />
wp_title( &#39;|&#39;, true, &#39;right&#39; );<br />
// Add the blog name.<br />
bloginfo( &#39;name&#39; );<br />
// Add the blog description for the home/front page.<br />
$site_description = get_bloginfo( &#39;description&#39;, &#39;display&#39; );<br />
if ( $site_description &amp;&amp; ( is_home() || is_front_page() ) )<br />
echo &quot; | $site_description&quot;;<br />
// Add a page number if necessary:<br />
if ( $paged &gt;= 2 || $page &gt;= 2 )<br />
echo &#39; | &#39; . sprintf( __( &#39;Page %s&#39;, &#39;adventurejournal&#39; ), max( $paged, $page ) 
);<br />
?&gt;&lt;/title&gt;<br />
&lt;meta name=&quot;author&quot; content=&quot;Designed by Contexture International | 
http://www.contextureintl.com&quot; /&gt;<br />
&lt;link rel=&quot;profile&quot; href=&quot;http://gmpg.org/xfn/11&quot; /&gt;<br />
&lt;link rel=&quot;pingback&quot; href=&quot;&lt;?php bloginfo( &#39;pingback_url&#39; ); ?&gt;&quot; /&gt;<br />
&lt;?php<br />
/* We add some JavaScript to pages with the comment form<br />
* to support sites with threaded comments (when in use).<br />
*/<br />
if ( is_singular() &amp;&amp; get_option( &#39;thread_comments&#39; ) )<br />
wp_enqueue_script( &#39;comment-reply&#39; );<br />
<br />
/* Always have wp_head() just before the closing &lt;/head&gt;<br />
* tag of your theme, or you will break many plugins, which<br />
* generally use this hook to add elements to &lt;head&gt; such<br />
* as styles, scripts, and meta tags.<br />
*/<br />
wp_head();<br />
?&gt;<br />
&lt;/head&gt;<br />
&lt;body &lt;?php body_class(); ?&gt;&gt;<br />
&lt;?php if($AJOpts[&#39;browser-helper&#39;]==&#39;true&#39;): ?&gt;<br />
&lt;div id=&quot;browser-helper&quot;&gt;<br />
&lt;div id=&quot;bh-bg&quot;&gt;<br />
&lt;table id=&quot;bh-notice&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot;&gt;<br />
&lt;tr&gt;<br />
&lt;td id=&quot;bh-icon-td&quot; rowspan=&quot;3&quot;&gt;<br />
&lt;img id=&quot;bh-icon&quot; src=&quot;http://s.wordpress.org/images/browsers/ie.png&quot; 
alt=&quot;browser icon&quot; width=&quot;87&quot;/&gt;<br />
&lt;/td&gt;<br />
&lt;td id=&quot;bh-copy&quot;&gt;<br />
&lt;div id=&quot;bh-warning&quot;&gt;&lt;?php _e(&#39;You are using an insecure version of &lt;span 
id=&quot;bh-browsername&quot;&gt;your web browser&lt;/span&gt;. Please update your 
browser!&#39;,&#39;adventurejournal&#39;) ?&gt;&lt;/div&gt;<br />
&lt;div id=&quot;bh-explain&quot;&gt;&lt;?php _e(&#39;Using an outdated browser makes your computer 
unsafe. For a safer, faster, more enjoyable user experience, please update your 
browser today or try a newer browser.&#39;,&#39;adventurejournal&#39;) ?&gt;&lt;/div&gt;<br />
&lt;div id=&quot;bh-links&quot;&gt;<br />
&lt;a id=&quot;bh-update&quot; href=&quot;#&quot;&gt;&lt;?php _e(&#39;Update Your Browser&#39;,&#39;adventurejournal&#39;) 
?&gt;&lt;/a&gt; | &lt;a href=&quot;http://www.google.com/chrome/&quot;&gt;&lt;?php _e(&#39;Try Something 
New&#39;,&#39;adventurejournal&#39;) ?&gt;&lt;/a&gt; | &lt;a href=&quot;#&quot; id=&quot;bh-hide&quot;&gt;&lt;?php _e(&#39;Hide This 
Warning&#39;,&#39;adventurejournal&#39;) ?&gt;&lt;/a&gt;<br />
&lt;/div&gt;<br />
&lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;/table&gt;<br />
&lt;/div&gt;<br />
&lt;div id=&quot;bh-shadow&quot;&gt;&lt;/div&gt;<br />
&lt;/div&gt;<br />
&lt;?php endif; ?&gt;<br />
&lt;div &lt;?php echo ctx_aj_get_relationships($post-&gt;ID,&#39;siteframe&#39;); ?&gt;&gt;<br />
&lt;div id=&quot;container&quot;&gt;<br />
&lt;div id=&quot;container2&quot;&gt;<br />
&lt;div class=&quot;nav-horz nav-main&quot; id=&quot;menu&quot;&gt;<br />
&lt;div class=&quot;nav-main-left&quot;&gt;<br />
&lt;div class=&quot;nav-main-right&quot;&gt;<br />
&lt;?php wp_nav_menu( array( &#39;theme_location&#39; =&gt; &#39;primary-menu&#39; ) ); ?&gt;<br />
&lt;/div&gt;<br />
&lt;/div&gt;<br />
&lt;div class=&quot;nav-main-bottom&quot;&gt;&lt;/div&gt;<br />
&lt;/div&gt;<br />
&lt;div class=&quot;clear&quot;&gt;&lt;/div&gt;<br />
&lt;!-- end header --&gt;<br />
&lt;div id=&quot;header&quot;&gt;&lt;div id=&quot;header2&quot;&gt;&lt;div id=&quot;header3&quot;&gt;&lt;div id=&quot;header4&quot;&gt;<br />
&lt;?php ctx_aj_site_title() ;?&gt;<br />
&lt;div id=&quot;banner&quot;&gt;<br />
&lt;?php<br />
<br />
//wp_die(&#39;||| &#39;.(string)has_post_thumbnail( $post-&gt;ID ).&#39; |||&#39;);<br />
<br />
// Check if this is a post or page, if it has a thumbnail, and if it&#39;s a big one<br />
if (is_singular()<br />
&amp;&amp; has_post_thumbnail( $post-&gt;ID )<br />
&amp;&amp; ( $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post-&gt;ID ), 
&#39;post-thumbnail&#39; ) )<br />
&amp;&amp; $image[1] &gt;= HEADER_IMAGE_WIDTH ) {<br />
// Houston, we have a new header image!<br />
echo get_the_post_thumbnail( $post-&gt;ID );<br />
} else if ( get_header_image() ) {<br />
?&gt;<br />
</span></span>&lt;<span class="style1"><span class="style4">img src=&quot;&lt;?php 
header_image(); ?&gt;&quot; width=&quot;&lt;?php echo HEADER_IMAGE_WIDTH; ?&gt;&quot; height=&quot;&lt;?php echo 
HEADER_IMAGE_HEIGHT; ?&gt;&quot; alt=&quot;&quot; /&gt;<br />
&lt;?php } ?&gt;<br />
<br />
&lt;/div&gt;<br />
&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</span></span></p>
<p class="style2">&nbsp;</p>
<p><span class="style1"><span class="style4">&lt;?php<br />
/**<br />
* The main template file.<br />
</span></span>*<span class="style1"><span class="style4"><br />
* This is the most generic template file in a WordPress theme<br />
* and one of the two required files for a theme (the other being style.css).<br />
* It is used to display a page when nothing more specific matches a query. <br />
* E.g., it puts together the home page when no home.php file exists.<br />
* Learn more: http://codex.wordpress.org/Template_Hierarchy<br />
</span></span>*<span class="style1"><span class="style4"><br />
* @package WordPress<br />
* @subpackage Adventure_Journal<br />
* @since Adventure Journal 1.0<br />
*/<br />
<br />
</span><span class="style4">get_header(); ?&gt;<br />
<br />
</span><span class="style3"><span class="style4">&lt;div class=&quot;content&quot; &lt;?php 
ctx_aj_getlayout(); ?&gt;&gt;<br />
&lt;div id=&quot;col-main&quot; role=&quot;main&quot;&gt;<br />
&lt;div id=&quot;main-content&quot; &lt;?php ctx_aj_crinkled_paper(); ?&gt;&gt;<br />
&lt;?php<br />
/* Run the loop to output the posts.<br />
* If you want to overload this in a child theme then include a file<br />
* called loop-index.php and that will be used instead.<br />
*/<br />
</span></span><span class="style4">get_template_part( &#39;loop&#39;, &#39;index&#39; );<br />
</span><span class="style3"><span class="style4">?&gt;<br />
&lt;/div&gt;<br />
&lt;/div&gt;&lt;!-- #col-main --&gt;<br />
&lt;?php get_sidebar(); ?&gt;<br />
&lt;div class=&quot;clear&quot;&gt;&lt;/div&gt;<br />
&lt;/div&gt;&lt;!-- #content --&gt;<br />
<br />
&lt;?php get_footer(); ?&gt;</span></span></span></p>
<p class="style2">&nbsp;</p>
<p><span class="style1"><span class="style4">&lt;?php<br />
/**<br />
* Template Name: One column, no sidebars<br />
</span></span>*<span class="style1"><span class="style4"><br />
* A page template with no sidebars<br />
</span></span>*<span class="style1"><span class="style4"><br />
* @package WordPress<br />
* @subpackage Adventure_Journal<br />
*/<br />
</span><span class="style4">get_header();<br />
</span><span class="style3"><span class="style4">?&gt;<br />
&lt;div class=&quot;content&quot; id=&quot;col-1&quot;&gt;<br />
&lt;div id=&quot;col-main&quot;&gt;<br />
&lt;div id=&quot;main-content&quot; &lt;?php //ctx_aj_crinkled_paper(); ?&gt;&gt;<br />
&lt;!-- BEGIN Main Content--&gt;<br />
&lt;?php<br />
//Start the Loop<br />
if (have_posts()) : while (have_posts()) : the_post(); ?&gt;<br />
<br />
&lt;div &lt;?php post_class() ?&gt; id=&quot;post-&lt;?php the_ID(); ?&gt;&quot;&gt;<br />
&lt;?php echo sprintf(&#39;&lt;h1 class=&quot;storytitle&quot;&gt;%s&lt;/h1&gt;&#39;,get_the_title());?&gt;<br />
<br />
&lt;?php if(!is_admin_b)edit_post_link(__(&#39;Edit&#39;)); ?&gt;<br />
<br />
&lt;div class=&quot;storycontent&quot;&gt;<br />
&lt;?php the_content(__(&#39;(more...)&#39;)); ?&gt;<br />
&lt;/div&gt;<br />
<br />
&lt;div class=&quot;feedback&quot;&gt;<br />
&lt;?php wp_link_pages( array( &#39;before&#39; =&gt; &#39;&lt;div class=&quot;page-link&quot;&gt;&#39; . __( 
&#39;Pages:&#39;, &#39;adventurejournal&#39; ), &#39;after&#39; =&gt; &#39;&lt;/div&gt;&#39; ) ); ?&gt;<br />
&lt;?php comments_popup_link(__(&#39;Comments (0)&#39;), __(&#39;Comments (1)&#39;), __(&#39;Comments 
(%)&#39;)); ?&gt;<br />
&lt;/div&gt;<br />
<br />
&lt;/div&gt;<br />
</span></span></span>&lt;<span class="style1"><span class="style4">br/&gt;<br />
</span><span class="style3"><span class="style4">&lt;?php comments_template(); // 
Get wp-comments.php template ?&gt;<br />
&lt;?php endwhile; else: ?&gt;<br />
&lt;p&gt;&lt;?php _e(&#39;Sorry, no posts matched your criteria.&#39;,&#39;adventurejournal&#39;); ?&gt;&lt;/p&gt;<br />
&lt;?php endif; ?&gt;<br />
<br />
&lt;?php posts_nav_link(&#39; &amp;#8212; &#39;, __(&#39;&amp;laquo; Newer Posts&#39;), __(&#39;Older Posts &amp;raquo;&#39;)); 
?&gt;<br />
&lt;!-- END Main Content--&gt;<br />
<br />
&lt;/div&gt;<br />
&lt;/div&gt;<br />
&lt;?php get_sidebar(); ?&gt;<br />
&lt;div class=&quot;clear&quot;&gt;&lt;/div&gt;<br />
&lt;/div&gt;<br />
&lt;?php get_footer(); ?&gt;</span></span></span></p>
<p class="style2">&nbsp;</p>
<p><span class="style1"><span class="style4">&lt;?php<br />
/**<br />
* @package WordPress<br />
* @subpackage Adventure_Journal<br />
*/<br />
</span><span class="style4">get_header();<br />
</span><span class="style3"><span class="style4">?&gt;<br />
&lt;div class=&quot;content&quot; &lt;?php ctx_aj_getlayout(); ?&gt;&gt;<br />
&lt;div id=&quot;col-main&quot;&gt;<br />
&lt;div id=&quot;main-content&quot; &lt;?php //ctx_aj_crinkled_paper(); ?&gt;&gt;<br />
&lt;!-- BEGIN Main Content--&gt;<br />
&lt;?php<br />
//Start the Loop<br />
if (have_posts()) : while (have_posts()) : the_post(); ?&gt;<br />
<br />
&lt;div &lt;?php post_class() ?&gt; id=&quot;post-&lt;?php the_ID(); ?&gt;&quot;&gt;<br />
&lt;?php echo sprintf(&#39;&lt;h1 class=&quot;storytitle&quot;&gt;%s&lt;/h1&gt;&#39;,get_the_title());?&gt;<br />
<br />
&lt;?php <br />
if(!function_exists(&#39;is_admin_bar_showing&#39;)){<br />
</span></span><span class="style4">edit_post_link(__(&#39;Edit Page&#39;, &#39;adventurejournal&#39;));<br />
} else if ( !is_admin_bar_showing() ){<br />
</span><span class="style4">edit_post_link(__(&#39;Edit Page&#39;, &#39;adventurejournal&#39;));<br />
</span></span>}<span class="style1"><span class="style4"><br />
?&gt;<br />
<br />
&lt;div class=&quot;storycontent&quot;&gt;<br />
&lt;?php the_content(__(&#39;(more...)&#39;)); ?&gt;<br />
&lt;/div&gt;<br />
<br />
&lt;div class=&quot;feedback&quot;&gt;<br />
&lt;?php wp_link_pages( array( &#39;before&#39; =&gt; &#39;&lt;div class=&quot;page-link&quot;&gt;&#39; . __( 
&#39;Pages:&#39;, &#39;adventurejournal&#39; ), &#39;after&#39; =&gt; &#39;&lt;/div&gt;&#39; ) ); ?&gt;<br />
&lt;?php comments_popup_link(__(&#39;Comments (0)&#39;), __(&#39;Comments (1)&#39;), __(&#39;Comments 
(%)&#39;)); ?&gt;<br />
&lt;/div&gt;<br />
<br />
&lt;/div&gt;<br />
</span></span>&lt;<span class="style1"><span class="style4">br/&gt;<br />
</span><span class="style3"><span class="style4">&lt;?php comments_template(); // 
Get wp-comments.php template ?&gt;<br />
&lt;?php endwhile; else: ?&gt;<br />
&lt;p&gt;&lt;?php _e(&#39;Sorry, no posts matched your criteria.&#39;,&#39;adventurejournal&#39;); ?&gt;&lt;/p&gt;<br />
&lt;?php endif; ?&gt;<br />
<br />
&lt;?php posts_nav_link(&#39; &amp;#8212; &#39;, __(&#39;&amp;laquo; Newer Posts&#39;), __(&#39;Older Posts &amp;raquo;&#39;)); 
?&gt;<br />
&lt;!-- END Main Content--&gt;<br />
<br />
&lt;/div&gt;<br />
&lt;/div&gt;<br />
&lt;?php get_sidebar(); ?&gt;<br />
&lt;div class=&quot;clear&quot;&gt;&lt;/div&gt;<br />
&lt;/div&gt;<br />
&lt;?php get_footer(); ?&gt;</span></span></span></p>
<p class="style2">&nbsp;</p>
<p><span class="style1"><span class="style4">&lt;?php<br />
/**<br />
* @package WordPress<br />
* @subpackage Adventure_Journal<br />
*/<br />
?&gt;&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; 
&quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;<br />
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;<br />
&lt;head&gt;<br />
&lt;title&gt;&lt;?php echo get_option(&#39;blogname&#39;); ?&gt; - &lt;?php echo sprintf(__(&quot;Comments 
on %s&quot;), the_title(&#39;&#39;,&#39;&#39;,false)); ?&gt;&lt;/title&gt;<br />
<br />
&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;&lt;?php bloginfo(&#39;html_type&#39;); ?&gt;; 
charset=&lt;?php echo get_option(&#39;blog_charset&#39;); ?&gt;&quot; /&gt;<br />
&lt;style type=&quot;text/css&quot; media=&quot;screen&quot;&gt;<br />
@import url( &lt;?php bloginfo(&#39;stylesheet_url&#39;); ?&gt; );<br />
body { margin: 3px; }<br />
&lt;/style&gt;<br />
<br />
&lt;/head&gt;<br />
&lt;body id=&quot;commentspopup&quot;&gt;<br />
<br />
&lt;h1 id=&quot;header&quot;&gt;&lt;a href=&quot;&quot; title=&quot;&lt;?php echo get_option(&#39;blogname&#39;); ?&gt;&quot;&gt;&lt;?php 
echo get_option(&#39;blogname&#39;); ?&gt;&lt;/a&gt;&lt;/h1&gt;<br />
<br />
&lt;?php<br />
/* Don&#39;t remove these lines. */<br />
</span><span class="style4">add_filter(&#39;comment_text&#39;, &#39;popuplinks&#39;);<br />
if ( have_posts() ) :<br />
while( have_posts()) : the_post();<br />
?&gt;<br />
<br />
&lt;h2 id=&quot;comments&quot;&gt;&lt;?php _e(&#39;Comments&#39;,&#39;adventurejournal&#39;); ?&gt;&lt;/h2&gt;<br />
<br />
&lt;p&gt;&lt;a href=&quot;&lt;?php echo get_post_comments_feed_link($post-&gt;ID); ?&gt;&quot;&gt;&lt;?php _e(&quot;&lt;abbr 
title=\&quot;Really Simple Syndication\&quot;&gt;RSS&lt;/abbr&gt; feed for comments on this 
post.&quot;); ?&gt;&lt;/a&gt;&lt;/p&gt;<br />
<br />
&lt;?php if ( pings_open() ) { ?&gt;<br />
&lt;p&gt;&lt;?php _e(&quot;The &lt;abbr title=\&quot;Universal Resource Locator\&quot;&gt;URL&lt;/abbr&gt; to 
TrackBack this entry is:&quot;); ?&gt; &lt;em&gt;&lt;?php trackback_url() ?&gt;&lt;/em&gt;&lt;/p&gt;<br />
&lt;?php } ?&gt;<br />
<br />
&lt;?php<br />
// this line is WordPress&#39; motor, do not delete it.<br />
$commenter = wp_get_current_commenter();<br />
extract($commenter);<br />
$comments = get_approved_comments($id);<br />
</span></span>$<span class="style1"><span class="style4">commentstatus = 
get_post($id);<br />
if ( post_password_required($commentstatus) ) { // and it doesn&#39;t match the 
cookie<br />
echo(get_the_password_form());<br />
} else { ?&gt;<br />
<br />
&lt;?php if ($comments) { ?&gt;<br />
</span></span>&lt;<span class="style1"><span class="style4">ol id=&quot;commentlist&quot;&gt;<br />
&lt;?php foreach ($comments as $comment) { ?&gt;<br />
</span></span>&lt;<span class="style1"><span class="style4">li id=&quot;comment-&lt;?php 
comment_ID() ?&gt;&quot;&gt;<br />
&lt;?php comment_text() ?&gt;<br />
&lt;p&gt;&lt;cite&gt;&lt;?php comment_type(_x(&#39;Comment&#39;, &#39;noun&#39;), __(&#39;Trackback&#39;), __(&#39;Pingback&#39;)); 
?&gt; &lt;?php _e(&#39;by&#39;,&#39;adventurejournal&#39;); ?&gt; &lt;?php comment_author_link() ?&gt; &amp;#8212; 
&lt;?php comment_date() ?&gt; @ &lt;a href=&quot;#comment-&lt;?php comment_ID() ?&gt;&quot;&gt;&lt;?php 
comment_time() ?&gt;&lt;/a&gt;&lt;/cite&gt;&lt;/p&gt;<br />
&lt;/li&gt;<br />
<br />
&lt;?php } // end for each comment ?&gt;<br />
&lt;/ol&gt;<br />
&lt;?php } else { // this is displayed if there are no comments so far ?&gt;<br />
&lt;p&gt;&lt;?php _e(&#39;No comments yet.&#39;,&#39;adventurejournal&#39;); ?&gt;&lt;/p&gt;<br />
&lt;?php } ?&gt;<br />
<br />
&lt;?php if ( comments_open($commentstatus) ) { ?&gt;<br />
&lt;h2&gt;&lt;?php _e(&#39;Leave a comment&#39;,&#39;adventurejournal&#39;); ?&gt;&lt;/h2&gt;<br />
&lt;p&gt;&lt;?php _e(&quot;Line and paragraph breaks automatic, e-mail address never 
displayed, &lt;acronym title=\&quot;Hypertext Markup Language\&quot;&gt;HTML&lt;/acronym&gt; 
allowed:&quot;,&#39;adventurejournal&#39;); ?&gt; &lt;code&gt;&lt;?php echo allowed_tags(); ?&gt;&lt;/code&gt;&lt;/p&gt;<br />
<br />
&lt;form action=&quot;&lt;?php echo get_option(&#39;siteurl&#39;); ?&gt;/wp-comments-post.php&quot; 
method=&quot;post&quot; id=&quot;commentform&quot;&gt;<br />
&lt;?php if ( is_user_logged_in() ) : ?&gt;<br />
&lt;p&gt;&lt;?php printf(__(&#39;Logged in as %s.&#39;,&#39;adventurejournal&#39;), &#39;&lt;a href=&quot;&#39;.get_option(&#39;siteurl&#39;).&#39;/wp-admin/profile.php&quot;&gt;&#39;.$user_identity.&#39;&lt;/a&gt;&#39;); 
?&gt; &lt;a href=&quot;&lt;?php echo wp_logout_url(); ?&gt;&quot; title=&quot;&lt;?php echo esc_attr(__(&#39;Log 
out of this account&#39;,&#39;adventurejournal&#39;)); ?&gt;&quot;&gt;&lt;?php _e(&#39;Log out &amp;raquo;&#39;,&#39;adventurejournal&#39;); 
?&gt;&lt;/a&gt;&lt;/p&gt;<br />
&lt;?php else : ?&gt;<br />
&lt;p&gt;<br />
&lt;input type=&quot;text&quot; name=&quot;author&quot; id=&quot;author&quot; class=&quot;textarea&quot; value=&quot;&lt;?php echo 
esc_attr($comment_author); ?&gt;&quot; size=&quot;28&quot; tabindex=&quot;1&quot; /&gt;<br />
&lt;label for=&quot;author&quot;&gt;&lt;?php _e(&quot;Name&quot;,&#39;adventurejournal&#39;); ?&gt;&lt;/label&gt;<br />
&lt;/p&gt;<br />
<br />
&lt;p&gt;<br />
&lt;input type=&quot;text&quot; name=&quot;email&quot; id=&quot;email&quot; value=&quot;&lt;?php echo esc_attr($comment_author_email); 
?&gt;&quot; size=&quot;28&quot; tabindex=&quot;2&quot; /&gt;<br />
&lt;label for=&quot;email&quot;&gt;&lt;?php _e(&quot;E-mail&quot;,&#39;adventurejournal&#39;); ?&gt;&lt;/label&gt;<br />
&lt;/p&gt;<br />
<br />
&lt;p&gt;<br />
&lt;input type=&quot;text&quot; name=&quot;url&quot; id=&quot;url&quot; value=&quot;&lt;?php echo esc_attr($comment_author_url); 
?&gt;&quot; size=&quot;28&quot; tabindex=&quot;3&quot; /&gt;<br />
&lt;label for=&quot;url&quot;&gt;&lt;?php _e(&quot;&lt;abbr title=\&quot;Universal Resource Locator\&quot;&gt;URL&lt;/abbr&gt;&quot;,&#39;adventurejournal&#39;); 
?&gt;&lt;/label&gt;<br />
&lt;/p&gt;<br />
&lt;?php endif; ?&gt;<br />
<br />
&lt;p&gt;<br />
&lt;label for=&quot;comment&quot;&gt;&lt;?php _e(&quot;Your Comment&quot;,&#39;adventurejournal&#39;); ?&gt;&lt;/label&gt;<br />
</span></span>&lt;<span class="style1"><span class="style4">br /&gt;<br />
</span></span>&lt;<span class="style1"><span class="style4">textarea name=&quot;comment&quot; 
id=&quot;comment&quot; cols=&quot;70&quot; rows=&quot;4&quot; tabindex=&quot;4&quot;&gt;&lt;/textarea&gt;<br />
&lt;/p&gt;<br />
<br />
&lt;p&gt;<br />
&lt;input type=&quot;hidden&quot; name=&quot;comment_post_ID&quot; value=&quot;&lt;?php echo $id; ?&gt;&quot; /&gt;<br />
&lt;input type=&quot;hidden&quot; name=&quot;redirect_to&quot; value=&quot;&lt;?php echo esc_attr($_SERVER[&quot;REQUEST_URI&quot;]); 
?&gt;&quot; /&gt;<br />
&lt;input name=&quot;submit&quot; type=&quot;submit&quot; tabindex=&quot;5&quot; value=&quot;&lt;?php esc_attr_e(&quot;Say 
It!&quot;,&#39;adventurejournal&#39;); ?&gt;&quot; /&gt;<br />
&lt;/p&gt;<br />
&lt;?php do_action(&#39;comment_form&#39;, $post-&gt;ID); ?&gt;<br />
&lt;/form&gt;<br />
&lt;?php } else { // comments are closed ?&gt;<br />
&lt;p&gt;&lt;?php _e(&quot;Sorry, the comment form is closed at this time.&quot;,&#39;adventurejournal&#39;); 
?&gt;&lt;/p&gt;<br />
&lt;?php }<br />
} // end password check<br />
?&gt;<br />
<br />
&lt;div&gt;&lt;strong&gt;&lt;a href=&quot;javascript:window.close()&quot;&gt;&lt;?php _e(&quot;Close this window.&quot;,&#39;adventurejournal&#39;); 
?&gt;&lt;/a&gt;&lt;/strong&gt;&lt;/div&gt;<br />
<br />
&lt;?php // if you delete this the sky will fall on your head<br />
</span><span class="style4">endwhile; //endwhile have_posts()<br />
else: //have_posts()<br />
?&gt;<br />
&lt;p&gt;Sorry, no posts matched your criteria.&lt;/p&gt;<br />
&lt;?php endif; ?&gt;<br />
<br />
&lt;!-- // this is just the end of the motor - don&#39;t touch that line either :) --&gt;<br />
&lt;?php //} ?&gt;<br />
&lt;p class=&quot;credit&quot;&gt;&lt;?php timer_stop(1); ?&gt; &lt;?php echo sprintf(__(&quot;&lt;cite&gt;Powered 
by &lt;a href=\&quot;http://wordpress.org\&quot; title=\&quot;%s\&quot;&gt;&lt;strong&gt;WordPress&lt;/strong&gt;&lt;/a&gt;&lt;/cite&gt;&quot;,&#39;adventurejournal&#39;),__(&quot;Powered 
by WordPress, state-of-the-art semantic personal publishing platform.&quot;,&#39;adventurejournal&#39;)); 
?&gt;&lt;/p&gt;<br />
&lt;?php // Seen at http://www.mijnkopthee.nl/log2/archive/2003/05/28/esc(18) ?&gt;<br />
&lt;script type=&quot;text/javascript&quot;&gt;<br />
&lt;!--<br />
</span><span class="style4">document.onkeypress = function esc(e) {<br />
</span><span class="style3"><span class="style4">if(typeof(e) == &quot;undefined&quot;) { 
e=event; }<br />
if (e.keyCode == 27) { self.close(); }<br />
</span></span></span>}<span class="style1"><span class="style4"><br />
// --&gt;<br />
&lt;/script&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;<br />
</span></span></p>
<p class="style2">&nbsp;</p>
<p class="style1"><span class="style4">&lt;?php<br />
/**<br />
* @package WordPress<br />
* @subpackage Adventure_Journal<br />
*/<br />
</span><span class="style4">get_header();<br />
</span><span class="style3"><span class="style4">?&gt;<br />
&lt;div class=&quot;content&quot; &lt;?php ctx_aj_getlayout(); ?&gt;&gt;<br />
&lt;div id=&quot;col-main&quot;&gt;<br />
&lt;div id=&quot;main-content&quot; &lt;?php ctx_aj_crinkled_paper(); ?&gt;&gt;<br />
&lt;!-- BEGIN Main Content--&gt;<br />
&lt;?php if ( have_posts() ) : ?&gt;<br />
&lt;h1 class=&quot;page-title&quot;&gt;&lt;?php printf( __( &#39;Search Results for: %s&#39;, &#39;adventurejournal&#39; 
), &#39;&lt;span&gt;&#39; . get_search_query() . &#39;&lt;/span&gt;&#39; ); ?&gt;&lt;/h1&gt;<br />
&lt;?php<br />
</span></span><span class="style4">get_template_part( &#39;loop&#39;, &#39;search&#39; );<br />
</span><span class="style3"><span class="style4">?&gt;<br />
&lt;?php else : ?&gt;<br />
&lt;div id=&quot;post-0&quot; class=&quot;post no-results not-found&quot;&gt;<br />
&lt;h2 class=&quot;entry-title&quot;&gt;&lt;?php _e( &#39;Nothing Found&#39;, &#39;adventurejournal&#39; ); ?&gt;&lt;/h2&gt;<br />
&lt;div class=&quot;entry-content&quot;&gt;<br />
&lt;p&gt;&lt;?php _e( &#39;Sorry, but nothing matched your search criteria. Please try again 
with some different keywords.&#39;, &#39;adventurejournal&#39; ); ?&gt;&lt;/p&gt;<br />
&lt;?php get_search_form(); ?&gt;<br />
&lt;/div&gt;&lt;!-- .entry-content --&gt;<br />
&lt;/div&gt;&lt;!-- #post-0 --&gt;<br />
&lt;?php endif; ?&gt;<br />
&lt;!-- END Main Content--&gt;<br />
<br />
&lt;/div&gt;<br />
&lt;/div&gt;<br />
&lt;?php get_sidebar(); ?&gt;<br />
&lt;div class=&quot;clear&quot;&gt;&lt;/div&gt;<br />
&lt;/div&gt;<br />
&lt;?php get_footer(); ?&gt;</span></span></p>
<p class="style2">&nbsp;</p>
<p class="style1"><span class="style4">&lt;?php<br />
/**<br />
* @package WordPress<br />
* @subpackage Adventure_Journal<br />
*/<br />
?&gt;<br />
&lt;?php <br />
//Sidebars are dynamically generated from the ctx_aj_get_sidebars function 
located in function.php in the Adventure Journal theme folder<br />
</span><span class="style4">ctx_aj_generate_sidebars();<br />
</span><span class="style3"><span class="style4">?&gt;</span></span></p>
<p class="style2">&nbsp;</p>
<p><span class="style1"><span class="style4">&lt;?php<br />
/**<br />
* @package WordPress<br />
* @subpackage Adventure_Journal<br />
*/<br />
</span></span>$<span class="style1"><span class="style4">themeOpts = get_option(&#39;ctx-adventurejournal-options&#39;);<br />
</span><span class="style4">get_header();<br />
</span><span class="style3"><span class="style4">?&gt;<br />
&lt;div class=&quot;content&quot; &lt;?php ctx_aj_getlayout(); ?&gt;&gt;<br />
&lt;div id=&quot;col-main&quot;&gt;<br />
&lt;div id=&quot;main-content&quot; &lt;?php //ctx_aj_crinkled_paper(); ?&gt;&gt;<br />
&lt;!-- BEGIN Main Content--&gt;<br />
&lt;?php<br />
//Start the Loop<br />
if (have_posts()) : while (have_posts()) : the_post(); ?&gt;<br />
<br />
&lt;div &lt;?php post_class() ?&gt; id=&quot;post-&lt;?php the_ID(); ?&gt;&quot;&gt;<br />
&lt;?php echo sprintf(&#39;&lt;h1 class=&quot;storytitle&quot;&gt;%s&lt;/h1&gt;&#39;,get_the_title());?&gt;<br />
&lt;?php if($themeOpts[&#39;featured-header&#39;]!=&#39;true&#39;) { the_post_thumbnail(); } ?&gt;<br />
&lt;div class=&quot;meta&quot;&gt;Posted by &lt;?php the_author_posts_link(); ?&gt; on &lt;?php the_date();?&gt;&lt;/div&gt;<br />
<br />
&lt;?php <br />
if(!function_exists(&#39;is_admin_bar_showing&#39;)){<br />
</span></span><span class="style4">edit_post_link(__(&#39;Edit Post&#39;, &#39;adventurejournal&#39;));<br />
} else if ( !is_admin_bar_showing() ){<br />
</span><span class="style4">edit_post_link(__(&#39;Edit Post&#39;, &#39;adventurejournal&#39;));<br />
</span></span>}<span class="style1"><span class="style4"><br />
?&gt;<br />
<br />
&lt;div class=&quot;storycontent&quot;&gt;<br />
&lt;?php the_content(__(&#39;(more...)&#39;)); ?&gt;<br />
&lt;div class=&quot;clear&quot;&gt;&lt;/div&gt;<br />
&lt;/div&gt;<br />
<br />
&lt;div class=&quot;feedback&quot;&gt;<br />
&lt;?php wp_link_pages( array( &#39;before&#39; =&gt; &#39;&lt;div class=&quot;page-link&quot;&gt;&#39; . __( 
&#39;Pages:&#39;, &#39;adventurejournal&#39; ), &#39;after&#39; =&gt; &#39;&lt;/div&gt;&#39; ) ); ?&gt;<br />
&lt;?php _e(&#39;Posted under &#39;,&#39;adventurejournal&#39;); ?&gt; &lt;?php the_category(&#39;,&#39;) ?&gt; &lt;?php 
the_tags(__(&#39;and tagged with &#39;), &#39;, &#39;, &#39; &#39;); ?&gt;&lt;br /&gt;<br />
&lt;?php comments_popup_link(__(&#39;Comments (0)&#39;), __(&#39;Comments (1)&#39;), __(&#39;Comments 
(%)&#39;)); ?&gt;<br />
&lt;/div&gt;<br />
<br />
&lt;/div&gt;<br />
&lt;?php comments_template(); // Get wp-comments.php template ?&gt;<br />
&lt;?php endwhile; else: ?&gt;<br />
&lt;p&gt;&lt;?php _e(&#39;Sorry, no posts matched your criteria.&#39;,&#39;adventurejournal&#39;); ?&gt;&lt;/p&gt;<br />
&lt;?php endif; ?&gt;<br />
<br />
&lt;?php posts_nav_link(&#39; &amp;#8212; &#39;, __(&#39;&amp;laquo; Newer Posts&#39;), __(&#39;Older Posts &amp;raquo;&#39;)); 
?&gt;<br />
&lt;!-- END Main Content--&gt;<br />
<br />
&lt;/div&gt;<br />
&lt;/div&gt;<br />
&lt;?php get_sidebar(); ?&gt;<br />
&lt;div class=&quot;clear&quot;&gt;&lt;/div&gt;<br />
&lt;/div&gt;<br />
&lt;?php get_footer(); ?&gt;<br />
</span></span></p>
<p class="style2">&nbsp;</p>
<p class="style1"><span class="style4">&lt;?php<br />
/**<br />
* @package WordPress<br />
* @subpackage Adventure_Journal<br />
*/<br />
</span><span class="style4">get_header(); ?&gt;<br />
<br />
</span><span class="style3"><span class="style4">&lt;div class=&quot;content&quot; &lt;?php 
ctx_aj_getlayout(); ?&gt;&gt;<br />
&lt;div id=&quot;col-main&quot;&gt;<br />
&lt;div id=&quot;main-content&quot; &lt;?php ctx_aj_crinkled_paper(); ?&gt;&gt;<br />
&lt;!-- BEGIN Main Content--&gt;<br />
&lt;h1 class=&quot;page-title&quot;&gt;&lt;?php<br />
</span></span><span class="style4">printf( __( &#39;Posts Tagged With: %s&#39;, &#39;adventurejournal&#39; 
), &#39;&lt;span&gt;&#39; . single_tag_title( &#39;&#39;, false ) . &#39;&lt;/span&gt;&#39; );<br />
?&gt;&lt;/h1&gt;<br />
<br />
&lt;?php<br />
/* Run the loop for the tag archive to output the posts<br />
* If you want to overload this in a child theme then include a file<br />
* called loop-tag.php and that will be used instead.<br />
*/<br />
</span><span class="style4">get_template_part( &#39;loop&#39;, &#39;tag&#39; );<br />
</span><span class="style3"><span class="style4">?&gt;<br />
&lt;!-- END Main Content--&gt;<br />
&lt;/div&gt;<br />
&lt;/div&gt;<br />
&lt;?php get_sidebar(); ?&gt;<br />
&lt;div class=&quot;clear&quot;&gt;&lt;/div&gt;<br />
&lt;/div&gt;<br />
&lt;?php get_footer(); ?&gt;<br />
</span></span></p>
<p class="style2">&nbsp;</p>
<p><span class="style1"><span class="style4">&lt;?php<br />
/**<br />
* @package WordPress<br />
* @subpackage Adventure_Journal<br />
*/<br />
<br />
//define(&#39;WP_DEBUG&#39;, true);<br />
<br />
//Adds the code into the footer<br />
</span><span class="style4">add_action(&#39;wp_footer&#39;, &#39;ctx_attribution&#39;);<br />
// Remove message about IP blocking<br />
</span><span class="style4">add_filter(&#39;login_errors&#39;, &#39;ctx_aj_login_error_mess&#39;);<br />
//Run initial setup for the theme<br />
</span><span class="style4">add_action(&#39;after_setup_theme&#39;, &#39;ctx_aj_setup&#39;);<br />
<br />
// Hook for adding admin menus<br />
</span><span class="style4">add_action(&#39;admin_menu&#39;, &#39;ctx_aj_theme_add_pages&#39;);<br />
//Custom &quot;Read more&quot; text<br />
</span><span class="style4">add_filter(&#39;excerpt_more&#39;, &#39;ctx_aj_auto_excerpt_more&#39;);<br />
</span><span class="style4">add_filter(&#39;get_the_excerpt&#39;, &#39;ctx_aj_custom_excerpt_more&#39;);<br />
//Add help to the Layout page<br />
//add_action(&#39;admin_head-appearance_page_theme-options&#39;,&#39;ctx_aj_help_theme_options&#39;);<br />
</span><span class="style4">add_action(&#39;admin_init&#39;,&#39;ctx_aj_help_theme_options&#39;);<br />
<br />
<br />
/************************************************************************************************<br />
* Add this theme&#39;s scripts and stylesheets<br />
************************************************************************************************/<br />
//Get the URL of the active theme directory<br />
</span></span>$<span class="style1"><span class="style4">themeDir = 
get_template_directory_uri();<br />
<br />
<br />
</span><span class="style4">add_action(&#39;wp_print_styles&#39;,&#39;ctx_aj_stylesheets&#39;);<br />
function ctx_aj_stylesheets(){<br />
<br />
global $themeDir,$wp_styles;<br />
<br />
</span></span>$<span class="style1"><span class="style4">themeOpts = get_option(&#39;ctx-adventurejournal-options&#39;);<br />
<br />
//Add these files to the core website but NOT the Admin Section<br />
if(!is_admin()) {<br />
<br />
if($themeOpts[&#39;browser-helper&#39;]==&#39;true&#39;)<br />
</span><span class="style4">wp_enqueue_script(&#39;aj&#39;, $themeDir.&#39;/aj.js&#39;, array(&#39;jquery&#39;));<br />
<br />
</span><span class="style4">wp_enqueue_script(&#39;bh&#39;, $themeDir.&#39;/bh.js&#39;, array(&#39;jquery&#39;,&#39;aj&#39;));<br />
<br />
</span><span class="style4">wp_enqueue_style(&#39;theme&#39;, $themeDir.&#39;/style.css&#39;,&#39;&#39;,&#39;&#39;);<br />
<br />
//Enqueue an IE specific stylesheet<br />
</span><span class="style4">wp_register_style(&#39;style-ie&#39;,$themeDir.&#39;/style-ie.css&#39;);<br />
</span><span class="style4">wp_enqueue_style(&#39;style-ie&#39;);<br />
</span></span>$<span class="style1"><span class="style4">wp_styles-&gt;add_data( 
&#39;style-ie&#39;, &#39;conditional&#39;, &#39;lt IE 9&#39; );<br />
<br />
<br />
//wp_die(print_r($themeOpts,true));<br />
<br />
//If we have a custom override stylesheet, let&#39;s use it<br />
if( !empty($themeOpts[&#39;css-path&#39;]) &amp;&amp; file_exists(ABSPATH.$themeOpts[&#39;css-path&#39;]) 
) {<br />
</span><span class="style4">wp_enqueue_style(&#39;theme_override&#39;, &#39;/&#39;.$themeOpts[&#39;css-path&#39;], 
array(&#39;theme&#39;), &#39;&#39;);<br />
</span></span>}<span class="style2"><br />
</span>}<span class="style1"><span class="style4"><br />
<br />
//If we don&#39;t have a content width specified, assume this as default<br />
if ( ! isset( $content_width ) ){<br />
</span></span>$<span class="style1"><span class="style4">content_width = 665;<br />
</span></span>}<span class="style1"><span class="style4"><br />
<br />
</span></span>}<span class="style1"><span class="style4"><br />
<br />
/**<br />
* Sets up theme defaults and registers support for various WordPress features.<br />
</span></span>*<span class="style1"><span class="style4"><br />
* Note that this function is hooked into the after_setup_theme hook, which runs<br />
* before the init hook. The init hook is too late for some features, such as 
indicating<br />
* support post thumbnails.<br />
</span></span>*<span class="style1"><span class="style4"><br />
* To override ctx_adventurejournal_setup() in a child theme, add your own 
ctx_adventurejournal_setup to your child theme&#39;s<br />
* functions.php file.<br />
</span></span>*<span class="style1"><span class="style4"><br />
* @uses add_theme_support() To add support for post thumbnails and automatic 
feed links.<br />
* @uses register_nav_menus() To add support for navigation menus.<br />
* @uses add_custom_background() To add support for a custom background.<br />
* @uses add_editor_style() To style the visual editor.<br />
* @uses load_theme_textdomain() For translation/localization support.<br />
* @uses add_custom_image_header() To add support for a custom header.<br />
* @uses register_default_headers() To register the default custom header images 
provided with the theme.<br />
* @uses set_post_thumbnail_size() To set a custom post thumbnail size.<br />
</span></span>*<span class="style1"><span class="style4"><br />
* @since Advenure Journal 1.0<br />
*/<br />
function ctx_aj_setup() {<br />
<br />
//Load language packs, if necessary<br />
if (function_exists(&#39;load_plugin_textdomain&#39;)) {<br />
</span><span class="style4">load_theme_textdomain(&#39;adventurejournal&#39;, 
TEMPLATEPATH.&#39;/languages&#39; );<br />
</span></span>}<span class="style1"><span class="style4"><br />
<br />
//Create the default theme options, or set defaults if needed<br />
</span><span class="style4">ctx_aj_set_options();<br />
<br />
</span></span>$<span class="style1"><span class="style4">themeOpts = get_option(&#39;ctx-adventurejournal-options&#39;);<br />
<br />
// This theme styles the visual editor with editor-style.css to match the theme 
style.<br />
</span><span class="style4">add_editor_style();<br />
<br />
</span><span class="style3"><span class="style4">// This theme uses post 
thumbnails<br />
</span></span><span class="style4">add_theme_support( &#39;post-thumbnails&#39; );<br />
<br />
</span><span class="style3"><span class="style4">// Add default posts and 
comments RSS feed links to head<br />
</span></span><span class="style4">add_theme_support( &#39;automatic-feed-links&#39; );<br />
<br />
</span><span class="style3"><span class="style4">// Make theme available for 
translation<br />
// Translations can be filed in the /languages/ directory<br />
</span></span><span class="style4">load_theme_textdomain( &#39;adventurejournal&#39;, 
TEMPLATEPATH . &#39;/languages&#39; );<br />
<br />
$locale = get_locale();<br />
</span></span>$<span class="style1"><span class="style4">locale_file = 
TEMPLATEPATH . &quot;/languages/$locale.php&quot;;<br />
if ( is_readable( $locale_file ) )<br />
</span><span class="style4">require_once( $locale_file );<br />
<br />
// This theme uses wp_nav_menu() in 2 locations.<br />
</span><span class="style4">register_nav_menus( array(<br />
</span><span class="style3"><span class="style4">&#39;primary-menu&#39; =&gt; __( &#39;Primary 
Menu&#39;, &#39;adventurejournal&#39; ),<br />
&#39;footer-menu&#39; =&gt; __( &#39;Footer Menu&#39;, &#39;adventurejournal&#39; )<br />
) );<br />
<br />
// This theme allows users to set a custom background<br />
</span></span><span class="style4">add_custom_background();<br />
<br />
</span><span class="style3"><span class="style4">define( &#39;HEADER_TEXTCOLOR&#39;, &#39;&#39; 
);<br />
// No CSS, just IMG call. The %s is a placeholder for the theme template 
directory URI.<br />
define( &#39;HEADER_IMAGE&#39;, &#39;%s/images/headers/ctx-header-egypt.jpg&#39; );<br />
<br />
//Check and see if the custom header size is set, if not use the default value 
of 360<br />
</span></span></span>$<span class="style1"><span class="style4">theme_header_height 
= (!empty($themeOpts[&#39;header-height&#39;])) ? $themeOpts[&#39;header-height&#39;] : 360;<br />
<br />
// The height and width of your custom header. You can hook into the theme&#39;s own 
filters to change these values.<br />
// Add a filter to adventurejournal_header_image_width and 
adventurejournal_header_image_height to change these values.<br />
define( &#39;HEADER_IMAGE_WIDTH&#39;, apply_filters( &#39;adventurejournal_header_image_width&#39;, 
920 ) );<br />
define( &#39;HEADER_IMAGE_HEIGHT&#39;, apply_filters( &#39;adventurejournal_header_image_height&#39;, 
$theme_header_height ) );<br />
<br />
//Set header as site header size<br />
if($themeOpts[&#39;featured-header&#39;]==&#39;true&#39;){<br />
</span><span class="style4">set_post_thumbnail_size( HEADER_IMAGE_WIDTH, $theme_header_height, 
true );<br />
//wp_die(HEADER_IMAGE_WIDTH.&#39;x&#39;.HEADER_IMAGE_HEIGHT);<br />
}else{<br />
//Set post thumbnail sizes depending on layout<br />
switch ($themeOpts[&#39;layout&#39;]) {<br />
case &#39;col-2-left&#39;:<br />
case &#39;col-2-right&#39;:<br />
</span><span class="style4">set_post_thumbnail_size( 665, 130, true ); //GOOGLE 
FEATURED<br />
</span><span class="style3"><span class="style4">break;<br />
case &#39;col-3&#39;:<br />
case &#39;col-3-left&#39;:<br />
</span></span><span class="style4">set_post_thumbnail_size( 485, 94, true );<br />
</span><span class="style3"><span class="style4">break;<br />
default:<br />
// We&#39;ll be using post thumbnails for custom header images on posts and pages.<br />
// We want them to be 920 pixels wide by 180 pixels tall.<br />
// Larger images will be auto-cropped to fit, smaller ones will be ignored. See 
header.php.<br />
</span></span><span class="style4">set_post_thumbnail_size( HEADER_IMAGE_WIDTH, 
$theme_header_height, true );<br />
break;<br />
</span></span>}<span class="style2"><br />
</span>}<span class="style1"><span class="style4"><br />
<br />
<br />
<br />
// Don&#39;t support text inside the header image.<br />
define( &#39;NO_HEADER_TEXT&#39;, true );<br />
<br />
// This theme allows users to set a custom image header<br />
</span><span class="style4">add_custom_image_header(&#39;&#39;, &#39;ctx_aj_admin_header_style&#39;);<br />
<br />
// Default custom headers packaged with the theme. %s is a placeholder for the 
theme template directory URI.<br />
</span><span class="style4">register_default_headers( array(<br />
</span></span>&#39;<span class="style1"><span class="style4">egypt&#39; =&gt; array(<br />
</span></span>&#39;<span class="style1"><span class="style4">url&#39; =&gt; &#39;%s/images/headers/ctx-header-egypt.jpg&#39;,<br />
</span></span>&#39;<span class="style1"><span class="style4">thumbnail_url&#39; =&gt; &#39;%s/images/headers/ctx-header-egypt-thumbnail.jpg&#39;,<br />
/* translators: header image description */<br />
&#39;description&#39; =&gt; __( &#39;Egypt&#39;, &#39;adventurejournal&#39; )<br />
),<br />
&#39;cart&#39; =&gt; array(<br />
</span></span>&#39;<span class="style1"><span class="style4">url&#39; =&gt; &#39;%s/images/headers/ctx-header-cart.jpg&#39;,<br />
</span></span>&#39;<span class="style1"><span class="style4">thumbnail_url&#39; =&gt; &#39;%s/images/headers/ctx-header-cart-thumbnail.jpg&#39;,<br />
/* translators: header image description */<br />
&#39;description&#39; =&gt; __( &#39;Cart&#39;, &#39;adventurejournal&#39; )<br />
),<br />
&#39;flower&#39; =&gt; array(<br />
</span></span>&#39;<span class="style1"><span class="style4">url&#39; =&gt; &#39;%s/images/headers/ctx-header-flower.jpg&#39;,<br />
</span></span>&#39;<span class="style1"><span class="style4">thumbnail_url&#39; =&gt; &#39;%s/images/headers/ctx-header-flower-thumbnail.jpg&#39;,<br />
/* translators: header image description */<br />
&#39;description&#39; =&gt; __( &#39;Flower&#39;, &#39;adventurejournal&#39; )<br />
),<br />
&#39;hut&#39; =&gt; array(<br />
</span></span>&#39;<span class="style1"><span class="style4">url&#39; =&gt; &#39;%s/images/headers/ctx-header-hut.jpg&#39;,<br />
</span></span>&#39;<span class="style1"><span class="style4">thumbnail_url&#39; =&gt; &#39;%s/images/headers/ctx-header-hut-thumbnail.jpg&#39;,<br />
/* translators: header image description */<br />
&#39;description&#39; =&gt; __( &#39;Hut&#39;, &#39;adventurejournal&#39; )<br />
</span></span>)<span class="style1"><span class="style4"><br />
));<br />
<br />
if ( function_exists(&#39;register_sidebar&#39;) ){<br />
switch ($themeOpts[&#39;layout&#39;]) {<br />
case &#39;col-2-left&#39;:<br />
case &#39;col-2-right&#39;:<br />
/** 2 COL LAYOUTS **/<br />
//Page Sidebar<br />
</span><span class="style4">register_sidebar(array(<br />
</span><span class="style3"><span class="style4">&#39;name&#39;=&gt;&#39;Page Sidebar&#39;,<br />
</span></span></span>&#39;<span class="style1"><span class="style4">before_widget&#39; 
=&gt; &#39;&lt;li id=&quot;%1$s&quot; class=&quot;widget %2$s&quot;&gt;&#39;,<br />
</span></span>&#39;<span class="style1"><span class="style4">after_widget&#39; =&gt; &#39;&lt;/li&gt;&#39;,<br />
</span></span>&#39;<span class="style1"><span class="style4">before_title&#39; =&gt; 
&#39;&lt;h3&gt;&#39;,<br />
</span></span>&#39;<span class="style1"><span class="style4">after_title&#39; =&gt; 
&#39;&lt;/h3&gt;&#39;,<br />
</span><span class="style3"><span class="style4">));<br />
//Blog Sidebar<br />
</span></span><span class="style4">register_sidebar(array(<br />
</span><span class="style3"><span class="style4">&#39;name&#39;=&gt;&#39;Blog Sidebar&#39;,<br />
</span></span></span>&#39;<span class="style1"><span class="style4">before_widget&#39; 
=&gt; &#39;&lt;li id=&quot;%1$s&quot; class=&quot;widget %2$s&quot;&gt;&#39;,<br />
</span></span>&#39;<span class="style1"><span class="style4">after_widget&#39; =&gt; &#39;&lt;/li&gt;&#39;,<br />
</span></span>&#39;<span class="style1"><span class="style4">before_title&#39; =&gt; 
&#39;&lt;h3&gt;&#39;,<br />
</span></span>&#39;<span class="style1"><span class="style4">after_title&#39; =&gt; 
&#39;&lt;/h3&gt;&#39;,<br />
</span><span class="style3"><span class="style4">));<br />
break;<br />
case &#39;col-3&#39;:<br />
case &#39;col-3-left&#39;:<br />
/** 3 COL LAYOUT **/<br />
//Blog Sidebar<br />
</span></span><span class="style4">register_sidebar(array(<br />
</span><span class="style3"><span class="style4">&#39;name&#39;=&gt;&#39;Page Sidebar (Left)&#39;,<br />
</span></span></span>&#39;<span class="style1"><span class="style4">before_widget&#39; 
=&gt; &#39;&lt;li id=&quot;%1$s&quot; class=&quot;widget %2$s&quot;&gt;&#39;,<br />
</span></span>&#39;<span class="style1"><span class="style4">after_widget&#39; =&gt; &#39;&lt;/li&gt;&#39;,<br />
</span></span>&#39;<span class="style1"><span class="style4">before_title&#39; =&gt; 
&#39;&lt;h3&gt;&#39;,<br />
</span></span>&#39;<span class="style1"><span class="style4">after_title&#39; =&gt; 
&#39;&lt;/h3&gt;&#39;,<br />
</span><span class="style3"><span class="style4">));<br />
</span></span><span class="style4">register_sidebar(array(<br />
</span><span class="style3"><span class="style4">&#39;name&#39;=&gt;&#39;Page Sidebar (Right)&#39;,<br />
</span></span></span>&#39;<span class="style1"><span class="style4">before_widget&#39; 
=&gt; &#39;&lt;li id=&quot;%1$s&quot; class=&quot;widget %2$s&quot;&gt;&#39;,<br />
</span></span>&#39;<span class="style1"><span class="style4">after_widget&#39; =&gt; &#39;&lt;/li&gt;&#39;,<br />
</span></span>&#39;<span class="style1"><span class="style4">before_title&#39; =&gt; 
&#39;&lt;h3&gt;&#39;,<br />
</span></span>&#39;<span class="style1"><span class="style4">after_title&#39; =&gt; 
&#39;&lt;/h3&gt;&#39;,<br />
</span><span class="style3"><span class="style4">));<br />
</span></span><span class="style4">register_sidebar(array(<br />
</span><span class="style3"><span class="style4">&#39;name&#39;=&gt;&#39;Blog Sidebar (Left)&#39;,<br />
</span></span></span>&#39;<span class="style1"><span class="style4">before_widget&#39; 
=&gt; &#39;&lt;li id=&quot;%1$s&quot; class=&quot;widget %2$s&quot;&gt;&#39;,<br />
</span></span>&#39;<span class="style1"><span class="style4">after_widget&#39; =&gt; &#39;&lt;/li&gt;&#39;,<br />
</span></span>&#39;<span class="style1"><span class="style4">before_title&#39; =&gt; 
&#39;&lt;h3&gt;&#39;,<br />
</span></span>&#39;<span class="style1"><span class="style4">after_title&#39; =&gt; 
&#39;&lt;/h3&gt;&#39;,<br />
</span><span class="style3"><span class="style4">));<br />
</span></span><span class="style4">register_sidebar(array(<br />
</span><span class="style3"><span class="style4">&#39;name&#39;=&gt;&#39;Blog Sidebar (Right)&#39;,<br />
</span></span></span>&#39;<span class="style1"><span class="style4">before_widget&#39; 
=&gt; &#39;&lt;li id=&quot;%1$s&quot; class=&quot;widget %2$s&quot;&gt;&#39;,<br />
</span></span>&#39;<span class="style1"><span class="style4">after_widget&#39; =&gt; &#39;&lt;/li&gt;&#39;,<br />
</span></span>&#39;<span class="style1"><span class="style4">before_title&#39; =&gt; 
&#39;&lt;h3&gt;&#39;,<br />
</span></span>&#39;<span class="style1"><span class="style4">after_title&#39; =&gt; 
&#39;&lt;/h3&gt;&#39;,<br />
</span><span class="style3"><span class="style4">));<br />
break;<br />
</span></span><span class="style4">default:break;<br />
</span></span>}<span class="style2"><br />
</span>}<span class="style1"><span class="style4"><br />
<br />
</span></span>}<span class="style1"><span class="style4"><br />
<br />
/**<br />
* Styles the header image displayed on the Appearance &gt; Header admin panel.<br />
</span></span>*<span class="style1"><span class="style4"><br />
* Referenced via add_custom_image_header() in ctx_adventurejournal_setup().<br />
</span></span>*<span class="style1"><span class="style4"><br />
* @since Adventure Journal 1.0<br />
*/<br />
function ctx_aj_admin_header_style() {<br />
//echo &#39;&#39;; //Warning: This would go at top of screen<br />
</span></span>}<span class="style1"><span class="style4"><br />
<br />
/**<br />
* Returns a &quot;Continue Reading&quot; link for excerpts<br />
</span></span>*<span class="style1"><span class="style4"><br />
* @return string &quot;Continue Reading&quot; link<br />
*/<br />
function ctx_aj_continue_reading_link() {<br />
return &#39; &lt;a class=&quot;read-excerpt&quot; href=&quot;&#39;. get_permalink() . &#39;&quot;&gt;&#39; . __( &#39;Continue 
reading &lt;span class=&quot;meta-nav&quot;&gt;&amp;raquo;&lt;/span&gt;&#39;, &#39;adventurejournal&#39; ) . &#39;&lt;/a&gt;&#39;;<br />
</span></span>}<span class="style1"><span class="style4"><br />
<br />
/**<br />
* Replaces &quot;[...]&quot; (appended to automatically generated excerpts) with an 
ellipsis and adventuretheme_continue_reading_link().<br />
</span></span>*<span class="style1"><span class="style4"><br />
* @param &lt;type&gt; $more<br />
* @return &lt;type&gt;<br />
*/<br />
function ctx_aj_auto_excerpt_more( $more ) {<br />
return &#39; &amp;hellip;&#39; . ctx_aj_continue_reading_link();<br />
</span></span>}<span class="style1"><span class="style4"><br />
<br />
/**<br />
* Adds a pretty &quot;Continue Reading&quot; link to custom post excerpts.<br />
</span></span>*<span class="style1"><span class="style4"><br />
* To override this link in a child theme, remove the filter and add your own<br />
* function tied to the get_the_excerpt filter hook.<br />
</span></span>*<span class="style1"><span class="style4"><br />
* @return string Excerpt with a pretty &quot;Continue Reading&quot; link<br />
*/<br />
function ctx_aj_custom_excerpt_more( $output ) {<br />
if ( has_excerpt() &amp;&amp; ! is_attachment() ) {<br />
$output .= ctx_aj_continue_reading_link();<br />
</span></span>}<span class="style1"><span class="style4"><br />
return $output;<br />
</span></span>}<span class="style1"><span class="style4"><br />
<br />
/**<br />
* Handles creating or updating the options array for the theme<br />
</span></span>*<span class="style1"><span class="style4"><br />
* @param array $array_overrides An associative array containing key=&gt;value pairs 
to override originals<br />
* @return string<br />
*/<br />
function ctx_aj_set_options($arrayOverrides=false){<br />
<br />
//Set defaults<br />
</span></span>$<span class="style1"><span class="style4">defaultOpts = array(<br />
</span><span class="style3"><span class="style4">&#39;layout&#39;=&gt;&#39;col-2-left&#39;,<br />
</span></span></span>&#39;<span class="style1"><span class="style4">custom_css&#39;=&gt;&#39;&#39;,<br />
</span><span class="style3"><span class="style4">&#39;attrib&#39;=&gt;&#39;true&#39;,<br />
</span></span></span>&#39;<span class="style1"><span class="style4">showtitle&#39;=&gt;&#39;true&#39;,<br />
</span><span class="style3"><span class="style4">&#39;title-type&#39;=&gt;&#39;title-default&#39;,<br />
&#39;paper-type&#39;=&gt;&#39;paper-sticky&#39;, //paper-sticky<br />
&#39;header-height&#39;=&gt;&#39;360&#39;, //360,<br />
&#39;featured-header&#39;=&gt;&#39;false&#39;,<br />
&#39;browser-helper&#39;=&gt;&#39;true&#39;<br />
);<br />
<br />
//Let&#39;s see if the options already exist...<br />
</span></span></span>$<span class="style1"><span class="style4">dbOpts = 
get_option(&#39;ctx-adventurejournal-options&#39;);<br />
<br />
if(!$dbOpts){<br />
//There&#39;s no options! Let&#39;s build them...<br />
if($arrayOverrides!=false &amp;&amp; is_array($arrayOverrides)){<br />
//If we have some custom settings, use those<br />
</span></span>$<span class="style1"><span class="style4">defaultOpts = 
array_merge($defaultOpts, $arrayOverrides);<br />
</span></span>}<span class="style1"><span class="style4"><br />
//Now add them to the db<br />
return add_option(&#39;ctx-adventurejournal-options&#39;,$defaultOpts);<br />
}else{<br />
//db options exist, so let&#39;s merge it with the defaults (just to be sure we have 
all the latest options<br />
</span></span>$<span class="style1"><span class="style4">defaultOpts = 
array_merge($defaultOpts, $dbOpts);<br />
//Now let&#39;s add our custom settings (if appropriate)<br />
if($arrayOverrides!=false &amp;&amp; is_array($arrayOverrides)){<br />
//If we have some custom settings, use those<br />
</span></span>$<span class="style1"><span class="style4">defaultOpts = 
array_merge($defaultOpts, $arrayOverrides);<br />
</span></span>}<span class="style1"><span class="style4"><br />
return update_option(&#39;ctx-adventurejournal-options&#39;,$defaultOpts);<br />
</span></span>}<span class="style1"><span class="style4"><br />
<br />
</span></span>}<span class="style1"><span class="style4"><br />
<br />
<br />
/**<br />
* This snippet creates an ID and a series of classes for the body tag based on 
the nested URL structure which recreates the<br />
* sites child parent relationships. This allows you to control elements via CSS 
on a per page and per section basis<br />
</span></span>*<span class="style1"><span class="style4"><br />
* @param int $postID The id of the post get relationships for<br />
* @return string Returns a string containing html attributes for the body tag<br />
*/<br />
function ctx_aj_get_relationships($postID=&#39;&#39;,$extraclass=&#39;&#39;){<br />
// Remove any leading and trailing slashes.<br />
</span></span>$<span class="style1"><span class="style4">uri_path = 
trim($_SERVER[&#39;REQUEST_URI&#39;], &#39;/&#39;);<br />
</span><span class="style3"><span class="style4">// Split up the remaining URI 
into an array, using &#39;/&#39; as delimiter.<br />
</span></span></span>$<span class="style1"><span class="style4">uri_parts = 
explode(&#39;/&#39;, $uri_path);<br />
<br />
// If this is the homepage, set ID and class accordingly<br />
if ($uri_parts[0] == &#39;&#39;) {<br />
$ancestor = &#39;homepage&#39;;<br />
</span></span>$<span class="style1"><span class="style4">body_class = &#39;index&#39;;<br />
</span><span class="style3"><span class="style4">} else {<br />
// Construct the class name from the first part of the URI only.<br />
</span></span></span>$<span class="style1"><span class="style4">body_class = 
str_replace(&#39;/&#39;,&#39; page-&#39;, $uri_path);<br />
<br />
//Generate an array of this pages parents based on the variable passed in the 
function<br />
</span></span>$<span class="style1"><span class="style4">myAncestors = 
get_post_ancestors($postID);<br />
<br />
//Grab the top most parent&#39;s ID out of the array<br />
$ancestor = (count($myAncestors)&gt;0) ? $myAncestors[(count($myAncestors)-1)] : 0;<br />
<br />
//If the current page IS a top level parent then grab it&#39;s own ID since it would 
otherwise be blank<br />
if( empty($ancestor) ){$ancestor = $postID;}<br />
<br />
</span></span>}<span class="style2"><br />
</span>$<span class="style1"><span class="style4">body_class = $extraclass.&#39; &#39;;<br />
//Prefix body classes with &quot;page-&quot;<br />
</span></span>$<span class="style1"><span class="style4">body_class .= &#39;page-&#39;.$body_class;<br />
<br />
//Generate the ID and Class tags<br />
return &#39;id=&quot;ancestor-&#39;.$ancestor.&#39;&quot; class=&quot;&#39;.$body_class.&#39;&quot;&#39;;<br />
</span></span>}<span class="style1"><span class="style4"><br />
<br />
/**<br />
* This snippet echos/displays a link in the wp_footer section with a link back 
back to the theme&#39;s creator and WordPress.<br />
</span></span>*<span class="style1"><span class="style4"><br />
* You can remove this from footer.php if you really want to, but we&#39;d REALLY 
appreciate if you left it in there. ;-)<br />
</span></span>*<span class="style1"><span class="style4"><br />
* @return Prints HTML for the footer&#39;s attribution.<br />
*/<br />
function ctx_attribution() {<br />
</span></span>$<span class="style1"><span class="style4">themeOpts = get_option(&#39;ctx-adventurejournal-options&#39;);<br />
?&gt;<br />
<br />
&lt;?php<br />
</span></span>}<span class="style1"><span class="style4"><br />
<br />
<br />
/**<br />
* Determines the html layout/order and components of the comments section. This 
function is called by<br />
* wp_list_comments() located in comments.php. Without this function Wordpress 
would use the default layout<br />
* and components. This function allows you to customize everything comments 
related<br />
</span></span>*<span class="style1"><span class="style4"><br />
* @param string $comment<br />
* @param array $args<br />
* @param integer $depth<br />
*/<br />
function ctx_aj_get_comments($comment, $args, $depth) {<br />
$GLOBALS[&#39;comment&#39;] = $comment;<br />
switch ( $comment-&gt;comment_type ) :<br />
case &#39;&#39; : ?&gt;<br />
</span></span>&lt;<span class="style1"><span class="style4">li &lt;?php comment_class(); 
?&gt; id=&quot;comment-&lt;?php comment_ID() ?&gt;&quot;&gt;<br />
&lt;div class=&quot;comment-meta&quot;&gt;<br />
&lt;?php echo get_avatar( $comment, 64 ); ?&gt;<br />
&lt;span class=&quot;comment-date&quot;&gt;&lt;a href=&quot;#comment-&lt;?php comment_ID() ?&gt;&quot; 
title=&quot;Permanent Link&quot;&gt;&lt;?php comment_date(&#39;F j &lt;br&gt;Y&#39;) ?&gt;&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;<br />
&lt;/div&gt;<br />
&lt;div class=&quot;comment-body&quot;&gt;<br />
&lt;?php edit_comment_link(__(&quot;Edit Comment&quot;), &#39;&#39;); ?&gt;<br />
&lt;strong&gt;&lt;?php comment_author_link(); ?&gt;&lt;/strong&gt;<br />
&lt;?php comment_text() ?&gt;<br />
&lt;?php if ($comment-&gt;comment_approved == &#39;0&#39;) _e(&quot;\t\t\t\t\t&lt;span 
class=&#39;unapproved&#39;&gt;Your comment is awaiting moderation.&lt;/span&gt;\n&quot;, &#39;adventurejournal&#39;) 
?&gt;<br />
&lt;/div&gt;<br />
&lt;div class=&quot;reply&quot;&gt;<br />
&lt;?php comment_reply_link( array_merge( $args, array( &#39;depth&#39; =&gt; $depth, &#39;max_depth&#39; 
=&gt; $args[&#39;max_depth&#39;] ) ) ); ?&gt;<br />
&lt;/div&gt;<br />
&lt;/li&gt;<br />
&lt;?php<br />
break;<br />
case &#39;pingback&#39; :<br />
case &#39;trackback&#39; :<br />
?&gt;<br />
</span></span>&lt;<span class="style1"><span class="style4">li class=&quot;post pingback&quot;&gt;<br />
&lt;p&gt;&lt;?php _e( &#39;Pingback:&#39;, &#39;adventurejournal&#39; ); ?&gt; &lt;?php comment_author_link(); 
?&gt;&lt;?php edit_comment_link( __( &#39;(Edit)&#39;, &#39;adventurejournal&#39; ), &#39; &#39; ); ?&gt;&lt;/p&gt;<br />
&lt;/li&gt;<br />
&lt;?php<br />
break;<br />
</span><span class="style4">endswitch;<br />
</span></span>}<span class="style1"><span class="style4"><br />
<br />
/**<br />
* Changes the error message that occurs during a bad login attempt to something 
generic that<br />
* doesn&#39;t reveal whether it was the username or password that was bad<br />
*/<br />
function ctx_aj_login_error_mess() {<br />
return &#39;ERROR: Invalid username or password.&#39;;<br />
</span></span>}<span class="style1"><span class="style4"><br />
<br />
<br />
//Add these files to the Admin Section only<br />
if(is_admin()) {<br />
</span><span class="style4">wp_enqueue_style(&#39;theme&#39;, $themeDir.&#39;/admin/admin-style.css&#39;,&#39;&#39;,&#39;&#39;); 
//Admin section stylesheet<br />
</span></span>}<span class="style1"><span class="style4"><br />
<br />
<br />
/************************************************************************************************<br />
Sets the default layout for the site based on the option set in the admin menu<br />
************************************************************************************************/<br />
function ctx_aj_getlayout(){<br />
//Get the current layout from the database<br />
$layout = get_option(&#39;ctx-adventurejournal-options&#39;);<br />
<br />
//Make sure that the current option isn&#39;t blank and if it is reset it to the 
default layout<br />
if($layout[&#39;layout&#39;] == &#39;&#39;){<br />
$layout[&#39;layout&#39;] = &#39;col-2-left&#39;;<br />
</span></span>}<span class="style1"><span class="style4"><br />
<br />
//Return the layout as an ID<br />
//The CSS and style information for the layout can be found in style.css under 
the Layout section<br />
echo &#39; id=&quot;&#39;,$layout[&#39;layout&#39;],&#39;&quot;&#39;;<br />
</span></span>}<span class="style1"><span class="style4"><br />
<br />
<br />
/**<br />
* Determines which sidebars need to be generated based on the layout option set 
in the admin section<br />
* then send the results to ctx_aj_build_sidebar() which actually generates the 
html<br />
*/<br />
function ctx_aj_generate_sidebars(){<br />
//Get the selected layout option<br />
$layout = get_option(&#39;ctx-adventurejournal-options&#39;);<br />
<br />
switch ($layout[&#39;layout&#39;]) {<br />
case &#39;col-2-left&#39;:<br />
case &#39;col-2-right&#39;:<br />
//Check if the current page is a non blog related page<br />
if (is_page()){<br />
//If so then generate the normal website sidebar<br />
</span><span class="style4">ctx_aj_build_sidebar(&#39;col-left&#39;,&#39;Page Sidebar&#39;);<br />
} else {<br />
//If this is a blog or blog related page then generate the blog sidebar<br />
</span><span class="style4">ctx_aj_build_sidebar(&#39;col-left&#39;,&#39;Blog Sidebar&#39;);<br />
</span></span>}<span class="style1"><span class="style4"><br />
break;<br />
case &#39;col-3&#39;:<br />
//Check if the current page is a non blog related page<br />
if (is_page()){<br />
//If so then generate the normal website sidebars<br />
</span><span class="style4">ctx_aj_build_sidebar(&#39;col-left&#39;,&#39;Page Sidebar 
(Left)&#39;);<br />
</span><span class="style4">ctx_aj_build_sidebar(&#39;col-right&#39;,&#39;Page Sidebar 
(Right)&#39;);<br />
} else {<br />
//If this is a blog or blog related page then generate the blog sidebar<br />
</span><span class="style4">ctx_aj_build_sidebar(&#39;col-left&#39;,&#39;Blog Sidebar 
(Left)&#39;);<br />
</span><span class="style4">ctx_aj_build_sidebar(&#39;col-right&#39;,&#39;Blog Sidebar 
(Right)&#39;);<br />
</span></span>}<span class="style1"><span class="style4"><br />
break;<br />
case &#39;col-3-left&#39;:<br />
//Check if the current page is a non blog related page<br />
if (is_page()){<br />
//If so then generate the normal website sidebars<br />
</span><span class="style4">ctx_aj_build_sidebar(&#39;col-left&#39;,&#39;Page Sidebar 
(Left)&#39;);<br />
</span><span class="style4">ctx_aj_build_sidebar(&#39;col-right&#39;,&#39;Page Sidebar 
(Right)&#39;);<br />
} else {<br />
//If this is a blog or blog related page then generate the blog sidebar<br />
</span><span class="style4">ctx_aj_build_sidebar(&#39;col-left&#39;,&#39;Blog Sidebar 
(Left)&#39;);<br />
</span><span class="style4">ctx_aj_build_sidebar(&#39;col-right&#39;,&#39;Blog Sidebar 
(Right)&#39;);<br />
</span></span>}<span class="style1"><span class="style4"><br />
break;<br />
case &#39;col-1&#39;:<br />
default:<br />
//Do nothing - no sidebar support<br />
break;<br />
<br />
</span></span>}<span class="style2"><br />
</span>}<span class="style1"><span class="style4"><br />
<br />
<br />
/**<br />
* Creates and populates the sidebars based on the layout option set in the admin 
section<br />
*/<br />
function ctx_aj_build_sidebar($sidebar_class, $sidebar_name){<br />
echo sprintf(&#39;&lt;div id=&quot;%s&quot; class=&quot;sidebar&quot;&gt;&lt;ul&gt;&#39;,$sidebar_class);<br />
<br />
if ( function_exists(&#39;dynamic_sidebar&#39;) ){<br />
</span><span class="style4">dynamic_sidebar($sidebar_name);<br />
</span></span>}<span class="style1"><span class="style4"><br />
<br />
echo &#39;&lt;/ul&gt;&lt;/div&gt;&#39;;<br />
</span></span>}<span class="style1"><span class="style4"><br />
<br />
<br />
/**<br />
* Add&#39;s &quot;Layout&quot; option to the theme-options/Appearance nav menu<br />
*/<br />
function ctx_aj_theme_add_pages() {<br />
//add_theme_page(, __(&#39;Advanced&#39;,&#39;adventurejournal&#39;), &#39;administrator&#39;, 
&#39;theme-options&#39;, &#39;ctx_aj_options_adventurejournal&#39;);<br />
</span><span class="style4">add_theme_page(__(&#39;Adventure 
Journal&#39;,&#39;adventurejournal&#39;), __(&#39;Adventure Journal&#39;,&#39;adventurejournal&#39;), &#39;edit_theme_options&#39;, 
&#39;z-adventurejournal&#39;, &#39;ctx_aj_options_adventurejournal&#39;);<br />
</span></span>}<span class="style1"><span class="style4"><br />
<br />
<br />
/**<br />
* Shows &quot;choose layout&quot; page in Appearance Meny<br />
*/<br />
function ctx_aj_options_adventurejournal() {<br />
</span><span class="style4">require_once &#39;admin/options.php&#39;;<br />
</span></span>}<span class="style1"><span class="style4"><br />
<br />
/**<br />
* Prints HTML with meta information for the current post—date/time and author.<br />
*/<br />
function ctx_aj_posted_on() {<br />
</span><span class="style4">printf( __( &#39;&lt;span class=&quot;%1$s&quot;&gt;Posted on&lt;/span&gt; 
%2$s &lt;span class=&quot;meta-sep&quot;&gt;by&lt;/span&gt; %3$s&#39;, &#39;adventurejournal&#39; ),<br />
&#39;meta-prep meta-prep-author&#39;,<br />
</span><span class="style4">sprintf( &#39;&lt;a href=&quot;%1$s&quot; title=&quot;%2$s&quot; rel=&quot;bookmark&quot;&gt;&lt;span 
class=&quot;entry-date&quot;&gt;%3$s&lt;/span&gt;&lt;/a&gt;&#39;,<br />
</span><span class="style4">get_permalink(),<br />
</span><span class="style4">esc_attr( get_the_time() ),<br />
</span><span class="style4">get_the_date()<br />
</span><span class="style3"><span class="style4">),<br />
</span></span><span class="style4">sprintf( &#39;&lt;span class=&quot;author vcard&quot;&gt;&lt;a 
class=&quot;url fn n&quot; href=&quot;%1$s&quot; title=&quot;%2$s&quot;&gt;%3$s&lt;/a&gt;&lt;/span&gt;&#39;,<br />
</span><span class="style4">get_author_posts_url( get_the_author_meta( &#39;ID&#39; ) ),<br />
</span><span class="style4">sprintf( esc_attr__( &#39;View all posts by %s&#39;, &#39;adventurejournal&#39; 
), get_the_author() ),<br />
</span><span class="style4">get_the_author()<br />
</span></span>)<span class="style1"><span class="style4"><br />
);<br />
</span></span>}<span class="style1"><span class="style4"><br />
<br />
/**<br />
* This adds contextual help to the theme<br />
*/<br />
function ctx_aj_help_theme_options(){<br />
//Add contextual help to this page<br />
</span><span class="style4">add_contextual_help( &#39;appearance_page_theme-options&#39;, 
__(&#39;&lt;p&gt;Adventure Journal supports different page layouts without any additional 
coding. Simply select the layout you want to use on your site and click Save 
Changes.&#39;) );<br />
</span></span>}<span class="style1"><span class="style4"><br />
<br />
/**<br />
* Controls the display options for the site title and description. This function 
lets users turn off the paperclip or use a logo instead.<br />
*/<br />
function ctx_aj_site_title(){<br />
<br />
//Get the theme options<br />
</span></span>$<span class="style1"><span class="style4">themeOpts = get_option(&#39;ctx-adventurejournal-options&#39;);<br />
</span></span>$<span class="style1"><span class="style4">themeTitle = $themeOpts[&#39;title-type&#39;];<br />
<br />
//Check if a site title option has been set, if not use the default value<br />
if (!isset($themeTitle)){<br />
</span></span>$<span class="style1"><span class="style4">themeTitle = 
&#39;title-default&#39;;<br />
</span></span>}<span class="style1"><span class="style4"><br />
<br />
//Check and see if the site title option is set to default or custom logo option<br />
if($themeTitle == &#39;title-default&#39; || $themeTitle == &#39;title-logo&#39;){<br />
?&gt;<br />
&lt;div id=&quot;logo&quot;&gt;<br />
&lt;div id=&quot;logo-2&quot;&gt;<br />
&lt;div id=&quot;logo-3&quot;&gt;<br />
&lt;table&gt;&lt;tr&gt;&lt;td&gt;<br />
&lt;?php<br />
//Display the default styling<br />
if($themeTitle == &#39;title-default&#39;){<br />
?&gt;<br />
&lt;div id=&quot;site-title&quot;&gt;&lt;a href=&quot;&lt;?php echo home_url( &#39;/&#39; ) ?&gt;&quot; title=&quot;&lt;?php echo 
esc_attr( get_bloginfo( &#39;name&#39;, &#39;display&#39; ) ); ?&gt;&quot; rel=&quot;home&quot;&gt;<br />
&lt;?php bloginfo( &#39;name&#39; ); ?&gt;<br />
&lt;/a&gt;&lt;/div&gt;<br />
&lt;?php $sitedescr = get_bloginfo(&#39;description&#39;,&#39;display&#39;); echo (empty($sitedescr)) 
? &#39;&#39; : sprintf(&#39;&lt;div id=&quot;site-description&quot;&gt;%s&lt;/div&gt;&#39;,$sitedescr);<br />
//Display the custom logo<br />
} else {<br />
?&gt;<br />
&lt;a href=&quot;&lt;?php echo home_url( &#39;/&#39; ) ?&gt;&quot;&gt;&lt;img src=&quot;&lt;?php echo 
&#39;http://&#39;.$_SERVER[&#39;SERVER_NAME&#39;].&#39;/&#39;.$themeOpts[&#39;logo-path&#39;];?&gt;&quot; alt=&quot;&lt;?php 
echo esc_attr( get_bloginfo( &#39;name&#39;, &#39;display&#39; ) ); ?&gt;&quot; /&gt;&lt;/a&gt;<br />
&lt;?php<br />
</span></span>}<span class="style1"><span class="style4"><br />
?&gt;<br />
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;<br />
&lt;/div&gt;<br />
&lt;/div&gt;<br />
&lt;/div&gt;<br />
&lt;?php<br />
</span></span>}<span class="style2"><br />
</span>}<span class="style1"><span class="style4"><br />
<br />
<br />
function ctx_aj_crinkled_paper(){<br />
</span></span>$<span class="style1"><span class="style4">themeOpts = get_option(&#39;ctx-adventurejournal-options&#39;);<br />
if($themeOpts[&#39;paper-type&#39;] == &#39;paper-all&#39;){<br />
echo &#39;class=&quot;paper-all&quot;&#39;;<br />
</span></span>}<span class="style2"><br />
</span>}<span class="style1"><span class="style4"><br />
<br />
?&gt;</span></span></p>
<p class="style2">&nbsp;</p>
<p><span class="style1"><span class="style4">&lt;?php<br />
/**<br />
* Template Name: Three columns, content center<br />
</span></span>*<span class="style1"><span class="style4"><br />
* A page template with a sidebar on the left and right.<br />
</span></span>*<span class="style1"><span class="style4"><br />
* @package WordPress<br />
* @subpackage Adventure_Journal<br />
*/<br />
</span><span class="style4">get_header();<br />
</span><span class="style3"><span class="style4">?&gt;<br />
&lt;div class=&quot;content&quot; id=&quot;col-3&quot;&gt;<br />
&lt;div id=&quot;col-main&quot;&gt;<br />
&lt;div id=&quot;main-content&quot; &lt;?php //ctx_aj_crinkled_paper(); ?&gt;&gt;<br />
&lt;!-- BEGIN Main Content--&gt;<br />
&lt;?php<br />
//Start the Loop<br />
if (have_posts()) : while (have_posts()) : the_post(); ?&gt;<br />
<br />
&lt;div &lt;?php post_class() ?&gt; id=&quot;post-&lt;?php the_ID(); ?&gt;&quot;&gt;<br />
&lt;?php echo sprintf(&#39;&lt;h1 class=&quot;storytitle&quot;&gt;%s&lt;/h1&gt;&#39;,get_the_title());?&gt;<br />
<br />
&lt;?php if(!is_admin_b)edit_post_link(__(&#39;Edit&#39;)); ?&gt;<br />
<br />
&lt;div class=&quot;storycontent&quot;&gt;<br />
&lt;?php the_content(__(&#39;(more...)&#39;)); ?&gt;<br />
&lt;/div&gt;<br />
<br />
&lt;div class=&quot;feedback&quot;&gt;<br />
&lt;?php wp_link_pages( array( &#39;before&#39; =&gt; &#39;&lt;div class=&quot;page-link&quot;&gt;&#39; . __( 
&#39;Pages:&#39;, &#39;adventurejournal&#39; ), &#39;after&#39; =&gt; &#39;&lt;/div&gt;&#39; ) ); ?&gt;<br />
&lt;?php comments_popup_link(__(&#39;Comments (0)&#39;), __(&#39;Comments (1)&#39;), __(&#39;Comments 
(%)&#39;)); ?&gt;<br />
&lt;/div&gt;<br />
<br />
&lt;/div&gt;<br />
</span></span></span>&lt;<span class="style1"><span class="style4">br/&gt;<br />
</span><span class="style3"><span class="style4">&lt;?php comments_template(); // 
Get wp-comments.php template ?&gt;<br />
&lt;?php endwhile; else: ?&gt;<br />
&lt;p&gt;&lt;?php _e(&#39;Sorry, no posts matched your criteria.&#39;,&#39;adventurejournal&#39;); ?&gt;&lt;/p&gt;<br />
&lt;?php endif; ?&gt;<br />
<br />
&lt;?php posts_nav_link(&#39; &amp;#8212; &#39;, __(&#39;&amp;laquo; Newer Posts&#39;), __(&#39;Older Posts &amp;raquo;&#39;)); 
?&gt;<br />
&lt;!-- END Main Content--&gt;<br />
<br />
&lt;/div&gt;<br />
&lt;/div&gt;<br />
&lt;?php get_sidebar(); ?&gt;<br />
&lt;div class=&quot;clear&quot;&gt;&lt;/div&gt;<br />
&lt;/div&gt;<br />
&lt;?php get_footer(); ?&gt;</span></span></span></p>
<p class="style2">&nbsp;</p>
<p><span class="style1"><span class="style4">&lt;?php<br />
/**<br />
* Template Name: Two columns, content left<br />
</span></span>*<span class="style1"><span class="style4"><br />
* A page template with one sidebar on the right.<br />
</span></span>*<span class="style1"><span class="style4"><br />
* @package WordPress<br />
* @subpackage Adventure_Journal<br />
*/<br />
</span><span class="style4">get_header();<br />
</span><span class="style3"><span class="style4">?&gt;<br />
&lt;div class=&quot;content&quot; id=&quot;col-2-left&quot;&gt;<br />
&lt;div id=&quot;col-main&quot;&gt;<br />
&lt;div id=&quot;main-content&quot; &lt;?php //ctx_aj_crinkled_paper(); ?&gt;&gt;<br />
&lt;!-- BEGIN Main Content--&gt;<br />
&lt;?php<br />
//Start the Loop<br />
if (have_posts()) : while (have_posts()) : the_post(); ?&gt;<br />
<br />
&lt;div &lt;?php post_class() ?&gt; id=&quot;post-&lt;?php the_ID(); ?&gt;&quot;&gt;<br />
&lt;?php echo sprintf(&#39;&lt;h1 class=&quot;storytitle&quot;&gt;%s&lt;/h1&gt;&#39;,get_the_title());?&gt;<br />
<br />
&lt;?php if(!is_admin_b)edit_post_link(__(&#39;Edit&#39;)); ?&gt;<br />
<br />
&lt;div class=&quot;storycontent&quot;&gt;<br />
&lt;?php the_content(__(&#39;(more...)&#39;)); ?&gt;<br />
&lt;/div&gt;<br />
<br />
&lt;div class=&quot;feedback&quot;&gt;<br />
&lt;?php wp_link_pages( array( &#39;before&#39; =&gt; &#39;&lt;div class=&quot;page-link&quot;&gt;&#39; . __( 
&#39;Pages:&#39;, &#39;adventurejournal&#39; ), &#39;after&#39; =&gt; &#39;&lt;/div&gt;&#39; ) ); ?&gt;<br />
&lt;?php comments_popup_link(__(&#39;Comments (0)&#39;), __(&#39;Comments (1)&#39;), __(&#39;Comments 
(%)&#39;)); ?&gt;<br />
&lt;/div&gt;<br />
<br />
&lt;/div&gt;<br />
</span></span></span>&lt;<span class="style1"><span class="style4">br/&gt;<br />
</span><span class="style3"><span class="style4">&lt;?php comments_template(); // 
Get wp-comments.php template ?&gt;<br />
&lt;?php endwhile; else: ?&gt;<br />
&lt;p&gt;&lt;?php _e(&#39;Sorry, no posts matched your criteria.&#39;,&#39;adventurejournal&#39;); ?&gt;&lt;/p&gt;<br />
&lt;?php endif; ?&gt;<br />
<br />
&lt;?php posts_nav_link(&#39; &amp;#8212; &#39;, __(&#39;&amp;laquo; Newer Posts&#39;), __(&#39;Older Posts &amp;raquo;&#39;)); 
?&gt;<br />
&lt;!-- END Main Content--&gt;<br />
<br />
&lt;/div&gt;<br />
&lt;/div&gt;<br />
&lt;?php get_sidebar(); ?&gt;<br />
&lt;div class=&quot;clear&quot;&gt;&lt;/div&gt;<br />
&lt;/div&gt;<br />
&lt;?php get_footer(); ?&gt;</span></span></span></p>
<p class="style2">&nbsp;</p>
<p><span class="style1"><span class="style4">&lt;?php<br />
/**<br />
* Template Name: Two columns, content right<br />
</span></span>*<span class="style1"><span class="style4"><br />
* A page template with one sidebar on the left.<br />
</span></span>*<span class="style1"><span class="style4"><br />
* @package WordPress<br />
* @subpackage Adventure_Journal<br />
*/<br />
</span><span class="style4">get_header();<br />
</span><span class="style3"><span class="style4">?&gt;<br />
&lt;div class=&quot;content&quot; id=&quot;col-2-right&quot;&gt;<br />
&lt;div id=&quot;col-main&quot;&gt;<br />
&lt;div id=&quot;main-content&quot; &lt;?php //ctx_aj_crinkled_paper(); ?&gt;&gt;<br />
&lt;!-- BEGIN Main Content--&gt;<br />
&lt;?php<br />
//Start the Loop<br />
if (have_posts()) : while (have_posts()) : the_post(); ?&gt;<br />
<br />
&lt;div &lt;?php post_class() ?&gt; id=&quot;post-&lt;?php the_ID(); ?&gt;&quot;&gt;<br />
&lt;?php echo sprintf(&#39;&lt;h1 class=&quot;storytitle&quot;&gt;%s&lt;/h1&gt;&#39;,get_the_title());?&gt;<br />
<br />
&lt;?php if(!is_admin_b)edit_post_link(__(&#39;Edit&#39;)); ?&gt;<br />
<br />
&lt;div class=&quot;storycontent&quot;&gt;<br />
&lt;?php the_content(__(&#39;(more...)&#39;)); ?&gt;<br />
&lt;/div&gt;<br />
<br />
&lt;div class=&quot;feedback&quot;&gt;<br />
&lt;?php wp_link_pages( array( &#39;before&#39; =&gt; &#39;&lt;div class=&quot;page-link&quot;&gt;&#39; . __( 
&#39;Pages:&#39;, &#39;adventurejournal&#39; ), &#39;after&#39; =&gt; &#39;&lt;/div&gt;&#39; ) ); ?&gt;<br />
&lt;?php comments_popup_link(__(&#39;Comments (0)&#39;), __(&#39;Comments (1)&#39;), __(&#39;Comments 
(%)&#39;)); ?&gt;<br />
&lt;/div&gt;<br />
<br />
&lt;/div&gt;<br />
</span></span></span>&lt;<span class="style1"><span class="style4">br/&gt;<br />
</span><span class="style3"><span class="style4">&lt;?php comments_template(); // 
Get wp-comments.php template ?&gt;<br />
&lt;?php endwhile; else: ?&gt;<br />
&lt;p&gt;&lt;?php _e(&#39;Sorry, no posts matched your criteria.&#39;,&#39;adventurejournal&#39;); ?&gt;&lt;/p&gt;<br />
&lt;?php endif; ?&gt;<br />
<br />
&lt;?php posts_nav_link(&#39; &amp;#8212; &#39;, __(&#39;&amp;laquo; Newer Posts&#39;), __(&#39;Older Posts &amp;raquo;&#39;)); 
?&gt;<br />
&lt;!-- END Main Content--&gt;<br />
<br />
&lt;/div&gt;<br />
&lt;/div&gt;<br />
&lt;?php get_sidebar(); ?&gt;<br />
&lt;div class=&quot;clear&quot;&gt;&lt;/div&gt;<br />
&lt;/div&gt;<br />
&lt;?php get_footer(); ?&gt;</span></span></span></p>
<p class="style2">&nbsp;</p>
<p class="style2">&nbsp;&lt;div class=&quot;wrap&quot;&gt;<br />
&lt;div id=&quot;icon-themes&quot; class=&quot;icon32&quot;&gt;&lt;br /&gt;&lt;/div&gt;<br />
&lt;h2&gt;Contexture&lt;/h2&gt;<br />
<br />
&lt;/div&gt;</p>
<p class="style2">&nbsp;</p>
<p><span class="style1"><span class="style4">&lt;?php<br />
/**<br />
* The loop that displays posts.<br />
</span></span>*<span class="style1"><span class="style4"><br />
* The loop displays the posts and the post content. See<br />
* http://codex.wordpress.org/The_Loop to understand it and<br />
* http://codex.wordpress.org/Template_Tags to understand<br />
* the tags used in it.<br />
</span></span>*<span class="style1"><span class="style4"><br />
* This can be overridden in child themes with loop.php or<br />
* loop-template.php, where &#39;template&#39; is the loop context<br />
* requested by a template. For example, loop-index.php would<br />
* be used if it exists and we ask for the loop with:<br />
* &lt;code&gt;get_template_part( &#39;loop&#39;, &#39;index&#39; );&lt;/code&gt;<br />
</span></span>*<span class="style1"><span class="style4"><br />
* @package WordPress<br />
* @subpackage Adventure_Journal<br />
*/<br />
<br />
$themeOpts = get_option(&#39;ctx-adventurejournal-options&#39;);<br />
?&gt;<br />
<br />
&lt;?php /* Display navigation to next/previous pages when applicable */ ?&gt;<br />
&lt;?php if ( $wp_query-&gt;max_num_pages &gt; 1 ) : ?&gt;<br />
&lt;div id=&quot;nav-above&quot; class=&quot;navigation&quot;&gt;<br />
&lt;div class=&quot;nav-previous&quot;&gt;&lt;?php next_posts_link( __( &#39;&lt;span 
class=&quot;meta-nav&quot;&gt;&amp;laquo;&lt;/span&gt; Older posts&#39;, &#39;adventurejournal&#39; ) ); ?&gt;&lt;/div&gt;<br />
&lt;div class=&quot;nav-next&quot;&gt;&lt;?php previous_posts_link( __( &#39;Newer posts &lt;span 
class=&quot;meta-nav&quot;&gt;&amp;raquo;&lt;/span&gt;&#39;, &#39;adventurejournal&#39; ) ); ?&gt;&lt;/div&gt;<br />
&lt;div class=&quot;clear&quot;&gt;&lt;/div&gt;<br />
&lt;/div&gt;&lt;!-- #nav-above --&gt;<br />
&lt;?php endif; ?&gt;<br />
<br />
&lt;?php /* If there are no posts to display, such as an empty archive page */ ?&gt;<br />
&lt;?php if ( ! have_posts() ) : ?&gt;<br />
&lt;div id=&quot;post-0&quot; class=&quot;post error404 not-found&quot;&gt;<br />
&lt;h1 class=&quot;entry-title&quot;&gt;&lt;?php _e( &#39;Not Found&#39;, &#39;adventurejournal&#39; ); ?&gt;&lt;/h1&gt;<br />
&lt;div class=&quot;entry-content&quot;&gt;<br />
&lt;p&gt;&lt;?php _e( &#39;Apologies, but no results were found for the requested archive. 
Perhaps searching will help find a related post.&#39;, &#39;adventurejournal&#39; ); ?&gt;&lt;/p&gt;<br />
&lt;?php get_search_form(); ?&gt;<br />
&lt;/div&gt;&lt;!-- .entry-content --&gt;<br />
&lt;/div&gt;&lt;!-- #post-0 --&gt;<br />
&lt;?php endif; ?&gt;<br />
<br />
&lt;?php<br />
/* Start the Loop.<br />
</span></span>*<span class="style1"><span class="style4"><br />
* In Twenty Ten we use the same loop in multiple contexts.<br />
* It is broken into three main parts: when we&#39;re displaying<br />
* posts that are in the gallery category, when we&#39;re displaying<br />
* posts in the asides category, and finally all other posts.<br />
</span></span>*<span class="style1"><span class="style4"><br />
* Additionally, we sometimes check for whether we are on an<br />
* archive page, a search page, etc., allowing for small differences<br />
* in the loop on each template without actually duplicating<br />
* the rest of the loop that is shared.<br />
</span></span>*<span class="style1"><span class="style4"><br />
* Without further ado, the loop:<br />
*/ ?&gt;<br />
&lt;?php while ( have_posts() ) : the_post(); ?&gt;<br />
<br />
&lt;?php /* How to display posts in the Gallery category. */ ?&gt;<br />
<br />
&lt;?php if ( in_category( _x(&#39;gallery&#39;, &#39;gallery category slug&#39;, &#39;adventurejournal&#39;) 
) ) : ?&gt;<br />
&lt;div id=&quot;post-&lt;?php the_ID(); ?&gt;&quot; &lt;?php post_class(); ?&gt;&gt;<br />
&lt;?php edit_post_link( __( &#39;Edit&#39;, &#39;adventurejournal&#39; ), &#39;&lt;span 
class=&quot;edit-link&quot;&gt;&#39;, &#39;&lt;/span&gt;&#39; ); ?&gt;<br />
&lt;h2 class=&quot;entry-title&quot;&gt;&lt;a href=&quot;&lt;?php the_permalink(); ?&gt;&quot; title=&quot;&lt;?php printf( 
esc_attr__( &#39;Permalink to %s&#39;, &#39;adventurejournal&#39; ), the_title_attribute( 
&#39;echo=0&#39; ) ); ?&gt;&quot; rel=&quot;bookmark&quot;&gt;&lt;?php the_title(); ?&gt;&lt;/a&gt;&lt;/h2&gt;<br />
<br />
&lt;div class=&quot;entry-meta&quot;&gt;<br />
&lt;?php ctx_aj_posted_on(); ?&gt;<br />
&lt;/div&gt;&lt;!-- .entry-meta --&gt;<br />
<br />
&lt;div class=&quot;entry-content&quot;&gt;<br />
&lt;?php if ( post_password_required() ) : ?&gt;<br />
&lt;?php the_content(); ?&gt;<br />
&lt;?php else : ?&gt;<br />
&lt;div class=&quot;gallery-thumb&quot;&gt;<br />
&lt;?php<br />
$images = get_children( array( &#39;post_parent&#39; =&gt; $post-&gt;ID, &#39;post_type&#39; =&gt; 
&#39;attachment&#39;, &#39;post_mime_type&#39; =&gt; &#39;image&#39;, &#39;orderby&#39; =&gt; &#39;menu_order&#39;, &#39;order&#39; =&gt; 
&#39;ASC&#39;, &#39;numberposts&#39; =&gt; 999 ) );<br />
</span></span>$<span class="style1"><span class="style4">total_images = count( 
$images );<br />
</span><span class="style3"><span class="style4">$image = array_shift( $images 
);<br />
</span></span></span>$<span class="style1"><span class="style4">image_img_tag = 
wp_get_attachment_image( $image-&gt;ID, &#39;thumbnail&#39; );<br />
?&gt;<br />
&lt;a class=&quot;size-thumbnail&quot; href=&quot;&lt;?php the_permalink(); ?&gt;&quot;&gt;&lt;?php echo $image_img_tag; 
?&gt;&lt;/a&gt;<br />
&lt;/div&gt;&lt;!-- .gallery-thumb --&gt;<br />
&lt;p&gt;&lt;em&gt;&lt;?php printf( __( &#39;This gallery contains &lt;a %1$s&gt;%2$s photos&lt;/a&gt;.&#39;, &#39;adventurejournal&#39; 
),<br />
</span></span>&#39;<span class="style1"><span class="style4">href=&quot;&#39; . get_permalink() 
. &#39;&quot; title=&quot;&#39; . sprintf( esc_attr__( &#39;Permalink to %s&#39;, &#39;adventurejournal&#39; ), 
the_title_attribute( &#39;echo=0&#39; ) ) . &#39;&quot; rel=&quot;bookmark&quot;&#39;,<br />
</span></span>$<span class="style1"><span class="style4">total_images</span><span class="style4"><br />
); ?&gt;&lt;/em&gt;&lt;/p&gt;<br />
<br />
&lt;?php the_excerpt(); ?&gt;<br />
&lt;?php endif; ?&gt;<br />
&lt;div class=&quot;clear&quot;&gt;&lt;/div&gt;<br />
&lt;/div&gt;&lt;!-- .entry-content --&gt;<br />
<br />
&lt;div class=&quot;entry-utility&quot;&gt;<br />
&lt;a href=&quot;&lt;?php echo get_term_link( _x(&#39;gallery&#39;, &#39;gallery category slug&#39;, &#39;adventurejournal&#39;), 
&#39;category&#39; ); ?&gt;&quot; title=&quot;&lt;?php esc_attr_e( &#39;View posts in the Gallery category&#39;, 
&#39;adventurejournal&#39; ); ?&gt;&quot;&gt;&lt;?php _e( &#39;More Galleries&#39;, &#39;adventurejournal&#39; ); 
?&gt;&lt;/a&gt;<br />
&lt;span class=&quot;meta-sep&quot;&gt;|&lt;/span&gt;<br />
&lt;span class=&quot;comments-link&quot;&gt;&lt;?php comments_popup_link( __( &#39;Leave a comment&#39;, &#39;adventurejournal&#39; 
), __( &#39;1 Comment&#39;, &#39;adventurejournal&#39; ), __( &#39;% Comments&#39;, &#39;adventurejournal&#39; ) 
); ?&gt;&lt;/span&gt;<br />
<br />
&lt;/div&gt;&lt;!-- .entry-utility --&gt;<br />
&lt;/div&gt;&lt;!-- #post-## --&gt;<br />
<br />
&lt;?php /* How to display posts in the asides category */ ?&gt;<br />
<br />
&lt;?php elseif ( in_category( _x(&#39;asides&#39;, &#39;asides category slug&#39;, &#39;adventurejournal&#39;) 
) ) : ?&gt;<br />
&lt;div id=&quot;post-&lt;?php the_ID(); ?&gt;&quot; &lt;?php post_class(); ?&gt;&gt;<br />
&lt;?php edit_post_link( __( &#39;Edit&#39;, &#39;adventurejournal&#39; ), &#39;&lt;span 
class=&quot;edit-link&quot;&gt;&#39;, &#39;&lt;/span&gt;&#39; ); ?&gt;<br />
&lt;?php if ( is_archive() || is_search() ) : // Display excerpts for archives and 
search. ?&gt;<br />
&lt;div class=&quot;entry-summary&quot;&gt;<br />
&lt;?php the_excerpt(); ?&gt;<br />
&lt;/div&gt;&lt;!-- .entry-summary --&gt;<br />
&lt;?php else : ?&gt;<br />
&lt;div class=&quot;entry-content&quot;&gt;<br />
&lt;?php the_content( __( &#39;Read more &lt;span class=&quot;meta-nav&quot;&gt;&amp;raquo;&lt;/span&gt;&#39;, &#39;adventurejournal&#39; 
) ); ?&gt;<br />
&lt;div class=&quot;clear&quot;&gt;&lt;/div&gt;<br />
&lt;/div&gt;&lt;!-- .entry-content --&gt;<br />
&lt;?php endif; ?&gt;<br />
<br />
&lt;div class=&quot;entry-utility&quot;&gt;<br />
&lt;?php ctx_aj_posted_on(); ?&gt;<br />
&lt;span class=&quot;meta-sep&quot;&gt;|&lt;/span&gt;<br />
&lt;span class=&quot;comments-link&quot;&gt;&lt;?php comments_popup_link( __( &#39;Leave a comment&#39;, &#39;adventurejournal&#39; 
), __( &#39;1 Comment&#39;, &#39;adventurejournal&#39; ), __( &#39;% Comments&#39;, &#39;adventurejournal&#39; ) 
); ?&gt;&lt;/span&gt;<br />
<br />
&lt;/div&gt;&lt;!-- .entry-utility --&gt;<br />
&lt;/div&gt;&lt;!-- #post-## --&gt;<br />
<br />
&lt;?php /* How to display all other posts. */ ?&gt;<br />
<br />
&lt;?php else : ?&gt;<br />
&lt;div id=&quot;post-&lt;?php the_ID(); ?&gt;&quot; &lt;?php post_class(); ?&gt;&gt;<br />
&lt;?php<br />
</span></span>$<span class="style1"><span class="style4">myclasses=join(&#39; &#39;,get_post_class(&#39;&#39;,$id));<br />
if( preg_match(&#39;/sticky/&#39;,$myclasses) &gt; 0 ){<br />
echo &#39;&lt;div class=&quot;tape tr&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;div class=&quot;tape bl&quot;&gt;&amp;nbsp;&lt;/div&gt;&#39;;<br />
</span></span>}<span class="style1"><span class="style4"><br />
?&gt;<br />
&lt;?php edit_post_link( __( &#39;Edit&#39;, &#39;adventurejournal&#39; ), &#39;&lt;span 
class=&quot;edit-link&quot;&gt;&#39;, &#39;&lt;/span&gt;&#39; ); ?&gt;<br />
&lt;h2 class=&quot;entry-title&quot;&gt;&lt;a href=&quot;&lt;?php the_permalink(); ?&gt;&quot; title=&quot;&lt;?php printf( 
esc_attr__( &#39;Permalink to %s&#39;, &#39;adventurejournal&#39; ), the_title_attribute( 
&#39;echo=0&#39; ) ); ?&gt;&quot; rel=&quot;bookmark&quot;&gt;&lt;?php the_title(); ?&gt;&lt;/a&gt;&lt;/h2&gt;<br />
&lt;?php if(is_home() &amp;&amp; has_post_thumbnail() &amp;&amp; $themeOpts[&#39;featured-header&#39;]!=&#39;true&#39; 
) the_post_thumbnail(); ?&gt;<br />
&lt;div class=&quot;entry-meta&quot;&gt;<br />
&lt;?php ctx_aj_posted_on(); ?&gt;<br />
&lt;/div&gt;&lt;!-- .entry-meta --&gt;<br />
<br />
&lt;?php if ( is_archive() || is_search() ) : // Only display excerpts for archives 
and search. ?&gt;<br />
&lt;div class=&quot;entry-summary&quot;&gt;<br />
&lt;?php the_excerpt(); ?&gt;<br />
&lt;/div&gt;&lt;!-- .entry-summary --&gt;<br />
&lt;?php else : ?&gt;<br />
&lt;div class=&quot;entry-content&quot;&gt;<br />
&lt;?php the_content( __( &#39;Read more &lt;span class=&quot;meta-nav&quot;&gt;&amp;raquo;&lt;/span&gt;&#39;, &#39;adventurejournal&#39; 
) ); ?&gt;<br />
&lt;?php wp_link_pages( array( &#39;before&#39; =&gt; &#39;&lt;div class=&quot;page-link&quot;&gt;&#39; . __( &#39;Post 
pages:&#39;, &#39;adventurejournal&#39; ), &#39;after&#39; =&gt; &#39;&lt;/div&gt;&#39; ) ); ?&gt;<br />
&lt;div class=&quot;clear&quot;&gt;&lt;/div&gt;<br />
&lt;/div&gt;&lt;!-- .entry-content --&gt;<br />
&lt;?php endif; ?&gt;<br />
<br />
&lt;div class=&quot;entry-utility&quot;&gt;<br />
&lt;?php if ( count( get_the_category() ) ) : ?&gt;<br />
&lt;span class=&quot;cat-links&quot;&gt;<br />
&lt;?php printf( __( &#39;&lt;span class=&quot;%1$s&quot;&gt;Categories: &lt;/span&gt; %2$s&#39;, &#39;adventurejournal&#39; 
), &#39;entry-utility-prep entry-utility-prep-cat-links&#39;, get_the_category_list( &#39;, 
&#39; ) ); ?&gt;<br />
&lt;/span&gt;<br />
&lt;span class=&quot;meta-sep&quot;&gt;|&lt;/span&gt;<br />
&lt;?php endif; ?&gt;<br />
&lt;?php<br />
</span></span>$<span class="style1"><span class="style4">tags_list = 
get_the_tag_list( &#39;&#39;, &#39;, &#39; );<br />
if ( $tags_list ):<br />
?&gt;<br />
&lt;span class=&quot;tag-links&quot;&gt;<br />
&lt;?php printf( __( &#39;&lt;span class=&quot;%1$s&quot;&gt;Tags:&lt;/span&gt; %2$s&#39;, &#39;adventurejournal&#39; ), 
&#39;entry-utility-prep entry-utility-prep-tag-links&#39;, $tags_list ); ?&gt;<br />
&lt;/span&gt;<br />
&lt;span class=&quot;meta-sep&quot;&gt;|&lt;/span&gt;<br />
&lt;?php endif; ?&gt;<br />
&lt;span class=&quot;comments-link&quot;&gt;&lt;?php comments_popup_link( __( &#39;Leave a comment&#39;, &#39;adventurejournal&#39; 
), __( &#39;1 Comment&#39;, &#39;adventurejournal&#39; ), __( &#39;% Comments&#39;, &#39;adventurejournal&#39; ) 
); ?&gt;&lt;/span&gt;<br />
<br />
&lt;/div&gt;&lt;!-- .entry-utility --&gt;<br />
&lt;/div&gt;&lt;!-- #post-## --&gt;<br />
<br />
&lt;?php comments_template( &#39;&#39;, true ); ?&gt;<br />
<br />
&lt;?php endif; // This was the if statement that broke the loop into three parts 
based on categories. ?&gt;<br />
<br />
&lt;?php endwhile; // End the loop. Whew. ?&gt;<br />
<br />
&lt;?php /* Display navigation to next/previous pages when applicable */ ?&gt;<br />
&lt;?php if ( $wp_query-&gt;max_num_pages &gt; 1 ) : ?&gt;<br />
&lt;div id=&quot;nav-below&quot; class=&quot;navigation&quot;&gt;<br />
&lt;div class=&quot;nav-previous&quot;&gt;&lt;?php next_posts_link( __( &#39;&lt;span class=&quot;meta-nav&quot;&gt;&amp;laquo;&lt;/span&gt; 
Older posts&#39;, &#39;adventurejournal&#39; ) ); ?&gt;&lt;/div&gt;<br />
&lt;div class=&quot;nav-next&quot;&gt;&lt;?php previous_posts_link( __( &#39;Newer posts &lt;span 
class=&quot;meta-nav&quot;&gt;&amp;raquo;&lt;/span&gt;&#39;, &#39;adventurejournal&#39; ) ); ?&gt;&lt;/div&gt;<br />
&lt;/div&gt;&lt;!-- #nav-below --&gt;<br />
&lt;?php endif; ?&gt;<br />
</span></span></p>
<p class="style2">&nbsp;</p>
<p><span class="style1"><span class="style4">&lt;?php<br />
if ( !current_user_can(&#39;manage_options&#39;) ) {<br />
</span><span class="style4">wp_die( __( &#39;You do not have sufficient permissions 
to manage options for this site.&#39;,&#39;contexture-page-security&#39; ) );<br />
</span></span>}<span class="style1"><span class="style4"><br />
<br />
global $themeDir,<br />
</span></span>$<span class="style1"><span class="style4">hook_suffix;<br />
<br />
</span></span>$<span class="style1"><span class="style4">newOpts = array();<br />
</span><span class="style3"><span class="style4">$message = &#39;&#39;;<br />
</span></span></span>$<span class="style1"><span class="style4">debugOpts = &#39;&#39;;<br />
<br />
</span><span class="style3"><span class="style4">echo &quot;&lt;!-- The hook for the 
current page is \&quot;&quot;;<br />
</span></span><span class="style4">print_r( $hook_suffix );<br />
echo &quot;\&quot; --&gt;\n&quot;;<br />
<br />
if(!empty($_POST) &amp;&amp; wp_verify_nonce($_POST[&#39;_wpnonce&#39;],&#39;aj-options&#39;)){<br />
<br />
//Get rid of any leading forward slashes<br />
$_POST[&#39;css-path&#39;] = preg_replace(&#39;/^\/+/&#39;, &#39;&#39;, trim( $_POST[&#39;css-path&#39;] ) );<br />
$_POST[&#39;logo-path&#39;] = preg_replace(&#39;/^\/+/&#39;, &#39;&#39;, trim( $_POST[&#39;logo-path&#39;] ) );<br />
<br />
//Set new options<br />
</span></span>$<span class="style1"><span class="style4">newOpts[&#39;css-path&#39;] = 
$_POST[&#39;css-path&#39;];<br />
</span></span>$<span class="style1"><span class="style4">newOpts[&#39;logo-path&#39;] = 
$_POST[&#39;logo-path&#39;];<br />
</span></span>$<span class="style1"><span class="style4">newOpts[&#39;title-type&#39;] = 
$_POST[&#39;title-type&#39;];<br />
</span></span>$<span class="style1"><span class="style4">newOpts[&#39;paper-type&#39;] = 
$_POST[&#39;paper-type&#39;];<br />
</span></span>$<span class="style1"><span class="style4">newOpts[&#39;header-height&#39;] 
= $_POST[&#39;header-height&#39;];<br />
</span></span>$<span class="style1"><span class="style4">newOpts[&#39;featured-header&#39;] 
= ( isset( $_POST[&#39;featured-header&#39;] ) ) ? &#39;true&#39; : &#39;false&#39;;<br />
</span></span>$<span class="style1"><span class="style4">newOpts[&#39;attrib&#39;] = ( 
isset( $_POST[&#39;attrib&#39;] ) ) ? &#39;false&#39; : &#39;true&#39;;<br />
</span></span>$<span class="style1"><span class="style4">newOpts[&#39;browser-helper&#39;] 
= ( isset( $_POST[&#39;browser-helper&#39;] ) ) ? &#39;true&#39; : &#39;false&#39;;<br />
</span></span>$<span class="style1"><span class="style4">newOpts[&#39;layout&#39;] = 
$_POST[&#39;master-layout&#39;];<br />
<br />
</span><span class="style3"><span class="style4">//Update the options<br />
</span></span><span class="style4">ctx_aj_set_options($newOpts);<br />
//Show success message<br />
<br />
//Build error message<br />
$message = sprintf(__(&#39;&lt;div id=&quot;message&quot; class=&quot;updated below-h2&quot;&gt;<br />
&lt;p&gt;<br />
Options updated. &lt;a href=&quot;%s&quot; target=&quot;_blank&quot;&gt;View your site&lt;/a&gt; to see how it 
looks.<br />
&lt;/p&gt;%s<br />
&lt;/div&gt;&#39;,&#39;adventurejournal&#39;),<br />
</span><span class="style4">home_url(),<br />
</span></span>(<span class="style1"><span class="style4">isset($_POST[&#39;attrib&#39;])) 
? __(&#39;&lt;p&gt;I see you removed the attribution. Does this mean we\&#39;re not friends 
any more?&lt;/p&gt;&#39;,&#39;adventurejournal&#39;) : &#39;&#39;<br />
);<br />
</span></span>}<span class="style1"><span class="style4"><br />
<br />
//Load default theme variables<br />
</span></span>$<span class="style1"><span class="style4">AJOpts = get_option(&#39;ctx-adventurejournal-options&#39;);<br />
<br />
if(!empty($_GET[&#39;showopts&#39;]) &amp;&amp; $_GET[&#39;showopts&#39;]==&#39;true&#39;){<br />
</span></span>$<span class="style1"><span class="style4">debugOpts = 
&#39;&lt;hr/&gt;&lt;pre&gt;&#39;.print_r($AJOpts,true).&#39;&lt;/pre&gt;&lt;hr/&gt;&#39;;<br />
</span></span>}<span class="style1"><span class="style4"><br />
<br />
?&gt;<br />
&lt;script type=&quot;text/javascript&quot;&gt;<br />
</span><span class="style4">jQuery(function(){<br />
</span><span class="style4">jQuery(&#39;#show-more&#39;).click(function(){<br />
</span><span class="style4">jQuery(this).hide();<br />
</span><span class="style4">jQuery(&#39;#more-opts&#39;).show();<br />
</span><span class="style3"><span class="style4">});<br />
</span></span><span class="style4">jQuery(&#39;#title-default&#39;).click(function(){<br />
</span><span class="style4">jQuery(&#39;.custom-logo&#39;).hide();<br />
</span><span class="style3"><span class="style4">});<br />
</span></span><span class="style4">jQuery(&#39;#title-blank&#39;).click(function(){<br />
</span><span class="style4">jQuery(&#39;.custom-logo&#39;).hide();<br />
</span><span class="style3"><span class="style4">});<br />
</span></span><span class="style4">jQuery(&#39;#title-logo&#39;).click(function(){<br />
</span><span class="style4">jQuery(&#39;.custom-logo&#39;).show();<br />
</span><span class="style3"><span class="style4">});<br />
});<br />
&lt;/script&gt;<br />
&lt;style type=&quot;text/css&quot;&gt;<br />
#ad-msg-auth, #ad-msg-anon { width:500px; }<br />
</span></span></span>#<span class="style1"><span class="style4">ctx-about 
{width:326px;float:right;border:1px solid 
#e5e5e5;border-radius:5px;-moz-border-radius:5px;-webkit-border-radius:5px;padding:10px;margin-top:25px;margin-right:20px;margin-left:10px;}<br />
</span></span>#<span class="style1"><span class="style4">ctx-about a.img-block {display:block;text-align:center;}<br />
</span></span>#<span class="style1"><span class="style4">ctx-about p, #ctx-about 
div {padding-left:10px;color:#9c9c9c;}<br />
</span></span>#<span class="style1"><span class="style4">ctx-about p a { 
color:gray; }<br />
</span></span>#<span class="style1"><span class="style4">ctx-ps-opts-form 
{float:left;width:765px;padding-top:0 !important;}<br />
</span></span>.<span class="style1"><span class="style4">ctx-footnote { 
color:#9C9C9C; font-style:italic; }<br />
#show-more { cursor:pointer; color:gray; visibility:hidden; }<br />
</span></span>#<span class="style1"><span class="style4">ctx-opts-table { }<br />
</span></span>.<span class="style1"><span class="style4">helptext { color:gray; 
}<br />
&lt;/style&gt;<br />
&lt;div class=&quot;wrap&quot;&gt;<br />
&lt;table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; id=&quot;ctx-opts-table&quot; 
style=&quot;border:none;width:100%;&quot;&gt;<br />
</span></span>&lt;<span class="style1"><span class="style4">tr&gt;<br />
</span><span class="style3"><span class="style4">&lt;td id=&quot;ctx-ps-opts-form&quot;&gt;<br />
&lt;div class=&quot;icon32&quot; id=&quot;icon-users&quot;&gt;&lt;br/&gt;&lt;/div&gt;<br />
&lt;h2&gt;&lt;?php _e(&#39;Adventure Journal Options&#39;,&#39;adventurejournal&#39;) ?&gt;&lt;/h2&gt;<br />
&lt;?php echo $message,$debugOpts; ?&gt;<br />
&lt;p&gt;&lt;/p&gt;<br />
&lt;form method=&quot;post&quot; action=&quot;&quot;&gt;<br />
&lt;?php wp_nonce_field(&#39;aj-options&#39;); ?&gt;<br />
&lt;p style=&quot;font-style:italic&quot;&gt;&lt;?php _e(&#39;This screen allows you to customize 
advanced options exclusive to Adventure Journal. Customizing your website has 
never been easier.&#39;,&#39;adventurejournal&#39;); ?&gt;&lt;/p&gt;<br />
<br />
<br />
&lt;div style=&quot;border-bottom:1px dotted silver;margin:2em 0 -1em 0;&quot;&gt;&lt;/div&gt;<br />
&lt;h3 class=&quot;title&quot;&gt;&lt;?php _e(&#39;Site Layout&#39;,&#39;adventurejournal&#39;); ?&gt;&lt;/h3&gt;<br />
&lt;p class=&quot;helptext&quot;&gt;&lt;?php _e(&#39;Your site can be displayed in a variety of 
different layouts. Please note that changing layouts may require you to tweak 
your widget settings. Also keep in mind that not all &lt;em&gt;page templates&lt;/em&gt; are 
compatible with all site layouts.&#39;,&#39;adventurejournal&#39;); ?&gt;&lt;/p&gt;<br />
&lt;table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; id=&quot;admin-layout&quot;&gt;<br />
</span></span></span>&lt;<span class="style1"><span class="style4">tr&gt;<br />
</span><span class="style3"><span class="style4">&lt;td &lt;?php if($AJOpts[&#39;layout&#39;] 
== &#39;col-1&#39;){echo &#39; class=&quot;active-layout&quot;&#39;;}?&gt;&gt;<br />
&lt;input name=&quot;master-layout&quot; type=&quot;radio&quot; value=&quot;col-1&quot; id=&quot;layout-1&quot; 
class=&quot;radial&quot; &lt;?php if($AJOpts[&#39;layout&#39;] == &#39;col-1&#39;){echo &#39; 
checked=&quot;checked&quot;&#39;;}?&gt;&gt;<br />
&lt;label for=&quot;layout-1&quot;&gt;<br />
&lt;div style=&quot;text-align:center;padding-bottom:5px;&quot;&gt;&lt;?php _e(&#39;1 Column&lt;br/&gt;(No 
Sidebar)&#39;,&#39;adventurejournal&#39;) ?&gt;&lt;/div&gt;<br />
</span></span></span>&lt;<span class="style1"><span class="style4">img src=&quot;&lt;?php 
echo $themeDir; ?&gt;/images/layout-opt-1col.gif&quot; alt=&quot;1 Col&quot; /&gt;<br />
&lt;/label&gt;<br />
&lt;/td&gt;<br />
&lt;td &lt;?php if($AJOpts[&#39;layout&#39;] == &#39;col-2-left&#39;){echo &#39; 
class=&quot;active-layout&quot;&#39;;}?&gt;&gt;<br />
&lt;input name=&quot;master-layout&quot; type=&quot;radio&quot; value=&quot;col-2-left&quot; id=&quot;layout-3&quot; 
class=&quot;radial&quot; &lt;?php if($AJOpts[&#39;layout&#39;] == &#39;col-2-left&#39;){echo &#39; 
checked=&quot;checked&quot;&#39;;}?&gt;&gt;<br />
&lt;label for=&quot;layout-3&quot;&gt;<br />
&lt;div style=&quot;text-align:center;padding-bottom:5px;&quot;&gt;&lt;?php _e(&#39;2 Columns &lt;br 
/&gt;(Content Left)&#39;,&#39;adventurejournal&#39;) ?&gt;&lt;/div&gt;<br />
</span></span>&lt;<span class="style1"><span class="style4">img src=&quot;&lt;?php echo $themeDir; 
?&gt;/images/layout-opt-2collt.gif&quot; alt=&quot;2 Col Lt&quot; /&gt;<br />
&lt;/label&gt;<br />
&lt;/td&gt;<br />
&lt;td &lt;?php if($AJOpts[&#39;layout&#39;] == &#39;col-2-right&#39;){echo &#39; 
class=&quot;active-layout&quot;&#39;;}?&gt;&gt;<br />
&lt;input name=&quot;master-layout&quot; type=&quot;radio&quot; class=&quot;radial&quot; id=&quot;layout-2&quot; 
value=&quot;col-2-right&quot; &lt;?php if($AJOpts[&#39;layout&#39;] == &#39;col-2-right&#39;){echo &#39; 
checked=&quot;checked&quot;&#39;;}?&gt;&gt;<br />
&lt;label for=&quot;layout-2&quot;&gt;<br />
&lt;div style=&quot;text-align:center;padding-bottom:5px;&quot;&gt;&lt;?php _e(&#39;2 Columns &lt;br 
/&gt;(Content Right)&#39;,&#39;adventurejournal&#39;) ?&gt;&lt;/div&gt;<br />
</span></span>&lt;<span class="style1"><span class="style4">img src=&quot;&lt;?php echo $themeDir; 
?&gt;/images/layout-opt-2colrt.gif&quot; alt=&quot;2 Col Rt&quot; /&gt;<br />
&lt;/label&gt;<br />
&lt;/td&gt;<br />
&lt;td &lt;?php if($AJOpts[&#39;layout&#39;] == &#39;col-3&#39;){echo &#39; class=&quot;active-layout&quot;&#39;;}?&gt;&gt;<br />
&lt;input name=&quot;master-layout&quot; type=&quot;radio&quot; class=&quot;radial&quot; id=&quot;layout-4&quot; 
value=&quot;col-3&quot; &lt;?php if($AJOpts[&#39;layout&#39;] == &#39;col-3&#39;){echo &#39; 
checked=&quot;checked&quot;&#39;;}?&gt;&gt;<br />
&lt;label for=&quot;layout-4&quot;&gt;<br />
&lt;div style=&quot;text-align:center;padding-bottom:5px;&quot;&gt;&lt;?php _e(&#39;3 Columns &lt;br/&gt;(Content 
Middle)&#39;,&#39;adventurejournal&#39;) ?&gt;&lt;/div&gt;<br />
</span></span>&lt;<span class="style1"><span class="style4">img src=&quot;&lt;?php echo $themeDir; 
?&gt;/images/layout-opt-3col.gif&quot; alt=&quot;3 Col&quot; /&gt;<br />
&lt;/label&gt;<br />
&lt;/td&gt;<br />
&lt;td &lt;?php if($AJOpts[&#39;layout&#39;] == &#39;col-3-left&#39;){echo &#39; 
class=&quot;active-layout&quot;&#39;;}?&gt;&gt;<br />
&lt;input name=&quot;master-layout&quot; type=&quot;radio&quot; class=&quot;radial&quot; id=&quot;layout-5&quot; 
value=&quot;col-3-left&quot; &lt;?php if($AJOpts[&#39;layout&#39;] == &#39;col-3-left&#39;){echo &#39; 
checked=&quot;checked&quot;&#39;;}?&gt;&gt;<br />
&lt;label for=&quot;layout-5&quot;&gt;<br />
&lt;div style=&quot;text-align:center;padding-bottom:5px;&quot;&gt;&lt;?php _e(&#39;3 Columns &lt;br/&gt;(Content 
Left)&#39;,&#39;adventurejournal&#39;) ?&gt;&lt;/div&gt;<br />
</span></span>&lt;<span class="style1"><span class="style4">img src=&quot;&lt;?php echo $themeDir; 
?&gt;/images/layout-opt-3col-lt.gif&quot; alt=&quot;3 Col Lt&quot; /&gt;<br />
&lt;/label&gt;<br />
&lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;/table&gt;<br />
<br />
<br />
<br />
&lt;div style=&quot;border-bottom:1px dotted silver;margin:1em 0 -1em 0;&quot;&gt;&lt;/div&gt;<br />
&lt;h3 class=&quot;title&quot;&gt;&lt;?php _e(&#39;Site Title &amp;amp; Description&#39;,&#39;adventurejournal&#39;); 
?&gt;&lt;/h3&gt;<br />
&lt;p class=&quot;helptext&quot;&gt;&lt;?php _e(&#39;You can choose how you want your site title to 
display. You can choose a custom image, or completely hide the paperclipped 
title scrap.&#39;,&#39;adventurejournal&#39;); ?&gt;&lt;/p&gt;<br />
&lt;table width=&quot;100%&quot; border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; class=&quot;ctx-table 
site-title admin-choosebox&quot;&gt;<br />
</span></span>&lt;<span class="style1"><span class="style4">tr&gt;<br />
</span><span class="style3"><span class="style4">&lt;td &lt;?php if($AJOpts[&#39;title-type&#39;] 
== &#39;title-default&#39;){echo &#39; class=&quot;active-layout&quot;&#39;;}?&gt;&gt;&lt;p&gt;&lt;strong&gt;&lt;?php 
_e(&#39;Default (Text Only)&#39;,&#39;adventurejournal&#39;); ?&gt;&lt;/strong&gt;&lt;/p&gt;<br />
&lt;input name=&quot;title-type&quot; value=&quot;title-default&quot; id=&quot;title-default&quot; class=&quot;radial&quot; 
type=&quot;radio&quot; &lt;?php if($AJOpts[&#39;title-type&#39;] == &#39;title-default&#39;){echo &#39; 
checked=&quot;checked&quot;&#39;;}?&gt;&gt;<br />
</span></span></span>&lt;<span class="style1"><span class="style4">img src=&quot;&lt;?php 
echo $themeDir; ?&gt;/images/title-default.jpg&quot; alt=&quot;Default Site Title&quot; 
width=&quot;200&quot; height=&quot;122&quot; /&gt; &lt;/td&gt;<br />
&lt;td &lt;?php if($AJOpts[&#39;title-type&#39;] == &#39;title-logo&#39;){echo &#39; 
class=&quot;active-layout&quot;&#39;;}?&gt;&gt;&lt;p&gt;&lt;strong&gt;&lt;?php _e(&#39;Logo (Custom Image)&#39;,&#39;adventurejournal&#39;); 
?&gt;&lt;/strong&gt;&lt;/p&gt;<br />
&lt;input name=&quot;title-type&quot; value=&quot;title-logo&quot; id=&quot;title-logo&quot; class=&quot;radial&quot; 
type=&quot;radio&quot; &lt;?php if($AJOpts[&#39;title-type&#39;] == &#39;title-logo&#39;){echo &#39; 
checked=&quot;checked&quot;&#39;;}?&gt;&gt;<br />
</span></span>&lt;<span class="style1"><span class="style4">img src=&quot;&lt;?php echo $themeDir; 
?&gt;/images/title-logo.jpg&quot; alt=&quot;Custom Logo Site Title&quot; width=&quot;200&quot; height=&quot;122&quot; 
/&gt;&lt;/td&gt;<br />
&lt;td &lt;?php if($AJOpts[&#39;title-type&#39;] == &#39;title-blank&#39;){echo &#39; 
class=&quot;active-layout&quot;&#39;;}?&gt;&gt;&lt;p&gt;&lt;strong&gt;&lt;?php _e(&#39;No Title&#39;,&#39;adventurejournal&#39;); 
?&gt;&lt;/strong&gt;&lt;/p&gt;<br />
&lt;input name=&quot;title-type&quot; value=&quot;title-blank&quot; id=&quot;title-blank&quot; class=&quot;radial&quot; 
type=&quot;radio&quot; &lt;?php if($AJOpts[&#39;title-type&#39;] == &#39;title-blank&#39;){echo &#39; 
checked=&quot;checked&quot;&#39;;}?&gt;&gt;<br />
</span></span>&lt;<span class="style1"><span class="style4">img src=&quot;&lt;?php echo $themeDir; 
?&gt;/images/title-blank.jpg&quot; alt=&quot;No Site Title&quot; width=&quot;200&quot; height=&quot;122&quot; /&gt;&lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;/table&gt;<br />
<br />
&lt;table class=&quot;form-table custom-logo&quot; &lt;?php if($AJOpts[&#39;title-type&#39;] != 
&#39;title-logo&#39;){echo &#39; style=&quot;display:none;&quot;&#39;;}?&gt;&gt;<br />
</span></span>&lt;<span class="style1"><span class="style4">tr valign=&quot;top&quot;&gt;<br />
</span></span>&lt;<span class="style1"><span class="style4">th scope=&quot;row&quot;&gt; &lt;label 
for=&quot;css-path-logo&quot;&gt;&lt;?php _e(&#39;Custom Logo Location:&#39;,&#39;adventurejournal&#39;); 
?&gt;&lt;/label&gt;&lt;br /&gt;<br />
&lt;p style=&quot;font-size:10px;&quot;&gt;&lt;?php _e(&#39;Image height should be &lt;br /&gt;less than 90 
pixels.&#39;,&#39;adventurejournal&#39;); ?&gt;&lt;/p&gt;<br />
&lt;/th&gt;<br />
&lt;td&gt;&lt;label&gt; &lt;em&gt; &lt;?php echo &#39;http://&#39;.$_SERVER[&#39;SERVER_NAME&#39;].&#39;/&#39; ?&gt;&lt;/em&gt;<br />
&lt;input type=&quot;text&quot; name=&quot;logo-path&quot; id=&quot;logo-path&quot; title=&quot;Example: 
wp-content/adventurejournal_override.css&quot; style=&quot;width:300px;font-size:10px;&quot; 
value=&quot;&lt;?php echo $AJOpts[&#39;logo-path&#39;]; ?&gt;&quot; /&gt;<br />
&lt;span style=&quot;color:red;&quot;&gt;&lt;?php if(!file_exists(ABSPATH.$AJOpts[&#39;logo-path&#39;])){ 
_e(&#39;&lt;br /&gt; Notice: File may not exist at 
&#39;.&#39;http://&#39;.$_SERVER[&#39;SERVER_NAME&#39;].&#39;/&#39;.$AJOpts[&#39;logo-path&#39;],&#39;adventurejournal&#39;); 
} ?&gt;&lt;/span&gt; &lt;/label&gt;&lt;br /&gt;<br />
&lt;p style=&quot;font-size:10px;font-style:italic;&quot;&gt;&lt;?php _e(&#39;For best results, use an 
image file with a transparent background such as png.&#39;,&#39;adventurejournal&#39;); 
?&gt;&lt;/p&gt;<br />
&lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;/table&gt;<br />
<br />
<br />
<br />
&lt;div style=&quot;border-bottom:1px dotted silver;margin:2em 0 -1em 0;&quot;&gt;&lt;/div&gt;<br />
&lt;h3 class=&quot;title&quot;&gt;&lt;?php _e(&#39;Crumbled Paper Background&#39;,&#39;adventurejournal&#39;); 
?&gt;&lt;/h3&gt;<br />
&lt;p class=&quot;helptext&quot;&gt;&lt;?php _e(&#39;By default, Adventure Journal only uses a neat 
&quot;crumbled paper with tape&quot; texture for stickied posts. If you would like this 
texture to appear on ALL post listings, choose the &quot;All Posts&quot; option below.&#39;,&#39;adventurejournal&#39;); 
?&gt;&lt;/p&gt;<br />
&lt;table width=&quot;100%&quot; border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; class=&quot;ctx-table 
site-title admin-choosebox&quot;&gt;<br />
</span></span>&lt;<span class="style1"><span class="style4">tr&gt;<br />
</span><span class="style3"><span class="style4">&lt;td &lt;?php if($AJOpts[&#39;paper-type&#39;] 
== &#39;paper-sticky&#39; || !isset($AJOpts[&#39;paper-type&#39;])){echo &#39; 
class=&quot;active-layout&quot;&#39;;}?&gt;&gt;<br />
&lt;input name=&quot;paper-type&quot; value=&quot;paper-sticky&quot; id=&quot;paper-sticky&quot; class=&quot;radial&quot; 
type=&quot;radio&quot; style=&quot;margin-top:80px;&quot; &lt;?php if($AJOpts[&#39;paper-type&#39;] == 
&#39;paper-sticky&#39; || !isset($AJOpts[&#39;paper-type&#39;])){echo &#39; checked=&quot;checked&quot;&#39;;}?&gt;&gt;<br />
&lt;label for=&quot;paper-sticky&quot; style=&quot;margin-left:0;&quot;&gt;<br />
&lt;p&gt;&lt;?php _e(&#39;&lt;strong&gt;Stickied Posts Only&lt;/strong&gt; (default)&#39;,&#39;adventurejournal&#39;); 
?&gt;&lt;/p&gt;<br />
</span></span></span>&lt;<span class="style1"><span class="style4">img src=&quot;&lt;?php 
echo $themeDir; ?&gt;/images/options-crumble-sticky.jpg&quot; alt=&quot;Default Site Title&quot; 
width=&quot;200&quot; height=&quot;122&quot; /&gt; &lt;/td&gt;<br />
&lt;/label&gt;<br />
&lt;td &lt;?php if($AJOpts[&#39;paper-type&#39;] == &#39;paper-all&#39;){echo &#39; 
class=&quot;active-layout&quot;&#39;;}?&gt;&gt;<br />
&lt;input name=&quot;paper-type&quot; value=&quot;paper-all&quot; id=&quot;paper-all&quot; class=&quot;radial&quot; 
type=&quot;radio&quot; style=&quot;margin-top:80px;&quot; &lt;?php if($AJOpts[&#39;paper-type&#39;] == 
&#39;paper-all&#39;){echo &#39; checked=&quot;checked&quot;&#39;;}?&gt;&gt;<br />
&lt;label for=&quot;paper-all&quot; style=&quot;margin-left:0;&quot;&gt;<br />
&lt;p&gt;&lt;?php _e(&#39;&lt;strong&gt;All Posts&lt;/strong&gt;&#39;,&#39;adventurejournal&#39;); ?&gt;&lt;/p&gt;<br />
</span></span>&lt;<span class="style1"><span class="style4">img src=&quot;&lt;?php echo $themeDir; 
?&gt;/images/options-crumble-all.jpg&quot; alt=&quot;Default Site Title&quot; width=&quot;200&quot; 
height=&quot;122&quot; /&gt; &lt;/td&gt;<br />
&lt;/label&gt;<br />
&lt;td style=&quot;width:240px;background:transparent !important;&quot;&gt;&lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;/table&gt;<br />
<br />
<br />
<br />
&lt;div style=&quot;border-bottom:1px dotted silver;margin:2em 0 -1em 0;&quot;&gt;&lt;/div&gt;<br />
&lt;h3 class=&quot;title&quot;&gt;&lt;?php _e(&#39;Custom Stylesheet&#39;,&#39;adventurejournal&#39;); ?&gt;&lt;/h3&gt;<br />
&lt;p class=&quot;helptext&quot;&gt;&lt;?php _e(&#39;You can use a custom stylesheet to override the 
default Adventure Journal styles.<br />
We suggest you keep the custom css file in the &lt;code&gt;/wp-content/&lt;/code&gt;<br />
directory so that upgrades to WordPress or Adventure Journal don\&#39;t erase your 
CSS.&#39;,&#39;adventurejournal&#39;) ?&gt;&lt;/p&gt;<br />
&lt;table class=&quot;form-table&quot; style=&quot;margin-bottom:0;&quot;&gt;<br />
</span></span>&lt;<span class="style1"><span class="style4">tr valign=&quot;top&quot;&gt;<br />
</span></span>&lt;<span class="style1"><span class="style4">th scope=&quot;row&quot;&gt;<br />
</span><span class="style3"><span class="style4">&lt;label for=&quot;filter-menu&quot;&gt;&lt;?php 
_e(&#39;CSS File Location:&#39;,&#39;adventurejournal&#39;) ?&gt;&lt;/label&gt;<br />
&lt;/th&gt;<br />
&lt;td&gt;<br />
&lt;label&gt;<br />
&lt;?php echo &#39;http://&#39;.$_SERVER[&#39;SERVER_NAME&#39;].&#39;/&#39; ?&gt;<br />
&lt;input type=&quot;text&quot; name=&quot;css-path&quot; id=&quot;css-path&quot; title=&quot;Example: 
wp-content/adventurejournal_override.css&quot; style=&quot;width:300px;font-size:10px;&quot; 
value=&quot;&lt;?php echo $AJOpts[&#39;css-path&#39;]; ?&gt;&quot; /&gt; &lt;br /&gt;&lt;span style=&quot;color:red;&quot;&gt;&lt;?php 
if(!file_exists(ABSPATH.$AJOpts[&#39;css-path&#39;])){ _e(&#39;Notice: File may not exist at 
&#39;.&#39;http://&#39;.$_SERVER[&#39;SERVER_NAME&#39;].&#39;/&#39;.$AJOpts[&#39;css-path&#39;].&#39; &#39;,&#39;adventurejournal&#39;); 
} ?&gt;&lt;/span&gt;&lt;br/&gt;<br />
&lt;/label&gt;<br />
&lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;/table&gt;<br />
<br />
<br />
&lt;div style=&quot;border-bottom:1px dotted silver;margin:.5em 0 -1em 0;&quot;&gt;&lt;/div&gt;<br />
&lt;h3 class=&quot;title&quot;&gt;&lt;?php _e(&#39;Custom Header Size&#39;,&#39;adventurejournal&#39;); ?&gt;&lt;/h3&gt;<br />
&lt;p class=&quot;helptext&quot;&gt;&lt;?php echo sprintf(__(&#39;To change the vertical size of the 
header image, first enter a value in below, save changes and then upload your 
image on the &lt;a href=&quot;%s&quot;&gt;header page&lt;/a&gt;. The default value is 360.&#39;,&#39;adventurejournal&#39;),admin_url().&#39;themes.php?page=custom-header&#39;); 
?&gt;&lt;/p&gt;<br />
&lt;p&gt;920 x &lt;input type=&quot;text&quot; name=&quot;header-height&quot; id=&quot;header-height&quot; value=&quot;&lt;?php 
echo (!empty($AJOpts[&#39;header-height&#39;])) ? $AJOpts[&#39;header-height&#39;] :&#39;360&#39;; ?&gt;&quot; 
size=&quot;6&quot; /&gt; pixels&lt;/p&gt;<br />
<br />
<br />
&lt;div style=&quot;border-bottom:1px dotted silver;margin:2em 0 -1em 0;&quot;&gt;&lt;/div&gt;<br />
&lt;h3 class=&quot;title&quot;&gt;&lt;?php _e(&#39;Featured Header Images&#39;,&#39;adventurejournal&#39;); ?&gt;&lt;/h3&gt;<br />
&lt;p class=&quot;helptext&quot;&gt;&lt;?php _e(&#39;Enable this option if you would like featured 
images to replace your site header on single pages. When enabled, featured 
images will no longer appear in blog listings.&#39;,&#39;adventurejournal&#39;); ?&gt;&lt;/p&gt;<br />
&lt;p&gt;&lt;label&gt;&lt;input type=&quot;checkbox&quot; name=&quot;featured-header&quot; &lt;?php echo ($AJOpts[&#39;featured-header&#39;]===&#39;true&#39;) 
? &#39;checked=&quot;checked&quot;&#39; : &#39;&#39;; ?&gt;/&gt; &lt;strong&gt;&lt;?php _e(&#39;Use featured images as custom 
site header, if available&#39;,&#39;adventurejournal&#39;); ?&gt;&lt;/strong&gt;&lt;/label&gt;&lt;/p&gt;<br />
&lt;p&gt;&lt;span style=&quot;font-style:italic;color:silver;font-size:0.8em;&quot;&gt;&lt;?php echo 
sprintf(__(&#39;Note: If your featured images aren\&#39;t appearing after you enable 
this option, first ensure that your header images are &lt;em&gt;at least&lt;/em&gt; 920 
pixels wide. If you\&#39;re still having trouble, please use the %s plugin to update 
your currently-saved header images.&#39;,&#39;adventurejournal&#39;),&#39;&lt;a style=&quot;color:silver&quot; 
href=&quot;http://wordpress.org/extend/plugins/regenerate-thumbnails/&quot;&gt;Regenerate 
Thumbnails&lt;/a&gt;&#39;); ?&gt;&lt;/span&gt;&lt;/p&gt;<br />
<br />
<br />
&lt;div style=&quot;border-bottom:1px dotted silver;margin:2em 0 -1em 0;&quot;&gt;&lt;/div&gt;<br />
&lt;h3 class=&quot;title&quot;&gt;&lt;?php _e(&#39;Browser Update Helper&#39;,&#39;adventurejournal&#39;); ?&gt;&lt;/h3&gt;<br />
&lt;p class=&quot;helptext&quot;&gt;&lt;?php _e(&#39;Adventure Journal now includes a customized 
version of the upcoming &quot;Browser Update Helper&quot; plugin, a new initiative meant 
to speed up adoption of newer, faster, more secure web browsers. This feature 
temporarily displays an attractive, helpful notice at the top of the site when a 
users browser is badly out of date. Leaving this feature on &lt;em&gt;will&lt;/em&gt; make 
the web a better, safer place. To disable this feature, uncheck the box 
below.&#39;,&#39;adventurejournal&#39;); ?&gt;&lt;/p&gt;<br />
&lt;p&gt;&lt;label&gt;&lt;input type=&quot;checkbox&quot; name=&quot;browser-helper&quot; &lt;?php echo ($AJOpts[&#39;browser-helper&#39;]===&#39;true&#39; 
|| !isset($AJOpts[&#39;browser-helper&#39;])) ? &#39;checked=&quot;checked&quot;&#39; : &#39;&#39;; ?&gt;/&gt; 
&lt;strong&gt;&lt;?php _e(&#39;Make the web a better, safer place&#39;,&#39;adventurejournal&#39;); 
?&gt;&lt;/strong&gt;&lt;/label&gt;&lt;/p&gt;<br />
<br />
&lt;!--<br />
&lt;div style=&quot;border-bottom:1px dotted silver;margin:2em 0 -1em 0;&quot;&gt;&lt;/div&gt;<br />
&lt;h3 class=&quot;title&quot;&gt;&lt;?php _e(&#39;Layout&#39;,&#39;adventurejournal&#39;); ?&gt;&lt;/h3&gt;<br />
&lt;p class=&quot;helptext&quot;&gt;&lt;?php echo sprintf(__(&#39;If you would like to change the 
site\&#39;s layout (number of columns), visit the &lt;a href=&quot;%s&quot;&gt;layout screen&lt;/a&gt;&#39;,&#39;adventurejournal&#39;),admin_url().&#39;themes.php?page=theme-layouts&#39;); 
?&gt;&lt;/p&gt;<br />
--&gt;<br />
</span></span></span>&lt;<span class="style1"><span class="style4">br/&gt;<br />
</span><span class="style3"><span class="style4">&lt;p&gt;<br />
&lt;input type=&quot;submit&quot; name=&quot;Submit&quot; class=&quot;button-primary&quot; value=&quot;&lt;?php _e(&#39;Save 
Changes&#39;) ?&gt;&quot; /&gt;<br />
&lt;/p&gt;<br />
&lt;/form&gt;<br />
&lt;/td&gt;<br />
&lt;td style=&quot;vertical-align:top;&quot;&gt;<br />
&lt;div id=&quot;ctx-about&quot;&gt;<br />
&lt;a class=&quot;img-block&quot; href=&quot;http://www.contextureintl.com&quot;&gt;&lt;img src=&quot;&lt;?php echo 
get_template_directory_uri().&#39;/images/ctx-logo.gif&#39;; ?&gt;&quot; alt=&quot;Contexture 
International&quot; /&gt;&lt;/a&gt;<br />
&lt;p&gt;Contexture International is an all-in-one agency specializing in &lt;a href=&quot;http://www.contextureintl.com/portfolio/graphic-design/&quot;&gt;graphic 
design&lt;/a&gt;, &lt;a href=&quot;http://www.contextureintl.com/portfolio/web-interactive/&quot;&gt;web 
design&lt;/a&gt;, and &lt;a href=&quot;http://www.contextureintl.com/portfolio/broadcast-video-production/&quot;&gt;broadcast 
and video production&lt;/a&gt;, with an unparalleled ability to connect with the heart 
of your audience.&lt;/p&gt;<br />
&lt;p&gt;Contexture&#39;s staff has successfully promoted organizations and visionaries 
for more than 2 decades through exceptional storytelling, in just the right 
contexts for their respective audiences, with overwhelming returns on 
investment. See the proof in our &lt;a href=&quot;http://www.contextureintl.com/portfolio/&quot;&gt;portfolio 
&lt;/a&gt;or learn more &lt;a href=&quot;http://www.contextureintl.com/about-us/&quot;&gt;about 
us&lt;/a&gt;.&lt;/p&gt;<br />
&lt;div&gt;&lt;a href=&quot;http://www.contextureintl.com/&quot;&gt;Need a custom web or video 
project?&lt;/a&gt;&lt;/div&gt;<br />
&lt;div&gt;&lt;a href=&quot;http://www.contextureintl.com/wordpress/adventure-journal-wordpress-theme/&quot;&gt;Need 
help with Adventure Journal?&lt;/a&gt;&lt;/div&gt;<br />
&lt;/div&gt;<br />
&lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;/table&gt;<br />
&lt;/div&gt;</span></span></span></p>
<p class="style2">&nbsp;</p>

</body>

</html>
