protected function geFieldOutput(array $aField) { if (!is_object($aField['_caller_object'])) { return ''; } $aField['_nested_depth']++; $_oCaller = $aField['_caller_object']; $_aOptions = $_oCaller->getSavedOptions(); $_oField = new SeamlessDonationsAdminPageFramework_FormField($aField, $_aOptions, $_oCaller->getFieldErrors(), $_oCaller->oProp->aFieldTypeDefinitions, $_oCaller->oMsg, $_oCaller->oProp->aFieldCallbacks); return $_oField->_getFieldOutput(); }
public function _replyToGetFieldOutput($aField) { $_sCurrentPageSlug = $this->oProp->getCurrentPageSlug(); $_sSectionID = $this->oUtil->getElement($aField, 'section_id', '_default'); $_sFieldID = $aField['field_id']; if ($aField['page_slug'] != $_sCurrentPageSlug) { return ''; } $this->aFieldErrors = isset($this->aFieldErrors) ? $this->aFieldErrors : $this->_getFieldErrors($_sCurrentPageSlug); $sFieldType = isset($this->oProp->aFieldTypeDefinitions[$aField['type']]['hfRenderField']) && is_callable($this->oProp->aFieldTypeDefinitions[$aField['type']]['hfRenderField']) ? $aField['type'] : 'default'; $_aTemp = $this->getSavedOptions(); $_oField = new SeamlessDonationsAdminPageFramework_FormField($aField, $_aTemp, $this->aFieldErrors, $this->oProp->aFieldTypeDefinitions, $this->oMsg); $_sFieldOutput = $_oField->_getFieldOutput(); unset($_oField); return $this->oUtil->addAndApplyFilters($this, array(isset($aField['section_id']) && $aField['section_id'] != '_default' ? 'field_' . $this->oProp->sClassName . '_' . $aField['section_id'] . '_' . $_sFieldID : 'field_' . $this->oProp->sClassName . '_' . $_sFieldID), $_sFieldOutput, $aField); }
public function _replyToGetFieldOutput($aField) { $_oField = new SeamlessDonationsAdminPageFramework_FormField($aField, $this->oProp->aOptions, $this->_getFieldErrors(), $this->oProp->aFieldTypeDefinitions, $this->oMsg, $this->oProp->aFieldCallbacks); $_sOutput = $this->oUtil->addAndApplyFilters($this, array('field_' . $this->oProp->sClassName . '_' . $aField['field_id']), $_oField->_getFieldOutput(), $aField); return $_sOutput; }
private function _getFieldTitle(array $aField) { return "<label for='" . SeamlessDonationsAdminPageFramework_FormField::_getInputID($aField) . "'>" . "<a id='{$aField['field_id']}'></a>" . "<span title='" . esc_attr(strip_tags(isset($aField['tip']) ? $aField['tip'] : is_array($aField['description'] ? implode(' ', $aField['description']) : $aField['description']))) . "'>" . $aField['title'] . (in_array($aField['_fields_type'], array('widget', 'post_meta_box', 'page_meta_box')) && isset($aField['title']) && '' !== $aField['title'] ? "<span class='title-colon'>:</span>" : '') . "</span>" . "</label>"; }