/i','',$Text);
if ($x>0 && strlen($TextWithoutCodes)>$MaxEntrySize) /* Keep all but latest individual entries on main page to certain maximum length */
{
$CutText=substr($Text,0,$MaxEntrySize);
$CutTextWithoutCodes=preg_replace('/\<.*?\>/i','',$CutText);
$AdvancePoint=$MaxEntrySize;
while (strlen($CutTextWithoutCodes)<$MaxEntrySize)
{
$CutText.=substr($Text,$AdvancePoint,$MaxEntrySize-strlen($CutTextWithoutCodes));
$AdvancePoint+=$MaxEntrySize-strlen($CutTextWithoutCodes);
$CutTextWithoutCodes=preg_replace('/\<.*?\>/i','',$CutText);
}
$Text=$CutText;
$Text=substr($Text,0,strrpos($Text,"" catches errant Microsoft coding */
if (substr($Text,-6)=="") /* If block quote ends the cut text, "Click here" should fall right under it */
{$Text=substr($Text,0,strlen($Text)-6);}
$LastIndent=substr($Text,strrpos($Text,"indentboth")); /* If in block quote, get out of indenting before "Click here ..." */
if (strlen($LastIndent)==strlen($Text) || substr_count($LastIndent,"")>=1)
{$Text.="
";}
$Text.="Click here to continue ...";
}
$TDClass=null;
if ($x>0)
{echo "
";}
echo " |
";
echo " ";
echo " ".$Title." ";
echo "".$Writer[$AuthID]." (".date("F j, Y, g:i a",strtotime($Time)).")
";
echo " |
".$Text;
/* SOCIAL MEDIA TABS */
$EncodedJCPageLink=urlencode("http:/www.jerseyconservative.com/".$Filename.".html");
echo "";
echo "";
echo " | ";
echo " | ";
echo "
";
$NumPageChars+=FBListing("Excerpts",$FBInfo,$WriterList,$ItemID,$MaxFB,$MaxFBChars);
}
}
else
{echo "There are no blog entries presently available.";}
StandardTableClose();
Conclude(true);
?>
|