Posted by on April 7, 2015

Sometimes it is very difficut for us to publish an article if all the articles have 2 or more different articles resources from other sites. In this cases, we can not copy directly. We can use PHP code:


if()
{
}
elseif
{
}
else
{
}

For example, if an artile has resoures, we will publish the resources directly, if not, we can publish the aticle writer at the place of resources, if still does not have a writer, we can publish something else at the place of resouce, at EmpireCMS template, add the following code at proper place:


Posted in: PHP Skills

Comments

Be the first to comment.

Leave a Reply