| 1 |
<?php |
| 2 |
/** |
| 3 |
* Generate class for main menu icon |
| 4 |
* |
| 5 |
* @package Wow_Plugin |
| 6 |
* @subpackage Admin/Main_page |
| 7 |
* @author Dmytro Lobov <i@wpbiker.com> |
| 8 |
* @copyright 2019 Wow-Company |
| 9 |
* @license GNU Public License |
| 10 |
* @version 1.0 |
| 11 |
*/ |
| 12 |
|
| 13 |
if ( ! defined( 'ABSPATH' ) ) { |
| 14 |
exit; |
| 15 |
} |
| 16 |
|
| 17 |
include_once plugin_dir_path( __FILE__ ) . 'add-new/settings/icons.php'; |
| 18 |
|
| 19 |
?> |
| 20 |
<div class="about-wrap wow-support"> |
| 21 |
<div class="feature-section one-col"> |
| 22 |
<div class="col"> |
| 23 |
|
| 24 |
<div class="wow-plugin"> |
| 25 |
|
| 26 |
<h3> |
| 27 |
<?php _e( 'Generate icon class for main menu', $this->plugin['text'] ); ?> |
| 28 |
</h3> |
| 29 |
|
| 30 |
|
| 31 |
<div class="container"> |
| 32 |
<div class="element"> |
| 33 |
<?php _e( 'Select icon', $this->plugin['text'] ); ?><br/> |
| 34 |
<select class="icons" id="select_icon" onchange="menuicon();"> |
| 35 |
<?php |
| 36 |
$icon_select = ''; |
| 37 |
foreach ( $icons as $icon ) { |
| 38 |
$icon_select .= '<option value="' . $icon . '">' . $icon . '</option>'; |
| 39 |
}; |
| 40 |
echo $icon_select; |
| 41 |
?> |
| 42 |
</select> |
| 43 |
|
| 44 |
</div> |
| 45 |
<div class="element"> |
| 46 |
<?php _e( 'Icon position', $this->plugin['text'] ); ?> |
| 47 |
<select id="icon_position" onchange="menuicon();"> |
| 48 |
<option value=""><?php _e( 'Before Menu item', $this->plugin['text'] ); ?></option> |
| 49 |
<option value=" fa-after"><?php _e( 'After Menu item', $this->plugin['text'] ); ?></option> |
| 50 |
</select> |
| 51 |
</div> |
| 52 |
</div> |
| 53 |
|
| 54 |
<div class="container"> |
| 55 |
<div class="element"> |
| 56 |
<h4><?php _e( 'Icon Class', $this->plugin['text'] ); ?>: <span id="icon_class" style="color:#37c781;"/></span> </h4> |
| 57 |
</div> |
| 58 |
</div> |
| 59 |
|
| 60 |
<fieldset class="triggers-open-notice"> |
| 61 |
<legend style="color:red"><?php _e( 'Notice!', $this->plugin['text'] ); ?></legend> |
| 62 |
<div class="container"> |
| 63 |
<div class="element"> |
| 64 |
<?php _e( 'You can open popup via adding to the element:', $this->plugin['text'] ); ?> |
| 65 |
<ul> |
| 66 |
<li>• Copy Icon Class</li> |
| 67 |
<li>• Go to Appearance -> Menus, select which menu item to which you want to add the icon, and add the icon class(es) under 'CSS Classes (optional)'. Click 'Screen Options' (top right of screen) and make sure that 'CSS Classes' is checked. If not - check it!</li> |
| 68 |
<li>• Paste Icon Class to item 'CSS Classes'</li> |
| 69 |
</ul> |
| 70 |
</div> |
| 71 |
</div> |
| 72 |
</fieldset> |
| 73 |
|
| 74 |
|
| 75 |
</div> |
| 76 |
</div> |
| 77 |
</div> |
| 78 |
</div> |
| 79 |
|