diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..bf02210 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,11 @@ +name: CI + +on: + push: + pull_request: + workflow_dispatch: + +jobs: + ci: + name: CI + uses: silverstripe/gha-ci/.github/workflows/ci.yml@v1 diff --git a/.gitignore b/.gitignore index a056789..4cdc44a 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ composer.lock /resources/ .phpunit.result.cache +/assets diff --git a/readme.md b/readme.md index 2829197..a4bbc50 100644 --- a/readme.md +++ b/readme.md @@ -1,6 +1,5 @@ # SilverStripe Elemental Virtual -[![Build Status](http://img.shields.io/travis/dnadesign/silverstripe-elemental-virtual.svg?style=flat)](https://travis-ci.org/dnadesign/silverstripe-elemental-virtual) [![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/dnadesign/silverstripe-elemental-virtual/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/dnadesign/silverstripe-elemental-virtual/?branch=master) [![codecov](https://codecov.io/gh/dnadesign/silverstripe-elemental-virtual/branch/master/graph/badge.svg)](https://codecov.io/gh/dnadesign/silverstripe-elemental-virtual) [![Version](http://img.shields.io/packagist/v/dnadesign/silverstripe-elemental-virtual.svg?style=flat)](https://packagist.org/packages/dnadesign/silverstripe-elemental-virtual) @@ -14,5 +13,5 @@ linked to multiple pages. ## Installation ``` -composer require dnadesign/silverstripe-elemental-virtual 1.x-dev +composer require dnadesign/silverstripe-elemental-virtual ^1 ``` diff --git a/src/Control/ElementVirtualLinkedController.php b/src/Control/ElementVirtualLinkedController.php index aeb2d1f..b45bab0 100644 --- a/src/Control/ElementVirtualLinkedController.php +++ b/src/Control/ElementVirtualLinkedController.php @@ -7,17 +7,6 @@ class ElementVirtualLinkedController extends ElementController { - - /** - * Returns the current element in scope rendered into its' holder - * - * @return HTML - */ - public function ElementHolder() - { - return $this->renderWith('ElementHolder_VirtualLinked'); - } - /** * @param string $action * diff --git a/templates/DNADesign/Elemental/Layout/ElementHolder_VirtualLinked.ss b/templates/DNADesign/Elemental/Layout/ElementHolder_VirtualLinked.ss new file mode 100644 index 0000000..4339cf3 --- /dev/null +++ b/templates/DNADesign/Elemental/Layout/ElementHolder_VirtualLinked.ss @@ -0,0 +1,5 @@ +<% if $LinkedElement %> +