{% extends "_layouts/elementindex" %} {% set title = "Entries"|t %} {% set elementType = 'Entry' %} {% set sections = craft.sections.getEditableSections() %} {% set newEntrySections = [] %} {% for section in sections %} {% if user.can('createEntries:'~section.id) %} {% set newEntrySections = newEntrySections|merge([section]) %} {% endif %} {% endfor %} {% block sidebar %} {% if sections|length %} {% if craft.hasPackage('PublishPro') %} {% if newEntrySections|length %}
{% endif %} {% else %} {% if user.can('createEntries:'~sections[0].id) %} {% endif %} {% endif %} {% endif %} {{ parent() }} {% endblock %}