includes/fs-plugin-info-dialog.php
private function get_cta(
            $label,
            $is_primary = true,
            $is_disabled = false,
            $href = '',
            $target = '_blank'
        ) {
            $classes = array();

            if ( ! $is_primary ) {
                $classes[] = 'left';
            } else {
                $classes[] = 'button-primary';
                $classes[] = 'right';
            }

            if ( $is_disabled ) {
                $classes[] = 'disabled';
            }

            return sprintf(
                '<a %s class="button %s">%s</a>',
                empty( $href ) ? '' : 'href="' . $href . '" target="' . $target . '"',
                implode( ' ', $classes ),
                $label
            );
        }
private function get_cta(
            $label,
            $is_primary = true,
            $is_disabled = false,
            $href = '',
            $target = '_blank'
        ) {
            $classes = array();

            if ( ! $is_primary ) {
                $classes[] = 'left';
            } else {
                $classes[] = 'button-primary';
                $classes[] = 'right';
            }

            if ( $is_disabled ) {
                $classes[] = 'disabled';
            }

            return sprintf(
                '<a %s class="button %s">%s</a>',
                empty( $href ) ? '' : 'href="' . $href . '" target="' . $target . '"',
                implode( ' ', $classes ),
                $label
            );
        }
private function get_cta ( $ label , $ is_primary = true , $ is_disabled = false , $ href = '' , $ target = '_blank' ) { $ classes = array ( ) ; if ( ! $ is_primary ) { $ classes [ ] = 'left' ; } else { $ classes [ ] = 'button-primary' ; $ classes [ ] = 'right' ; } if ( $ is_disabled ) { $ classes [ ] = 'disabled' ; } return sprintf ( '<a %s class="button %s">%s</a>' , empty ( $ href ) ? '' : 'href="' . $ href . '" target="' . $ target . '"' , implode ( ' ' , $ classes ) , $ label ) ; }
Helper method to get a CTA button HTML.

@author Vova Feldman (@svovaf)
@since  2.0.0

@param string $label
@param bool   $is_primary
@param bool   $is_disabled
@param string $href
@param string $target

@return string
Helper method to get a CTA button HTML .