Site Changelog/archive template

From BlogNomic Wiki
Revision as of 17:01, 21 January 2023 by Kevan (talk | contribs) (Created page with "This is an occasional copy of the blognomic/archive template, so that it can be compared against past versions more easily, over time. See the page footer and/or history for w...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This is an occasional copy of the blognomic/archive template, so that it can be compared against past versions more easily, over time. See the page footer and/or history for when this was last updated.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
{exp:channel:entries weblog="{my_weblog}" status="not closed" limit="1" require_entry="yes" url_title="{segment_3}"}
  {if no_results}
    {redirect="404"}
  {/if}
{/exp:channel:entries}

{exp:weblog:entries weblog="{my_weblog}" status="not closed"}
	<title>BlogNomic: {title}</title>	

<meta name="twitter:card" content="summary" />
<meta name="twitter:site" content="@blognomic" />
<meta name="twitter:title" content="BlogNomic: {title}" />
<meta name="title" content="BlogNomic: {title}"/>
<meta name="author" content="{author}">

{/exp:weblog:entries}

{embed="blognomic/head"}

<script type="text/javascript">
function addSmiley(sDesc, sURL){
var commentField = document.getElementById('comment');
var strText = commentField.value;
strText += ' :';
strText += sDesc;
strText += ': ';
commentField.value = strText; }
</script>

</head>

<body class="archive">

<div id="content">

<div id="header" align="left">  
{embed="blognomic/dynastic_banner"}
</div>

<div id="main"><div id="main2">


{if logged_in}
<?php
$SESS = ee()->session;
$member = $SESS->userdata['member_id'];
$group = $SESS->userdata['group_id'];
$pmcount = $SESS->userdata['private_messages'];
$votes = array(); $matches = array();
?>
{/if}

{embed="blognomic/posts" day_limit="999999"}

  	  <div id="comments">  
		  <h3>Comments</h3>
			{exp:comment:entries channel="blognomic" pagination="both"}
			
				<div class="comment">
					<?php $last_comment = '{comment}'; ?>
					<h3 id="comment{comment_id}"><a href="/member/{author_id}">{name}</a>: {embed="blognomic/emperor_tag" input="{name}"}{embed="blognomic/pronoun_tag" input="{pronouns}" input2='{showmypronouns}'}</h3>
					<div class="commentdate">{gmt_comment_date format="%d-%m-%Y  %H:%i:%s UTC"}</div>
					<div class="commentbody"><?php echo($last_comment); ?></div>
</div>
				{if no_results}
					<p id="noresults">No comments posted yet</p>
				{/if}
				
				{paginate}
					<p>Page {current_page} of {total_pages} pages {pagination_links}</p>
				{/paginate}
			{/exp:comment:entries}
			{exp:comment:preview}
             <div class="comment" id="preview">
					<h3>Preview of your comment:</h3>
					<div class="commentdate">{comment_date format="%d-%m-%Y  %H:%i:%s UTC"}</div>
					{comment}
				</div>
            {/exp:comment:preview}
			
  	  </div>
{exp:channel:entries channel="blognomic" limit="1" rdf="off"}
{if allow_comments}
          <!-- Comment field goes here -->
  	  {exp:comment:form preview="blognomic/archive" channel="blognomic"}
        
	  	{if logged_out}
	      You must be <a href="{path=member/register}">register</a>ed and <a href="{path=member/profile}">logged in</a> to post comments.
	  	{/if}
         {if logged_in}
		 
         	        <dl id="commentformfields">
	      <dt><label for="Comment">Comment: </label>
<a href="javascript:addSmiley('FOR', '
//blognomic.com/images/vote/for.gif')"><img border=0 src="https://blognomic.com/images/vote/for.gif"></a>
<a href="javascript:addSmiley('AGAINST', 'https://blognomic.com/images/vote/against.gif')"><img border=0 src="https://blognomic.com/images/vote/against.gif"></a>
<a href="javascript:addSmiley('IMPERIAL', 'https://blognomic.com/images/vote/imperial.gif')"><img border=0 src="https://blognomic.com/images/vote/imperial.gif"></a>
<a href="javascript:addSmiley('VETO', 'https://blognomic.com/images/vote/seal.gif')"><img border=0 src="https://blognomic.com/images/vote/seal.gif"></a>
<a href="javascript:addSmiley('ARROW', 'https://blognomic.com/images/vote/arrow.gif')"><img border=0 src="https://blognomic.com/images/vote/arrow.gif"></a></dt> 

	  	<dd><textarea id="comment" name="comment" cols="65" rows="14">{comment}</textarea></dd>

	  	</dl>

	  	<p><input type="checkbox" name="notify_me" value="yes" {notify_me} /> Notify me of follow-up comments</p>
		<p><input type="submit" name="submit" value="Submit" />
<input type="submit" name="preview" value="Preview" /></p>
        {/if}
  {/exp:comment:form}
 {/if}
{/exp:channel:entries}






</div></div>
<!-- End #main -->



<!-- Begin #sidebar -->
{embed="blognomic/sidebar"}
<!-- End #sidebar -->


</div> <!-- // #content // -->






<div id="footer"><hr />
  <p>{elapsed_time}</p>
</div>


<?php /*
  global $TMPL;
  print_r($TMPL->depth); */ ?>


</body>
</html>