Made some rework of your script.
My version makes preview of the article on the main page if the article is more then number of words set at the beginning of the script with "...more" link to full article.
Also fixed the issue when date was updated after editing the article - it's senceless when you fix some error in the 'news' article and new article's posting time appeared.
My version makes preview of the article on the main page if the article is more then number of words set at the beginning of the script with "...more" link to full article.
Also fixed the issue when date was updated after editing the article - it's senceless when you fix some error in the 'news' article and new article's posting time appeared.