Skip to content

Commit

Permalink
Added phpcq requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmaack committed Feb 23, 2016
1 parent 53f5300 commit b1eeb9f
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 18 deletions.
3 changes: 3 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@
"contao-community-alliance/composer-installer":"*",
"menatwork/contao-multicolumnwizard":"~3.2"
},
"require-dev":{
"phpcq/phpcq": "~1.0"
},
"autoload": {
"psr-4": {
"SemanticHTML5\\": "src/"
Expand Down
35 changes: 35 additions & 0 deletions src/Elements/End.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<?php

/**
* Contao Open Source CMS
* Copyright (c) 2005-2015 Leo Feyer
*
* @package semantic_html5
* @copyright MEN AT WORK 2016
* @author David Maack <[email protected]>
* @license LGPL-3.0+
*/

namespace SemanticHTML5\Elements;

class End extends \ContentElement
{

/**
* Template
* @var string
*/
protected $strTemplate = 'ce_semantic_html5_end';

/**
* Generate the content element
*/
protected function compile()
{
if (TL_MODE == 'BE') {
$this->strTemplate = 'be_wildcard';
$this->Template = new \BackendTemplate($this->strTemplate);
}
}

}
33 changes: 15 additions & 18 deletions src/Elements/Start.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,26 +12,23 @@

namespace SemanticHTML5\Elements;


class Start extends \ContentElement
{

/**
* Template
* @var string
*/
protected $strTemplate = 'ce_accordion_stop';

/**
* Template
* @var string
*/
protected $strTemplate = 'ce_semantic_html5_start';

/**
* Generate the content element
*/
protected function compile()
{
if (TL_MODE == 'BE')
{
$this->strTemplate = 'be_wildcard';
$this->Template = new \BackendTemplate($this->strTemplate);
}
}
/**
* Generate the content element
*/
protected function compile()
{
if (TL_MODE == 'BE') {
$this->strTemplate = 'be_wildcard';
$this->Template = new \BackendTemplate($this->strTemplate);
}
}
}

0 comments on commit b1eeb9f

Please sign in to comment.