Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Removed empty label, some small style fixes, etc.

  • Loading branch information...
commit 482eaa2d703fd1cee395c4aaf7339845904cca67 1 parent f643592
@psychoticmeow psychoticmeow authored
View
0  assets/form.css 100644 → 100755
File mode changed
View
0  extension.driver.php 100644 → 100755
File mode changed
View
16 fields/field.subsection.php 100644 → 100755
@@ -219,7 +219,7 @@ public function displayPublishPanel(&$wrapper, $data = null, $error = null, $pre
// Not ready ----------------------------------------------------------
if (empty($entry_id)) {
- $label = Widget::Label($this->get('label'));
+ $label = new XMLElement('p', $this->get('label'));
$help = new XMLElement('p');
$help->setAttribute('class', 'help');
@@ -236,7 +236,7 @@ public function displayPublishPanel(&$wrapper, $data = null, $error = null, $pre
$label = new XMLElement('h3', $this->get('label'));
$div = new XMLElement('div');
- $div->setAttribute('class', 'subsectionfield-single');
+ $div->setAttribute('class', 'subsectionfield-single');
$div->appendChild($label);
if ($this->get('allow_multiple') == 'yes') {
@@ -418,9 +418,16 @@ public function getParameterPoolValue($data) {
}
return implode(', ', $data['relation_id']);
- }
+ }
+
+ public function fetchIncludableElements() {
+ return array(
+ $this->get('element_name') . ': list',
+ $this->get('element_name') . ': full'
+ );
+ }
- public function appendFormattedElement(&$wrapper, $data, $encode = false) {
+ public function appendFormattedElement(&$wrapper, $data, $encode = false, $mode = null) {
$sectionManager = new SectionManager($this->_engine);
$entryManager = new EntryManager($this->_engine);
$section_id = $this->get('section_id');
@@ -446,6 +453,7 @@ public function appendFormattedElement(&$wrapper, $data, $encode = false) {
}
$list = new XMLElement($this->get('element_name'));
+ $list->setAttribute('mode', $mode);
// No section or relations:
if (empty($section) or empty($data['relation_id'])) return;
View
0  license.txt 100644 → 100755
File mode changed
View
2  readme.txt 100644 → 100755
@@ -3,7 +3,7 @@ Field: Sub Section
Version: 1.004
Author: Rowan Lewis <rowan@pixelcarnage.com>
-Build Date: 12 January 2009
+Build Date: 22 January 2009
Requirements: Symphony 2
Please sign in to comment.
Something went wrong with that request. Please try again.