| 1 |
<?php |
| 2 |
if ( ! defined( 'ABSPATH' ) ) { |
| 3 |
die( 'You are not allowed to call this page directly.' ); |
| 4 |
} |
| 5 |
?> |
| 6 |
<div class="frm_actions_dropdown dropdown <?php echo esc_attr( is_rtl() ? 'dropdown-menu-right' : 'dropdown-menu-left' ); ?>"> |
| 7 |
<a href="#" id="frm-actionsDrop" class="frm-dropdown-toggle frm_icon_font frm_option_icon" data-toggle="dropdown" title="<?php esc_attr_e( 'Show options', 'formidable' ); ?>"></a> |
| 8 |
<ul class="frm-dropdown-menu frm-on-top" role="menu" aria-labelledby="frm-actionsDrop"> |
| 9 |
<?php foreach ( $links as $link ) { ?> |
| 10 |
<li> |
| 11 |
<a href="<?php echo esc_url( $link['url'] ); ?>" tabindex="-1" <?php |
| 12 |
if ( isset( $link['data'] ) ) { |
| 13 |
foreach ( $link['data'] as $data => $value ) { |
| 14 |
echo 'data-' . esc_attr( $data ) . '="' . esc_attr( $value ) . '" '; |
| 15 |
} |
| 16 |
} |
| 17 |
?> > |
| 18 |
<span class="<?php echo esc_attr( $link['icon'] ); ?>"></span> |
| 19 |
<span class="frm_link_label"><?php echo esc_html( $link['label'] ); ?></span> |
| 20 |
</a> |
| 21 |
</li> |
| 22 |
<?php } ?> |
| 23 |
</ul> |
| 24 |
</div> |
| 25 |
|