Nav-button

Component design:

How to use a component:

STM_LMS_Templates::show_lms_template(
    'components/nav-button',
    array(
        'id'        => string|int
        'title'     => string, (required)
        'type'      => string, (required) ('prev'|'next')
        'link'      => string, (required)
        'style'     => string, (required) ('primary'|'secondary')
        'dark_mode' => bool, (required)
        'data'      => array, (required) some data if you needed or empty array()
    )
)

Last updated