shopp('customer.account-login')

Displays login name field for customer login form. Alias for shopp(‘customer’, ’email-login’) or shopp(‘customer’, ‘login-name-login’)

shopp('customer', 'account-login', 'options')

@param string $object the object or object.tag combination, if object.tag is used, the tag parameter can be omitted
@param string $tag the tag, can be hyphenated or not. Prefix with 'get' as shorthand for the return=true option
@param mixed $options associative array, or url-style name=value pairs separated by ampersands (&). Each pair is passed to the theme api tag as an option.
@returns void by default, the account login field if return option is used.

Alternative Forms

shopp('customer.account-login', 'options');
shopp('customer', 'email-login', 'options')
shopp('customer.email-login', 'options');
shopp('customer', 'login-name-login', 'options')
shopp('customer.login-name-login', 'options')

Description

Renders a text field used to take a login (email or login name) for identifying the account of the user during the login process.

Alias for shopp(‘customer’, ’email-login’) or shopp(‘customer’, ‘login-name-login’).

Universal Options

All Theme API calls have these options.

  • return: when set to true, 1, or on, this option forces the tag to return the value instead of displaying/echoing the value to the page. Alternatively, prefix the tag parameter with get to get the same effect. All theme api tags that return a boolean value will return by default.
  • echo: when set to false, 0, or off, this option forces the tag to display the value to the page. This is the default for all non-boolean tags.
  • is: when set to true, 1, or on, this option will evaluate the return of the theme api call as a boolean true or false value. See how values are converted to boolean.

Default Form Input Options

These options are used on theme api calls that output form input tags, to specify attributes.

  • class: option for the class input attribute. The option’s value added to the class attribute.
  • format: option for the format input attribute. The option’s value is output as the attribute.
  • disabled: option for the disabled input attribute. Outputs a ‘disabled’ class and attribute if option is set to ‘true’,’on’,’1′.
  • minlength: option for the minlength input attribute. The option’s numeric value is output a class. (ie. min1)
  • maxlength: option for the maxlength input attribute. The option’s numeric value is output a class. (ie. max1)
  • readonly: option for the readonly input attribute. Outputs a ‘readonly’ class and attribute if option is set to ‘true’,’on’,’1′.
  • required: option for the required input attribute. Output a ‘required’ class if option is set to ‘true’,’on’,’1′.
  • autocomplete: option for the autocomplete input attribute. The option’s value is output as the attribute.
  • accesskey: option for the accesskey input attribute. The option’s value is output as the attribute.
  • alt: option for the alt input attribute. The option’s value is output as the attribute.
  • checked: option for the checked input attribute. Output if option is set to ‘true’,’on’,’1′.
  • size: option for the size input attribute. The option’s value is output as the attribute.
  • src: option for the src input attribute. The option’s value is output as the attribute.
  • tabindex: option for the tabindex input attribute. The option’s value is output as the attribute.
  • cols: option for the cols input attribute. The option’s value is output as the attribute.
  • rows: option for the rows input attribute. The option’s value is output as the attribute.
  • title: option for the title input attribute. The option’s value is output as the attribute.
  • value: option for the value input attribute. The option’s value is output as the attribute.
  • label: option for the label input attribute. Can be used instead of value for the value attribute as well.

Options

The following options are valid.

  • autocomplete: (defaults to unset) When set to autocomplete=on, allows the browser to remember the last value entered in this field.

Examples

shopp('customer.account-login');
// enable autocomplete
shopp('customer.account-login','autocomplete=on');

See Also

You must be logged in to post a comment.

© Ingenesis Limited. Shopp™ is a registered trademark of Ingenesis Limited.

Skip to toolbar