/*
Template?Name:?Article
*/
?>
//?Get?article?index?(if?available)
$index?=?get_post_meta($post->ID,?'index',?true);
//?Available?
if?(!empty($index))?{
????$index?=?explode("\n",?$index);
????//?Current?page?
????if?($page?<=?count($index))?{
????????$current?=?$index[$page-1];
????}
????//?Previous?page?
????if?($page-1?<=?count($index)?AND?$page-1?>=?1)?{
????????$previous?=?$index[$page-2];
????}
????//?Previous?page?
????if?($page+1?<=?count($index))?{
????????$next?=?$index[$page];
????}
????//?Total?pages:
????$total?=?count($index);
}
?>
????????????('«?Previous?%',?'',?'yes',?'yes')??>
????????????('%?Next?»',?'',?'yes',?'yes')??>
????????
????
????????();??>">
????????????();??>
????????????(Page?echo?$page;??>?out?of?echo?$total;??>)
????
????????????
????????????????('Read?the?rest?of?this?entry?»
');??>
????????????????(''
,?'',?'next',?'Next:?'?.?$next?.?'?»',?'«?Previous:?'?.?$previous?.?'');??>
????????????????
????????????????
????????????????
????????- Article?Index
????????- ????
????????????if?(is_array($index)):??>
????????????????
????????????????????for?($i?=?0;?$i?count($index);?$i++):??>
????????????????????????????????
????????????????????????echo?get_permalink($post->ID)?.?($i+1);??>/">echo?$index[$i];??>
????????????????????
????????????????????endfor;??>
????????????????
????????????else:??>
????????????????Article?index?not?available.
????????????endif;??>
????????
????
????
????????????????
????????????????????
????????????????????????This?article?was?posted
????????????????????????/*?This?is?commented,?because?it?requires?a?little?adjusting?sometimes.
????????????????????????????You'll?need?to?download?this?plugin,?and?follow?the?instructions:
????????????????????????????http://binarybonsai.com/archives/2004/08/17/time-since-plugin/?*/
????????????????????????????/*?$entry_datetime?=?abs(strtotime($post->post_date)?-?(60*120));?echo?time_since($entry_datetime);?echo?'?ago';?*/??>?
????????????????????????on?('l,?F?jS,?Y')??>?at?()??>.
????????????????????????You?can?follow?any?responses?to?this?article?through?the?('RSS?2.0');??>?feed.?
????????????????????????
????????????????????????if?(('open'?==?$post->?comment_status)?&&?('open'?==?$post->ping_status))?{
????????????????????????????//?Both?Comments?and?Pings?are?open??>
????????????????????????????You?can?leave?a?response,?or?(true);??>"?rel="trackback">trackback?from?your?own?site.
????????????????????????
????????????????????????}?elseif?(!('open'?==?$post->?comment_status)?&&?('open'?==?$post->ping_status))?{
????????????????????????????//?Only?Pings?are?Open??>
????????????????????????????Responses?are?currently?closed,?but?you?can?(true);??>?"?rel="trackback">trackback?from?your?own?site.
????????????????????????
????????????????????????}?elseif?(('open'?==?$post->?comment_status)?&&?!('open'?==?$post->ping_status))?{
????????????????????????????//?Comments?are?open,?Pings?are?not??>
????????????????????????????You?can?skip?to?the?end?and?leave?a?response.?Pinging?is?currently?not?allowed.
????????????
????????????????????????}?elseif?(!('open'?==?$post->?comment_status)?&&?!('open'?==?$post->ping_status))?{
????????????????????????????//?Neither?Comments,?nor?Pings?are?open??>
????????????????????????????Both?comments?and?pings?are?currently?closed.????????????
????????????????????????
????????????????????????}?edit_post_link('Edit?this?article.','','');??>
????????????????????????
????????????????????
????????????????
????
????????????
????????
????????
????();??>
????