{% requireAdmin %} {% extends "_layouts/cp" %} {% set title = "Plugins"|t %} {% includecssresource "css/plugins.css" %} {% set crumbs = [ { label: "Settings"|t, url: url('settings') } ] %} {% set docsUrl = 'http://craftcms.com/docs/plugins/introduction' %} {% set plugins = craft.plugins.getPlugins(false) %} {% block content %} {% if plugins|length %} {% for plugin in plugins %} {% set name = plugin.getName() -%} {% set description = plugin.getDescription() -%} {% set classHandle = plugin.getClassHandle() -%} {% set isInstalled = plugin.isInstalled() -%} {% set isEnabled = plugin.isEnabled() -%} {% set settingsUrl = isEnabled ? plugin.getSettingsUrl() -%} {% set developerUrl = plugin.getDeveloperUrl() -%} {% set documentationUrl = plugin.getDocumentationUrl() -%} {% endfor %}
{{ "Plugin"|t }} {{ "Developer"|t }} {{ "Documentation"|t }} {{ "Status"|t }}
{{ name }} {{ plugin.getVersion() }}
{% if description %}
{{ description }}
{% endif %}
{{ plugin.getDeveloper() }} {% if documentationUrl %} {{ "View Documentation"|t }} {% else %} {% endif %} {% if isInstalled %}
{{ getCsrfInput() }} {% if isEnabled %} {{ "Enabled"|t }}  {% else %} {{ "Disabled"|t }}  {% endif %}
{% else %} {{ "Not installed"|t }} {% endif %}
{% if settingsUrl %} {% endif %}
{{ getCsrfInput() }} {% if isInstalled %}
{{ 'Uninstall'|t }}
{% else %}
{{ 'Install'|t }}
{% endif %}
{% else %}

{{ "There are no available plugins."|t }} {% endif %} {% endblock %}