diff --git a/composer.json b/composer.json index a55741f..b9bef5b 100644 --- a/composer.json +++ b/composer.json @@ -18,7 +18,7 @@ "authors": [ { "name": "Mats Mikkel Rummelhoff", - "homepage": "http://mmikkel.no" + "homepage": "https://vaersaagod.no" } ], "require": { diff --git a/src/fieldlayoutelements/EditSourceLink.php b/src/fieldlayoutelements/EditSourceLink.php deleted file mode 100644 index ebf7c40..0000000 --- a/src/fieldlayoutelements/EditSourceLink.php +++ /dev/null @@ -1,29 +0,0 @@ - - {{ label }} - diff --git a/src/templates/edit-category-group-link.twig b/src/templates/edit-category-group-link.twig deleted file mode 100644 index e78bab5..0000000 --- a/src/templates/edit-category-group-link.twig +++ /dev/null @@ -1,12 +0,0 @@ -{% if category ?? null %} - - {% set editUri = 'settings/categories/' ~ category.groupId %} - {% set label = 'Edit Category Group'|t('cp-field-inspect') %} - -
-

- {% include 'cp-field-inspect/_includes/edit-source-link.twig' %} -

-
- -{% endif %} diff --git a/src/templates/edit-commerce-product-type-link.twig b/src/templates/edit-commerce-product-type-link.twig deleted file mode 100644 index 42d87e3..0000000 --- a/src/templates/edit-commerce-product-type-link.twig +++ /dev/null @@ -1,12 +0,0 @@ -{% if product ?? null %} - - {% set editUri = 'commerce/settings/producttypes/' ~ product.typeId %} - {% set label = 'Edit Product Type'|t('cp-field-inspect') %} - -
-

- {% include 'cp-field-inspect/_includes/edit-source-link.twig' %} -

-
- -{% endif %} diff --git a/src/templates/edit-entry-type-link.twig b/src/templates/edit-entry-type-link.twig deleted file mode 100644 index 424ddf8..0000000 --- a/src/templates/edit-entry-type-link.twig +++ /dev/null @@ -1,30 +0,0 @@ -{% if entry ?? null %} - - {% set entryTypes = null %} - - {% if entry.sectionId|default %} - {% set section = entry.getSection() %} - {% set entryTypes = section.getEntryTypes() %} - {% elseif entry.typeId|default %} - {% set entryTypes = [craft.app.entries.getEntryTypeById(entry.typeId)]|filter %} - {% endif %} - - {% if entryTypes %} - - {% set label = 'Edit Entry Type'|t('cp-field-inspect') %} - -
-

- {% for entryType in entryTypes %} - {% set editUri = "settings/entry-types/#{entryType.id}" %} - {{ include('cp-field-inspect/_includes/edit-source-link.twig')|attr({ - 'data-typeid': entryType.id, - style: entryType.id != entry.typeId ? 'display:none;' : false - }) }} - {% endfor %} -

-
- - {% endif %} - -{% endif %} diff --git a/src/templates/edit-globalset-link.twig b/src/templates/edit-globalset-link.twig deleted file mode 100644 index 0cc0d26..0000000 --- a/src/templates/edit-globalset-link.twig +++ /dev/null @@ -1,12 +0,0 @@ -{% if globalSet ?? null %} - - {% set editUri = 'settings/globals/' ~ globalSet.id %} - {% set label = 'Edit Global Set'|t('cp-field-inspect') %} - -
-

- {% include 'cp-field-inspect/_includes/edit-source-link.twig' %} -

-
- -{% endif %} diff --git a/src/templates/edit-users-link.twig b/src/templates/edit-users-link.twig deleted file mode 100644 index 753ecf5..0000000 --- a/src/templates/edit-users-link.twig +++ /dev/null @@ -1,12 +0,0 @@ -{% if user ?? null and user.id %} - - {% set editUri = 'settings/users/fields' %} - {% set label = 'Edit Users Settings'|t('cp-field-inspect') %} - -
-

- {% include 'cp-field-inspect/_includes/edit-source-link.twig' %} -

-
- -{% endif %} diff --git a/src/templates/edit-volume-link.twig b/src/templates/edit-volume-link.twig deleted file mode 100644 index 396a3a4..0000000 --- a/src/templates/edit-volume-link.twig +++ /dev/null @@ -1,12 +0,0 @@ -{% if asset ?? null %} - - {% set editUri = 'settings/assets/volumes/' ~ asset.volumeId %} - {% set label = 'Edit Volume'|t('cp-field-inspect') %} - -
-

- {% include 'cp-field-inspect/_includes/edit-source-link.twig' %} -

-
- -{% endif %}