| 1 |
<?php |
| 2 |
/* |
| 3 |
* Page Name: Settings |
| 4 |
*/ |
| 5 |
|
| 6 |
use ButtonGenerator\Admin\CreateFields; |
| 7 |
|
| 8 |
defined( 'ABSPATH' ) || exit; |
| 9 |
|
| 10 |
$page_opt = include( 'options/settings.php' ); |
| 11 |
$field = new CreateFields( $options, $page_opt ); |
| 12 |
|
| 13 |
$item_order = ! empty( $options['item_order']['content'] ) ? 1 : 0; |
| 14 |
$open = ! empty( $item_order ) ? ' open' : ''; |
| 15 |
?> |
| 16 |
<details class="wpie-item"<?php echo esc_attr( $open ); ?>> |
| 17 |
<input type="hidden" name="item_order[content]" class="wpie-item__toggle" value="<?php echo absint( $item_order ); ?>"> |
| 18 |
<summary class="wpie-item_heading"> |
| 19 |
<span class="wpie-item_heading_icon"><span class="wpie-icon wpie_icon-file-content"></span></span> |
| 20 |
<span class="wpie-item_heading_label"><?php |
| 21 |
esc_html_e( 'Content', 'button-generation' ); ?></span> |
| 22 |
<span class="wpie-item_heading_type"></span> |
| 23 |
<span class="wpie-item_heading_toogle"> |
| 24 |
<span class="wpie-icon wpie_icon-chevron-down"></span> |
| 25 |
<span class="wpie-icon wpie_icon-chevron-up "></span> |
| 26 |
</span> |
| 27 |
</summary> |
| 28 |
<div class="wpie-item_content"> |
| 29 |
<div class="wpie-fieldset"> |
| 30 |
<div class="wpie-fields"> |
| 31 |
<?php |
| 32 |
$field->create( 'appearance' ); ?> |
| 33 |
</div> |
| 34 |
<div class="wpie-fields"> |
| 35 |
<?php |
| 36 |
$field->create( 'text' ); ?><?php |
| 37 |
$field->create( 'text_location' ); ?><?php |
| 38 |
$field->create( 'gap' ); ?> |
| 39 |
</div> |
| 40 |
<div class="wpie-fields"> |
| 41 |
<?php |
| 42 |
$field->create( 'icon' ); ?><?php |
| 43 |
$field->create( 'rotate_icon' ); ?><?php |
| 44 |
$field->create( 'rotate_icon_custom' ); ?> |
| 45 |
</div> |
| 46 |
</div> |
| 47 |
</div> |
| 48 |
</details> |
| 49 |
|
| 50 |
<?php |
| 51 |
$item_order = ! empty( $options['item_order']['type'] ) ? 1 : 0; |
| 52 |
$open = ! empty( $item_order ) ? ' open' : ''; |
| 53 |
?> |
| 54 |
|
| 55 |
<details class="wpie-item"<?php |
| 56 |
echo esc_attr( $open ); ?>> |
| 57 |
<input type="hidden" name="item_order[type]" class="wpie-item__toggle" value="<?php |
| 58 |
echo absint( $item_order ); ?>"> |
| 59 |
<summary class="wpie-item_heading"> |
| 60 |
<span class="wpie-item_heading_icon"><span class="wpie-icon wpie_icon-buttons"></span></span> |
| 61 |
<span class="wpie-item_heading_label"><?php |
| 62 |
esc_html_e( 'Type', 'button-generation' ); ?></span> |
| 63 |
<span class="wpie-item_heading_type"></span> |
| 64 |
<span class="wpie-item_heading_toogle"> |
| 65 |
<span class="wpie-icon wpie_icon-chevron-down"></span> |
| 66 |
<span class="wpie-icon wpie_icon-chevron-up "></span> |
| 67 |
</span> |
| 68 |
</summary> |
| 69 |
<div class="wpie-item_content"> |
| 70 |
|
| 71 |
<div class="wpie-fieldset"> |
| 72 |
<div class="wpie-fields"> |
| 73 |
<?php |
| 74 |
$field->create( 'item_type' ); ?><?php |
| 75 |
$field->create( 'item_link' ); ?> |
| 76 |
</div> |
| 77 |
</div> |
| 78 |
|
| 79 |
<div class="wpie-fieldset"> |
| 80 |
<div class="wpie-legend"><?php |
| 81 |
esc_html_e( 'Attributes', 'button-generation' ); ?></div> |
| 82 |
<div class="wpie-fields"> |
| 83 |
<?php $field->create( 'button_id' ); ?> |
| 84 |
<?php $field->create( 'button_class' ); ?> |
| 85 |
<?php $field->create( 'aria_label' ); ?> |
| 86 |
</div> |
| 87 |
</div> |
| 88 |
|
| 89 |
</div> |
| 90 |
</details> |
| 91 |
|
| 92 |
<?php |
| 93 |
|