{jrCore_item_list_buttons}

Applies to: Jamroom 7.0+ Last verified: 2026-10-24
  • jrCore_item_list_buttons

    Function
    jrCore_item_list_buttons
    parameter
    type
    default
    required
    description
    module
    string
    -
    on
    The module of the item, such as jrAudio
    item
    array
    -
    on
    The item, usually $item
    exclude
    string
    -
    off
    Comma separated button functions to leave out, such as jrCore_item_update_button,jrCore_item_delete_button
    size, color, class
    string
    -
    off
    Icon size and color, and a CSS class
    assign
    string
    -
    off
    Put the result in this variable instead of showing it

    Shows every button that applies to an item in a list: update and delete for its owner, and buttons other modules add, such as download, add to playlist or add to cart. Modules add buttons without changing your templates.

    {foreach $_items as $item}
        {jrCore_item_list_buttons module="jrAudio" item=$item}
        ...
    {/foreach}
  • To leave buttons out in one template, use exclude:

    {jrCore_item_list_buttons module="jrAudio" item=$item exclude="jrCore_item_delete_button"}

Tags