YITH WooCommerce Wishlist - Version 2.0.4

Version Description

  • Added: Options for browse wishlist/already in wishlist/product added strings
  • Added: rel nofollow to add to wishlist button
  • Tweak: moved wishlist response popup handling to separate js file
  • Updated: WPML xml configuration
  • Updated: string revision
Download this release

Release Info

Developer yithemes
Plugin Icon 128x128 YITH WooCommerce Wishlist
Version 2.0.4
Comparing to
See all releases

Code changes from version 2.0.3 to 2.0.4

Files changed (46) hide show
  1. README.txt +15 -7
  2. assets/js/jquery.yith-wcwl.js +2 -1
  3. assets/js/unminified/jquery.yith-wcwl.js +21 -0
  4. includes/class.yith-wcwl-admin-init.php +1469 -1434
  5. includes/class.yith-wcwl-init.php +1 -1
  6. includes/class.yith-wcwl-shortcode.php +331 -325
  7. includes/class.yith-wcwl-ui.php +1 -2
  8. includes/class.yith-wcwl.php +2 -2
  9. init.php +1 -1
  10. languages/default.po +217 -193
  11. languages/yit-de_DE.mo +0 -0
  12. languages/yit-de_DE.po +234 -194
  13. languages/yit-es_AR.mo +0 -0
  14. languages/yit-es_AR.po +236 -195
  15. languages/yit-es_MX.mo +0 -0
  16. languages/yit-es_MX.po +234 -195
  17. languages/yit-fr_FR.mo +0 -0
  18. languages/yit-fr_FR.po +234 -195
  19. languages/yit-he_IL.mo +0 -0
  20. languages/yit-he_IL.po +231 -194
  21. languages/yit-it_IT.mo +0 -0
  22. languages/yit-it_IT.po +242 -198
  23. languages/yit-pt_BR.mo +0 -0
  24. languages/yit-pt_BR.po +232 -194
  25. languages/yit-tr_TR.mo +0 -0
  26. languages/yit-tr_TR.po +233 -195
  27. languages/yit-uk_UA.mo +0 -0
  28. languages/yit-uk_UA.po +220 -193
  29. languages/yit.pot +217 -193
  30. plugin-fw/assets/css/yit-plugin-panel.css +17 -1
  31. plugin-fw/lib/yit-cpt-unlimited.php +3 -3
  32. plugin-fw/lib/yit-metabox.php +1 -1
  33. plugin-fw/lib/yit-plugin-panel-wc.php +22 -2
  34. plugin-fw/lib/yit-plugin-panel.php +9 -4
  35. plugin-fw/lib/yit-plugin-subpanel.php +2 -2
  36. plugin-fw/lib/yit-pointers.php +2 -2
  37. plugin-fw/lib/yit-upgrade.php +3 -3
  38. plugin-fw/licence/lib/yit-licence.php +2 -2
  39. plugin-fw/templates/metaboxes/types/contactform.php +12 -12
  40. plugin-fw/templates/metaboxes/types/sidebar-layout.php +1 -1
  41. plugin-fw/templates/panel/woocommerce/woocommerce-form.php +2 -2
  42. plugin-fw/yit-functions.php +1 -1
  43. templates/add-to-wishlist-button.php +1 -1
  44. templates/add-to-wishlist.php +5 -18
  45. templates/admin/wishlist-panel-premium.php +2 -2
  46. wpml-config.xml +16 -12
