english/libraries/joomla/html/html/list.php
/**
	 * Select list of positions - generally used for location of images
	 */
Select list of positions - generally used for location of images
Select list of positions - generally used for location of images
public static function positions(
		$name,
		$active = null,
		$javascript = null,
		$none = 1,
		$center = 1,
		$left = 1,
		$right = 1,
		$id = false
	)
	{
		$pos = array();
		if ($none) {
			$pos[''] = JText::_('JNONE');
		}
		if ($center) {
			$pos['center'] = JText::_('JGLOBAL_CENTER');
		}
		if ($left) {
			$pos['left'] = JText::_('JGLOBAL_LEFT');
		}
		if ($right) {
			$pos['right'] = JText::_('JGLOBAL_RIGHT');
		}
		$positions = JHtml::_(
			'select.genericlist',
			$pos,
			$name,
			array(
				'id' => $id,
				'list.attr' => 'class="inputbox" size="1"'. $javascript,
				'list.select' => $active,
				'option.key' => null,
			)
		);
		return $positions;
	}
public static function positions ( $ name , $ active = null , $ javascript = null , $ none = 1 , $ center = 1 , $ left = 1 , $ right = 1 , $ id = false ) { $ pos = array ( ) ; if ( $ none ) { $ pos [ '' ] = JText :: _ ( 'JNONE' ) ; } if ( $ center ) { $ pos [ 'center' ] = JText :: _ ( 'JGLOBAL_CENTER' ) ; } if ( $ left ) { $ pos [ 'left' ] = JText :: _ ( 'JGLOBAL_LEFT' ) ; } if ( $ right ) { $ pos [ 'right' ] = JText :: _ ( 'JGLOBAL_RIGHT' ) ; } $ positions = JHtml :: _ ( 'select.genericlist' , $ pos , $ name , array ( 'id' => $ id , 'list.attr' => 'class="inputbox" size="1"' . $ javascript , 'list.select' => $ active , 'option.key' => null , ) ) ; return $ positions ; }
Select list of positions - generally used for location of images
Select list of positions - generally used for location of images