<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt" %>
<%@ taglib uri="infoglue-management" prefix="management" %>
<%@ taglib uri="infoglue-content" prefix="content" %>
<%@ taglib uri="infoglue-common" prefix="common" %>
<%@ taglib uri="infoglue-page" prefix="page" %>
<%@ taglib uri="infoglue-structure" prefix="structure" %>

<page:pageContext id="pc"/>

<content:contentAttribute id="headline" propertyName="PuffArticle" attributeName="Title" useInheritance="false"/>
<content:contentAttribute id="fullText" propertyName="PuffArticle" attributeName="FullText" useInheritance="false"/>
<c:if test="${empty title}">
	<structure:componentPropertyValue id="headline" propertyName="Headline" useInheritance="false"/>
</c:if>
<structure:boundPage id="readMorePage" propertyName="ReadMorePage" useInheritance="false"/>

<div class="cssbox">  
	<h2 class="cssbox_head"><c:out value="${headline}" default="No title or headline" escapeXml="false"/></h2>
	<div class="cssbox_body">
		<c:out value="${fullText}" default="No article assigned or no FullText entered." escapeXml="false"/>
	</div> 
	<c:choose>
		<c:when test="${readMorePage != null}">
			<div class="cssbox_blue_footer"><a href="<c:out value="${readMorePage.url}" escapeXml="false"/>">Read more</a></div> 
		</c:when>
		<c:otherwise>
			<div class="cssbox_white_footer"></div> 
		</c:otherwise>
	</c:choose>
</div>