README.txt CHANGED
@@ -4,7 +4,7 @@ Contributors: yithemes
4
Tags: wishlist, woocommerce, products, themes, yit, e-commerce, shop, ecommerce wishlist, yith, woocommerce wishlist, woocommerce 2.3 ready, shop wishlist
5
Requires at least: 3.5.1
6
Tested up to: 4.1.1
7
- Stable tag: 2.0.3
8
License: GPLv2 or later
9
License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
@@ -86,6 +86,14 @@ This might depend on the fact that your theme overrides plugin templates. Check
86
87
== Changelog ==
88
89
= 2.0.3 =
90
91
* Tweak: set correct protocol for admin-ajax requests
@@ -219,10 +227,10 @@ Full documentation is available [here](http://yithemes.com/docs-plugins/yith-woo
219
220
== Upgrade notice ==
221
222
- = 2.0.3 =
223
224
- * Tweak: set correct protocol for admin-ajax requests
225
- * Tweak: used wc core function to set cookie
226
- * Tweak: let customization of add_to_wishlist shortcodes
227
- * Fixed: show add to cart column when stock status disabled
228
- * Fixed: product existing in wishlist
4
Tags: wishlist, woocommerce, products, themes, yit, e-commerce, shop, ecommerce wishlist, yith, woocommerce wishlist, woocommerce 2.3 ready, shop wishlist
5
Requires at least: 3.5.1
6
Tested up to: 4.1.1
7
+ Stable tag: 2.0.4
8
License: GPLv2 or later
9
License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
86
87
== Changelog ==
88
89
+ = 2.0.4 =
90
+
91
+ * Added: Options for browse wishlist/already in wishlist/product added strings
92
+ * Added: rel nofollow to add to wishlist button
93
+ * Tweak: moved wishlist response popup handling to separate js file
94
+ * Updated: WPML xml configuration
95
+ * Updated: string revision
96
+
97
= 2.0.3 =
98
99
* Tweak: set correct protocol for admin-ajax requests
227
228
== Upgrade notice ==
229
230
+ = 2.0.4 =
231
232
+ * Added: Options for browse wishlist/already in wishlist/product added strings
233
+ * Added: rel nofollow to add to wishlist button
234
+ * Tweak: moved wishlist response popup handling to separate js file
235
+ * Updated: WPML xml configuration
236
+ * Updated: string revision
assets/js/jquery.yith-wcwl.js CHANGED
@@ -7,4 +7,5 @@ yith_wcwl_l10n.hide_add_button)&&d.find(".yith-wcwl-add-button").hide().removeCl
7
b.fadeTo("400","0.6").block({message:null,overlayCSS:{background:"transparent url("+yith_wcwl_l10n.ajax_loader_url+") no-repeat center",backgroundSize:"16px 16px",opacity:.6}});c("#yith-wcwl-form").load(yith_wcwl_l10n.ajax_url,d,function(){b.stop(!0).css("opacity","1").unblock()})}function f(a){var b=c(this);a.preventDefault();b.parents(".wishlist-title").next().show();b.parents(".wishlist-title").hide()}function k(){if(navigator.cookieEnabled)return!0;document.cookie="cookietest=1";var a=-1!=document.cookie.indexOf("cookietest=");
8
document.cookie="cookietest=1; expires=Thu, 01-Jan-1970 00:00:01 GMT";return a}var m="undefined"!==typeof wc_add_to_cart_params?wc_add_to_cart_params.cart_redirect_after_add:"";c(document).on("click",".add_to_wishlist",function(a){var b=c(this);a.preventDefault();h(b);return!1});c(document).on("click",".remove_from_wishlist",function(a){var b=c(this);a.preventDefault();l(b);return!1});c(document).on("adding_to_cart","body",function(a,b,c){0!=b.closest(".wishlist_table").length&&(c.remove_from_wishlist_after_add_to_cart=
9
b.closest("tr").data("row-id"),c.wishlist_id=b.closest("table").data("id"),wc_add_to_cart_params.cart_redirect_after_add=yith_wcwl_l10n.redirect_to_cart)});c(document).on("added_to_cart","body",function(a){wc_add_to_cart_params.cart_redirect_after_add=m;a=c(".wishlist_table");a.find(".added").removeClass("added");a.find(".added_to_cart").remove()});c(document).on("click",".show-title-form",f);c(document).on("click",".wishlist-title-with-form h2",f);c(document).on("click",".hide-title-form",function(a){var b=
10
- c(this);a.preventDefault();b.parents(".hidden-title-form").hide();b.parents(".hidden-title-form").prev().show()});c(document).on("change",".yith-wcwl-popup-content .wishlist-select",function(a){a=c(this);"new"==a.val()?a.parents(".yith-wcwl-first-row").next(".yith-wcwl-second-row").css("display","table-row"):a.parents(".yith-wcwl-first-row").next(".yith-wcwl-second-row").hide()});c("select.selectBox").selectBox()});
7
b.fadeTo("400","0.6").block({message:null,overlayCSS:{background:"transparent url("+yith_wcwl_l10n.ajax_loader_url+") no-repeat center",backgroundSize:"16px 16px",opacity:.6}});c("#yith-wcwl-form").load(yith_wcwl_l10n.ajax_url,d,function(){b.stop(!0).css("opacity","1").unblock()})}function f(a){var b=c(this);a.preventDefault();b.parents(".wishlist-title").next().show();b.parents(".wishlist-title").hide()}function k(){if(navigator.cookieEnabled)return!0;document.cookie="cookietest=1";var a=-1!=document.cookie.indexOf("cookietest=");
8
document.cookie="cookietest=1; expires=Thu, 01-Jan-1970 00:00:01 GMT";return a}var m="undefined"!==typeof wc_add_to_cart_params?wc_add_to_cart_params.cart_redirect_after_add:"";c(document).on("click",".add_to_wishlist",function(a){var b=c(this);a.preventDefault();h(b);return!1});c(document).on("click",".remove_from_wishlist",function(a){var b=c(this);a.preventDefault();l(b);return!1});c(document).on("adding_to_cart","body",function(a,b,c){0!=b.closest(".wishlist_table").length&&(c.remove_from_wishlist_after_add_to_cart=
9
b.closest("tr").data("row-id"),c.wishlist_id=b.closest("table").data("id"),wc_add_to_cart_params.cart_redirect_after_add=yith_wcwl_l10n.redirect_to_cart)});c(document).on("added_to_cart","body",function(a){wc_add_to_cart_params.cart_redirect_after_add=m;a=c(".wishlist_table");a.find(".added").removeClass("added");a.find(".added_to_cart").remove()});c(document).on("click",".show-title-form",f);c(document).on("click",".wishlist-title-with-form h2",f);c(document).on("click",".hide-title-form",function(a){var b=
10
+ c(this);a.preventDefault();b.parents(".hidden-title-form").hide();b.parents(".hidden-title-form").prev().show()});c(document).on("change",".yith-wcwl-popup-content .wishlist-select",function(a){a=c(this);"new"==a.val()?a.parents(".yith-wcwl-first-row").next(".yith-wcwl-second-row").css("display","table-row"):a.parents(".yith-wcwl-first-row").next(".yith-wcwl-second-row").hide()});(function(){if(0!=c(".yith-wcwl-add-to-wishlist").length&&0==c("#yith-wcwl-popup-message").length){var a=c("<div>").attr("id",
11
+ "yith-wcwl-message"),a=c("<div>").attr("id","yith-wcwl-popup-message").html(a).hide();c("body").prepend(a)}})();c("select.selectBox").selectBox()});
assets/js/unminified/jquery.yith-wcwl.js CHANGED
@@ -57,6 +57,8 @@ jQuery( document ).ready( function( $ ){
57
}
58
} );
59
60
/**
61
* Adds selectbox where needed
62
*/
@@ -249,4 +251,23 @@ jQuery( document ).ready( function( $ ){
249
250
return ret;
251
}
252
});
57
}
58
} );
59
60
+ add_wishlist_popup();
61
+
62
/**
63
* Adds selectbox where needed
64
*/
251
252
return ret;
253
}
254
+
255
+ /**
256
+ * Add wishlist popup message
257
+ *
258
+ * @return void
259
+ * @since 2.0.0
260
+ */
261
+ function add_wishlist_popup() {
262
+ if( $('.yith-wcwl-add-to-wishlist').length != 0 && $( '#yith-wcwl-popup-message' ).length == 0 ) {
263
+ var message_div = $( '<div>' )
264
+ .attr( 'id', 'yith-wcwl-message' ),
265
+ popup_div = $( '<div>' )
266
+ .attr( 'id', 'yith-wcwl-popup-message' )
267
+ .html( message_div )
268
+ .hide();
269
+
270
+ $( 'body' ).prepend( popup_div );
271
+ }
272
+ }
273
});
includes/class.yith-wcwl-admin-init.php CHANGED
@@ -8,1443 +8,1478 @@
8
*/
9
10
if ( ! defined( 'YITH_WCWL' ) ) {
11
- exit;
12
} // Exit if accessed directly
13
14
if ( ! class_exists( 'YITH_WCWL_Admin_Init' ) ) {
15
- /**
16
- * Initiator class. Create and populate admin views.
17
- *
18
- * @since 1.0.0
19
- */
20
- class YITH_WCWL_Admin_Init {
21
-
22
- /**
23
- * Single instance of the class
24
- *
25
- * @var \YITH_WCWL_Admin_Init
26
- * @since 2.0.0
27
- */
28
- protected static $instance;
29
-
30
- /**
31
- * Plugin version
32
- *
33
- * @var string
34
- * @since 1.0.0
35
- */
36
- public $version = '2.0.3';
37
-
38
- /**
39
- * Plugin database version
40
- *
41
- * @var string
42
- * @since 1.0.0
43
- */
44
- public $db_version = '2.0.0';
45
-
46
- /**
47
- * Wishlist panel
48
- *
49
- * @var string Panel hookname
50
- * @since 2.0.0
51
- */
52
- protected $_panel = null;
53
-
54
- /**
55
- * Tab name
56
- *
57
- * @var string
58
- * @since 1.0.0
59
- */
60
- public $tab;
61
-
62
- /**
63
- * Various links
64
- *
65
- * @var string
66
- * @access public
67
- * @since 1.0.0
68
- */
69
- public $banner_url = 'http://cdn.yithemes.com/plugins/yith_wishlist.php?url';
70
- public $banner_img = 'http://cdn.yithemes.com/plugins/yith_wishlist.php';
71
- public $doc_url = 'http://yithemes.com/docs-plugins/yith-woocommerce-wishlist/';
72
- public $premium_landing_url = 'http://yithemes.com/themes/plugins/yith-woocommerce-wishlist/';
73
-
74
- /**
75
- * Plugin options
76
- *
77
- * @var array
78
- * @since 1.0.0
79
- */
80
- public $options;
81
-
82
- /**
83
- * List of available tab for wishlist panel
84
- *
85
- * @var array
86
- * @access public
87
- * @since 2.0.0
88
- */
89
- public $available_tabs = array();
90
-
91
- /**
92
- * Default tab to show when no selected
93
- *
94
- * @var string
95
- * @access public
96
- * @since 2.0.0
97
- */
98
- public $default_tab = 'settings';
99
-
100
- /**
101
- * Returns single instance of the class
102
- *
103
- * @return \YITH_WCWL_Admin_Init
104
- * @since 2.0.0
105
- */
106
- public static function get_instance(){
107
- if( is_null( self::$instance ) ){
108
- self::$instance = new self();
109
- }
110
-
111
- return self::$instance;
112
- }
113
-
114
- /**
115
- * Constructor of the class
116
- *
117
- * @return \YITH_WCWL_Admin_Init
118
- * @since 2.0.0
119
- */
120
- public function __construct(){
121
- define( 'YITH_WCWL_VERSION', $this->version );
122
- define( 'YITH_WCWL_DB_VERSION', $this->db_version );
123
-
124
- // init premium features for admin panel
125
- if( function_exists( 'YITH_WCWL_Admin_Premium' ) ){
126
- YITH_WCWL_Admin_Premium();
127
- }
128
-
129
- /**
130
- * Support to WC 2.0.x
131
- */
132
- global $woocommerce;
133
- $is_woocommerce_2_0 = version_compare( preg_replace( '/-beta-([0-9]+)/', '', $woocommerce->version ), '2.1', '<' );
134
-
135
- $this->options = $this->_plugin_options();
136
-
137
- if ( ! defined( 'DOING_AJAX' ) ) {
138
- $this->install();
139
- }
140
-
141
- add_action( 'init', array( $this, 'init' ), 0 );
142
- add_action( 'admin_enqueue_scripts', array( $this, 'enqueue' ), 20 );
143
- add_filter( 'plugin_action_links_' . plugin_basename( YITH_WCWL_DIR . 'init.php' ), array( $this, 'action_links' ) );
144
- add_filter( 'plugin_row_meta', array( $this, 'add_plugin_meta' ), 10, 2 );
145
-
146
- if( $is_woocommerce_2_0 ) {
147
- add_filter( 'woocommerce_page_settings', array( $this, 'add_page_setting_woocommerce' ) );
148
- }
149
-
150
- // saves panel options
151
- add_action( 'woocommerce_update_option_yith_wcwl_color_panel', array( $this, 'update_color_options' ) );
152
-
153
- // handles custom wc option type
154
- add_action( 'woocommerce_admin_field_yith_wcwl_color_panel', array( $this, 'print_color_panel' ) );
155
-
156
- // register wishlist panel
157
- add_action( 'admin_menu', array( $this, 'register_panel' ), 5 );
158
- add_action( 'yith_wcwl_premium_tab', array( $this, 'print_premium_tab' ) );
159
-
160
- // register pointer methods
161
- add_action( 'admin_init', array( $this, 'register_pointer' ) );
162
-
163
- //Apply filters
164
- $this->banner_url = apply_filters( 'yith_wcmg_banner_url', $this->banner_url );
165
- }
166
-
167
- /* === INITIALIZATION SECTION === */
168
-
169
- /**
170
- * Initiator method. Initiate properties.
171
- *
172
- * @return void
173
- * @access private
174
- * @since 1.0.0
175
- */
176
- public function init() {
177
- $this->tab = __( 'Wishlist', 'yit' );
178
- $this->available_tabs = apply_filters( 'yith_wcwl_available_admin_tabs', array(
179
- 'settings' => __( 'Settings', 'yit' ),
180
- 'colors' => __( 'Colors', 'yit' ),
181
- 'premium' => __( 'Premium Version', 'yit' )
182
- ) );
183
- $this->default_tab = apply_filters( 'yith_wcwl_default_admin_tab', $this->default_tab );
184
-
185
- wp_register_style( 'yith-wcwl-admin', YITH_WCWL_URL . 'assets/css/admin.css' );
186
- }
187
-
188
- /**
189
- * Run the installation
190
- *
191
- * @return void
192
- * @since 1.0.0
193
- */
194
- public function install() {
195
- $stored_db_version = get_option( 'yith_wcwl_db_version' );
196
-
197
- if( $stored_db_version == '1.0.0' ){
198
- add_action( 'init', array( YITH_WCWL_Install(), 'update' ) );
199
- add_action( 'init', 'flush_rewrite_rules' );
200
- YITH_WCWL_Install()->default_options( $this->options );
201
-
202
- // Plugin installed
203
- do_action( 'yith_wcwl_installed' );
204
- do_action( 'yith_wcwl_updated' );
205
- }
206
- elseif ( $this->db_version != $stored_db_version || ! YITH_WCWL_Install()->is_installed() ) {
207
- add_action( 'init', array( YITH_WCWL_Install(), 'init' ) );
208
- YITH_WCWL_Install()->default_options( $this->options );
209
-
210
- // Plugin installed
211
- do_action( 'yith_wcwl_installed' );
212
- }
213
- }
214
-
215
- /**
216
- * Update plugin color options.
217
- *
218
- * @return void
219
- * @since 1.0.0
220
- */
221
- public function update_color_options() {
222
- global $pagenow;
223
-
224
- $colors_options = array();
225
-
226
- foreach ( YITH_WCWL_Init()->colors_options as $name => $option ) {
227
- foreach ( $option as $id => $color ) {
228
- $default_value = isset( $colors_options[$name][$id] ) ? $colors_options[$name][$id] : '';
229
- $colors_options[$name][$id] = isset( $_POST['yith_wcwl_color_' . $name . '_' . $id] ) && ! empty( $_POST['yith_wcwl_color_' . $name . '_' . $id] ) ? woocommerce_format_hex( $_POST['yith_wcwl_color_' . $name . '_' . $id] ) : $default_value;
230
- }
231
- }
232
-
233
- update_option( 'yith_wcwl_frontend_css_colors', maybe_serialize( $colors_options ) );
234
- }
235
-
236
- /**
237
- * Print color panel.
238
- *
239
- * @return void
240
- * @since 1.0.0
241
- */
242
- public function print_color_panel() {
243
- ?>
244
- <div id="yith_wcwl_styles_colors">
245
- <h3><?php _e( 'Colors', 'yit' ) ?></h3>
246
- <?php $this->_styles_options() ?>
247
- </div> <?php
248
- }
249
-
250
- /**
251
- * Add the select for the Wishlist page in WooCommerce > Settings > Pages
252
- *
253
- * @param array $settings
254
- *
255
- * @return array
256
- * @since 1.0.0
257
- */
258
- public function add_page_setting_woocommerce( $settings ) {
259
- unset( $settings[count( $settings ) - 1] );
260
-
261
- $setting[] = $this->get_wcwl_page_option();
262
-
263
- $settings[] = array( 'type' => 'sectionend', 'id' => 'page_options' );
264
-
265
- return $settings;
266
- }
267
-
268
- /**
269
- * action_links function.
270
- *
271
- * @access public
272
- *
273
- * @param mixed $links
274
- * @return array
275
- */
276
- public function action_links( $links ) {
277
- $plugin_links = array(
278
- '<a href="' . admin_url( 'admin.php?page=yith_wcwl_panel&tab=settings' ) . '">' . __( 'Settings', 'yit' ) . '</a>'
279
- );
280
-
281
- if( ! function_exists( 'YITH_WCWL_Premium' ) ){
282
- $plugin_links[] = '<a target="_blank" href="' . $this->premium_landing_url . '">' . __( 'Premium Version', 'yit' ) . '</a>';
283
- }
284
-
285
- return array_merge( $links, $plugin_links );
286
- }
287
-
288
- /**
289
- * Adds plugin row meta
290
- *
291
- * @param $plugin_meta array
292
- * @param $plugin_file string
293
- * @return array
294
- * @since 2.0.0
295
- */
296
- public function add_plugin_meta( $plugin_meta, $plugin_file ){
297
- global $woocommerce;
298
-
299
- if ( $plugin_file == plugin_basename( YITH_WCWL_DIR . 'init.php' ) ) {
300
-
301
- // outdated wc alert
302
-
303
- if( version_compare( preg_replace( '/-beta-([0-9]+)/', '', $woocommerce->version ), '2.2', '<' ) ){
304
- $woocommerce_file = $woocommerce->plugin_path;
305
- if ( ! is_multisite() && current_user_can( 'delete_plugins' ) ) {
306
- $plugin_meta['outdated_wc_alert'] = '<a class="outdated-wc-alert" style="color: red" href="' . wp_nonce_url( self_admin_url( 'update.php?action=upgrade-plugin&plugin=' ) . $woocommerce_file, 'upgrade-plugin_' . $woocommerce_file ) . '">' . __( 'WARNING: This plugin requires at least WooCommerce 2.2! Plase, use this link to update it.', 'yit' ) . '</a>';
307
- }
308
- else{
309
- $plugin_meta['outdated_wc_alert'] = '<span class="outdated-wc-alert" style="color: red">' . __( 'WARNING: This plugin requires at least WooCommerce 2.2!', 'yit' ) . '</span>';
310
- }
311
- }
312
-
313
- // documentation link
314
- $plugin_meta['documentation'] = '<a target="_blank" href="' . $this->doc_url . '">' . __( 'Plugin Documentation', 'yit' ) . '</a>';
315
- }
316
-
317
- return $plugin_meta;
318
- }
319
-
320
- /**
321
- * Return the option to add the wishlist page
322
- *
323
- * @access public
324
- * @return mxied array
325
- * @since 1.1.3
326
- */
327
- public function get_wcwl_page_option(){
328
-
329
- return array(
330
- 'name' => __( 'Wishlist Page', 'yit' ),
331
- 'desc' => __( 'Page contents: [yith_wcwl_wishlist]', 'yit' ),
332
- 'id' => 'yith_wcwl_wishlist_page_id',
333
- 'type' => 'single_select_page',
334
- 'std' => '', // for woocommerce < 2.0
335
- 'default' => '', // for woocommerce >= 2.0
336
- 'class' => 'chosen_select_nostd',
337
- 'css' => 'min-width:300px;',
338
- 'desc_tip' => false,
339
- );
340
- }
341
-
342
- /**
343
- * Print the banner
344
- *
345
- * @access protected
346
- * @return void
347
- * @since 1.0.0
348
- */
349
- protected function _printBanner() {
350
- ?>
351
- <div class="yith_banner">
352
- <a href="<?php echo $this->banner_url ?>" target="_blank">
353
- <img src="<?php echo $this->banner_img ?>" alt="" />
354
- </a>
355
- </div>
356
- <?php
357
- }
358
-
359
- /**
360
- * Plugin options and tabs.
361
- *
362
- * @return array
363
- * @since 1.0.0
364
- */
365
- private function _plugin_options() {
366
- $icons = array(
367
- 'fa-glass' => 'Glass',
368
- 'fa-music' => 'Music',
369
- 'fa-search' => 'Search',
370
- 'fa-envelope-o' => 'Envelope O',
371
- 'fa-heart' => 'Heart',
372
- 'fa-star' => 'Star',
373
- 'fa-star-o' => 'Star O',
374
- 'fa-user' => 'User',
375
- 'fa-film' => 'Film',
376
- 'fa-th-large' => 'Th Large',
377
- 'fa-th' => 'Th',
378
- 'fa-th-list' => 'Th List',
379
- 'fa-check' => 'Check',
380
- 'fa-remove' => 'Remove',
381
- 'fa-search-plus' => 'Search Plus',
382
- 'fa-search-minus' => 'Search Minus',
383
- 'fa-power-off' => 'Power Off',
384
- 'fa-signal' => 'Signal',
385
- 'fa-cog' => 'Cog',
386
- 'fa-trash-o' => 'Trash O',
387
- 'fa-home' => 'Home',
388
- 'fa-file-o' => 'File O',
389
- 'fa-clock-o' => 'Clock O',
390
- 'fa-road' => 'Road',
391
- 'fa-download' => 'Download',
392
- 'fa-arrow-circle-o-down' => 'Arrow Circle O Down',
393
- 'fa-arrow-circle-o-up' => 'Arrow Circle O Up',
394
- 'fa-inbox' => 'Inbox',
395
- 'fa-play-circle-o' => 'Play Circle O',
396
- 'fa-repeat' => 'Repeat',
397
- 'fa-refresh' => 'Refresh',
398
- 'fa-list-alt' => 'List Alt',
399
- 'fa-lock' => 'Lock',
400
- 'fa-flag' => 'Flag',
401
- 'fa-headphones' => 'Headphones',
402
- 'fa-volume-off' => 'Volume Off',
403
- 'fa-volume-down' => 'Volume Down',
404
- 'fa-volume-up' => 'Volume Up',
405
- 'fa-qrcode' => 'Qrcode',
406
- 'fa-barcode' => 'Barcode',
407
- 'fa-tag' => 'Tag',
408
- 'fa-tags' => 'Tags',
409
- 'fa-book' => 'Book',
410
- 'fa-bookmark' => 'Bookmark',
411
- 'fa-print' => 'Print',
412
- 'fa-camera' => 'Camera',
413
- 'fa-font' => 'Font',
414
- 'fa-bold' => 'Bold',
415
- 'fa-italic' => 'Italic',
416
- 'fa-text-height' => 'Text Height',
417
- 'fa-text-width' => 'Text Width',
418
- 'fa-align-left' => 'Align Left',
419
- 'fa-align-center' => 'Align Center',
420
- 'fa-align-right' => 'Align Right',
421
- 'fa-align-justify' => 'Align Justify',
422
- 'fa-list' => 'List',
423
- 'fa-dedent' => 'Dedent',
424
- 'fa-indent' => 'Indent',
425
- 'fa-video-camera' => 'Video Camera',
426
- 'fa-picture-o' => 'Photo',
427
- 'fa-pencil' => 'Pencil',
428
- 'fa-map-marker' => 'Map Marker',
429
- 'fa-adjust' => 'Adjust',
430
- 'fa-tint' => 'Tint',
431
- 'fa-edit' => 'Edit',
432
- 'fa-share-square-o' => 'Share Square O',
433
- 'fa-check-square-o' => 'Check Square O',
434
- 'fa-arrows' => 'Arrows',
435
- 'fa-step-backward' => 'Step Backward',
436
- 'fa-fast-backward' => 'Fast Backward',
437
- 'fa-backward' => 'Backward',
438
- 'fa-play' => 'Play',
439
- 'fa-pause' => 'Pause',
440
- 'fa-stop' => 'Stop',
441
- 'fa-forward' => 'Forward',
442
- 'fa-fast-forward' => 'Fast Forward',
443
- 'fa-step-forward' => 'Step Forward',
444
- 'fa-eject' => 'Eject',
445
- 'fa-chevron-left' => 'Chevron Left',
446
- 'fa-chevron-right' => 'Chevron Right',
447
- 'fa-plus-circle' => 'Plus Circle',
448
- 'fa-minus-circle' => 'Minus Circle',
449
- 'fa-times-circle' => 'Times Circle',
450
- 'fa-check-circle' => 'Check Circle',
451
- 'fa-question-circle' => 'Question Circle',
452
- 'fa-info-circle' => 'Info Circle',
453
- 'fa-crosshairs' => 'Crosshairs',
454
- 'fa-times-circle-o' => 'Times Circle O',
455
- 'fa-check-circle-o' => 'Check Circle O',
456
- 'fa-ban' => 'Ban',
457
- 'fa-arrow-left' => 'Arrow Left',
458
- 'fa-arrow-right' => 'Arrow Right',
459
- 'fa-arrow-up' => 'Arrow Up',
460
- 'fa-arrow-down' => 'Arrow Down',
461
- 'fa-share' => 'Share',
462
- 'fa-expand' => 'Expand',
463
- 'fa-compress' => 'Compress',
464
- 'fa-plus' => 'Plus',
465
- 'fa-minus' => 'Minus',
466
- 'fa-asterisk' => 'Asterisk',
467
- 'fa-exclamation-circle' => 'Exclamation Circle',
468
- 'fa-gift' => 'Gift',
469
- 'fa-leaf' => 'Leaf',
470
- 'fa-fire' => 'Fire',
471
- 'fa-eye' => 'Eye',
472
- 'fa-eye-slash' => 'Eye Slash',
473
- 'fa-warning' => 'Warning',
474
- 'fa-plane' => 'Plane',
475
- 'fa-calendar' => 'Calendar',
476
- 'fa-random' => 'Random',
477
- 'fa-comment' => 'Comment',
478
- 'fa-magnet' => 'Magnet',
479
- 'fa-chevron-up' => 'Chevron Up',
480
- 'fa-chevron-down' => 'Chevron Down',
481
- 'fa-retweet' => 'Retweet',
482
- 'fa-shopping-cart' => 'Shopping Cart',
483
- 'fa-folder' => 'Folder',
484
- 'fa-folder-open' => 'Folder Open',
485
- 'fa-arrows-v' => 'Arrows V',
486
- 'fa-arrows-h' => 'Arrows H',
487
- 'fa-bar-chart' => 'Bar Chart',
488
- 'fa-twitter-square' => 'Twitter Square',
489
- 'fa-facebook-square' => 'Facebook Square',
490
- 'fa-camera-retro' => 'Camera Retro',
491
- 'fa-key' => 'Key',
492
- 'fa-cogs' => 'Cogs',
493
- 'fa-comments' => 'Comments',
494
- 'fa-thumbs-o-up' => 'Thumbs O Up',
495
- 'fa-thumbs-o-down' => 'Thumbs O Down',
496
- 'fa-star-half' => 'Star Half',
497
- 'fa-heart-o' => 'Heart O',
498
- 'fa-sign-out' => 'Sign Out',
499
- 'fa-linkedin-square' => 'Linkedin Square',
500
- 'fa-thumb-tack' => 'Thumb Tack',
501
- 'fa-external-link' => 'External Link',
502
- 'fa-sign-in' => 'Sign In',
503
- 'fa-trophy' => 'Trophy',
504
- 'fa-github-square' => 'Github Square',
505
- 'fa-upload' => 'Upload',
506
- 'fa-lemon-o' => 'Lemon O',
507
- 'fa-phone' => 'Phone',
508
- 'fa-square-o' => 'Square O',
509
- 'fa-bookmark-o' => 'Bookmark O',
510
- 'fa-phone-square' => 'Phone Square',
511
- 'fa-twitter' => 'Twitter',
512
- 'fa-facebook' => 'Facebook',
513
- 'fa-github' => 'Github',
514
- 'fa-unlock' => 'Unlock',
515
- 'fa-credit-card' => 'Credit Card',
516
- 'fa-rss' => 'Rss',
517
- 'fa-hdd-o' => 'Hdd O',
518
- 'fa-bullhorn' => 'Bullhorn',
519
- 'fa-bell' => 'Bell',
520
- 'fa-certificate' => 'Certificate',
521
- 'fa-hand-o-right' => 'Hand O Right',
522
- 'fa-hand-o-left' => 'Hand O Left',
523
- 'fa-hand-o-up' => 'Hand O Up',
524
- 'fa-hand-o-down' => 'Hand O Down',
525
- 'fa-arrow-circle-left' => 'Arrow Circle Left',
526
- 'fa-arrow-circle-right' => 'Arrow Circle Right',
527
- 'fa-arrow-circle-up' => 'Arrow Circle Up',
528
- 'fa-arrow-circle-down' => 'Arrow Circle Down',
529
- 'fa-globe' => 'Globe',
530
- 'fa-wrench' => 'Wrench',
531
- 'fa-tasks' => 'Tasks',
532
- 'fa-filter' => 'Filter',
533
- 'fa-briefcase' => 'Briefcase',
534
- 'fa-arrows-alt' => 'Arrows Alt',
535
- 'fa-group' => 'Group',
536
- 'fa-link' => 'Link',
537
- 'fa-cloud' => 'Cloud',
538
- 'fa-flask' => 'Flask',
539
- 'fa-cut' => 'Cut',
540
- 'fa-copy' => 'Copy',
541
- 'fa-paperclip' => 'Paperclip',
542
- 'fa-save' => 'Save',
543
- 'fa-square' => 'Square',
544
- 'fa-navicon' => 'Navicon',
545
- 'fa-list-ul' => 'List Ul',
546
- 'fa-list-ol' => 'List Ol',
547
- 'fa-strikethrough' => 'Strikethrough',
548
- 'fa-underline' => 'Underline',
549
- 'fa-table' => 'Table',
550
- 'fa-magic' => 'Magic',
551
- 'fa-truck' => 'Truck',
552
- 'fa-pinterest' => 'Pinterest',
553
- 'fa-pinterest-square' => 'Pinterest Square',
554
- 'fa-google-plus-square' => 'Google Plus Square',
555
- 'fa-google-plus' => 'Google Plus',
556
- 'fa-money' => 'Money',
557
- 'fa-caret-down' => 'Caret Down',
558
- 'fa-caret-up' => 'Caret Up',
559
- 'fa-caret-left' => 'Caret Left',
560
- 'fa-caret-right' => 'Caret Right',
561
- 'fa-columns' => 'Columns',
562
- 'fa-unsorted' => 'Unsorted',
563
- 'fa-sort-down' => 'Sort Down',
564
- 'fa-sort-up' => 'Sort Up',
565
- 'fa-envelope' => 'Envelope',
566
- 'fa-linkedin' => 'Linkedin',
567
- 'fa-undo' => 'Undo',
568
- 'fa-legal' => 'Legal',
569
- 'fa-dashboard' => 'Dashboard',
570
- 'fa-comment-o' => 'Comment O',
571
- 'fa-comments-o' => 'Comments O',
572
- 'fa-bolt' => 'Bolt',
573
- 'fa-sitemap' => 'Sitemap',
574
- 'fa-umbrella' => 'Umbrella',
575
- 'fa-paste' => 'Paste',
576
- 'fa-lightbulb-o' => 'Lightbulb O',
577
- 'fa-exchange' => 'Exchange',
578
- 'fa-cloud-download' => 'Cloud Download',
579
- 'fa-cloud-upload' => 'Cloud Upload',
580
- 'fa-user-md' => 'User Md',
581
- 'fa-stethoscope' => 'Stethoscope',
582
- 'fa-suitcase' => 'Suitcase',
583
- 'fa-bell-o' => 'Bell O',
584
- 'fa-coffee' => 'Coffee',
585
- 'fa-cutlery' => 'Cutlery',
586
- 'fa-file-text-o' => 'File Text O',
587
- 'fa-building-o' => 'Building O',
588
- 'fa-hospital-o' => 'Hospital O',
589
- 'fa-ambulance' => 'Ambulance',
590
- 'fa-medkit' => 'Medkit',
591
- 'fa-fighter-jet' => 'Fighter Jet',
592
- 'fa-beer' => 'Beer',
593
- 'fa-h-square' => 'H Square',
594
- 'fa-plus-square' => 'Plus Square',
595
- 'fa-angle-double-left' => 'Angle Double Left',
596
- 'fa-angle-double-right' => 'Angle Double Right',
597
- 'fa-angle-double-up' => 'Angle Double Up',
598
- 'fa-angle-double-down' => 'Angle Double Down',
599
- 'fa-angle-left' => 'Angle Left',
600
- 'fa-angle-right' => 'Angle Right',
601
- 'fa-angle-up' => 'Angle Up',
602
- 'fa-angle-down' => 'Angle Down',
603
- 'fa-desktop' => 'Desktop',
604
- 'fa-laptop' => 'Laptop',
605
- 'fa-tablet' => 'Tablet',
606
- 'fa-mobile' => 'Mobile',
607
- 'fa-circle-o' => 'Circle O',
608
- 'fa-quote-left' => 'Quote Left',
609
- 'fa-quote-right' => 'Quote Right',
610
- 'fa-spinner' => 'Spinner',
611
- 'fa-circle' => 'Circle',
612
- 'fa-reply' => 'Reply',
613
- 'fa-github-alt' => 'Github Alt',
614
- 'fa-folder-o' => 'Folder O',
615
- 'fa-folder-open-o' => 'Folder Open O',
616
- 'fa-smile-o' => 'Smile O',
617
- 'fa-frown-o' => 'Frown O',
618
- 'fa-meh-o' => 'Meh O',
619
- 'fa-gamepad' => 'Gamepad',
620
- 'fa-keyboard-o' => 'Keyboard O',
621
- 'fa-flag-o' => 'Flag O',
622
- 'fa-flag-checkered' => 'Flag Checkered',
623
- 'fa-terminal' => 'Terminal',
624
- 'fa-code' => 'Code',
625
- 'fa-reply-all' => 'Reply All',
626
- 'fa-star-half-o' => 'Star Half O',
627
- 'fa-location-arrow' => 'Location Arrow',
628
- 'fa-crop' => 'Crop',
629
- 'fa-code-fork' => 'Code Fork',
630
- 'fa-chain-broken' => 'Chain Broken',
631
- 'fa-question' => 'Question',
632
- 'fa-info' => 'Info',
633
- 'fa-exclamation' => 'Exclamation',
634
- 'fa-superscript' => 'Superscript',
635
- 'fa-subscript' => 'Subscript',
636
- 'fa-eraser' => 'Eraser',
637
- 'fa-puzzle-piece' => 'Puzzle Piece',
638
- 'fa-microphone' => 'Microphone',
639
- 'fa-microphone-slash' => 'Microphone Slash',
640
- 'fa-shield' => 'Shield',
641
- 'fa-calendar-o' => 'Calendar O',
642
- 'fa-fire-extinguisher' => 'Fire Extinguisher',
643
- 'fa-rocket' => 'Rocket',
644
- 'fa-maxcdn' => 'Maxcdn',
645
- 'fa-chevron-circle-left' => 'Chevron Circle Left',
646
- 'fa-chevron-circle-right' => 'Chevron Circle Right',
647
- 'fa-chevron-circle-up' => 'Chevron Circle Up',
648
- 'fa-chevron-circle-down' => 'Chevron Circle Down',
649
- 'fa-html5' => 'Html5',
650
- 'fa-css3' => 'Css3',
651
- 'fa-anchor' => 'Anchor',
652
- 'fa-unlock-alt' => 'Unlock Alt',
653
- 'fa-bullseye' => 'Bullseye',
654
- 'fa-ellipsis-h' => 'Ellipsis H',
655
- 'fa-ellipsis-v' => 'Ellipsis V',
656
- 'fa-rss-square' => 'Rss Square',
657
- 'fa-play-circle' => 'Play Circle',
658
- 'fa-ticket' => 'Ticket',
659
- 'fa-minus-square' => 'Minus Square',
660
- 'fa-minus-square-o' => 'Minus Square O',
661
- 'fa-level-up' => 'Level Up',
662
- 'fa-level-down' => 'Level Down',
663
- 'fa-check-square' => 'Check Square',
664
- 'fa-pencil-square' => 'Pencil Square',
665
- 'fa-external-link-square' => 'External Link Square',
666
- 'fa-share-square' => 'Share Square',
667
- 'fa-compass' => 'Compass',
668
- 'fa-caret-square-o-down' => 'Caret Square O Down',
669
- 'fa-caret-square-o-up' => 'Caret Square O Up',
670
- 'fa-caret-square-o-right' => 'Caret Square O Right',
671
- 'fa-eur' => 'Eur',
672
- 'fa-gbp' => 'Gbp',
673
- 'fa-usd' => 'Usd',
674
- 'fa-inr' => 'Inr',
675
- 'fa-jpy' => 'Jpy',
676
- 'fa-rub' => 'Rub',
677
- 'fa-krw' => 'Krw',
678
- 'fa-btc' => 'Btc',
679
- 'fa-file' => 'File',
680
- 'fa-file-text' => 'File Text',
681
- 'fa-sort-alpha-asc' => 'Sort Alpha Asc',
682
- 'fa-sort-alpha-desc' => 'Sort Alpha Desc',
683
- 'fa-sort-amount-asc' => 'Sort Amount Asc',
684
- 'fa-sort-amount-desc' => 'Sort Amount Desc',
685
- 'fa-sort-numeric-asc' => 'Sort Numeric Asc',
686
- 'fa-sort-numeric-desc' => 'Sort Numeric Desc',
687
- 'fa-thumbs-up' => 'Thumbs Up',
688
- 'fa-thumbs-down' => 'Thumbs Down',
689
- 'fa-youtube-square' => 'Youtube Square',
690
- 'fa-youtube' => 'Youtube',
691
- 'fa-xing' => 'Xing',
692
- 'fa-xing-square' => 'Xing Square',
693
- 'fa-youtube-play' => 'Youtube Play',
694
- 'fa-dropbox' => 'Dropbox',
695
- 'fa-stack-overflow' => 'Stack Overflow',
696
- 'fa-instagram' => 'Instagram',
697
- 'fa-flickr' => 'Flickr',
698
- 'fa-adn' => 'Adn',
699
- 'fa-bitbucket' => 'Bitbucket',
700
- 'fa-bitbucket-square' => 'Bitbucket Square',
701
- 'fa-tumblr' => 'Tumblr',
702
- 'fa-tumblr-square' => 'Tumblr Square',
703
- 'fa-long-arrow-down' => 'Long Arrow Down',
704
- 'fa-long-arrow-up' => 'Long Arrow Up',
705
- 'fa-long-arrow-left' => 'Long Arrow Left',
706
- 'fa-long-arrow-right' => 'Long Arrow Right',
707
- 'fa-apple' => 'Apple',
708
- 'fa-windows' => 'Windows',
709
- 'fa-android' => 'Android',
710
- 'fa-linux' => 'Linux',
711
- 'fa-dribbble' => 'Dribbble',
712
- 'fa-skype' => 'Skype',
713
- 'fa-foursquare' => 'Foursquare',
714
- 'fa-trello' => 'Trello',
715
- 'fa-female' => 'Female',
716
- 'fa-male' => 'Male',
717
- 'fa-gratipay' => 'Gratipay',
718
- 'fa-sun-o' => 'Sun O',
719
- 'fa-moon-o' => 'Moon O',
720
- 'fa-archive' => 'Archive',
721
- 'fa-bug' => 'Bug',
722
- 'fa-vk' => 'Vk',
723
- 'fa-weibo' => 'Weibo',
724
- 'fa-renren' => 'Renren',
725
- 'fa-pagelines' => 'Pagelines',
726
- 'fa-stack-exchange' => 'Stack Exchange',
727
- 'fa-arrow-circle-o-right' => 'Arrow Circle O Right',
728
- 'fa-arrow-circle-o-left' => 'Arrow Circle O Left',
729
- 'fa-caret-square-o-left' => 'Caret Square O Left',
730
- 'fa-dot-circle-o' => 'Dot Circle O',
731
- 'fa-wheelchair' => 'Wheelchair',
732
- 'fa-vimeo-square' => 'Vimeo Square',
733
- 'fa-try' => 'Try',
734
- 'fa-plus-square-o' => 'Plus Square O',
735
- 'fa-space-shuttle' => 'Space Shuttle',
736
- 'fa-slack' => 'Slack',
737
- 'fa-envelope-square' => 'Envelope Square',
738
- 'fa-wordpress' => 'Wordpress',
739
- 'fa-openid' => 'Openid',
740
- 'fa-university' => 'University',
741
- 'fa-graduation-cap' => 'Graduation Cap',
742
- 'fa-yahoo' => 'Yahoo',
743
- 'fa-google' => 'Google',
744
- 'fa-reddit' => 'Reddit',
745
- 'fa-reddit-square' => 'Reddit Square',
746
- 'fa-stumbleupon-circle' => 'Stumbleupon Circle',
747
- 'fa-stumbleupon' => 'Stumbleupon',
748
- 'fa-delicious' => 'Delicious',
749
- 'fa-digg' => 'Digg',
750
- 'fa-pied-piper' => 'Pied Piper',
751
- 'fa-pied-piper-alt' => 'Pied Piper Alt',
752
- 'fa-drupal' => 'Drupal',
753
- 'fa-joomla' => 'Joomla',
754
- 'fa-language' => 'Language',
755
- 'fa-fax' => 'Fax',
756
- 'fa-building' => 'Building',
757
- 'fa-child' => 'Child',
758
- 'fa-paw' => 'Paw',
759
- 'fa-spoon' => 'Spoon',
760
- 'fa-cube' => 'Cube',
761
- 'fa-cubes' => 'Cubes',
762
- 'fa-behance' => 'Behance',
763
- 'fa-behance-square' => 'Behance Square',
764
- 'fa-steam' => 'Steam',
765
- 'fa-steam-square' => 'Steam Square',
766
- 'fa-recycle' => 'Recycle',
767
- 'fa-car' => 'Car',
768
- 'fa-taxi' => 'Taxi',
769
- 'fa-tree' => 'Tree',
770
- 'fa-spotify' => 'Spotify',
771
- 'fa-deviantart' => 'Deviantart',
772
- 'fa-soundcloud' => 'Soundcloud',
773
- 'fa-database' => 'Database',
774
- 'fa-file-pdf-o' => 'File Pdf O',
775
- 'fa-file-word-o' => 'File Word O',
776
- 'fa-file-excel-o' => 'File Excel O',
777
- 'fa-file-powerpoint-o' => 'File Powerpoint O',
778
- 'fa-file-image-o' => 'File Image O',
779
- 'fa-file-archive-o' => 'File Archive O',
780
- 'fa-file-audio-o' => 'File Audio O',
781
- 'fa-file-video-o' => 'File Video O',
782
- 'fa-file-code-o' => 'File Code O',
783
- 'fa-vine' => 'Vine',
784
- 'fa-codepen' => 'Codepen',
785
- 'fa-jsfiddle' => 'Jsfiddle',
786
- 'fa-life-ring' => 'Life Ring',
787
- 'fa-circle-o-notch' => 'Circle O Notch',
788
- 'fa-rebel' => 'Rebel',
789
- 'fa-empire' => 'Empire',
790
- 'fa-git-square' => 'Git Square',
791
- 'fa-git' => 'Git',
792
- 'fa-hacker-news' => 'Hacker News',
793
- 'fa-tencent-weibo' => 'Tencent Weibo',
794
- 'fa-qq' => 'Qq',
795
- 'fa-weixin' => 'Weixin',
796
- 'fa-paper-plane' => 'Paper Plane',
797
- 'fa-paper-plane-o' => 'Paper Plane O',
798
- 'fa-history' => 'History',
799
- 'fa-circle-thin' => 'Circle Thin',
800
- 'fa-header' => 'Header',
801
- 'fa-paragraph' => 'Paragraph',
802
- 'fa-sliders' => 'Sliders',
803
- 'fa-share-alt' => 'Share Alt',
804
- 'fa-share-alt-square' => 'Share Alt Square',
805
- 'fa-bomb' => 'Bomb',
806
- 'fa-futbol-o' => 'Futbol O',
807
- 'fa-tty' => 'Tty',
808
- 'fa-binoculars' => 'Binoculars',
809
- 'fa-plug' => 'Plug',
810
- 'fa-slideshare' => 'Slideshare',
811
- 'fa-twitch' => 'Twitch',
812
- 'fa-yelp' => 'Yelp',
813
- 'fa-newspaper-o' => 'Newspaper O',
814
- 'fa-wifi' => 'Wifi',
815
- 'fa-calculator' => 'Calculator',
816
- 'fa-paypal' => 'Paypal',
817
- 'fa-google-wallet' => 'Google Wallet',
818
- 'fa-cc-visa' => 'Cc Visa',
819
- 'fa-cc-mastercard' => 'Cc Mastercard',
820
- 'fa-cc-discover' => 'Cc Discover',
821
- 'fa-cc-amex' => 'Cc Amex',
822
- 'fa-cc-paypal' => 'Cc Paypal',
823
- 'fa-cc-stripe' => 'Cc Stripe',
824
- 'fa-bell-slash' => 'Bell Slash',
825
- 'fa-bell-slash-o' => 'Bell Slash O',
826
- 'fa-trash' => 'Trash',
827
- 'fa-copyright' => 'Copyright',
828
- 'fa-at' => 'At',
829
- 'fa-eyedropper' => 'Eyedropper',
830
- 'fa-paint-brush' => 'Paint Brush',
831
- 'fa-birthday-cake' => 'Birthday Cake',
832
- 'fa-area-chart' => 'Area Chart',
833
- 'fa-pie-chart' => 'Pie Chart',
834
- 'fa-line-chart' => 'Line Chart',
835
- 'fa-lastfm' => 'Lastfm',
836
- 'fa-lastfm-square' => 'Lastfm Square',
837
- 'fa-toggle-off' => 'Toggle Off',
838
- 'fa-toggle-on' => 'Toggle On',
839
- 'fa-bicycle' => 'Bicycle',
840
- 'fa-bus' => 'Bus',
841
- 'fa-ioxhost' => 'Ioxhost',
842
- 'fa-angellist' => 'Angellist',
843
- 'fa-cc' => 'Cc',
844
- 'fa-ils' => 'Ils',
845
- 'fa-meanpath' => 'Meanpath',
846
- 'fa-buysellads' => 'Buysellads',
847
- 'fa-connectdevelop' => 'Connectdevelop',
848
- 'fa-dashcube' => 'Dashcube',
849
- 'fa-forumbee' => 'Forumbee',
850
- 'fa-leanpub' => 'Leanpub',
851
- 'fa-sellsy' => 'Sellsy',
852
- 'fa-shirtsinbulk' => 'Shirtsinbulk',
853
- 'fa-simplybuilt' => 'Simplybuilt',
854
- 'fa-skyatlas' => 'Skyatlas',
855
- 'fa-cart-plus' => 'Cart Plus',
856
- 'fa-cart-arrow-down' => 'Cart Arrow Down',
857
- 'fa-diamond' => 'Diamond',
858
- 'fa-ship' => 'Ship',
859
- 'fa-user-secret' => 'User Secret',
860
- 'fa-motorcycle' => 'Motorcycle',
861
- 'fa-street-view' => 'Street View',
862
- 'fa-heartbeat' => 'Heartbeat',
863
- 'fa-venus' => 'Venus',
864
- 'fa-mars' => 'Mars',
865
- 'fa-mercury' => 'Mercury',
866
- 'fa-transgender' => 'Transgender',
867
- 'fa-transgender-alt' => 'Transgender Alt',
868
- 'fa-venus-double' => 'Venus Double',
869
- 'fa-mars-double' => 'Mars Double',
870
- 'fa-venus-mars' => 'Venus Mars',
871
- 'fa-mars-stroke' => 'Mars Stroke',
872
- 'fa-mars-stroke-v' => 'Mars Stroke V',
873
- 'fa-mars-stroke-h' => 'Mars Stroke H',
874
- 'fa-neuter' => 'Neuter',
875
- 'fa-facebook-official' => 'Facebook Official',
876
- 'fa-pinterest-p' => 'Pinterest P',
877
- 'fa-whatsapp' => 'Whatsapp',
878
- 'fa-server' => 'Server',
879
- 'fa-user-plus' => 'User Plus',
880
- 'fa-user-times' => 'User Times',
881
- 'fa-bed' => 'Bed',
882
- 'fa-viacoin' => 'Viacoin',
883
- 'fa-train' => 'Train',
884
- 'fa-subway' => 'Subway',
885
- 'fa-medium' => 'Medium'
886
- );
887
-
888
- ksort( $icons );
889
-
890
- global $woocommerce;
891
-
892
- $is_woocommerce_2_0 =version_compare( preg_replace( '/-beta-([0-9]+)/', '', $woocommerce->version ), '2.1', '<' );
893
-
894
- $options['general_settings'] = array();
895
-
896
- if( $is_woocommerce_2_0 ){
897
- $settings_page = 'WooCommerce &gt; Settings &gt; Pages' ;
898
- }
899
- else{
900
- $settings_page = 'in this settings page';
901
- }
902
-
903
- $general_settings_start = array(
904
-
905
- 'section_general_settings_videobox' => array(
906
- 'name' => __( 'Upgrade to the PREMIUM VERSION', 'yit' ),
907
- 'type' => 'videobox',
908
- 'default' => array(
909
- 'plugin_name' => __( 'YITH WooCommerce Wishlist', 'yit' ),
910
- 'title_first_column' => __( 'Discover the Advanced Features', 'yit' ),
911
- 'description_first_column' => __( 'Upgrade to the PREMIUM VERSION
912
of YITH WOOCOMMERCE WISHLIST to benefit from all features!', 'yit' ),
913
- 'video' => array(
914
- 'video_id' => '118797844',
915
- 'video_image_url' => YITH_WCWL_URL . '/assets/images/video-thumb.jpg',
916
- 'video_description' => '',
917
- ),
918
- 'title_second_column' => __( 'Get Support and Pro Features', 'yit' ),
919
- 'description_second_column' => __( 'By purchasing the premium version of the plugin, you will take advantage of the advanced features of the product and you will get one year of free updates and support through our platform available 24h/24.', 'yit' ),
920
- 'button' => array(
921
- 'href' => 'http://yithemes.com/themes/plugins/yith-woocommerce-wishlist/',
922
- 'title' => 'Get Support and Pro Features'
923
- )
924
- ),
925
- 'id' => 'yith_wcwl_general_videobox'
926
- ),
927
-
928
- 'general_section_start' => array(
929
- 'name' => __( 'General Settings', 'yit' ),
930
- 'type' => 'title',
931
- 'desc' => '',
932
- 'id' => 'yith_wcwl_general_settings'
933
- ),
934
-
935
- 'wishlist_enable' => array(
936
- 'name' => __( 'Enable YITH Wishlist', 'yit' ),
937
- 'desc' => sprintf( __( 'Enable all plugin features. <strong>Be sure to select a voice in the wishlist page menu in %s.</strong> Also, please read the plugin <a href="%s" target="_blank">documentation</a>.', 'yit' ), $settings_page, esc_url( $this->doc_url ) ),
938
- 'id' => 'yith_wcwl_enabled',
939
- 'std' => 'yes', // for woocommerce < 2.0
940
- 'default' => 'yes', // for woocommerce >= 2.0
941
- 'type' => 'checkbox'
942
- ),
943
- 'default_wishlist_title' => array(
944
- 'name' => __( 'Default wishlist title', 'yit' ),
945
- 'id' => 'yith_wcwl_wishlist_title',
946
- 'std' => sprintf( __( 'My wishlist on %s', 'yit' ), get_bloginfo( 'name' ) ), // for woocommerce < 2.0
947
- 'default' => sprintf( __( 'My wishlist on %s', 'yit' ), get_bloginfo( 'name' ) ), // for woocommerce >= 2.0
948
- 'type' => 'text',
949
- 'css' => 'min-width:300px;',
950
- )
951
- );
952
-
953
- $general_settings_end = array(
954
- 'add_to_wishlist_position' => array(
955
- 'name' => __( 'Position', 'yit' ),
956
- 'desc' => __( 'On variable products you can add it only After "Add to Cart" or use the shortcode [yith_wcwl_add_to_wishlist].', 'yit' ),
957
- 'id' => 'yith_wcwl_button_position',
958
- 'type' => 'select',
959
- 'class' => 'chosen_select',
960
- 'css' => 'min-width:300px;',
961
- 'options' => array(
962
- 'add-to-cart' => __( 'After "Add to cart"', 'yit' ),
963
- 'thumbnails' => __( 'After thumbnails', 'yit' ),
964
- 'summary' => __( 'After summary', 'yit' ),
965
- 'shortcode' => __( 'Use shortcode', 'yit' )
966
- ),
967
- 'desc_tip' => true
968
- ),
969
- 'redirect_to_cart' => array(
970
- 'name' => __( 'Redirect to cart', 'yit' ),
971
- 'desc' => __( 'Redirect to cart page if "Add to cart" button is clicked in the wishlist page.', 'yit' ),
972
- 'id' => 'yith_wcwl_redirect_cart',
973
- 'std' => 'no', // for woocommerce < 2.0
974
- 'default' => 'no', // for woocommerce >= 2.0
975
- 'type' => 'checkbox'
976
- ),
977
- 'remove_after_add_to_cart' => array(
978
- 'name' => __( 'Remove if added to the cart', 'yit' ),
979
- 'desc' => __( 'Remove the product from the wishlist if is been added to the cart.', 'yit' ),
980
- 'id' => 'yith_wcwl_remove_after_add_to_cart',
981
- 'std' => 'yes', // for woocommerce < 2.0
982
- 'default' => 'yes', // for woocommerce >= 2.0
983
- 'type' => 'checkbox'
984
- ),
985
- 'add_to_wishlist_text' => array(
986
- 'name' => __( '"Add to Wishlist" text', 'yit' ),
987
- 'id' => 'yith_wcwl_add_to_wishlist_text',
988
- 'std' => __( 'Add to Wishlist', 'yit' ), // for woocommerce < 2.0
989
- 'default' => __( 'Add to Wishlist', 'yit' ), // for woocommerce >= 2.0
990
- 'type' => 'text',
991
- 'css' => 'min-width:300px;',
992
- ),
993
- 'add_to_cart_text' => array(
994
- 'name' => __( '"Add to Cart" text', 'yit' ),
995
- 'id' => 'yith_wcwl_add_to_cart_text',
996
- 'std' => __( 'Add to Cart', 'yit' ), // for woocommerce < 2.0
997
- 'default' => __( 'Add to Cart', 'yit' ), // for woocommerce >= 2.0
998
- 'type' => 'text',
999
- 'css' => 'min-width:300px;',
1000
- ),
1001
- 'show_unit_price' => array(
1002
- 'name' => __( 'Show Unit price', 'yit' ),
1003
- 'desc' => __( 'Show unit price for each product in wishlist', 'yit' ),
1004
- 'id' => 'yith_wcwl_price_show',
1005
- 'std' => 'yes', // for woocommerce < 2.0
1006
- 'default' => 'yes', // for woocommerce >= 2.0
1007
- 'type' => 'checkbox',
1008
- 'css' => 'min-width:300px;',
1009
- ),
1010
- 'show_add_to_cart' => array(
1011
- 'name' => __( 'Show "Add to Cart" button', 'yit' ),
1012
- 'desc' => __( 'Show "Add to cart" button for each product in wishlist', 'yit' ),
1013
- 'id' => 'yith_wcwl_add_to_cart_show',
1014
- 'std' => 'yes', // for woocommerce < 2.0
1015
- 'default' => 'yes', // for woocommerce >= 2.0
1016
- 'type' => 'checkbox',
1017
- 'css' => 'min-width:300px;',
1018
- ),
1019
- 'show_stock_status' => array(
1020
- 'name' => __( 'Show Stock status', 'yit' ),
1021
- 'desc' => __( 'Show "In stock" or "Out of stock" label for each product in wishlist', 'yit' ),
1022
- 'id' => 'yith_wcwl_stock_show',
1023
- 'std' => 'yes', // for woocommerce < 2.0
1024
- 'default' => 'yes', // for woocommerce >= 2.0
1025
- 'type' => 'checkbox',
1026
- 'css' => 'min-width:300px;',
1027
- ),
1028
-
1029
- 'general_section_end' => array(
1030
- 'type' => 'sectionend',
1031
- 'id' => 'yith_wcwl_general_settings'
1032
- )
1033
- );
1034
-
1035
- if( $is_woocommerce_2_0 ) {
1036
- $options['general_settings'] = array_merge( $general_settings_start, $general_settings_end );
1037
- }
1038
- else{
1039
- $options['general_settings'] = array_merge( $general_settings_start, array( $this->get_wcwl_page_option() ), $general_settings_end );
1040
- }
1041
-
1042
- $options['styles'] = array(
1043
- 'styles_section_start' => array(
1044
- 'name' => __( 'Styles', 'yit' ),
1045
- 'type' => 'title',
1046
- 'desc' => '',
1047
- 'id' => 'yith_wcwl_styles'
1048
- ),
1049
-
1050
- 'use_buttons' => array(
1051
- 'name' => __( 'Use buttons', 'yit' ),
1052
- 'desc' => __( 'Use buttons instead of a simple anchors.', 'yit' ),
1053
- 'id' => 'yith_wcwl_use_button',
1054
- 'std' => 'no', // for woocommerce < 2.0
1055
- 'default' => 'no', // for woocommerce >= 2.0
1056
- 'type' => 'checkbox'
1057
- ),
1058
- 'custom_css' => array(
1059
- 'name' => __( 'Custom CSS', 'yit' ),
1060
- 'id' => 'yith_wcwl_custom_css',
1061
- 'css' => 'width:100%; height: 75px;',
1062
- 'std' => '', // for woocommerce < 2.0
1063
- 'default' => '', // for woocommerce >= 2.0
1064
- 'type' => 'textarea'
1065
- ),
1066
- 'use_theme_style' => array(
1067
- 'name' => __( 'Use theme style', 'yit' ),
1068
- 'desc' => __( 'Use the theme style.', 'yit' ),
1069
- 'id' => 'yith_wcwl_frontend_css',
1070
- 'std' => 'yes', // for woocommerce < 2.0
1071
- 'default' => 'yes', // for woocommerce >= 2.0
1072
- 'type' => 'checkbox'
1073
- ),
1074
- 'rounded_buttons' => array(
1075
- 'name' => __( 'Button rounded corners', 'yit' ),
1076
- 'desc' => __( 'Make buttons corner rounded', 'yit' ),
1077
- 'id' => 'yith_wcwl_rounded_corners',
1078
- 'std' => 'yes', // for woocommerce < 2.0
1079
- 'default' => 'yes', // for woocommerce >= 2.0
1080
- 'type' => 'checkbox'
1081
- ),
1082
- 'add_to_wishlist_icon' => array(
1083
- 'name' => __( '"Add to Wishlist" icon', 'yit' ),
1084
- 'desc' => __( 'Add an icon to the "Add to Wishlist" button', 'yit' ),
1085
- 'id' => 'yith_wcwl_add_to_wishlist_icon',
1086
- 'css' => 'min-width:300px;width:300px;',
1087
- 'std' => apply_filters( 'yith_wcwl_add_to_wishlist_std_icon', 'none' ), // for woocommerce < 2.0
1088
- 'default' => apply_filters( 'yith_wcwl_add_to_wishlist_std_icon', 'none' ), // for woocommerce >= 2.0
1089
- 'type' => 'select',
1090
- 'class' => 'chosen_select',
1091
- 'desc_tip' => true,
1092
- 'options' => array( 'none' => 'None' ) + $icons
1093
- ),
1094
- 'add_to_cart_icon' => array(
1095
- 'name' => __( '"Add to Cart" icon', 'yit' ),
1096
- 'desc' => __( 'Add an icon to the "Add to Cart" button', 'yit' ),
1097
- 'id' => 'yith_wcwl_add_to_cart_icon',
1098
- 'css' => 'min-width:300px;width:300px;',
1099
- 'std' => apply_filters( 'yith_wcwl_add_to_cart_std_icon', 'fa-shopping-cart' ), // for woocommerce < 2.0
1100
- 'default' => apply_filters( 'yith_wcwl_add_to_cart_std_icon', 'fa-shopping-cart' ), // for woocommerce >= 2.0
1101
- 'type' => 'select',
1102
- 'class' => 'chosen_select',
1103
- 'desc_tip' => true,
1104
- 'options' => array( 'none' => 'None' ) + $icons
1105
- ),
1106
-
1107
- 'styles_section_end' => array(
1108
- 'type' => 'sectionend',
1109
- 'id' => 'yith_wcwl_styles'
1110
- )
1111
- );
1112
-
1113
- $options['socials_share'] = array(
1114
- 'socials_section_start' => array(
1115
- 'name' => __( 'Socials &amp; Share', 'yit' ),
1116
- 'type' => 'title',
1117
- 'desc' => '',
1118
- 'id' => 'yith_wcwl_socials_share'
1119
- ),
1120
-
1121
- 'share_on_facebook' => array(
1122
- 'name' => __( 'Share on Facebook', 'yit' ),
1123
- 'desc' => __( 'Show "Share on Facebook" button', 'yit' ),
1124
- 'id' => 'yith_wcwl_share_fb',
1125
- 'std' => 'yes', // for woocommerce < 2.0
1126
- 'default' => 'yes', // for woocommerce >= 2.0
1127
- 'type' => 'checkbox'
1128
- ),
1129
- 'share_on_twitter' => array(
1130
- 'name' => __( 'Tweet on Twitter', 'yit' ),
1131
- 'desc' => __( 'Show "Tweet on Twitter" button', 'yit' ),
1132
- 'id' => 'yith_wcwl_share_twitter',
1133
- 'std' => 'yes', // for woocommerce < 2.0
1134
- 'default' => 'yes', // for woocommerce >= 2.0
1135
- 'type' => 'checkbox'
1136
- ),
1137
- 'share_on_pinterest' => array(
1138
- 'name' => __( 'Pin on Pinterest', 'yit' ),
1139
- 'desc' => __( 'Show "Pin on Pinterest" button', 'yit' ),
1140
- 'id' => 'yith_wcwl_share_pinterest',
1141
- 'std' => 'yes', // for woocommerce < 2.0
1142
- 'default' => 'yes', // for woocommerce >= 2.0
1143
- 'type' => 'checkbox'
1144
- ),
1145
- 'share_on_googleplus' => array(
1146
- 'name' => __( 'Share on Google+', 'yit' ),
1147
- 'desc' => __( 'Show "Share on Facebook" button', 'yit' ),
1148
- 'id' => 'yith_wcwl_share_googleplus',
1149
- 'std' => 'yes', // for woocommerce < 2.0
1150
- 'default' => 'yes', // for woocommerce >= 2.0
1151
- 'type' => 'checkbox'
1152
- ),
1153
- 'share_by_email' => array(
1154
- 'name' => __( 'Share by Email', 'yit' ),
1155
- 'desc' => __( 'Show "Share by Email" button', 'yit' ),
1156
- 'id' => 'yith_wcwl_share_email',
1157
- 'std' => 'yes', // for woocommerce < 2.0
1158
- 'default' => 'yes', // for woocommerce >= 2.0
1159
- 'type' => 'checkbox'
1160
- ),
1161
- 'socials_title' => array(
1162
- 'name' => __( 'Social title', 'yit' ),
1163
- 'id' => 'yith_wcwl_socials_title',
1164
- 'std' => sprintf( __( 'My wishlist on %s', 'yit' ), get_bloginfo( 'name' ) ), // for woocommerce < 2.0
1165
- 'default' => sprintf( __( 'My wishlist on %s', 'yit' ), get_bloginfo( 'name' ) ), // for woocommerce >= 2.0
1166
- 'type' => 'text',
1167
- 'css' => 'min-width:300px;',
1168
- ),
1169
- 'socials_text' => array(
1170
- 'name' => __( 'Social text', 'yit' ),
1171
- 'desc' => __( 'Will be used by Facebook, Twitter and Pinterest. Use <strong>%wishlist_url%</strong> where you want the URL of your wishlist to appear.', 'yit' ),
1172
- 'id' => 'yith_wcwl_socials_text',
1173
- 'css' => 'width:100%; height: 75px;',
1174
- 'std' => '', // for woocommerce < 2.0
1175
- 'default' => '', // for woocommerce >= 2.0
1176
- 'type' => 'textarea'
1177
- ),
1178
- 'socials_image' => array(
1179
- 'name' => __( 'Social image URL', 'yit' ),
1180
- 'id' => 'yith_wcwl_socials_image_url',
1181
- 'std' => '', // for woocommerce < 2.0
1182
- 'default' => '', // for woocommerce >= 2.0
1183
- 'type' => 'text',
1184
- 'css' => 'min-width:300px;',
1185
- ),
1186
-
1187
- 'socials_section_end' => array(
1188
- 'type' => 'sectionend',
1189
- 'id' => 'yith_wcwl_styles'
1190
- )
1191
- );
1192
-
1193
- return apply_filters( 'yith_wcwl_admin_options', $options );
1194
- }
1195
-
1196
- /**
1197
- * Add colors options to the panel.
1198
- *
1199
- * @return void
1200
- * @access private
1201
- * @since 1.0.0
1202
- */
1203
- private function _styles_options() {
1204
- $colors = maybe_unserialize( get_option( 'yith_wcwl_frontend_css_colors' ) );
1205
-
1206
- foreach ( YITH_WCWL_Init()->colors_options as $color => $attrs ) {
1207
- if ( ! isset( $colors[$color] ) ) {
1208
- $colors[$color] = $attrs;
1209
- }
1210
- }
1211
-
1212
- ?>
1213
- <div class="color-panel">
1214
- <div class="clear"></div>
1215
- <h4><?php _e( '"Add to wishlist" button', 'yit' ) ?></h4>
1216
- <?php
1217
-
1218
- yith_frontend_css_color_picker( __( 'Background', 'yit' ), 'yith_wcwl_color_add_to_wishlist_background', $colors['add_to_wishlist']['background'] );
1219
- yith_frontend_css_color_picker( __( 'Text', 'yit' ), 'yith_wcwl_color_add_to_wishlist_color', $colors['add_to_wishlist']['color'] );
1220
- yith_frontend_css_color_picker( __( 'Border', 'yit' ), 'yith_wcwl_color_add_to_wishlist_border_color', $colors['add_to_wishlist']['border_color'] );
1221
-
1222
- ?>
1223
- <div class="clear" style="height:10px;"></div>
1224
- <?php
1225
-
1226
- // hover
1227
- yith_frontend_css_color_picker( __( 'Background (hover)', 'yit' ), 'yith_wcwl_color_add_to_wishlist_hover_background', $colors['add_to_wishlist_hover']['background'] );
1228
- yith_frontend_css_color_picker( __( 'Text (hover)', 'yit' ), 'yith_wcwl_color_add_to_wishlist_hover_color', $colors['add_to_wishlist_hover']['color'] );
1229
- yith_frontend_css_color_picker( __( 'Border (hover)', 'yit' ), 'yith_wcwl_color_add_to_wishlist_hover_border_color', $colors['add_to_wishlist_hover']['border_color'] );
1230
-
1231
- ?>
1232
- <div class="clear" style="height:30px;"></div>
1233
- <h4><?php _e( '"Add to Cart" button', 'yit' ) ?></h4>
1234
- <?php
1235
-
1236
- yith_frontend_css_color_picker( __( 'Background', 'yit' ), 'yith_wcwl_color_add_to_cart_background', $colors['add_to_cart']['background'] );
1237
- yith_frontend_css_color_picker( __( 'Text', 'yit' ), 'yith_wcwl_color_add_to_cart_color', $colors['add_to_cart']['color'] );
1238
- yith_frontend_css_color_picker( __( 'Border', 'yit' ), 'yith_wcwl_color_add_to_cart_border_color', $colors['add_to_cart']['border_color'] );
1239
-
1240
- ?>
1241
- <div class="clear" style="height:10px;"></div>
1242
- <?php
1243
-
1244
- // hover
1245
- yith_frontend_css_color_picker( __( 'Background (hover)', 'yit' ), 'yith_wcwl_color_add_to_cart_hover_background', $colors['add_to_cart_hover']['background'] );
1246
- yith_frontend_css_color_picker( __( 'Text (hover)', 'yit' ), 'yith_wcwl_color_add_to_cart_hover_color', $colors['add_to_cart_hover']['color'] );
1247
- yith_frontend_css_color_picker( __( 'Border (hover)', 'yit' ), 'yith_wcwl_color_add_to_cart_hover_border_color', $colors['add_to_cart_hover']['border_color'] );
1248
-
1249
- ?>
1250
- <div class="clear" style="height:30px;"></div>
1251
- <h4><?php _e( '"Style 1" button', 'yit' ) ?></h4>
1252
- <?php
1253
-
1254
- yith_frontend_css_color_picker( __( 'Background', 'yit' ), 'yith_wcwl_color_button_style_1_background', $colors['button_style_1']['background'] );
1255
- yith_frontend_css_color_picker( __( 'Text', 'yit' ), 'yith_wcwl_color_button_style_1_color', $colors['button_style_1']['color'] );
1256
- yith_frontend_css_color_picker( __( 'Border', 'yit' ), 'yith_wcwl_color_button_style_1_border_color', $colors['button_style_1']['border_color'] );
1257
-
1258
- ?>
1259
- <div class="clear" style="height:10px;"></div>
1260
- <?php
1261
-
1262
- // hover
1263
- yith_frontend_css_color_picker( __( 'Background (hover)', 'yit' ), 'yith_wcwl_color_button_style_1_hover_background', $colors['button_style_1_hover']['background'] );
1264
- yith_frontend_css_color_picker( __( 'Text (hover)', 'yit' ), 'yith_wcwl_color_button_style_1_hover_color', $colors['button_style_1_hover']['color'] );
1265
- yith_frontend_css_color_picker( __( 'Border (hover)', 'yit' ), 'yith_wcwl_color_button_style_1_hover_border_color', $colors['button_style_1_hover']['border_color'] );
1266
-
1267
- ?>
1268
- <div class="clear" style="height:30px;"></div>
1269
- <h4><?php _e( '"Style 2" button', 'yit' ) ?></h4>
1270
- <?php
1271
-
1272
- yith_frontend_css_color_picker( __( 'Background', 'yit' ), 'yith_wcwl_color_button_style_2_background', $colors['button_style_2']['background'] );
1273
- yith_frontend_css_color_picker( __( 'Text', 'yit' ), 'yith_wcwl_color_button_style_2_color', $colors['button_style_2']['color'] );
1274
- yith_frontend_css_color_picker( __( 'Border', 'yit' ), 'yith_wcwl_color_button_style_2_border_color', $colors['button_style_2']['border_color'] );
1275
-
1276
- ?>
1277
- <div class="clear" style="height:10px;"></div>
1278
- <?php
1279
-
1280
- // hover
1281
- yith_frontend_css_color_picker( __( 'Background (hover)', 'yit' ), 'yith_wcwl_color_button_style_2_hover_background', $colors['button_style_2_hover']['background'] );
1282
- yith_frontend_css_color_picker( __( 'Text (hover)', 'yit' ), 'yith_wcwl_color_button_style_2_hover_color', $colors['button_style_2_hover']['color'] );
1283
- yith_frontend_css_color_picker( __( 'Border (hover)', 'yit' ), 'yith_wcwl_color_button_style_2_hover_border_color', $colors['button_style_2_hover']['border_color'] );
1284
-
1285
- ?>
1286
- <div class="clear" style="height:30px;"></div>
1287
- <h4><?php _e( 'Wishlist table', 'yit' )?></h4>
1288
- <?php
1289
-
1290
- yith_frontend_css_color_picker( __( 'Background', 'yit' ), 'yith_wcwl_color_wishlist_table_background', $colors['wishlist_table']['background'] );
1291
- yith_frontend_css_color_picker( __( 'Text', 'yit' ), 'yith_wcwl_color_wishlist_table_color', $colors['wishlist_table']['color'] );
1292
- yith_frontend_css_color_picker( __( 'Border', 'yit' ), 'yith_wcwl_color_wishlist_table_border_color', $colors['wishlist_table']['border_color'] );
1293
-
1294
- ?>
1295
- <div class="clear" style="height:30px;"></div>
1296
- <h4><?php _e( 'Headers', 'yit' ) ?></h4>
1297
- <?php
1298
-
1299
- yith_frontend_css_color_picker( __( 'Background color', 'yit' ), 'yith_wcwl_color_headers_background', $colors['headers']['background'] );
1300
-
1301
- do_action( 'yith_wcwl_admin_color_pickers' );
1302
-
1303
- ?>
1304
- <div class="clear"></div>
1305
- </div>
1306
- <div class="clear" style="height:30px;"></div>
1307
-
1308
- <script type="text/javascript">
1309
- jQuery('input#yith_wcwl_frontend_css').on('change',function () {
1310
- if (jQuery(this).is(':checked')) {
1311
- jQuery('#yith_wcwl_styles_colors').hide();
1312
- jQuery('#yith_wcwl_rounded_corners').parents('tr').hide();
1313
- jQuery('#yith_wcwl_add_to_wishlist_icon').parents('tr').hide();
1314
- jQuery('#yith_wcwl_add_to_cart_icon').parents('tr').hide();
1315
- } else {
1316
- jQuery('#yith_wcwl_styles_colors').show();
1317
- if (jQuery('#yith_wcwl_use_button').is(':checked')) {
1318
- jQuery('#yith_wcwl_rounded_corners').parents('tr').show();
1319
- jQuery('#yith_wcwl_add_to_wishlist_icon').parents('tr').show();
1320
- jQuery('#yith_wcwl_add_to_cart_icon').parents('tr').show();
1321
- }
1322
- }
1323
- }).change();
1324
-
1325
- jQuery('input#yith_wcwl_use_button').on('change',function () {
1326
- if (jQuery(this).is(':checked') && !jQuery('#yith_wcwl_frontend_css').is(':checked')) {
1327
- jQuery('#yith_wcwl_rounded_corners').parents('tr').show();
1328
- jQuery('#yith_wcwl_add_to_wishlist_icon').parents('tr').show();
1329
- jQuery('#yith_wcwl_add_to_cart_icon').parents('tr').show();
1330
- } else {
1331
- jQuery('#yith_wcwl_rounded_corners').parents('tr').hide();
1332
- jQuery('#yith_wcwl_add_to_wishlist_icon').parents('tr').hide();
1333
- jQuery('#yith_wcwl_add_to_cart_icon').parents('tr').hide();
1334
- }
1335
- }).change();
1336
-
1337
- jQuery('#yith_wcwl_multi_wishlist_enable').on('change', function () {
1338
- if (jQuery(this).is(':checked')) {
1339
- jQuery('#yith_wcwl_wishlist_create_title').parents('tr').show();
1340
- jQuery('#yith_wcwl_wishlist_manage_title').parents('tr').show();
1341
- }
1342
- else{
1343
- jQuery('#yith_wcwl_wishlist_create_title').parents('tr').hide();
1344
- jQuery('#yith_wcwl_wishlist_manage_title').parents('tr').hide();
1345
- }
1346
- }).change();
1347
- </script>
1348
- <?php
1349
- }
1350
-
1351
- /* === WISHLIST SUBPANEL SECTION === */
1352
-
1353
- /**
1354
- * Register wishlist panel
1355
- *
1356
- * @return void
1357
- * @since 2.0.0
1358
- */
1359
- public function register_panel() {
1360
-
1361
- $args = array(
1362
- 'create_menu_page' => true,
1363
- 'parent_slug' => '',
1364
- 'page_title' => __( 'Wishlist', 'yit' ),
1365
- 'menu_title' => __( 'Wishlist', 'yit' ),
1366
- 'capability' => 'manage_options',
1367
- 'parent' => '',
1368
- 'parent_page' => 'yit_plugin_panel',
1369
- 'page' => 'yith_wcwl_panel',
1370
- 'admin-tabs' => $this->available_tabs,
1371
- 'options-path' => YITH_WCWL_DIR . 'plugin-options'
1372
- );
1373
-
1374
- /* === Fixed: not updated theme === */
1375
- if( ! class_exists( 'YIT_Plugin_Panel_WooCommerce' ) ) {
1376
- require_once( YITH_WCWL_DIR . 'plugin-fw/lib/yit-plugin-panel-wc.php' );
1377
- }
1378
-
1379
- $this->_panel = new YIT_Plugin_Panel_WooCommerce( $args );
1380
- }
1381
-
1382
- /**
1383
- * Load admin style.
1384
- *
1385
- * @return void
1386
- * @since 1.0.0
1387
- */
1388
- public function enqueue() {
1389
- global $woocommerce;
1390
- wp_enqueue_style( 'yith-wcwl-admin' );
1391
- }
1392
-
1393
- /**
1394
- * Prints tab premium of the plugin
1395
- *
1396
- * @return void
1397
- * @since 2.0.0
1398
- */
1399
- public function print_premium_tab() {
1400
- $premium_tab = YITH_WCWL_DIR . 'templates/admin/wishlist-panel-premium.php';
1401
-
1402
- if( file_exists( $premium_tab ) ){
1403
- include( $premium_tab );
1404
- }
1405
- }
1406
-
1407
- /* === POINTER SECTION === */
1408
-
1409
- /**
1410
- * Register pointers for notify plugin updates to user
1411
- *
1412
- * @return void
1413
- * @since 2.0.0
1414
- */
1415
- public function register_pointer(){
1416
-
1417
- if( ! class_exists( 'YIT_Pointers' ) ){
1418
- include_once( 'plugin-fw/lib/yit-pointers.php' );
1419
- }
1420
-
1421
- $args[] = array(
1422
- 'screen_id' => 'plugins',
1423
- 'pointer_id' => 'yith_wcwl_panel',
1424
- 'target' => '#toplevel_page_yit_plugin_panel',
1425
- 'content' => sprintf( '<h3> %s </h3> <p> %s </p>',
1426
- __( 'Wishlist Activated', 'yit' ),
1427
- apply_filters( 'yith_wcwl_activated_pointer_content', sprintf( __( 'In the YIT Plugin tab you can find the Wishlist options. With this menu, you can access to all the settings of our plugins that you have activated. Wishlist is available in an outstanding PREMIUM version with many new options, <a href="%s">discover it now</a>.', 'yit' ), $this->premium_landing_url ) )
1428
- ),
1429
- 'position' => array( 'edge' => 'left', 'align' => 'center' ),
1430
- 'init' => YITH_WCWL_INIT
1431
- );
1432
-
1433
- $args[] = array(
1434
- 'screen_id' => 'update',
1435
- 'pointer_id' => 'yith_wcwl_panel',
1436
- 'target' => '#toplevel_page_yit_plugin_panel',
1437
- 'content' => sprintf( '<h3> %s </h3> <p> %s </p>',
1438
- __( 'Wishlist Updated', 'yit' ),
1439
- apply_filters( 'yith_wcwl_updated_pointer_content', sprintf( __( 'From now on, you can find all the options of Wishlist under YIT Plugin -> Wishlist instead of WooCommerce -> Settings -> Wishlist, as in the previous version. When one of our plugins updates, a new voice will be added to this menu. Wishlist renovates with new available options, <a href="%s">discover the PREMIUM version.</a>', 'yit' ), $this->premium_landing_url ) )
1440
- ),
1441
- 'position' => array( 'edge' => 'left', 'align' => 'center' ),
1442
- 'init' => YITH_WCWL_INIT
1443
- );
1444
-
1445
- YIT_Pointers()->register( $args );
1446
- }
1447
- }
1448
}
1449
1450
/**
@@ -1454,5 +1489,5 @@ of YITH WOOCOMMERCE WISHLIST to benefit from all features!', 'yit' ),
1454
* @since 2.0.0
1455
*/
1456
function YITH_WCWL_Admin_Init(){
1457
- return YITH_WCWL_Admin_Init::get_instance();
1458
}
8
*/
9
10
if ( ! defined( 'YITH_WCWL' ) ) {
11
+ exit;
12
} // Exit if accessed directly
13
14
if ( ! class_exists( 'YITH_WCWL_Admin_Init' ) ) {
15
+ /**
16
+ * Initiator class. Create and populate admin views.
17
+ *
18
+ * @since 1.0.0
19
+ */
20
+ class YITH_WCWL_Admin_Init {
21
+
22
+ /**
23
+ * Single instance of the class
24
+ *
25
+ * @var \YITH_WCWL_Admin_Init
26
+ * @since 2.0.0
27
+ */
28
+ protected static $instance;
29
+
30
+ /**
31
+ * Plugin version
32
+ *
33
+ * @var string
34
+ * @since 1.0.0
35
+ */
36
+ public $version = '2.0.4';
37
+
38
+ /**
39
+ * Plugin database version
40
+ *
41
+ * @var string
42
+ * @since 1.0.0
43
+ */
44
+ public $db_version = '2.0.0';
45
+
46
+ /**
47
+ * Wishlist panel
48
+ *
49
+ * @var string Panel hookname
50
+ * @since 2.0.0
51
+ */
52
+ protected $_panel = null;
53
+
54
+ /**
55
+ * Tab name
56
+ *
57
+ * @var string
58
+ * @since 1.0.0
59
+ */
60
+ public $tab;
61
+
62
+ /**
63
+ * Various links
64
+ *
65
+ * @var string
66
+ * @access public
67
+ * @since 1.0.0
68
+ */
69
+ public $banner_url = 'http://cdn.yithemes.com/plugins/yith_wishlist.php?url';
70
+ public $banner_img = 'http://cdn.yithemes.com/plugins/yith_wishlist.php';
71
+ public $doc_url = 'http://yithemes.com/docs-plugins/yith-woocommerce-wishlist/';
72
+ public $premium_landing_url = 'http://yithemes.com/themes/plugins/yith-woocommerce-wishlist/';
73
+
74
+ /**
75
+ * Plugin options
76
+ *
77
+ * @var array
78
+ * @since 1.0.0
79
+ */
80
+ public $options;
81
+
82
+ /**
83
+ * List of available tab for wishlist panel
84
+ *
85
+ * @var array
86
+ * @access public
87
+ * @since 2.0.0
88
+ */
89
+ public $available_tabs = array();
90
+
91
+ /**
92
+ * Default tab to show when no selected
93
+ *
94
+ * @var string
95
+ * @access public
96
+ * @since 2.0.0
97
+ */
98
+ public $default_tab = 'settings';
99
+
100
+ /**
101
+ * Returns single instance of the class
102
+ *
103
+ * @return \YITH_WCWL_Admin_Init
104
+ * @since 2.0.0
105
+ */
106
+ public static function get_instance(){
107
+ if( is_null( self::$instance ) ){
108
+ self::$instance = new self();
109
+ }
110
+
111
+ return self::$instance;
112
+ }
113
+
114
+ /**
115
+ * Constructor of the class
116
+ *
117
+ * @return \YITH_WCWL_Admin_Init
118
+ * @since 2.0.0
119
+ */
120
+ public function __construct(){
121
+ define( 'YITH_WCWL_VERSION', $this->version );
122
+ define( 'YITH_WCWL_DB_VERSION', $this->db_version );
123
+
124
+ // init premium features for admin panel
125
+ if( function_exists( 'YITH_WCWL_Admin_Premium' ) ){
126
+ YITH_WCWL_Admin_Premium();
127
+ }
128
+
129
+ /**
130
+ * Support to WC 2.0.x
131
+ */
132
+ global $woocommerce;
133
+ $is_woocommerce_2_0 = version_compare( preg_replace( '/-beta-([0-9]+)/', '', $woocommerce->version ), '2.1', '<' );
134
+
135
+ $this->options = $this->_plugin_options();
136
+
137
+ if ( ! defined( 'DOING_AJAX' ) ) {
138
+ $this->install();
139
+ }
140
+
141
+ add_action( 'init', array( $this, 'init' ), 0 );
142
+ add_action( 'admin_enqueue_scripts', array( $this, 'enqueue' ), 20 );
143
+ add_filter( 'plugin_action_links_' . plugin_basename( YITH_WCWL_DIR . 'init.php' ), array( $this, 'action_links' ) );
144
+ add_filter( 'plugin_row_meta', array( $this, 'add_plugin_meta' ), 10, 2 );
145
+
146
+ if( $is_woocommerce_2_0 ) {
147
+ add_filter( 'woocommerce_page_settings', array( $this, 'add_page_setting_woocommerce' ) );
148
+ }
149
+
150
+ // saves panel options
151
+ add_action( 'woocommerce_update_option_yith_wcwl_color_panel', array( $this, 'update_color_options' ) );
152
+
153
+ // handles custom wc option type
154
+ add_action( 'woocommerce_admin_field_yith_wcwl_color_panel', array( $this, 'print_color_panel' ) );
155
+
156
+ // register wishlist panel
157
+ add_action( 'admin_menu', array( $this, 'register_panel' ), 5 );
158
+ add_action( 'yith_wcwl_premium_tab', array( $this, 'print_premium_tab' ) );
159
+
160
+ // register pointer methods
161
+ add_action( 'admin_init', array( $this, 'register_pointer' ) );
162
+
163
+ //Apply filters
164
+ $this->banner_url = apply_filters( 'yith_wcmg_banner_url', $this->banner_url );
165
+ }
166
+
167
+ /**
168
+ * Get the premium landing uri
169
+ *
170
+ * @since 1.0.0
171
+ * @author Andrea Grillo <andrea.grillo@yithemes.com>
172
+ * @return string The premium landing link
173
+ */
174
+ public function get_premium_landing_uri(){
175
+ return defined( 'YITH_REFER_ID' ) ? $this->premium_landing_url . '?refer_id=' . YITH_REFER_ID : $this->premium_landing_url;
176
+ }
177
+
178
+ /* === INITIALIZATION SECTION === */
179
+
180
+ /**
181
+ * Initiator method. Initiate properties.
182
+ *
183
+ * @return void
184
+ * @access private
185
+ * @since 1.0.0
186
+ */
187
+ public function init() {
188
+ $this->tab = __( 'Wishlist', 'yit' );
189
+ $this->available_tabs = apply_filters( 'yith_wcwl_available_admin_tabs', array(
190
+ 'settings' => __( 'Settings', 'yit' ),
191
+ 'colors' => __( 'Colors', 'yit' ),
192
+ 'premium' => __( 'Premium Version', 'yit' )
193
+ ) );
194
+ $this->default_tab = apply_filters( 'yith_wcwl_default_admin_tab', $this->default_tab );
195
+
196
+ wp_register_style( 'yith-wcwl-admin', YITH_WCWL_URL . 'assets/css/admin.css' );
197
+ }
198
+
199
+ /**
200
+ * Run the installation
201
+ *
202
+ * @return void
203
+ * @since 1.0.0
204
+ */
205
+ public function install() {
206
+ $stored_db_version = get_option( 'yith_wcwl_db_version' );
207
+
208
+ if( $stored_db_version == '1.0.0' ){
209
+ add_action( 'init', array( YITH_WCWL_Install(), 'update' ) );
210
+ add_action( 'init', 'flush_rewrite_rules' );
211
+ YITH_WCWL_Install()->default_options( $this->options );
212
+
213
+ // Plugin installed
214
+ do_action( 'yith_wcwl_installed' );
215
+ do_action( 'yith_wcwl_updated' );
216
+ }
217
+ elseif ( $this->db_version != $stored_db_version || ! YITH_WCWL_Install()->is_installed() ) {
218
+ add_action( 'init', array( YITH_WCWL_Install(), 'init' ) );
219
+ YITH_WCWL_Install()->default_options( $this->options );
220
+
221
+ // Plugin installed
222
+ do_action( 'yith_wcwl_installed' );
223
+ }
224
+ }
225
+
226
+ /**
227
+ * Update plugin color options.
228
+ *
229
+ * @return void
230
+ * @since 1.0.0
231
+ */
232
+ public function update_color_options() {
233
+ global $pagenow;
234
+
235
+ $colors_options = array();
236
+
237
+ foreach ( YITH_WCWL_Init()->colors_options as $name => $option ) {
238
+ foreach ( $option as $id => $color ) {
239
+ $default_value = isset( $colors_options[$name][$id] ) ? $colors_options[$name][$id] : '';
240
+ $colors_options[$name][$id] = isset( $_POST['yith_wcwl_color_' . $name . '_' . $id] ) && ! empty( $_POST['yith_wcwl_color_' . $name . '_' . $id] ) ? woocommerce_format_hex( $_POST['yith_wcwl_color_' . $name . '_' . $id] ) : $default_value;
241
+ }
242
+ }
243
+
244
+ update_option( 'yith_wcwl_frontend_css_colors', maybe_serialize( $colors_options ) );
245
+ }
246
+
247
+ /**
248
+ * Print color panel.
249
+ *
250
+ * @return void
251
+ * @since 1.0.0
252
+ */
253
+ public function print_color_panel() {
254
+ ?>
255
+ <div id="yith_wcwl_styles_colors">
256
+ <h3><?php _e( 'Colors', 'yit' ) ?></h3>
257
+ <?php $this->_styles_options() ?>
258
+ </div> <?php
259
+ }
260
+
261
+ /**
262
+ * Add the select for the Wishlist page in WooCommerce > Settings > Pages
263
+ *
264
+ * @param array $settings
265
+ *
266
+ * @return array
267
+ * @since 1.0.0
268
+ */
269
+ public function add_page_setting_woocommerce( $settings ) {
270
+ unset( $settings[count( $settings ) - 1] );
271
+
272
+ $setting[] = $this->get_wcwl_page_option();
273
+
274
+ $settings[] = array( 'type' => 'sectionend', 'id' => 'page_options' );
275
+
276
+ return $settings;
277
+ }
278
+
279
+ /**
280
+ * action_links function.
281
+ *
282
+ * @access public
283
+ *
284
+ * @param mixed $links
285
+ * @return array
286
+ */
287
+ public function action_links( $links ) {
288
+ $plugin_links = array(
289
+ '<a href="' . admin_url( 'admin.php?page=yith_wcwl_panel&tab=settings' ) . '">' . __( 'Settings', 'yit' ) . '</a>'
290
+ );
291
+
292
+ if( ! function_exists( 'YITH_WCWL_Premium' ) ){
293
+ $plugin_links[] = '<a target="_blank" href="' . $this->get_premium_landing_uri() . '">' . __( 'Premium Version', 'yit' ) . '</a>';
294
+ }
295
+
296
+ return array_merge( $links, $plugin_links );
297
+ }
298
+
299
+ /**
300
+ * Adds plugin row meta
301
+ *
302
+ * @param $plugin_meta array
303
+ * @param $plugin_file string
304
+ * @return array
305
+ * @since 2.0.0
306
+ */
307
+ public function add_plugin_meta( $plugin_meta, $plugin_file ){
308
+ global $woocommerce;
309
+
310
+ if ( $plugin_file == plugin_basename( YITH_WCWL_DIR . 'init.php' ) ) {
311
+
312
+ // outdated wc alert
313
+
314
+ if( version_compare( preg_replace( '/-beta-([0-9]+)/', '', $woocommerce->version ), '2.2', '<' ) ){
315
+ $woocommerce_file = $woocommerce->plugin_path;
316
+ if ( ! is_multisite() && current_user_can( 'delete_plugins' ) ) {
317
+ $plugin_meta['outdated_wc_alert'] = '<a class="outdated-wc-alert" style="color: red" href="' . wp_nonce_url( self_admin_url( 'update.php?action=upgrade-plugin&plugin=' ) . $woocommerce_file, 'upgrade-plugin_' . $woocommerce_file ) . '">' . __( 'WARNING: This plugin requires at least WooCommerce 2.2! Please, use this link to update it.', 'yit' ) . '</a>';
318
+ }
319
+ else{
320
+ $plugin_meta['outdated_wc_alert'] = '<span class="outdated-wc-alert" style="color: red">' . __( 'WARNING: This plugin requires at least WooCommerce 2.2!', 'yit' ) . '</span>';
321
+ }
322
+ }
323
+
324
+ // documentation link
325
+ $plugin_meta['documentation'] = '<a target="_blank" href="' . $this->doc_url . '">' . __( 'Plugin Documentation', 'yit' ) . '</a>';
326
+ }
327
+
328
+ return $plugin_meta;
329
+ }
330
+
331
+ /**
332
+ * Return the option to add the wishlist page
333
+ *
334
+ * @access public
335
+ * @return mxied array
336
+ * @since 1.1.3
337
+ */
338
+ public function get_wcwl_page_option(){
339
+
340
+ return array(
341
+ 'name' => __( 'Wishlist Page', 'yit' ),
342
+ 'desc' => __( 'Page contents: [yith_wcwl_wishlist]', 'yit' ),
343
+ 'id' => 'yith_wcwl_wishlist_page_id',
344
+ 'type' => 'single_select_page',
345
+ 'std' => '', // for woocommerce < 2.0
346
+ 'default' => '', // for woocommerce >= 2.0
347
+ 'class' => 'chosen_select_nostd',
348
+ 'css' => 'min-width:300px;',
349
+ 'desc_tip' => false,
350
+ );
351
+ }
352
+
353
+ /**
354
+ * Print the banner
355
+ *
356
+ * @access protected
357
+ * @return void
358
+ * @since 1.0.0
359
+ */
360
+ protected function _printBanner() {
361
+ ?>
362
+ <div class="yith_banner">
363
+ <a href="<?php echo $this->banner_url ?>" target="_blank">
364
+ <img src="<?php echo $this->banner_img ?>" alt="" />
365
+ </a>
366
+ </div>
367
+ <?php
368
+ }
369
+
370
+ /**
371
+ * Plugin options and tabs.
372
+ *
373
+ * @return array
374
+ * @since 1.0.0
375
+ */
376
+ private function _plugin_options() {
377
+ $icons = array(
378
+ 'fa-glass' => 'Glass',
379
+ 'fa-music' => 'Music',
380
+ 'fa-search' => 'Search',
381
+ 'fa-envelope-o' => 'Envelope O',
382
+ 'fa-heart' => 'Heart',
383
+ 'fa-star' => 'Star',
384
+ 'fa-star-o' => 'Star O',
385
+ 'fa-user' => 'User',
386
+ 'fa-film' => 'Film',
387
+ 'fa-th-large' => 'Th Large',
388
+ 'fa-th' => 'Th',
389
+ 'fa-th-list' => 'Th List',
390
+ 'fa-check' => 'Check',
391
+ 'fa-remove' => 'Remove',
392
+ 'fa-search-plus' => 'Search Plus',
393
+ 'fa-search-minus' => 'Search Minus',
394
+ 'fa-power-off' => 'Power Off',
395
+ 'fa-signal' => 'Signal',
396
+ 'fa-cog' => 'Cog',
397
+ 'fa-trash-o' => 'Trash O',
398
+ 'fa-home' => 'Home',
399
+ 'fa-file-o' => 'File O',
400
+ 'fa-clock-o' => 'Clock O',
401
+ 'fa-road' => 'Road',
402
+ 'fa-download' => 'Download',
403
+ 'fa-arrow-circle-o-down' => 'Arrow Circle O Down',
404
+ 'fa-arrow-circle-o-up' => 'Arrow Circle O Up',
405
+ 'fa-inbox' => 'Inbox',
406
+ 'fa-play-circle-o' => 'Play Circle O',
407
+ 'fa-repeat' => 'Repeat',
408
+ 'fa-refresh' => 'Refresh',
409
+ 'fa-list-alt' => 'List Alt',
410
+ 'fa-lock' => 'Lock',
411
+ 'fa-flag' => 'Flag',
412
+ 'fa-headphones' => 'Headphones',
413
+ 'fa-volume-off' => 'Volume Off',
414
+ 'fa-volume-down' => 'Volume Down',
415
+ 'fa-volume-up' => 'Volume Up',
416
+ 'fa-qrcode' => 'Qrcode',
417
+ 'fa-barcode' => 'Barcode',
418
+ 'fa-tag' => 'Tag',
419
+ 'fa-tags' => 'Tags',
420
+ 'fa-book' => 'Book',
421
+ 'fa-bookmark' => 'Bookmark',
422
+ 'fa-print' => 'Print',
423
+ 'fa-camera' => 'Camera',
424
+ 'fa-font' => 'Font',
425
+ 'fa-bold' => 'Bold',
426
+ 'fa-italic' => 'Italic',
427
+ 'fa-text-height' => 'Text Height',
428
+ 'fa-text-width' => 'Text Width',
429
+ 'fa-align-left' => 'Align Left',
430
+ 'fa-align-center' => 'Align Center',
431
+ 'fa-align-right' => 'Align Right',
432
+ 'fa-align-justify' => 'Align Justify',
433
+ 'fa-list' => 'List',
434
+ 'fa-dedent' => 'Dedent',
435
+ 'fa-indent' => 'Indent',
436
+ 'fa-video-camera' => 'Video Camera',
437
+ 'fa-picture-o' => 'Photo',
438
+ 'fa-pencil' => 'Pencil',
439
+ 'fa-map-marker' => 'Map Marker',
440
+ 'fa-adjust' => 'Adjust',
441
+ 'fa-tint' => 'Tint',
442
+ 'fa-edit' => 'Edit',
443
+ 'fa-share-square-o' => 'Share Square O',
444
+ 'fa-check-square-o' => 'Check Square O',
445
+ 'fa-arrows' => 'Arrows',
446
+ 'fa-step-backward' => 'Step Backward',
447
+ 'fa-fast-backward' => 'Fast Backward',
448
+ 'fa-backward' => 'Backward',
449
+ 'fa-play' => 'Play',
450
+ 'fa-pause' => 'Pause',
451
+ 'fa-stop' => 'Stop',
452
+ 'fa-forward' => 'Forward',
453
+ 'fa-fast-forward' => 'Fast Forward',
454
+ 'fa-step-forward' => 'Step Forward',
455
+ 'fa-eject' => 'Eject',
456
+ 'fa-chevron-left' => 'Chevron Left',
457
+ 'fa-chevron-right' => 'Chevron Right',
458
+ 'fa-plus-circle' => 'Plus Circle',
459
+ 'fa-minus-circle' => 'Minus Circle',
460
+ 'fa-times-circle' => 'Times Circle',
461
+ 'fa-check-circle' => 'Check Circle',
462
+ 'fa-question-circle' => 'Question Circle',
463
+ 'fa-info-circle' => 'Info Circle',
464
+ 'fa-crosshairs' => 'Crosshairs',
465
+ 'fa-times-circle-o' => 'Times Circle O',
466
+ 'fa-check-circle-o' => 'Check Circle O',
467
+ 'fa-ban' => 'Ban',
468
+ 'fa-arrow-left' => 'Arrow Left',
469
+ 'fa-arrow-right' => 'Arrow Right',
470
+ 'fa-arrow-up' => 'Arrow Up',
471
+ 'fa-arrow-down' => 'Arrow Down',
472
+ 'fa-share' => 'Share',
473
+ 'fa-expand' => 'Expand',
474
+ 'fa-compress' => 'Compress',
475
+ 'fa-plus' => 'Plus',
476
+ 'fa-minus' => 'Minus',
477
+ 'fa-asterisk' => 'Asterisk',
478
+ 'fa-exclamation-circle' => 'Exclamation Circle',
479
+ 'fa-gift' => 'Gift',
480
+ 'fa-leaf' => 'Leaf',
481
+ 'fa-fire' => 'Fire',
482
+ 'fa-eye' => 'Eye',
483
+ 'fa-eye-slash' => 'Eye Slash',
484
+ 'fa-warning' => 'Warning',
485
+ 'fa-plane' => 'Plane',
486
+ 'fa-calendar' => 'Calendar',
487
+ 'fa-random' => 'Random',
488
+ 'fa-comment' => 'Comment',
489
+ 'fa-magnet' => 'Magnet',
490
+ 'fa-chevron-up' => 'Chevron Up',
491
+ 'fa-chevron-down' => 'Chevron Down',
492
+ 'fa-retweet' => 'Retweet',
493
+ 'fa-shopping-cart' => 'Shopping Cart',
494
+ 'fa-folder' => 'Folder',
495
+ 'fa-folder-open' => 'Folder Open',
496
+ 'fa-arrows-v' => 'Arrows V',
497
+ 'fa-arrows-h' => 'Arrows H',
498
+ 'fa-bar-chart' => 'Bar Chart',
499
+ 'fa-twitter-square' => 'Twitter Square',
500
+ 'fa-facebook-square' => 'Facebook Square',
501
+ 'fa-camera-retro' => 'Camera Retro',
502
+ 'fa-key' => 'Key',
503
+ 'fa-cogs' => 'Cogs',
504
+ 'fa-comments' => 'Comments',
505
+ 'fa-thumbs-o-up' => 'Thumbs O Up',
506
+ 'fa-thumbs-o-down' => 'Thumbs O Down',
507
+ 'fa-star-half' => 'Star Half',
508
+ 'fa-heart-o' => 'Heart O',
509
+ 'fa-sign-out' => 'Sign Out',
510
+ 'fa-linkedin-square' => 'Linkedin Square',
511
+ 'fa-thumb-tack' => 'Thumb Tack',
512
+ 'fa-external-link' => 'External Link',
513
+ 'fa-sign-in' => 'Sign In',
514
+ 'fa-trophy' => 'Trophy',
515
+ 'fa-github-square' => 'Github Square',
516
+ 'fa-upload' => 'Upload',
517
+ 'fa-lemon-o' => 'Lemon O',
518
+ 'fa-phone' => 'Phone',
519
+ 'fa-square-o' => 'Square O',
520
+ 'fa-bookmark-o' => 'Bookmark O',
521
+ 'fa-phone-square' => 'Phone Square',
522
+ 'fa-twitter' => 'Twitter',
523
+ 'fa-facebook' => 'Facebook',
524
+ 'fa-github' => 'Github',
525
+ 'fa-unlock' => 'Unlock',
526
+ 'fa-credit-card' => 'Credit Card',
527
+ 'fa-rss' => 'Rss',
528
+ 'fa-hdd-o' => 'Hdd O',
529
+ 'fa-bullhorn' => 'Bullhorn',
530
+ 'fa-bell' => 'Bell',
531
+ 'fa-certificate' => 'Certificate',
532
+ 'fa-hand-o-right' => 'Hand O Right',
533
+ 'fa-hand-o-left' => 'Hand O Left',
534
+ 'fa-hand-o-up' => 'Hand O Up',
535
+ 'fa-hand-o-down' => 'Hand O Down',
536
+ 'fa-arrow-circle-left' => 'Arrow Circle Left',
537
+ 'fa-arrow-circle-right' => 'Arrow Circle Right',
538
+ 'fa-arrow-circle-up' => 'Arrow Circle Up',
539
+ 'fa-arrow-circle-down' => 'Arrow Circle Down',
540
+ 'fa-globe' => 'Globe',
541
+ 'fa-wrench' => 'Wrench',
542
+ 'fa-tasks' => 'Tasks',
543
+ 'fa-filter' => 'Filter',
544
+ 'fa-briefcase' => 'Briefcase',
545
+ 'fa-arrows-alt' => 'Arrows Alt',
546
+ 'fa-group' => 'Group',
547
+ 'fa-link' => 'Link',
548
+ 'fa-cloud' => 'Cloud',
549
+ 'fa-flask' => 'Flask',
550
+ 'fa-cut' => 'Cut',
551
+ 'fa-copy' => 'Copy',
552
+ 'fa-paperclip' => 'Paperclip',
553
+ 'fa-save' => 'Save',
554
+ 'fa-square' => 'Square',
555
+ 'fa-navicon' => 'Navicon',
556
+ 'fa-list-ul' => 'List Ul',
557
+ 'fa-list-ol' => 'List Ol',
558
+ 'fa-strikethrough' => 'Strikethrough',
559
+ 'fa-underline' => 'Underline',
560
+ 'fa-table' => 'Table',
561
+ 'fa-magic' => 'Magic',
562
+ 'fa-truck' => 'Truck',
563
+ 'fa-pinterest' => 'Pinterest',
564
+ 'fa-pinterest-square' => 'Pinterest Square',
565
+ 'fa-google-plus-square' => 'Google Plus Square',
566
+ 'fa-google-plus' => 'Google Plus',
567
+ 'fa-money' => 'Money',
568
+ 'fa-caret-down' => 'Caret Down',
569
+ 'fa-caret-up' => 'Caret Up',
570
+ 'fa-caret-left' => 'Caret Left',
571
+ 'fa-caret-right' => 'Caret Right',
572
+ 'fa-columns' => 'Columns',
573
+ 'fa-unsorted' => 'Unsorted',
574
+ 'fa-sort-down' => 'Sort Down',
575
+ 'fa-sort-up' => 'Sort Up',
576
+ 'fa-envelope' => 'Envelope',
577
+ 'fa-linkedin' => 'Linkedin',
578
+ 'fa-undo' => 'Undo',
579
+ 'fa-legal' => 'Legal',
580
+ 'fa-dashboard' => 'Dashboard',
581
+ 'fa-comment-o' => 'Comment O',
582
+ 'fa-comments-o' => 'Comments O',
583
+ 'fa-bolt' => 'Bolt',
584
+ 'fa-sitemap' => 'Sitemap',
585
+ 'fa-umbrella' => 'Umbrella',
586
+ 'fa-paste' => 'Paste',
587
+ 'fa-lightbulb-o' => 'Lightbulb O',
588
+ 'fa-exchange' => 'Exchange',
589
+ 'fa-cloud-download' => 'Cloud Download',
590
+ 'fa-cloud-upload' => 'Cloud Upload',
591
+ 'fa-user-md' => 'User Md',
592
+ 'fa-stethoscope' => 'Stethoscope',
593
+ 'fa-suitcase' => 'Suitcase',
594
+ 'fa-bell-o' => 'Bell O',
595
+ 'fa-coffee' => 'Coffee',
596
+ 'fa-cutlery' => 'Cutlery',
597
+ 'fa-file-text-o' => 'File Text O',
598
+ 'fa-building-o' => 'Building O',
599
+ 'fa-hospital-o' => 'Hospital O',
600
+ 'fa-ambulance' => 'Ambulance',
601
+ 'fa-medkit' => 'Medkit',
602
+ 'fa-fighter-jet' => 'Fighter Jet',
603
+ 'fa-beer' => 'Beer',
604
+ 'fa-h-square' => 'H Square',
605
+ 'fa-plus-square' => 'Plus Square',
606
+ 'fa-angle-double-left' => 'Angle Double Left',
607
+ 'fa-angle-double-right' => 'Angle Double Right',
608
+ 'fa-angle-double-up' => 'Angle Double Up',
609
+ 'fa-angle-double-down' => 'Angle Double Down',
610
+ 'fa-angle-left' => 'Angle Left',
611
+ 'fa-angle-right' => 'Angle Right',
612
+ 'fa-angle-up' => 'Angle Up',
613
+ 'fa-angle-down' => 'Angle Down',
614
+ 'fa-desktop' => 'Desktop',
615
+ 'fa-laptop' => 'Laptop',
616
+ 'fa-tablet' => 'Tablet',
617
+ 'fa-mobile' => 'Mobile',
618
+ 'fa-circle-o' => 'Circle O',
619
+ 'fa-quote-left' => 'Quote Left',
620
+ 'fa-quote-right' => 'Quote Right',
621
+ 'fa-spinner' => 'Spinner',
622
+ 'fa-circle' => 'Circle',
623
+ 'fa-reply' => 'Reply',
624
+ 'fa-github-alt' => 'Github Alt',
625
+ 'fa-folder-o' => 'Folder O',
626
+ 'fa-folder-open-o' => 'Folder Open O',
627
+ 'fa-smile-o' => 'Smile O',
628
+ 'fa-frown-o' => 'Frown O',
629
+ 'fa-meh-o' => 'Meh O',
630
+ 'fa-gamepad' => 'Gamepad',
631
+ 'fa-keyboard-o' => 'Keyboard O',
632
+ 'fa-flag-o' => 'Flag O',
633
+ 'fa-flag-checkered' => 'Flag Checkered',
634
+ 'fa-terminal' => 'Terminal',
635
+ 'fa-code' => 'Code',
636
+ 'fa-reply-all' => 'Reply All',
637
+ 'fa-star-half-o' => 'Star Half O',
638
+ 'fa-location-arrow' => 'Location Arrow',
639
+ 'fa-crop' => 'Crop',
640
+ 'fa-code-fork' => 'Code Fork',
641
+ 'fa-chain-broken' => 'Chain Broken',
642
+ 'fa-question' => 'Question',
643
+ 'fa-info' => 'Info',
644
+ 'fa-exclamation' => 'Exclamation',
645
+ 'fa-superscript' => 'Superscript',
646
+ 'fa-subscript' => 'Subscript',
647
+ 'fa-eraser' => 'Eraser',
648
+ 'fa-puzzle-piece' => 'Puzzle Piece',
649
+ 'fa-microphone' => 'Microphone',
650
+ 'fa-microphone-slash' => 'Microphone Slash',
651
+ 'fa-shield' => 'Shield',
652
+ 'fa-calendar-o' => 'Calendar O',
653
+ 'fa-fire-extinguisher' => 'Fire Extinguisher',
654
+ 'fa-rocket' => 'Rocket',
655
+ 'fa-maxcdn' => 'Maxcdn',
656
+ 'fa-chevron-circle-left' => 'Chevron Circle Left',
657
+ 'fa-chevron-circle-right' => 'Chevron Circle Right',
658
+ 'fa-chevron-circle-up' => 'Chevron Circle Up',
659
+ 'fa-chevron-circle-down' => 'Chevron Circle Down',
660
+ 'fa-html5' => 'Html5',
661
+ 'fa-css3' => 'Css3',
662
+ 'fa-anchor' => 'Anchor',
663
+ 'fa-unlock-alt' => 'Unlock Alt',
664
+ 'fa-bullseye' => 'Bullseye',
665
+ 'fa-ellipsis-h' => 'Ellipsis H',
666
+ 'fa-ellipsis-v' => 'Ellipsis V',
667
+ 'fa-rss-square' => 'Rss Square',
668
+ 'fa-play-circle' => 'Play Circle',
669
+ 'fa-ticket' => 'Ticket',
670
+ 'fa-minus-square' => 'Minus Square',
671
+ 'fa-minus-square-o' => 'Minus Square O',
672
+ 'fa-level-up' => 'Level Up',
673
+ 'fa-level-down' => 'Level Down',
674
+ 'fa-check-square' => 'Check Square',
675
+ 'fa-pencil-square' => 'Pencil Square',
676
+ 'fa-external-link-square' => 'External Link Square',
677
+ 'fa-share-square' => 'Share Square',
678
+ 'fa-compass' => 'Compass',
679
+ 'fa-caret-square-o-down' => 'Caret Square O Down',
680
+ 'fa-caret-square-o-up' => 'Caret Square O Up',
681
+ 'fa-caret-square-o-right' => 'Caret Square O Right',
682
+ 'fa-eur' => 'Eur',
683
+ 'fa-gbp' => 'Gbp',
684
+ 'fa-usd' => 'Usd',
685
+ 'fa-inr' => 'Inr',
686
+ 'fa-jpy' => 'Jpy',
687
+ 'fa-rub' => 'Rub',
688
+ 'fa-krw' => 'Krw',
689
+ 'fa-btc' => 'Btc',
690
+ 'fa-file' => 'File',
691
+ 'fa-file-text' => 'File Text',
692
+ 'fa-sort-alpha-asc' => 'Sort Alpha Asc',
693
+ 'fa-sort-alpha-desc' => 'Sort Alpha Desc',
694
+ 'fa-sort-amount-asc' => 'Sort Amount Asc',
695
+ 'fa-sort-amount-desc' => 'Sort Amount Desc',
696
+ 'fa-sort-numeric-asc' => 'Sort Numeric Asc',
697
+ 'fa-sort-numeric-desc' => 'Sort Numeric Desc',
698
+ 'fa-thumbs-up' => 'Thumbs Up',
699
+ 'fa-thumbs-down' => 'Thumbs Down',
700
+ 'fa-youtube-square' => 'Youtube Square',
701
+ 'fa-youtube' => 'Youtube',
702
+ 'fa-xing' => 'Xing',
703
+ 'fa-xing-square' => 'Xing Square',
704
+ 'fa-youtube-play' => 'Youtube Play',
705
+ 'fa-dropbox' => 'Dropbox',
706
+ 'fa-stack-overflow' => 'Stack Overflow',
707
+ 'fa-instagram' => 'Instagram',
708
+ 'fa-flickr' => 'Flickr',
709
+ 'fa-adn' => 'Adn',
710
+ 'fa-bitbucket' => 'Bitbucket',
711
+ 'fa-bitbucket-square' => 'Bitbucket Square',
712
+ 'fa-tumblr' => 'Tumblr',
713
+ 'fa-tumblr-square' => 'Tumblr Square',
714
+ 'fa-long-arrow-down' => 'Long Arrow Down',
715
+ 'fa-long-arrow-up' => 'Long Arrow Up',
716
+ 'fa-long-arrow-left' => 'Long Arrow Left',
717
+ 'fa-long-arrow-right' => 'Long Arrow Right',
718
+ 'fa-apple' => 'Apple',
719
+ 'fa-windows' => 'Windows',
720
+ 'fa-android' => 'Android',
721
+ 'fa-linux' => 'Linux',
722
+ 'fa-dribbble' => 'Dribbble',
723
+ 'fa-skype' => 'Skype',
724
+ 'fa-foursquare' => 'Foursquare',
725
+ 'fa-trello' => 'Trello',
726
+ 'fa-female' => 'Female',
727
+ 'fa-male' => 'Male',
728
+ 'fa-gratipay' => 'Gratipay',
729
+ 'fa-sun-o' => 'Sun O',
730
+ 'fa-moon-o' => 'Moon O',
731
+ 'fa-archive' => 'Archive',
732
+ 'fa-bug' => 'Bug',
733
+ 'fa-vk' => 'Vk',
734
+ 'fa-weibo' => 'Weibo',
735
+ 'fa-renren' => 'Renren',
736
+ 'fa-pagelines' => 'Pagelines',
737
+ 'fa-stack-exchange' => 'Stack Exchange',
738
+ 'fa-arrow-circle-o-right' => 'Arrow Circle O Right',
739
+ 'fa-arrow-circle-o-left' => 'Arrow Circle O Left',
740
+ 'fa-caret-square-o-left' => 'Caret Square O Left',
741
+ 'fa-dot-circle-o' => 'Dot Circle O',
742
+ 'fa-wheelchair' => 'Wheelchair',
743
+ 'fa-vimeo-square' => 'Vimeo Square',
744
+ 'fa-try' => 'Try',
745
+ 'fa-plus-square-o' => 'Plus Square O',
746
+ 'fa-space-shuttle' => 'Space Shuttle',
747
+ 'fa-slack' => 'Slack',
748
+ 'fa-envelope-square' => 'Envelope Square',
749
+ 'fa-wordpress' => 'Wordpress',
750
+ 'fa-openid' => 'Openid',
751
+ 'fa-university' => 'University',
752
+ 'fa-graduation-cap' => 'Graduation Cap',
753
+ 'fa-yahoo' => 'Yahoo',
754
+ 'fa-google' => 'Google',
755
+ 'fa-reddit' => 'Reddit',
756
+ 'fa-reddit-square' => 'Reddit Square',
757
+ 'fa-stumbleupon-circle' => 'Stumbleupon Circle',
758
+ 'fa-stumbleupon' => 'Stumbleupon',
759
+ 'fa-delicious' => 'Delicious',
760
+ 'fa-digg' => 'Digg',
761
+ 'fa-pied-piper' => 'Pied Piper',
762
+ 'fa-pied-piper-alt' => 'Pied Piper Alt',
763
+ 'fa-drupal' => 'Drupal',
764
+ 'fa-joomla' => 'Joomla',
765
+ 'fa-language' => 'Language',
766
+ 'fa-fax' => 'Fax',
767
+ 'fa-building' => 'Building',
768
+ 'fa-child' => 'Child',
769
+ 'fa-paw' => 'Paw',
770
+ 'fa-spoon' => 'Spoon',
771
+ 'fa-cube' => 'Cube',
772
+ 'fa-cubes' => 'Cubes',
773
+ 'fa-behance' => 'Behance',
774
+ 'fa-behance-square' => 'Behance Square',
775
+ 'fa-steam' => 'Steam',
776
+ 'fa-steam-square' => 'Steam Square',
777
+ 'fa-recycle' => 'Recycle',
778
+ 'fa-car' => 'Car',
779
+ 'fa-taxi' => 'Taxi',
780
+ 'fa-tree' => 'Tree',
781
+ 'fa-spotify' => 'Spotify',
782
+ 'fa-deviantart' => 'Deviantart',
783
+ 'fa-soundcloud' => 'Soundcloud',
784
+ 'fa-database' => 'Database',
785
+ 'fa-file-pdf-o' => 'File Pdf O',
786
+ 'fa-file-word-o' => 'File Word O',
787
+ 'fa-file-excel-o' => 'File Excel O',
788
+ 'fa-file-powerpoint-o' => 'File Powerpoint O',
789
+ 'fa-file-image-o' => 'File Image O',
790
+ 'fa-file-archive-o' => 'File Archive O',
791
+ 'fa-file-audio-o' => 'File Audio O',
792
+ 'fa-file-video-o' => 'File Video O',
793
+ 'fa-file-code-o' => 'File Code O',
794
+ 'fa-vine' => 'Vine',
795
+ 'fa-codepen' => 'Codepen',
796
+ 'fa-jsfiddle' => 'Jsfiddle',
797
+ 'fa-life-ring' => 'Life Ring',
798
+ 'fa-circle-o-notch' => 'Circle O Notch',
799
+ 'fa-rebel' => 'Rebel',
800
+ 'fa-empire' => 'Empire',
801
+ 'fa-git-square' => 'Git Square',
802
+ 'fa-git' => 'Git',
803
+ 'fa-hacker-news' => 'Hacker News',
804
+ 'fa-tencent-weibo' => 'Tencent Weibo',
805
+ 'fa-qq' => 'Qq',
806
+ 'fa-weixin' => 'Weixin',
807
+ 'fa-paper-plane' => 'Paper Plane',
808
+ 'fa-paper-plane-o' => 'Paper Plane O',
809
+ 'fa-history' => 'History',
810
+ 'fa-circle-thin' => 'Circle Thin',
811
+ 'fa-header' => 'Header',
812
+ 'fa-paragraph' => 'Paragraph',
813
+ 'fa-sliders' => 'Sliders',
814
+ 'fa-share-alt' => 'Share Alt',
815
+ 'fa-share-alt-square' => 'Share Alt Square',
816
+ 'fa-bomb' => 'Bomb',
817
+ 'fa-futbol-o' => 'Futbol O',
818
+ 'fa-tty' => 'Tty',
819
+ 'fa-binoculars' => 'Binoculars',
820
+ 'fa-plug' => 'Plug',
821
+ 'fa-slideshare' => 'Slideshare',
822
+ 'fa-twitch' => 'Twitch',
823
+ 'fa-yelp' => 'Yelp',
824
+ 'fa-newspaper-o' => 'Newspaper O',
825
+ 'fa-wifi' => 'Wifi',
826
+ 'fa-calculator' => 'Calculator',
827
+ 'fa-paypal' => 'Paypal',
828
+ 'fa-google-wallet' => 'Google Wallet',
829
+ 'fa-cc-visa' => 'Cc Visa',
830
+ 'fa-cc-mastercard' => 'Cc Mastercard',
831
+ 'fa-cc-discover' => 'Cc Discover',
832
+ 'fa-cc-amex' => 'Cc Amex',
833
+ 'fa-cc-paypal' => 'Cc Paypal',
834
+ 'fa-cc-stripe' => 'Cc Stripe',
835
+ 'fa-bell-slash' => 'Bell Slash',
836
+ 'fa-bell-slash-o' => 'Bell Slash O',
837
+ 'fa-trash' => 'Trash',
838
+ 'fa-copyright' => 'Copyright',
839
+ 'fa-at' => 'At',
840
+ 'fa-eyedropper' => 'Eyedropper',
841
+ 'fa-paint-brush' => 'Paint Brush',
842
+ 'fa-birthday-cake' => 'Birthday Cake',
843
+ 'fa-area-chart' => 'Area Chart',
844
+ 'fa-pie-chart' => 'Pie Chart',
845
+ 'fa-line-chart' => 'Line Chart',
846
+ 'fa-lastfm' => 'Lastfm',
847
+ 'fa-lastfm-square' => 'Lastfm Square',
848
+ 'fa-toggle-off' => 'Toggle Off',
849
+ 'fa-toggle-on' => 'Toggle On',
850
+ 'fa-bicycle' => 'Bicycle',
851
+ 'fa-bus' => 'Bus',
852
+ 'fa-ioxhost' => 'Ioxhost',
853
+ 'fa-angellist' => 'Angellist',
854
+ 'fa-cc' => 'Cc',
855
+ 'fa-ils' => 'Ils',
856
+ 'fa-meanpath' => 'Meanpath',
857
+ 'fa-buysellads' => 'Buysellads',
858
+ 'fa-connectdevelop' => 'Connectdevelop',
859
+ 'fa-dashcube' => 'Dashcube',
860
+ 'fa-forumbee' => 'Forumbee',
861
+ 'fa-leanpub' => 'Leanpub',
862
+ 'fa-sellsy' => 'Sellsy',
863
+ 'fa-shirtsinbulk' => 'Shirtsinbulk',
864
+ 'fa-simplybuilt' => 'Simplybuilt',
865
+ 'fa-skyatlas' => 'Skyatlas',
866
+ 'fa-cart-plus' => 'Cart Plus',
867
+ 'fa-cart-arrow-down' => 'Cart Arrow Down',
868
+ 'fa-diamond' => 'Diamond',
869
+ 'fa-ship' => 'Ship',
870
+ 'fa-user-secret' => 'User Secret',
871
+ 'fa-motorcycle' => 'Motorcycle',
872
+ 'fa-street-view' => 'Street View',
873
+ 'fa-heartbeat' => 'Heartbeat',
874
+ 'fa-venus' => 'Venus',
875
+ 'fa-mars' => 'Mars',
876
+ 'fa-mercury' => 'Mercury',
877
+ 'fa-transgender' => 'Transgender',
878
+ 'fa-transgender-alt' => 'Transgender Alt',
879
+ 'fa-venus-double' => 'Venus Double',
880
+ 'fa-mars-double' => 'Mars Double',
881
+ 'fa-venus-mars' => 'Venus Mars',
882
+ 'fa-mars-stroke' => 'Mars Stroke',
883
+ 'fa-mars-stroke-v' => 'Mars Stroke V',
884
+ 'fa-mars-stroke-h' => 'Mars Stroke H',
885
+ 'fa-neuter' => 'Neuter',
886
+ 'fa-facebook-official' => 'Facebook Official',
887
+ 'fa-pinterest-p' => 'Pinterest P',
888
+ 'fa-whatsapp' => 'Whatsapp',
889
+ 'fa-server' => 'Server',
890
+ 'fa-user-plus' => 'User Plus',
891
+ 'fa-user-times' => 'User Times',
892
+ 'fa-bed' => 'Bed',
893
+ 'fa-viacoin' => 'Viacoin',
894
+ 'fa-train' => 'Train',
895
+ 'fa-subway' => 'Subway',
896
+ 'fa-medium' => 'Medium'
897
+ );
898
+
899
+ ksort( $icons );
900
+
901
+ global $woocommerce;
902
+
903
+ $is_woocommerce_2_0 =version_compare( preg_replace( '/-beta-([0-9]+)/', '', $woocommerce->version ), '2.1', '<' );
904
+
905
+ $options['general_settings'] = array();
906
+
907
+ if( $is_woocommerce_2_0 ){
908
+ $settings_page = 'WooCommerce &gt; Settings &gt; Pages' ;
909
+ }
910
+ else{
911
+ $settings_page = 'in this settings page';
912
+ }
913
+
914
+ $general_settings_start = array(
915
+
916
+ 'section_general_settings_videobox' => array(
917
+ 'name' => __( 'Upgrade to the PREMIUM VERSION', 'yit' ),
918
+ 'type' => 'videobox',
919
+ 'default' => array(
920
+ 'plugin_name' => __( 'YITH WooCommerce Wishlist', 'yit' ),
921
+ 'title_first_column' => __( 'Discover the Advanced Features', 'yit' ),
922
+ 'description_first_column' => __( 'Upgrade to the PREMIUM VERSION
923
of YITH WOOCOMMERCE WISHLIST to benefit from all features!', 'yit' ),
924
+ 'video' => array(
925
+ 'video_id' => '118797844',
926
+ 'video_image_url' => YITH_WCWL_URL . '/assets/images/video-thumb.jpg',
927
+ 'video_description' => '',
928
+ ),
929
+ 'title_second_column' => __( 'Get Support and Pro Features', 'yit' ),
930
+ 'description_second_column' => __( 'By purchasing the premium version of the plugin, you will take advantage of the advanced features of the product and you will get one year of free updates and support through our platform available 24h/24.', 'yit' ),
931
+ 'button' => array(
932
+ 'href' => $this->get_premium_landing_uri(),
933
+ 'title' => 'Get Support and Pro Features'
934
+ )
935
+ ),
936
+ 'id' => 'yith_wcwl_general_videobox'
937
+ ),
938
+
939
+ 'general_section_start' => array(
940
+ 'name' => __( 'General Settings', 'yit' ),
941
+ 'type' => 'title',
942
+ 'desc' => '',
943
+ 'id' => 'yith_wcwl_general_settings'
944
+ ),
945
+
946
+ 'wishlist_enable' => array(
947
+ 'name' => __( 'Enable YITH Wishlist', 'yit' ),
948
+ 'desc' => sprintf( __( 'Enable all plugin features. <strong>Be sure to select a voice in the wishlist page menu in %s.</strong> Also, please read the plugin <a href="%s" target="_blank">documentation</a>.', 'yit' ), $settings_page, esc_url( $this->doc_url ) ),
949
+ 'id' => 'yith_wcwl_enabled',
950
+ 'std' => 'yes', // for woocommerce < 2.0
951
+ 'default' => 'yes', // for woocommerce >= 2.0
952
+ 'type' => 'checkbox'
953
+ ),
954
+ 'default_wishlist_title' => array(
955
+ 'name' => __( 'Default wishlist title', 'yit' ),
956
+ 'id' => 'yith_wcwl_wishlist_title',
957
+ 'std' => sprintf( __( 'My wishlist on %s', 'yit' ), get_bloginfo( 'name' ) ), // for woocommerce < 2.0
958
+ 'default' => sprintf( __( 'My wishlist on %s', 'yit' ), get_bloginfo( 'name' ) ), // for woocommerce >= 2.0
959
+ 'type' => 'text',
960
+ 'css' => 'min-width:300px;',
961
+ )
962
+ );
963
+
964
+ $general_settings_end = array(
965
+ 'add_to_wishlist_position' => array(
966
+ 'name' => __( 'Position', 'yit' ),
967
+ 'desc' => __( 'You can add it in variable products only After "Add to Cart " or using the shortcode [yith_wcwl_add_to_wishlist].', 'yit' ),
968
+ 'id' => 'yith_wcwl_button_position',
969
+ 'type' => 'select',
970
+ 'class' => 'chosen_select',
971
+ 'css' => 'min-width:300px;',
972
+ 'options' => array(
973
+ 'add-to-cart' => __( 'After "Add to cart"', 'yit' ),
974
+ 'thumbnails' => __( 'After thumbnails', 'yit' ),
975
+ 'summary' => __( 'After summary', 'yit' ),
976
+ 'shortcode' => __( 'Use shortcode', 'yit' )
977
+ ),
978
+ 'desc_tip' => true
979
+ ),
980
+ 'redirect_to_cart' => array(
981
+ 'name' => __( 'Redirect to cart', 'yit' ),
982
+ 'desc' => __( 'Redirect to cart page if "Add to cart" button is clicked in the wishlist page.', 'yit' ),
983
+ 'id' => 'yith_wcwl_redirect_cart',
984
+ 'std' => 'no', // for woocommerce < 2.0
985
+ 'default' => 'no', // for woocommerce >= 2.0
986
+ 'type' => 'checkbox'
987
+ ),
988
+ 'remove_after_add_to_cart' => array(
989
+ 'name' => __( 'Remove if added to the cart', 'yit' ),
990
+ 'desc' => __( 'Remove the product from the wishlist if it has been added to the cart.', 'yit' ),
991
+ 'id' => 'yith_wcwl_remove_after_add_to_cart',
992
+ 'std' => 'yes', // for woocommerce < 2.0
993
+ 'default' => 'yes', // for woocommerce >= 2.0
994
+ 'type' => 'checkbox'
995
+ ),
996
+ 'add_to_wishlist_text' => array(
997
+ 'name' => __( '"Add to Wishlist" text', 'yit' ),
998
+ 'id' => 'yith_wcwl_add_to_wishlist_text',
999
+ 'std' => __( 'Add to Wishlist', 'yit' ), // for woocommerce < 2.0
1000
+ 'default' => __( 'Add to Wishlist', 'yit' ), // for woocommerce >= 2.0
1001
+ 'type' => 'text',
1002
+ 'css' => 'min-width:300px;',
1003
+ ),
1004
+ 'browse_wishlist_text' => array(
1005
+ 'name' => __( '"Browse wishlist" text', 'yit' ),
1006
+ 'id' => 'yith_wcwl_browse_wishlist_text',
1007
+ 'std' => __( 'Browse Wishlist', 'yit' ), // for woocommerce < 2.0
1008
+ 'default' => __( 'Browse Wishlist', 'yit' ), // for woocommerce >= 2.0
1009
+ 'type' => 'text',
1010
+ 'css' => 'min-width:300px;',
1011
+ ),
1012
+ 'already_in_wishlist_text' => array(
1013
+ 'name' => __( '"Product already in wishlist" text', 'yit' ),
1014
+ 'id' => 'yith_wcwl_already_in_wishlist_text',
1015
+ 'std' => __( 'The product is already in the wishlist!', 'yit' ), // for woocommerce < 2.0
1016
+ 'default' => __( 'The product is already in the wishlist!', 'yit' ), // for woocommerce >= 2.0
1017
+ 'type' => 'text',
1018
+ 'css' => 'min-width:300px;',
1019
+ ),
1020
+ 'product_added_text' => array(
1021
+ 'name' => __( '"Product added" text', 'yit' ),
1022
+ 'id' => 'yith_wcwl_product_added_text',
1023
+ 'std' => __( 'Product added!', 'yit' ), // for woocommerce < 2.0
1024
+ 'default' => __( 'Product added!', 'yit' ), // for woocommerce >= 2.0
1025
+ 'type' => 'text',
1026
+ 'css' => 'min-width:300px;',
1027
+ ),
1028
+ 'add_to_cart_text' => array(
1029
+ 'name' => __( '"Add to Cart" text', 'yit' ),
1030
+ 'id' => 'yith_wcwl_add_to_cart_text',
1031
+ 'std' => __( 'Add to Cart', 'yit' ), // for woocommerce < 2.0
1032
+ 'default' => __( 'Add to Cart', 'yit' ), // for woocommerce >= 2.0
1033
+ 'type' => 'text',
1034
+ 'css' => 'min-width:300px;',
1035
+ ),
1036
+ 'show_unit_price' => array(
1037
+ 'name' => __( 'Show Unit price', 'yit' ),
1038
+ 'desc' => __( 'Show unit price for each product in wishlist', 'yit' ),
1039
+ 'id' => 'yith_wcwl_price_show',
1040
+ 'std' => 'yes', // for woocommerce < 2.0
1041
+ 'default' => 'yes', // for woocommerce >= 2.0
1042
+ 'type' => 'checkbox',
1043
+ 'css' => 'min-width:300px;',
1044
+ ),
1045
+ 'show_add_to_cart' => array(
1046
+ 'name' => __( 'Show "Add to Cart" button', 'yit' ),
1047
+ 'desc' => __( 'Show "Add to cart" button for each product in wishlist', 'yit' ),
1048
+ 'id' => 'yith_wcwl_add_to_cart_show',
1049
+ 'std' => 'yes', // for woocommerce < 2.0
1050
+ 'default' => 'yes', // for woocommerce >= 2.0
1051
+ 'type' => 'checkbox',
1052
+ 'css' => 'min-width:300px;',
1053
+ ),
1054
+ 'show_stock_status' => array(
1055
+ 'name' => __( 'Show Stock status', 'yit' ),
1056
+ 'desc' => __( 'Show "In stock" or "Out of stock" label for each product in wishlist', 'yit' ),
1057
+ 'id' => 'yith_wcwl_stock_show',
1058
+ 'std' => 'yes', // for woocommerce < 2.0
1059
+ 'default' => 'yes', // for woocommerce >= 2.0
1060
+ 'type' => 'checkbox',
1061
+ 'css' => 'min-width:300px;',
1062
+ ),
1063
+
1064
+ 'general_section_end' => array(
1065
+ 'type' => 'sectionend',
1066
+ 'id' => 'yith_wcwl_general_settings'
1067
+ )
1068
+ );
1069
+
1070
+ if( $is_woocommerce_2_0 ) {
1071
+ $options['general_settings'] = array_merge( $general_settings_start, $general_settings_end );
1072
+ }
1073
+ else{
1074
+ $options['general_settings'] = array_merge( $general_settings_start, array( $this->get_wcwl_page_option() ), $general_settings_end );
1075
+ }
1076
+
1077
+ $options['styles'] = array(
1078
+ 'styles_section_start' => array(
1079
+ 'name' => __( 'Styles', 'yit' ),
1080
+ 'type' => 'title',
1081
+ 'desc' => '',
1082
+ 'id' => 'yith_wcwl_styles'
1083
+ ),
1084
+
1085
+ 'use_buttons' => array(
1086
+ 'name' => __( 'Use buttons', 'yit' ),
1087
+ 'desc' => __( 'Use buttons instead of simple anchors.', 'yit' ),
1088
+ 'id' => 'yith_wcwl_use_button',
1089
+ 'std' => 'no', // for woocommerce < 2.0
1090
+ 'default' => 'no', // for woocommerce >= 2.0
1091
+ 'type' => 'checkbox'
1092
+ ),
1093
+ 'custom_css' => array(
1094
+ 'name' => __( 'Custom CSS', 'yit' ),
1095
+ 'id' => 'yith_wcwl_custom_css',
1096
+ 'css' => 'width:100%; height: 75px;',
1097
+ 'std' => '', // for woocommerce < 2.0
1098
+ 'default' => '', // for woocommerce >= 2.0
1099
+ 'type' => 'textarea'
1100
+ ),
1101
+ 'use_theme_style' => array(
1102
+ 'name' => __( 'Use theme style', 'yit' ),
1103
+ 'desc' => __( 'Use the theme style.', 'yit' ),
1104
+ 'id' => 'yith_wcwl_frontend_css',
1105
+ 'std' => 'yes', // for woocommerce < 2.0
1106
+ 'default' => 'yes', // for woocommerce >= 2.0
1107
+ 'type' => 'checkbox'
1108
+ ),
1109
+ 'rounded_buttons' => array(
1110
+ 'name' => __( 'Rounded buttons', 'yit' ),
1111
+ 'desc' => __( 'Make button corners rounded', 'yit' ),
1112
+ 'id' => 'yith_wcwl_rounded_corners',
1113
+ 'std' => 'yes', // for woocommerce < 2.0
1114
+ 'default' => 'yes', // for woocommerce >= 2.0
1115
+ 'type' => 'checkbox'
1116
+ ),
1117
+ 'add_to_wishlist_icon' => array(
1118
+ 'name' => __( '"Add to Wishlist" icon', 'yit' ),
1119
+ 'desc' => __( 'Add an icon to the "Add to Wishlist" button', 'yit' ),
1120
+ 'id' => 'yith_wcwl_add_to_wishlist_icon',
1121
+ 'css' => 'min-width:300px;width:300px;',
1122
+ 'std' => apply_filters( 'yith_wcwl_add_to_wishlist_std_icon', 'none' ), // for woocommerce < 2.0
1123
+ 'default' => apply_filters( 'yith_wcwl_add_to_wishlist_std_icon', 'none' ), // for woocommerce >= 2.0
1124
+ 'type' => 'select',
1125
+ 'class' => 'chosen_select',
1126
+ 'desc_tip' => true,
1127
+ 'options' => array( 'none' => 'None' ) + $icons
1128
+ ),
1129
+ 'add_to_cart_icon' => array(
1130
+ 'name' => __( '"Add to Cart" icon', 'yit' ),
1131
+ 'desc' => __( 'Add an icon to the "Add to Cart" button', 'yit' ),
1132
+ 'id' => 'yith_wcwl_add_to_cart_icon',
1133
+ 'css' => 'min-width:300px;width:300px;',
1134
+ 'std' => apply_filters( 'yith_wcwl_add_to_cart_std_icon', 'fa-shopping-cart' ), // for woocommerce < 2.0
1135
+ 'default' => apply_filters( 'yith_wcwl_add_to_cart_std_icon', 'fa-shopping-cart' ), // for woocom