{{if $database->can('add') or \IPS\Member::loggedIn()->member_id}}
{{endif}}
{{if \count($articles)}}
{{foreach $articles as $id => $record}}
{{if $id == 0}}
{template="entry" app="cms" location="database" group="category_2_column_first_featured" params="$record, $database, 0"}
{{else}}
{{if $id % 2}}
{{endif}}
{template="entry" app="cms" location="database" group="category_2_column_first_featured" params="$record, $database, $id"}
{{if $id % 2 == 0 or ( \count( $articles ) == ( $id + 1) )}}
{{endif}}
{{endif}}
{{endforeach}}
{{endif}}
{{if $database->featured_settings['pagination'] and ( $pagination['pages'] > 1 )}}
{template="pagination" app="core" location="global" group="global" params="$url, $pagination['pages'], $pagination['page'], $database->featured_settings['perpage'], TRUE, 'page'"}
{{endif}}