Permalink
Browse files

Removed empty label, some small style fixes, etc.

  • Loading branch information...
1 parent f643592 commit 482eaa2d703fd1cee395c4aaf7339845904cca67 @psychoticmeow psychoticmeow committed Jan 22, 2009
Showing with 13 additions and 5 deletions.
  1. 0 assets/form.css
  2. 0 extension.driver.php
  3. +12 −4 fields/field.subsection.php
  4. 0 license.txt
  5. +1 −1 readme.txt
View
0 assets/form.css 100644 → 100755
No changes.
View
0 extension.driver.php 100644 → 100755
No changes.
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
No changes.
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

0 comments on commit 482eaa2

Please sign in to comment.