{% extends "_layouts/elementindex" %} {% set title = "Entries"|t %} {% set elementType = 'Entry' %} {% set sections = craft.sections.getEditableSections() %} {% set newEntrySections = [] %} {% for section in sections %} {% if section.type != 'single' and currentUser.can('createEntries:'~section.id) %} {% set newEntrySections = newEntrySections|merge([section]) %} {% endif %} {% endfor %} {% block sidebar %} {% if newEntrySections|length %}
{% if newEntrySections|length > 1 %} {% else %} {{ "New Entry"|t }} {% endif %}
{% endif %} {{ parent() }} {% endblock %} {% if sectionHandle is defined %} {% includeJs 'window.defaultSectionHandle = "'~sectionHandle~'";' %} {% endif %}