support@wpovernight.com' ); ?>
' . $feature['label'];
echo ! empty( $feature['description'] ) ? ' ' . $feature['description'] . ' | ' : '';
foreach ( ['pro', 'templates', 'bundle'] as $extension ) {
echo in_array( $extension, $feature['extensions'] ) ? '' : ' | - | '; } echo ''; } ?> | ||
$info ) { // enabled if ( WPO_WCPDF()->settings->upgrade->extension_is_enabled( $extension ) ) { $extensions_enabled[] = $extension; $title = __( 'Currently installed', 'woocommerce-pdf-invoices-packing-slips' ); if ( empty( $info['status'] ) || $info['status'] != 'valid' ) { $subtitle = sprintf( /* translators: learn more link */ __( 'License not yet activated: %s', 'woocommerce-pdf-invoices-packing-slips' ), ''.__( 'Learn more', 'woocommerce-pdf-invoices-packing-slips' ).'' ); } else { $subtitle = ''; } $extension_columns[$extension] = sprintf( ' | %s%s | ',
$title,
$subtitle
);
// disabled (includes bundle)
} else {
$extensions_disabled[] = $extension;
if ( $info['url'] == 'is_bundled' ) { // extension license is bundled, no need to buy
$extension_columns[$extension] = ''; } else { $extension_columns[$extension] = sprintf( ' | %s | ', esc_url_raw( $info['url'] ), __( 'Upgrade now', 'woocommerce-pdf-invoices-packing-slips' ) ); } } } // maybe disable 1 extension or bundle column foreach ( $extensions_disabled as $extension_disabled ) { if ( ( count( $extensions_disabled ) < 3 && $extension_disabled != 'bundle' ) || ( count( $extensions_disabled ) == 1 && $extension_disabled == 'bundle' ) ) { $extension_columns[$extension_disabled] = ''; } } foreach ( $extension_columns as $column ) { echo $column; } ?> |