-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
121 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
<?php | ||
/* | ||
* Copyright MADE/YOUR/DAY OG <[email protected]> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
namespace MadeYourDay\Contao\Widget; | ||
|
||
/** | ||
* Group start widget | ||
* | ||
* @author Martin Auswöger <[email protected]> | ||
*/ | ||
class GroupStart extends \Widget | ||
{ | ||
/** | ||
* @var boolean Submit user input | ||
*/ | ||
protected $blnSubmitInput = false; | ||
|
||
/** | ||
* @var string Template | ||
*/ | ||
protected $strTemplate = 'be_rsce_group'; | ||
|
||
/** | ||
* Generate the widget and return it as string | ||
* | ||
* @return string | ||
*/ | ||
public function generate() | ||
{ | ||
$this->loadLanguageFile('rocksolid_custom_elements'); | ||
|
||
$fs = $this->Session->get('fieldset_states'); | ||
|
||
return '</fieldset>' | ||
. '<div class="clear"></div>' | ||
. '<fieldset' | ||
. ' id="pal_' . $this->strId . '"' | ||
. ' class="tl_box rsce_group' . ((!isset($fs[$this->strTable][$this->strId]) || $fs[$this->strTable][$this->strId]) ? '' : ' collapsed') . '"' | ||
. '>' | ||
. '<legend' | ||
. ' onclick="AjaxRequest.toggleFieldset(this, "' . $this->strId . '", "' . $this->strTable . '")"' | ||
. '>' . $this->strLabel | ||
. '</legend>' | ||
. ($this->description ? '<p class="rsce_group_description">' . $this->description . '</p>' : ''); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<?php /* closing the parent div element to make nested elements possible */ ?> | ||
</div> | ||
<?php echo $this->generate() ?> | ||
<?php /* starting a div element to keep the correct element structure */ ?> | ||
<div style="display: none"> |