| 1 |
<?php |
| 2 |
/** |
| 3 |
* Settings |
| 4 |
* |
| 5 |
* @package Wow_Plugin |
| 6 |
* @copyright Copyright (c) 2018, Dmytro Lobov |
| 7 |
* @license http://opensource.org/licenses/gpl-2.0.php GNU Public License |
| 8 |
* @since 1.0 |
| 9 |
*/ |
| 10 |
|
| 11 |
if ( ! defined( 'ABSPATH' ) ) { |
| 12 |
exit; |
| 13 |
} |
| 14 |
|
| 15 |
include_once( 'settings/menu.php' ); |
| 16 |
?> |
| 17 |
|
| 18 |
<div class="adding-menu-1"> |
| 19 |
<?php if ( $count_i > 0 ) { |
| 20 |
for ( $i = 0; $i < $count_i; $i ++ ) { ?> |
| 21 |
<fieldset class="itembox"> |
| 22 |
<legend> |
| 23 |
<?php esc_html_e( 'Item ', $this->plugin['text'] ); ?><?php echo $i + 1; ?> |
| 24 |
</legend> |
| 25 |
<div class="control"> |
| 26 |
<span class="dashicons dashicons-move"></span> |
| 27 |
<span class="dashicons dashicons-minus toogle"></span> |
| 28 |
<span class="dashicons dashicons-plus toogle"></span> |
| 29 |
<span class="dashicons dashicons-no-alt item-del"></span> |
| 30 |
</div> |
| 31 |
<div class="menu_block"> |
| 32 |
<div class="container"> |
| 33 |
<div class="element"> |
| 34 |
<?php esc_html_e( 'Icon', $this->plugin['text'] ); ?>: |
| 35 |
<?php esc_html_e( 'custom', $this->plugin['text'] ); ?> |
| 36 |
<input type="checkbox" disabled="disabled"> |
| 37 |
<?php self::tooltip( $item_icon_help ); ?> |
| 38 |
<?php self::pro(); ?> |
| 39 |
<br/> |
| 40 |
<?php self::option( $item_icon_[ $i ] ); ?> |
| 41 |
|
| 42 |
</div> |
| 43 |
<div class="element"> |
| 44 |
<?php esc_html_e( 'Label Text', |
| 45 |
$this->plugin['text'] ); ?> <?php self::tooltip( $item_tooltip_help ); ?> |
| 46 |
<br/> |
| 47 |
<?php self::option( $item_tooltip_[ $i ] ); ?> |
| 48 |
</div> |
| 49 |
<div class="element"> |
| 50 |
<span class="sub_menu"> |
| 51 |
<input type="checkbox" disabled="disabled"> |
| 52 |
<?php esc_html_e( 'Sub Menu', $this->plugin['text'] ); ?> |
| 53 |
<?php self::tooltip( $item_sub_help ); ?> |
| 54 |
<?php self::pro(); ?> |
| 55 |
</span> |
| 56 |
</div> |
| 57 |
</div> |
| 58 |
<div class="container"> |
| 59 |
<div class="element"> |
| 60 |
<?php esc_html_e( 'Item type', $this->plugin['text'] ); ?> <?php self::tooltip( $item_type_help ); ?> |
| 61 |
<?php self::pro(); ?><br/> |
| 62 |
<?php self::option( $item_type_[ $i ] ); ?> |
| 63 |
</div> |
| 64 |
<div class="element type-param"> |
| 65 |
<div class="type-link"> |
| 66 |
<span class="type-link-text">Link</span> |
| 67 |
<br/> |
| 68 |
<?php self::option( $item_link_[ $i ] ); ?> |
| 69 |
</div> |
| 70 |
</div> |
| 71 |
<div class="element type-link-blank"> |
| 72 |
<?php self::option( $new_tab_[ $i ] ); ?><?php _e( 'Open in new window', $this->plugin['text'] ); ?> |
| 73 |
</div> |
| 74 |
</div> |
| 75 |
|
| 76 |
<div class="container"> |
| 77 |
<div class="element"> |
| 78 |
<?php esc_html_e( 'Font Сolor', $this->plugin['text'] ); ?><br/> |
| 79 |
<?php self::option( $color_[ $i ] ); ?> |
| 80 |
</div> |
| 81 |
<div class="element"> |
| 82 |
<?php esc_html_e( 'Background', $this->plugin['text'] ); ?><br/> |
| 83 |
<?php self::option( $bcolor_[ $i ] ); ?> |
| 84 |
</div> |
| 85 |
<div class="element"> |
| 86 |
<input type="checkbox" disabled> |
| 87 |
<?php esc_html_e( 'Hold open', $this->plugin['text'] ); ?> |
| 88 |
<?php self::pro(); ?> |
| 89 |
</div> |
| 90 |
</div> |
| 91 |
|
| 92 |
<div class="container"> |
| 93 |
|
| 94 |
<div class="element button_id"> |
| 95 |
<?php esc_html_e( 'ID for element', $this->plugin['text'] ); ?> |
| 96 |
<?php self::tooltip( $button_id_help ); ?> |
| 97 |
<br/> |
| 98 |
<?php self::option( $button_id_[ $i ] ); ?> |
| 99 |
</div> |
| 100 |
<div class="element button_class"> |
| 101 |
<?php esc_html_e( 'Class for element', $this->plugin['text'] ); ?> |
| 102 |
<?php self::tooltip( $button_class_help ); ?> |
| 103 |
<br/> |
| 104 |
<?php self::option( $button_class_[ $i ] ); ?> |
| 105 |
</div> |
| 106 |
<div class="element"></div> |
| 107 |
|
| 108 |
</div> |
| 109 |
</div> |
| 110 |
</fieldset> |
| 111 |
<?php |
| 112 |
} |
| 113 |
} |
| 114 |
?> |
| 115 |
</div> |
| 116 |
|
| 117 |
<div class="submit-bottom"> |
| 118 |
<input type="button" value="<?php esc_attr_e( 'Add item', $this->plugin['text'] ); ?>" class="add-item" |
| 119 |
onclick="itemadd(1)"> |
| 120 |
</div> |
| 121 |
|