Files
carpseeds.pl/wp-content/plugins/jet-data-importer/templates/import-after.php
2024-07-15 11:28:08 +02:00

42 lines
1.2 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?php
/**
* Starter import template
*/
?>
<div>
<div class="cdi-success-mesage"><?php
_e( 'Dont know from where to start? Let us help you!', 'jet-data-importer' );
?></div>
<div class="cdi-success-links"><?php
$buttons = jdi()->get_setting( array( 'success-links' ) );
$buttons = apply_filters( 'jet-data-importer/success-buttons', $buttons );
$format = '<a href="%4$s" class="cdi-btn %2$s" target="%3$s">%1$s</a>';
$defaults = array(
'label' => __( 'View your site', 'jet-data-importer' ),
'type' => 'primary',
'target' => '_self',
'icon' => 'dashicons-admin-home',
'desc' => __( 'See what you get', 'jet-data-importer' ),
'url' => home_url( '/' ),
);
if ( ! empty( $buttons ) ) {
echo '<div class="cdi-after-actions">';
foreach ( $buttons as $button ) {
$button = wp_parse_args( $button, $defaults );
?>
<div class="cdi-after-actions__row">
<div class="cdi-after-actions__desc">
<span class="dashicons <?php echo $button['icon']; ?>"></span>
<span><?php echo $button['desc']; ?></span>
</div>
<?php printf( $format, $button['label'], $button['type'], $button['target'], $button['url'] ); ?>
</div>
<?php
}
echo '</div>';
}
?></div>
</div>