| 1 |
<?php |
| 2 |
/** |
| 3 |
* Elements for clone |
| 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( 'options/clone.php' ); |
| 16 |
?> |
| 17 |
<template id="clone-1"> |
| 18 |
<div class="panel"> |
| 19 |
<div class="panel-heading"> |
| 20 |
<div class="level-item icon-select" style="color: #ffffff; background-color: #009688;"> |
| 21 |
<i class="fas fa-hand-point-up"></i> |
| 22 |
</div> |
| 23 |
<div class="level-item"> |
| 24 |
<span class="item-label-text">(<?php esc_attr_e( 'no label', 'floating-button' ); ?>)</span> |
| 25 |
</div> |
| 26 |
<div class="level-item element-type">Link</div> |
| 27 |
<div class="level-item toogle-element"> |
| 28 |
<span class="dashicons dashicons-arrow-down"></span> |
| 29 |
<span class="dashicons dashicons-arrow-up is-hidden"></span> |
| 30 |
</div> |
| 31 |
</div> |
| 32 |
|
| 33 |
<div class="toogle-content is-hidden"> |
| 34 |
|
| 35 |
<div class="panel-block"> |
| 36 |
<div class="field"> |
| 37 |
<label class="label is-small"> |
| 38 |
<?php esc_attr_e( 'Label Text', 'floating-button' ); ?> |
| 39 |
</label> |
| 40 |
<?php self::option( $menu_1_item_tooltip ); ?> |
| 41 |
</div> |
| 42 |
</div> |
| 43 |
<label class="panel-block checkTooltip"> |
| 44 |
<?php self::option( $menu_1_item_tooltip_include ); ?><?php esc_attr_e( 'Enable Tooltip', 'floating-button' ); ?> |
| 45 |
</label> |
| 46 |
|
| 47 |
<p class="panel-tabs"> |
| 48 |
<a class="is-active" data-tab="1"><?php esc_attr_e( "Type", 'floating-button' ); ?></a> |
| 49 |
<a data-tab="2"><?php esc_attr_e( "Icon", 'floating-button' ); ?></a> |
| 50 |
<a data-tab="3"><?php esc_attr_e( "Style", 'floating-button' ); ?></a> |
| 51 |
<a data-tab="4"><?php esc_attr_e( "Attributes", 'floating-button' ); ?></a> |
| 52 |
</p> |
| 53 |
|
| 54 |
<div data-tab-content="1" class="tabs-content"> |
| 55 |
<div class="panel-block"> |
| 56 |
<div class="field"> |
| 57 |
<label class="label"> |
| 58 |
<?php esc_attr_e( 'Item type', 'floating-button' ); ?><?php self::tooltip( $item_type_menu_help ); ?> |
| 59 |
|
| 60 |
</label> |
| 61 |
<?php self::option( $menu_1_item_type ); ?> |
| 62 |
</div> |
| 63 |
<div class="field item-link"> |
| 64 |
<label class="label item-link-text"> |
| 65 |
<?php esc_attr_e( 'Link', 'floating-button' ); ?> |
| 66 |
</label> |
| 67 |
<?php self::option( $menu_1_item_link ); ?> |
| 68 |
</div> |
| 69 |
</div> |
| 70 |
</div> |
| 71 |
<div data-tab-content="2" class="tabs-content is-hidden"> |
| 72 |
<div class="panel-block icon-default"> |
| 73 |
<div class="field"> |
| 74 |
<label class="label"> |
| 75 |
<?php esc_attr_e( 'Icon', 'floating-button' ); ?> |
| 76 |
</label> |
| 77 |
<?php self::option( $menu_1_item_icon ); ?> |
| 78 |
</div> |
| 79 |
</div> |
| 80 |
</div> |
| 81 |
<div data-tab-content="3" class="tabs-content is-hidden"> |
| 82 |
<div class="panel-block"> |
| 83 |
<div class="field"> |
| 84 |
<label class="label"> |
| 85 |
<?php esc_attr_e( 'Button color', 'floating-button' ); ?> |
| 86 |
</label> |
| 87 |
<?php self::option( $menu_1_button_color ); ?> |
| 88 |
</div> |
| 89 |
<div class="field"> |
| 90 |
<label class="label"> |
| 91 |
<?php esc_attr_e( 'Button hover color', 'floating-button' ); ?> |
| 92 |
</label> |
| 93 |
<?php self::option( $menu_1_button_hcolor ); ?> |
| 94 |
</div> |
| 95 |
<div class="field"> |
| 96 |
<label class="label"> |
| 97 |
<?php esc_attr_e( 'Icon color', 'floating-button' ); ?> |
| 98 |
</label> |
| 99 |
<?php self::option( $menu_1_icon_color ); ?> |
| 100 |
</div> |
| 101 |
</div> |
| 102 |
</div> |
| 103 |
<div data-tab-content="4" class="tabs-content is-hidden"> |
| 104 |
<div class="panel-block"> |
| 105 |
<div class="field"> |
| 106 |
<label class="label"> |
| 107 |
<?php esc_attr_e( 'ID for element', 'floating-button' ); ?> |
| 108 |
</label> |
| 109 |
<?php self::option( $menu_1_button_id ); ?> |
| 110 |
</div> |
| 111 |
</div> |
| 112 |
<div class="panel-block"> |
| 113 |
<div class="field"> |
| 114 |
<label class="label"> |
| 115 |
<?php esc_attr_e( 'Class for element', 'floating-button' ); ?> |
| 116 |
</label> |
| 117 |
<?php self::option( $menu_1_button_class ); ?> |
| 118 |
</div> |
| 119 |
</div> |
| 120 |
<div class="panel-block"> |
| 121 |
<div class="field"> |
| 122 |
<label class="label"> |
| 123 |
<?php esc_attr_e( 'Attribute: rel', 'floating-button' ); ?> |
| 124 |
</label> |
| 125 |
<?php self::option( $menu_1_link_rel ); ?> |
| 126 |
</div> |
| 127 |
</div> |
| 128 |
</div> |
| 129 |
<div class="panel-block actions"> |
| 130 |
<a class="item-delete"><?php esc_attr_e( 'Remove', 'floating-button' ); ?></a> |
| 131 |
</div> |
| 132 |
</div> |
| 133 |
</div> |
| 134 |
</template> |
| 135 |
|
| 136 |
<template id="clone-2"> |
| 137 |
<div class="panel"> |
| 138 |
<div class="panel-heading"> |
| 139 |
<div class="level-item icon-select" style="color: #ffffff; background-color: #009688;"> |
| 140 |
<i class="fas fa-hand-point-up"></i> |
| 141 |
</div> |
| 142 |
<div class="level-item"> |
| 143 |
<span class="item-label-text">(<?php esc_attr_e( 'no label', 'floating-button' ); ?>)</span> |
| 144 |
</div> |
| 145 |
<div class="level-item element-type">Link</div> |
| 146 |
<div class="level-item toogle-element"> |
| 147 |
<span class="dashicons dashicons-arrow-down"></span> |
| 148 |
<span class="dashicons dashicons-arrow-up is-hidden"></span> |
| 149 |
</div> |
| 150 |
</div> |
| 151 |
|
| 152 |
<div class="toogle-content is-hidden"> |
| 153 |
|
| 154 |
<div class="panel-block"> |
| 155 |
<div class="field"> |
| 156 |
<label class="label is-small"> |
| 157 |
<?php esc_attr_e( 'Label Text', 'floating-button' ); ?> |
| 158 |
</label> |
| 159 |
<?php self::option( $menu_2_item_tooltip ); ?> |
| 160 |
</div> |
| 161 |
</div> |
| 162 |
<label class="panel-block checkTooltip"> |
| 163 |
<?php self::option( $menu_2_item_tooltip_include ); ?><?php esc_attr_e( 'Enable Tooltip', 'floating-button' ); ?> |
| 164 |
</label> |
| 165 |
|
| 166 |
<p class="panel-tabs"> |
| 167 |
<a class="is-active" data-tab="1"><?php esc_attr_e( "Type", 'floating-button' ); ?></a> |
| 168 |
<a data-tab="2"><?php esc_attr_e( "Icon", 'floating-button' ); ?></a> |
| 169 |
<a data-tab="3"><?php esc_attr_e( "Style", 'floating-button' ); ?></a> |
| 170 |
<a data-tab="4"><?php esc_attr_e( "Attributes", 'floating-button' ); ?></a> |
| 171 |
</p> |
| 172 |
|
| 173 |
<div data-tab-content="1" class="tabs-content"> |
| 174 |
<div class="panel-block"> |
| 175 |
<div class="field"> |
| 176 |
<label class="label"> |
| 177 |
<?php esc_attr_e( 'Item type', 'floating-button' ); ?><?php self::tooltip( $item_type_menu_help ); ?> |
| 178 |
|
| 179 |
</label> |
| 180 |
<?php self::option( $menu_2_item_type ); ?> |
| 181 |
</div> |
| 182 |
<div class="field item-link"> |
| 183 |
<label class="label item-link-text"> |
| 184 |
<?php esc_attr_e( 'Link', 'floating-button' ); ?> |
| 185 |
</label> |
| 186 |
<?php self::option( $menu_2_item_link ); ?> |
| 187 |
</div> |
| 188 |
</div> |
| 189 |
|
| 190 |
</div> |
| 191 |
<div data-tab-content="2" class="tabs-content is-hidden"> |
| 192 |
<div class="panel-block icon-default"> |
| 193 |
<div class="field"> |
| 194 |
<label class="label"> |
| 195 |
<?php esc_attr_e( 'Icon', 'floating-button' ); ?> |
| 196 |
</label> |
| 197 |
<?php self::option( $menu_2_item_icon ); ?> |
| 198 |
</div> |
| 199 |
</div> |
| 200 |
</div> |
| 201 |
<div data-tab-content="3" class="tabs-content is-hidden"> |
| 202 |
<div class="panel-block"> |
| 203 |
<div class="field"> |
| 204 |
<label class="label"> |
| 205 |
<?php esc_attr_e( 'Button color', 'floating-button' ); ?> |
| 206 |
</label> |
| 207 |
<?php self::option( $menu_2_button_color ); ?> |
| 208 |
</div> |
| 209 |
<div class="field"> |
| 210 |
<label class="label"> |
| 211 |
<?php esc_attr_e( 'Button hover color', 'floating-button' ); ?> |
| 212 |
</label> |
| 213 |
<?php self::option( $menu_2_button_hcolor ); ?> |
| 214 |
</div> |
| 215 |
<div class="field"> |
| 216 |
<label class="label"> |
| 217 |
<?php esc_attr_e( 'Icon color', 'floating-button' ); ?> |
| 218 |
</label> |
| 219 |
<?php self::option( $menu_2_icon_color ); ?> |
| 220 |
</div> |
| 221 |
</div> |
| 222 |
</div> |
| 223 |
<div data-tab-content="4" class="tabs-content is-hidden"> |
| 224 |
<div class="panel-block"> |
| 225 |
<div class="field"> |
| 226 |
<label class="label"> |
| 227 |
<?php esc_attr_e( 'ID for element', 'floating-button' ); ?> |
| 228 |
</label> |
| 229 |
<?php self::option( $menu_2_button_id ); ?> |
| 230 |
</div> |
| 231 |
</div> |
| 232 |
<div class="panel-block"> |
| 233 |
<div class="field"> |
| 234 |
<label class="label"> |
| 235 |
<?php esc_attr_e( 'Class for element', 'floating-button' ); ?> |
| 236 |
</label> |
| 237 |
<?php self::option( $menu_2_button_class ); ?> |
| 238 |
</div> |
| 239 |
</div> |
| 240 |
<div class="panel-block"> |
| 241 |
<div class="field"> |
| 242 |
<label class="label"> |
| 243 |
<?php esc_attr_e( 'Attribute: rel', 'floating-button' ); ?> |
| 244 |
</label> |
| 245 |
<?php self::option( $menu_2_link_rel ); ?> |
| 246 |
</div> |
| 247 |
</div> |
| 248 |
</div> |
| 249 |
<div class="panel-block actions"> |
| 250 |
<a class="item-delete"><?php esc_attr_e( 'Remove', 'floating-button' ); ?></a> |
| 251 |
</div> |
| 252 |
</div> |
| 253 |
</div> |
| 254 |
</template> |