| 1 |
<?php |
| 2 |
/** |
| 3 |
* Dashboard widget placeholder. |
| 4 |
* |
| 5 |
* @package Formidable |
| 6 |
* |
| 7 |
* @var array $template Widget data with 'widget-heading' and 'placeholder' (background, heading, copy, button[link, label, classname]). |
| 8 |
*/ |
| 9 |
|
| 10 |
if ( ! defined( 'ABSPATH' ) ) { |
| 11 |
die( 'You are not allowed to call this page directly.' ); |
| 12 |
} |
| 13 |
?> |
| 14 |
<h2 class="frm-widget-heading"><?php echo esc_html( $template['widget-heading'] ); ?></h2> |
| 15 |
<div class="frm-widget-placeholder" data-background="<?php echo esc_attr( $template['placeholder']['background'] ); ?>"> |
| 16 |
<div> |
| 17 |
<h2 class="frm-widget-heading"> |
| 18 |
<?php echo esc_html( $template['placeholder']['heading'] ); ?> |
| 19 |
</h2> |
| 20 |
<p class="frm-mt-sm"><?php echo wp_kses_post( $template['placeholder']['copy'] ); ?></p> |
| 21 |
<?php if ( null !== $template['placeholder']['button'] ) : ?> |
| 22 |
<a href="<?php echo esc_url( $template['placeholder']['button']['link'] ); ?>" class="frm-button-secondary <?php echo isset( $template['placeholder']['button']['classname'] ) ? esc_attr( $template['placeholder']['button']['classname'] ) : ''; ?>"><?php echo esc_html( $template['placeholder']['button']['label'] ); ?></a> |
| 23 |
<?php endif; ?> |
| 24 |
</div> |
| 25 |
</div> |
| 26 |
|