irre_selector_and_localization.patch

Administrator Admin, 2008-02-21 10:11

Download (2.09 KB)

View differences:

t3lib/class.t3lib_tceforms_inline.php (working copy)
285 285
			// Render the level links (create new record, localize all, synchronize):
286 286
		if ($config['appearance']['levelLinksPosition']!='none') {
287 287
			$levelLinks = $this->getLevelInteractionLink('newRecord', $nameObject.'['.$foreign_table.']', $config);
288
			if ($language>0) {
289
					// Add the "Localize all records" link before all child records:
290
				if (isset($config['appearance']['showAllLocalizationLink']) && $config['appearance']['showAllLocalizationLink']) {
291
					$levelLinks.= $this->getLevelInteractionLink('localize', $nameObject.'['.$foreign_table.']', $config);
292
				} 
293
					// Add the "Synchronize with default language" link before all child records:
294
				if (isset($config['appearance']['showSynchronizationLink']) && $config['appearance']['showSynchronizationLink']) {
295
					$levelLinks.= $this->getLevelInteractionLink('synchronize', $nameObject.'['.$foreign_table.']', $config);
296
				}	
297
			}
298 288
		}
299 289
			// Add the level links before all child records:
300 290
		if (in_array($config['appearance']['levelLinksPosition'], array('both', 'top'))) {
301 291
			$item.= $levelLinks;
302 292
		}
293
		
294
		if ($language>0) {
295
			$localizationLinks = "";
296
			// Add the "Localize all records" link before all child records:
297
			if (isset($config['appearance']['showAllLocalizationLink']) && $config['appearance']['showAllLocalizationLink']) {
298
				$localizationLinks.= $this->getLevelInteractionLink('localize', $nameObject.'['.$foreign_table.']', $config);
299
			} 
300
			// Add the "Synchronize with default language" link before all child records:
301
			if (isset($config['appearance']['showSynchronizationLink']) && $config['appearance']['showSynchronizationLink']) {
302
				$localizationLinks.= $this->getLevelInteractionLink('synchronize', $nameObject.'['.$foreign_table.']', $config);
303
			}	
304
		}
305
		$item.=$localizationLinks;
303 306

  
304 307
		$item .= '<div id="'.$nameObject.'_records">';
305 308
		$relationList = array();