Esempio n. 1
0
 /**
  * Renders the link attributes for the selected link handler
  *
  * @return string
  */
 public function renderLinkAttributeFields()
 {
     $fieldRenderingDefinitions = $this->getLinkAttributeFieldDefinitions();
     $fieldRenderingDefinitions = $this->displayedLinkHandler->modifyLinkAttributes($fieldRenderingDefinitions);
     $this->linkAttributeFields = $this->getAllowedLinkAttributes();
     $content = '';
     foreach ($this->linkAttributeFields as $attribute) {
         $content .= $fieldRenderingDefinitions[$attribute];
     }
     // add update button if appropriate
     if (!empty($this->currentLinkParts) && $this->displayedLinkHandler === $this->currentLinkHandler && $this->currentLinkHandler->isUpdateSupported()) {
         $content .= '
             <form action="" name="lparamsform" id="lparamsform" class="form-horizontal">
                 <div class="form-group form-group-sm">
                     <input class="btn btn-default t3js-linkCurrent" type="submit" value="' . htmlspecialchars($this->getLanguageService()->getLL('update')) . '" />
                 </div>
             </form>';
     }
     return '<div class="link-browser-section link-browser-attributes">' . $content . '</div>';
 }
    /**
     * Renders the link attributes for the selected link handler
     *
     * @return string
     */
    public function renderLinkAttributeFields()
    {
        $fieldRenderingDefinitions = $this->getLinkAttributeFieldDefinitions();
        $fieldRenderingDefinitions = $this->displayedLinkHandler->modifyLinkAttributes($fieldRenderingDefinitions);
        $this->linkAttributeFields = $this->getAllowedLinkAttributes();
        $content = '';
        foreach ($this->linkAttributeFields as $attribute) {
            $content .= $fieldRenderingDefinitions[$attribute];
        }
        // add update button if appropriate
        if (!empty($this->currentLinkParts) && $this->displayedLinkHandler === $this->currentLinkHandler && $this->currentLinkHandler->isUpdateSupported()) {
            $content .= '
				<form action="" name="lparamsform" id="lparamsform">
					<table border="0" cellpadding="2" cellspacing="1" id="typo3-linkParams">
					<tr><td>
						<input class="btn btn-default t3js-linkCurrent" type="submit" value="' . $this->getLanguageService()->getLL('update', true) . '" />
					</td></tr>
					</table>
				</form><br /><br />';
        }
        return $content;
    }