YITH WooCommerce Catalog Mode - Version 1.0.3

Version Description

  • Fixed: Improved code performance
Download this release

Release Info

Developer yithemes
Plugin Icon 128x128 YITH WooCommerce Catalog Mode
Version 1.0.3
Comparing to
See all releases

Code changes from version 1.0.2 to 1.0.3

assets/images/06-bg.png ADDED
Binary file
assets/images/06-icon.png ADDED
Binary file
assets/images/06.png ADDED
Binary file
class.yith-woocommerce-catalog-mode.php CHANGED
@@ -172,7 +172,17 @@ class YITH_WC_Catalog_Mode {
172
  }
173
  }
174
 
175
- return $hide;
 
 
 
 
 
 
 
 
 
 
176
 
177
  }
178
 
@@ -185,24 +195,52 @@ class YITH_WC_Catalog_Mode {
185
  */
186
  public function hide_add_to_cart_loop() {
187
 
 
 
188
  if ( get_option( 'ywctm_hide_add_to_cart_loop' ) == 'yes' ) {
189
 
190
  global $post;
191
 
 
192
  $exclude_catalog = get_post_meta( $post->ID, '_ywctm_exclude_catalog_mode', true );
193
  $enable_exclusion = get_option( 'ywctm_exclude_hide_add_to_cart' );
194
 
195
  if ( $enable_exclusion == '' || $enable_exclusion == 'no' ) {
196
- remove_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_loop_add_to_cart', 10 );
 
 
197
  } else {
 
198
  if ( $exclude_catalog == '' || $exclude_catalog == 'no' ) {
199
- remove_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_loop_add_to_cart', 10 );
 
 
200
  } else {
201
- add_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_loop_add_to_cart', 10 );
 
 
202
  }
203
  }
204
  }
205
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
206
  }
207
 
208
  /**
172
  }
173
  }
174
 
175
+ $reverse_criteria = get_option( 'ywctm_exclude_hide_add_to_cart_reverse' );
176
+
177
+ if ( $reverse_criteria == '' || $reverse_criteria == 'no' ) {
178
+
179
+ return $hide;
180
+
181
+ }else{
182
+
183
+ return ! $hide;
184
+
185
+ }
186
 
187
  }
188
 
195
  */
196
  public function hide_add_to_cart_loop() {
197
 
198
+ $remove = false;
199
+
200
  if ( get_option( 'ywctm_hide_add_to_cart_loop' ) == 'yes' ) {
201
 
202
  global $post;
203
 
204
+
205
  $exclude_catalog = get_post_meta( $post->ID, '_ywctm_exclude_catalog_mode', true );
206
  $enable_exclusion = get_option( 'ywctm_exclude_hide_add_to_cart' );
207
 
208
  if ( $enable_exclusion == '' || $enable_exclusion == 'no' ) {
209
+
210
+ $remove = true;
211
+
212
  } else {
213
+
214
  if ( $exclude_catalog == '' || $exclude_catalog == 'no' ) {
215
+
216
+ $remove = true;
217
+
218
  } else {
219
+
220
+ $remove = false;
221
+
222
  }
223
  }
224
  }
225
 
226
+ $reverse_criteria = get_option( 'ywctm_exclude_hide_add_to_cart_reverse' );
227
+
228
+ if ( $reverse_criteria == 'yes' ) {
229
+
230
+ $remove = ! $remove;
231
+
232
+ }
233
+
234
+ if ( $remove ){
235
+
236
+ remove_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_loop_add_to_cart', 10 );
237
+
238
+ } else {
239
+
240
+ add_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_loop_add_to_cart', 10 );
241
+
242
+ }
243
+
244
  }
245
 
246
  /**
init.php CHANGED
@@ -5,7 +5,7 @@ Plugin URI: http://yithemes.com/themes/plugins/yith-woocommerce-catalog-mode/
5
  Description: YITH Woocommerce Catalog Mode allows you to disable shop functions.
6
  Author: Yithemes
7
  Text Domain: ywctm
8
- Version: 1.0.2
9
  Author URI: http://yithemes.com/
10
  */
11
 
5
  Description: YITH Woocommerce Catalog Mode allows you to disable shop functions.
6
  Author: Yithemes
7
  Text Domain: ywctm
8
+ Version: 1.0.3
9
  Author URI: http://yithemes.com/
10
  */
11
 
plugin-fw/assets/css/yit-plugin-panel.css CHANGED
@@ -50,7 +50,8 @@
50
  top: -30px;
51
  }
52
  /*handle*/
53
- .yit-options .ui-slider-horizontal .ui-slider-handle {
 
54
  background: transparent url(../images/slider/handle.png) no-repeat left top !important;
55
  border: 0px !important;
56
  top: -.35em !important;
@@ -59,7 +60,8 @@
59
  }
60
 
61
  /*bg on the left:grey*/
62
- .yit-options .ui-slider.ui-widget-content {
 
63
  background: url(../images/slider/grey.gif) repeat-x left center !important;
64
  border-color: #c1c1c0 !important;
65
  height: 10px !important;
@@ -83,9 +85,11 @@
83
  .plugin-option tr{
84
  border-bottom: 1px solid #ccc;
85
  }
86
- .plugin-option .yit_options{
 
87
  border-bottom: 0px;
88
  }
 
89
  .plugin-option .yit_options .option {
90
  width: 600px;
91
  float: left;
@@ -95,6 +99,7 @@
95
  padding: 25px 10px;
96
  }
97
 
 
98
  .yit-options .select_wrapper {
99
  background: url("../images/select.png") no-repeat scroll right center #FAFAFA;
100
  border-color: #CCCCCC #EEEEEE #EEEEEE #CCCCCC;
@@ -165,10 +170,11 @@
165
  position: absolute;
166
  z-index: 2;
167
  }
168
- .ie8 .yit_options select {
 
169
  height: 26px;
170
  }
171
- .yit_options select, .the-metabox .select_wrapper select {
172
  cursor: pointer;
173
  height: 28px;
174
  margin: 0;
@@ -198,6 +204,7 @@
198
 
199
 
200
  /* Style to woocommerce panel*/
 
201
  #plugin-fw-wc{
202
  padding-top: 20px;
203
  }
@@ -212,49 +219,59 @@
212
  padding:0px 10px 10px ;
213
  border-bottom: 1px solid #eee;
214
  }
215
- #plugin-fw-wc .yith_videobox .column{
 
 
 
 
 
 
 
 
 
 
 
 
 
 
216
  width: 45%;
217
  float: left;
218
  padding-right: 2.5%;
219
  border-right: 1px solid #ebebeb;
220
  padding-bottom: 2em;
221
  }
222
- #plugin-fw-wc .yith_videobox .column.two{
223
  margin-right: 0;
224
  padding-right: 0;
225
  padding-left: 2.5%;
226
  border: 0;
227
  max-width: 49%;
228
  }
229
- #plugin-fw-wc .yith_videobox h2{
230
  font-size: 16px;
231
  margin-bottom: 20px;
232
  }
233
- #plugin-fw-wc .postbox .inside{
234
- display: inline-block;
235
- }
236
- #plugin-fw-wc .yith-video-link {
237
  width: 100%;
238
  max-width: 200px;
239
  float: left;
240
  margin: 0 1.5em 1.5em 0;
241
  }
242
- #plugin-fw-wc .yith-video-link {
243
  width: 100%;
244
  max-width: 200px;
245
  float: left;
246
  margin: 0 1.5em 1.5em 0;
247
  }
248
- #plugin-fw-wc .yith-image-frame img {
249
  max-width: 100%;
250
  height: auto;
251
  }
252
-
253
- #plugin-fw-wc .yith-video-link img {
254
  max-width: 100%;
255
  height: auto;
256
  }
257
- #plugin-fw-wc .yith-video-iframe {
258
  display: none;
259
 
260
  }
50
  top: -30px;
51
  }
52
  /*handle*/
53
+ .yit-options .ui-slider-horizontal .ui-slider-handle,
54
+ .yit_options .ui-slider-horizontal .ui-slider-handle {
55
  background: transparent url(../images/slider/handle.png) no-repeat left top !important;
56
  border: 0px !important;
57
  top: -.35em !important;
60
  }
61
 
62
  /*bg on the left:grey*/
63
+ .yit-options .ui-slider.ui-widget-content,
64
+ .yit_options .ui-slider.ui-widget-content {
65
  background: url(../images/slider/grey.gif) repeat-x left center !important;
66
  border-color: #c1c1c0 !important;
67
  height: 10px !important;
85
  .plugin-option tr{
86
  border-bottom: 1px solid #ccc;
87
  }
88
+ .plugin-option .yit_options,
89
+ .plugin-option .yit-options{
90
  border-bottom: 0px;
91
  }
92
+ .plugin-option .yit-options .option,
93
  .plugin-option .yit_options .option {
94
  width: 600px;
95
  float: left;
99
  padding: 25px 10px;
100
  }
101
 
102
+ .yit_options .select_wrapper,
103
  .yit-options .select_wrapper {
104
  background: url("../images/select.png") no-repeat scroll right center #FAFAFA;
105
  border-color: #CCCCCC #EEEEEE #EEEEEE #CCCCCC;
170
  position: absolute;
171
  z-index: 2;
172
  }
173
+ .ie8 .yit_options select,
174
+ .ie8 .yit-options select {
175
  height: 26px;
176
  }
177
+ .yit_options select, .yit-options select, .the-metabox .select_wrapper select {
178
  cursor: pointer;
179
  height: 28px;
180
  margin: 0;
204
 
205
 
206
  /* Style to woocommerce panel*/
207
+
208
  #plugin-fw-wc{
209
  padding-top: 20px;
210
  }
219
  padding:0px 10px 10px ;
220
  border-bottom: 1px solid #eee;
221
  }
222
+
223
+ /* === VIDEO BOX === */
224
+
225
+ .yith-videobox-wrapper {
226
+ padding-top: 20px;
227
+ }
228
+ .yith-videobox-wrapper h3{
229
+ padding:0px 10px 10px ;
230
+ border-bottom: 1px solid #eee;
231
+ }
232
+
233
+ .yith-videobox-wrapper .postbox {
234
+ display: inline-block;
235
+ }
236
+ .yith-videobox-wrapper .yith_videobox .column {
237
  width: 45%;
238
  float: left;
239
  padding-right: 2.5%;
240
  border-right: 1px solid #ebebeb;
241
  padding-bottom: 2em;
242
  }
243
+ .yith-videobox-wrapper .yith_videobox .column.two {
244
  margin-right: 0;
245
  padding-right: 0;
246
  padding-left: 2.5%;
247
  border: 0;
248
  max-width: 49%;
249
  }
250
+ .yith-videobox-wrapper .yith_videobox h2{
251
  font-size: 16px;
252
  margin-bottom: 20px;
253
  }
254
+ .yith-videobox-wrapper .yith-video-link {
 
 
 
255
  width: 100%;
256
  max-width: 200px;
257
  float: left;
258
  margin: 0 1.5em 1.5em 0;
259
  }
260
+ .yith-videobox-wrapper .yith-video-link {
261
  width: 100%;
262
  max-width: 200px;
263
  float: left;
264
  margin: 0 1.5em 1.5em 0;
265
  }
266
+ .yith-videobox-wrapper .yith-image-frame img {
267
  max-width: 100%;
268
  height: auto;
269
  }
270
+ .yith-videobox-wrapper .yith-video-link img {
 
271
  max-width: 100%;
272
  height: auto;
273
  }
274
+ .yith-videobox-wrapper .yith-video-iframe {
275
  display: none;
276
 
277
  }
plugin-fw/assets/js/chosen/ajax-chosen.jquery.js ADDED
@@ -0,0 +1,81 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // Generated by CoffeeScript 1.3.1
2
+
3
+ (function($) {
4
+ return $.fn.ajaxChosen = function(settings, callback) {
5
+ var chosenXhr, defaultOptions, options, select;
6
+ if (settings == null) {
7
+ settings = {};
8
+ }
9
+ if (callback == null) {
10
+ callback = function() {};
11
+ }
12
+ defaultOptions = {
13
+ minTermLength: 3,
14
+ afterTypeDelay: 500,
15
+ jsonTermKey: "term"
16
+ };
17
+ select = this;
18
+ chosenXhr = null;
19
+ options = $.extend({}, defaultOptions, settings);
20
+ this.chosen();
21
+ return this.each(function() {
22
+ return $(this).next('.chosen-container').find(".search-field > input, .chosen-search > input").bind('keyup', function() {
23
+ var field, msg, success, val;
24
+ val = $.trim($(this).attr('value'));
25
+ msg = val.length < options.minTermLength ? "Keep typing..." : "Looking for '" + val + "'";
26
+ select.next('.chosen-container').find('.no-results').text(msg);
27
+ if (val === $(this).data('prevVal')) {
28
+ return false;
29
+ }
30
+ $(this).data('prevVal', val);
31
+ if (this.timer) {
32
+ clearTimeout(this.timer);
33
+ }
34
+ if (val.length < options.minTermLength) {
35
+ return false;
36
+ }
37
+ field = $(this);
38
+ if (!(options.data != null)) {
39
+ options.data = {};
40
+ }
41
+ options.data[options.jsonTermKey] = val;
42
+ if (options.dataCallback != null) {
43
+ options.data = options.dataCallback(options.data);
44
+ }
45
+ success = options.success;
46
+ options.success = function(data) {
47
+ var items, selected_values;
48
+ if (!(data != null)) {
49
+ return;
50
+ }
51
+ selected_values = [];
52
+ select.find('option').each(function() {
53
+ if (!$(this).is(":selected")) {
54
+ return $(this).remove();
55
+ } else {
56
+ return selected_values.push($(this).val() + "-" + $(this).text());
57
+ }
58
+ });
59
+ items = callback(data);
60
+ $.each(items, function(value, text) {
61
+ if ($.inArray(value + "-" + text, selected_values) === -1) {
62
+ return $("<option />").attr('value', value).html(text).appendTo(select);
63
+ }
64
+ });
65
+ select.trigger("chosen:updated");
66
+ if (success != null) {
67
+ success(data);
68
+ }
69
+ field.attr('value', val);
70
+ return field.css('width', 'auto');
71
+ };
72
+ return this.timer = setTimeout(function() {
73
+ if (chosenXhr) {
74
+ chosenXhr.abort();
75
+ }
76
+ return chosenXhr = $.ajax(options);
77
+ }, options.afterTypeDelay);
78
+ });
79
+ });
80
+ };
81
+ })(jQuery);
plugin-fw/assets/js/chosen/ajax-chosen.jquery.min.js ADDED
@@ -0,0 +1,2 @@
 
 
1
+ // Generated by CoffeeScript 1.3.1
2
+ (function(e){return e.fn.ajaxChosen=function(t,n){var r,i,s,o;t==null&&(t={});n==null&&(n=function(){});i={minTermLength:3,afterTypeDelay:500,jsonTermKey:"term"};o=this;r=null;s=e.extend({},i,t);this.chosen();return this.each(function(){return e(this).next(".chosen-container").find(".search-field > input, .chosen-search > input").bind("keyup",function(){var t,i,u,a;a=e.trim(e(this).attr("value"));i=a.length<s.minTermLength?"Keep typing...":"Looking for '"+a+"'";o.next(".chosen-container").find(".no-results").text(i);if(a===e(this).data("prevVal"))return!1;e(this).data("prevVal",a);this.timer&&clearTimeout(this.timer);if(a.length<s.minTermLength)return!1;t=e(this);s.data==null&&(s.data={});s.data[s.jsonTermKey]=a;s.dataCallback!=null&&(s.data=s.dataCallback(s.data));u=s.success;s.success=function(r){var i,s;if(r==null)return;s=[];o.find("option").each(function(){return e(this).is(":selected")?s.push(e(this).val()+"-"+e(this).text()):e(this).remove()});i=n(r);e.each(i,function(t,n){if(e.inArray(t+"-"+n,s)===-1)return e("<option />").attr("value",t).html(n).appendTo(o)});o.trigger("chosen:updated");u!=null&&u(r);t.attr("value",a);return t.css("width","auto")};return this.timer=setTimeout(function(){r&&r.abort();return r=e.ajax(s)},s.afterTypeDelay)})})}})(jQuery);
plugin-fw/lib/yit-cpt-unlimited.php CHANGED
@@ -292,9 +292,9 @@ class YIT_CPT_Unlimited {
292
  }
293
 
294
  public function filter_active( $wp_query ) {
295
- if ( isset( $wp_query->query['suppress_filters'] ) )
296
  $wp_query->query['suppress_filters'] = false;
297
- if ( isset( $wp_query->query_vars['suppress_filters'] ) )
298
  $wp_query->query_vars['suppress_filters'] = false;
299
  return $wp_query;
300
  }
@@ -1751,7 +1751,7 @@ class YIT_CPT_Unlimited {
1751
 
1752
 
1753
  // check if we are in archive template
1754
- if ( !( ! is_admin() && is_archive() && isset( $wp_query->post->post_type ) && $this->_is_valid( $wp_query->post->post_type ) ) ) {
1755
  return;
1756
  }
1757
 
292
  }
293
 
294
  public function filter_active( $wp_query ) {
295
+ if ( is_admin() && isset( $wp_query->query['suppress_filters'] ) )
296
  $wp_query->query['suppress_filters'] = false;
297
+ if ( is_admin() && isset( $wp_query->query_vars['suppress_filters'] ) )
298
  $wp_query->query_vars['suppress_filters'] = false;
299
  return $wp_query;
300
  }
1751
 
1752
 
1753
  // check if we are in archive template
1754
+ if ( !( ! is_admin() && is_archive() && isset($wp_query->post) && $this->_is_valid( $wp_query->post->post_type ) ) ) {
1755
  return;
1756
  }
1757
 
plugin-fw/lib/yit-metabox.php CHANGED
@@ -154,13 +154,11 @@ if ( ! class_exists( 'YIT_Metabox' ) ) {
154
  wp_enqueue_script( 'jquery-ui-datepicker' );
155
  wp_enqueue_script( 'yit-spinner', YIT_CORE_PLUGIN_URL . '/assets/js/panel.spinner.js', array( 'jquery' ), '0.0.1', true );
156
  wp_enqueue_script( 'jquery-chosen', YIT_CORE_PLUGIN_URL . '/assets/js/chosen/chosen.jquery.js', array( 'jquery' ), '1.1.0', true );
 
157
  wp_enqueue_script( 'yit-metabox', YIT_CORE_PLUGIN_URL . '/assets/js/metabox.js', array( 'jquery', 'wp-color-picker' ), '1.0.0', true );
158
  wp_enqueue_style( 'jquery-ui-overcast', YIT_CORE_PLUGIN_URL . '/assets/css/overcast/jquery-ui-1.8.9.custom.css', false, '1.8.9', 'all' );
159
 
160
- if( function_exists( 'WC' ) ){
161
 
162
- wp_enqueue_script('ajax-chosen');
163
- }
164
  }
165
 
166
  /**
154
  wp_enqueue_script( 'jquery-ui-datepicker' );
155
  wp_enqueue_script( 'yit-spinner', YIT_CORE_PLUGIN_URL . '/assets/js/panel.spinner.js', array( 'jquery' ), '0.0.1', true );
156
  wp_enqueue_script( 'jquery-chosen', YIT_CORE_PLUGIN_URL . '/assets/js/chosen/chosen.jquery.js', array( 'jquery' ), '1.1.0', true );
157
+ wp_enqueue_script( 'ajax-chosen', yit_load_js_file( YIT_CORE_PLUGIN_URL . '/assets/js/chosen/ajax-chosen.jquery.js' ), array( 'jquery' ), '1.1.0', true );
158
  wp_enqueue_script( 'yit-metabox', YIT_CORE_PLUGIN_URL . '/assets/js/metabox.js', array( 'jquery', 'wp-color-picker' ), '1.0.0', true );
159
  wp_enqueue_style( 'jquery-ui-overcast', YIT_CORE_PLUGIN_URL . '/assets/css/overcast/jquery-ui-1.8.9.custom.css', false, '1.8.9', 'all' );
160
 
 
161
 
 
 
162
  }
163
 
164
  /**
plugin-fw/lib/yit-plugin-common.php CHANGED
@@ -406,6 +406,7 @@ class YIT_Plugin_Common {
406
  '\f0f9' => 'ambulance',
407
  '\f13d' => 'anchor',
408
  '\f17b' => 'android',
 
409
  '\f103' => 'angle-double-down',
410
  '\f100' => 'angle-double-left',
411
  '\f101' => 'angle-double-right',
@@ -416,6 +417,7 @@ class YIT_Plugin_Common {
416
  '\f106' => 'angle-up',
417
  '\f179' => 'apple',
418
  '\f187' => 'archive',
 
419
  '\f0ab' => 'arrow-circle-down',
420
  '\f0a8' => 'arrow-circle-left',
421
  '\f01a' => 'arrow-circle-o-down',
@@ -433,31 +435,51 @@ class YIT_Plugin_Common {
433
  '\f07e' => 'arrows-h',
434
  '\f07d' => 'arrows-v',
435
  '\f069' => 'asterisk',
 
 
436
  '\f04a' => 'backward',
437
  '\f05e' => 'ban',
 
 
438
  '\f080' => 'bar-chart-o',
439
  '\f02a' => 'barcode',
440
  '\f0c9' => 'bars',
 
441
  '\f0fc' => 'beer',
 
 
442
  '\f0f3' => 'bell',
443
  '\f0a2' => 'bell-o',
 
 
 
 
 
444
  '\f171' => 'bitbucket',
445
  '\f172' => 'bitbucket-square',
 
446
  '\f032' => 'bold',
447
  '\f0e7' => 'bolt',
 
448
  '\f02d' => 'book',
449
  '\f02e' => 'bookmark',
450
  '\f097' => 'bookmark-o',
451
  '\f0b1' => 'briefcase',
452
  '\f15a' => 'btc',
453
  '\f188' => 'bug',
 
454
  '\f0f7' => 'building-o',
455
  '\f0a1' => 'bullhorn',
456
  '\f140' => 'bullseye',
 
 
 
 
457
  '\f073' => 'calendar',
458
  '\f133' => 'calendar-o',
459
  '\f030' => 'camera',
460
  '\f083' => 'camera-retro',
 
461
  '\f0d7' => 'caret-down',
462
  '\f0d9' => 'caret-left',
463
  '\f0da' => 'caret-right',
@@ -466,7 +488,17 @@ class YIT_Plugin_Common {
466
  '\f152' => 'caret-square-o-right',
467
  '\f151' => 'caret-square-o-up',
468
  '\f0d8' => 'caret-up',
 
 
 
 
 
 
 
 
 
469
  '\f0a3' => 'certificate',
 
470
  '\f127' => 'chain-broken',
471
  '\f00c' => 'check',
472
  '\f058' => 'check-circle',
@@ -481,14 +513,21 @@ class YIT_Plugin_Common {
481
  '\f053' => 'chevron-left',
482
  '\f054' => 'chevron-right',
483
  '\f077' => 'chevron-up',
 
 
484
  '\f10c' => 'circle-o',
 
 
485
  '\f0ea' => 'clipboard',
486
  '\f017' => 'clock-o',
 
487
  '\f0c2' => 'cloud',
488
  '\f0ed' => 'cloud-download',
489
  '\f0ee' => 'cloud-upload',
 
490
  '\f121' => 'code',
491
  '\f126' => 'code-fork',
 
492
  '\f0f4' => 'coffee',
493
  '\f013' => 'cog',
494
  '\f085' => 'cogs',
@@ -499,23 +538,43 @@ class YIT_Plugin_Common {
499
  '\f0e6' => 'comments-o',
500
  '\f14e' => 'compass',
501
  '\f066' => 'compress',
 
 
 
502
  '\f09d' => 'credit-card',
503
  '\f125' => 'crop',
504
  '\f05b' => 'crosshairs',
505
  '\f13c' => 'css3',
 
 
 
506
  '\f0f5' => 'cutlery',
 
 
 
 
 
507
  '\f108' => 'desktop',
 
 
 
 
508
  '\f192' => 'dot-circle-o',
509
  '\f019' => 'download',
510
  '\f17d' => 'dribbble',
511
  '\f16b' => 'dropbox',
 
 
512
  '\f052' => 'eject',
513
  '\f141' => 'ellipsis-h',
514
  '\f142' => 'ellipsis-v',
 
515
  '\f0e0' => 'envelope',
516
  '\f003' => 'envelope-o',
 
517
  '\f12d' => 'eraser',
518
  '\f153' => 'eur',
 
519
  '\f0ec' => 'exchange',
520
  '\f12a' => 'exclamation',
521
  '\f06a' => 'exclamation-circle',
@@ -525,16 +584,34 @@ class YIT_Plugin_Common {
525
  '\f14c' => 'external-link-square',
526
  '\f06e' => 'eye',
527
  '\f070' => 'eye-slash',
 
528
  '\f09a' => 'facebook',
 
 
529
  '\f082' => 'facebook-square',
530
  '\f049' => 'fast-backward',
531
  '\f050' => 'fast-forward',
 
532
  '\f182' => 'female',
533
  '\f0fb' => 'fighter-jet',
534
  '\f15b' => 'file',
 
 
 
 
 
 
535
  '\f016' => 'file-o',
 
 
 
 
 
536
  '\f15c' => 'file-text',
537
  '\f0f6' => 'file-text-o',
 
 
 
538
  '\f0c5' => 'files-o',
539
  '\f008' => 'film',
540
  '\f0b0' => 'filter',
@@ -543,6 +620,7 @@ class YIT_Plugin_Common {
543
  '\f024' => 'flag',
544
  '\f11e' => 'flag-checkered',
545
  '\f11d' => 'flag-o',
 
546
  '\f0c3' => 'flask',
547
  '\f16e' => 'flickr',
548
  '\f0c7' => 'floppy-o',
@@ -551,50 +629,84 @@ class YIT_Plugin_Common {
551
  '\f07c' => 'folder-open',
552
  '\f115' => 'folder-open-o',
553
  '\f031' => 'font',
 
554
  '\f04e' => 'forward',
555
  '\f180' => 'foursquare',
556
  '\f119' => 'frown-o',
 
557
  '\f11b' => 'gamepad',
558
  '\f0e3' => 'gavel',
559
  '\f154' => 'gbp',
 
 
 
 
560
  '\f06b' => 'gift',
 
 
561
  '\f09b' => 'github',
562
  '\f113' => 'github-alt',
563
  '\f092' => 'github-square',
564
  '\f184' => 'gittip',
565
  '\f000' => 'glass',
566
  '\f0ac' => 'globe',
 
567
  '\f0d5' => 'google-plus',
568
  '\f0d4' => 'google-plus-square',
 
 
 
 
569
  '\f0fd' => 'h-square',
 
570
  '\f0a7' => 'hand-o-down',
571
  '\f0a5' => 'hand-o-left',
572
  '\f0a4' => 'hand-o-right',
573
  '\f0a6' => 'hand-o-up',
574
  '\f0a0' => 'hdd-o',
 
575
  '\f025' => 'headphones',
576
  '\f004' => 'heart',
577
  '\f08a' => 'heart-o',
 
 
578
  '\f015' => 'home',
579
  '\f0f8' => 'hospital-o',
 
580
  '\f13b' => 'html5',
 
 
581
  '\f01c' => 'inbox',
582
  '\f03c' => 'indent',
583
  '\f129' => 'info',
584
  '\f05a' => 'info-circle',
585
  '\f156' => 'inr',
586
  '\f16d' => 'instagram',
 
 
587
  '\f033' => 'italic',
 
588
  '\f157' => 'jpy',
 
589
  '\f084' => 'key',
590
  '\f11c' => 'keyboard-o',
591
  '\f159' => 'krw',
 
592
  '\f109' => 'laptop',
 
 
593
  '\f06c' => 'leaf',
 
 
594
  '\f094' => 'lemon-o',
595
  '\f149' => 'level-down',
596
  '\f148' => 'level-up',
 
 
 
 
597
  '\f0eb' => 'lightbulb-o',
 
598
  '\f0c1' => 'link',
599
  '\f0e1' => 'linkedin',
600
  '\f08c' => 'linkedin-square',
@@ -611,12 +723,22 @@ class YIT_Plugin_Common {
611
  '\f176' => 'long-arrow-up',
612
  '\f0d0' => 'magic',
613
  '\f076' => 'magnet',
 
 
614
  '\f122' => 'mail-reply-all',
615
  '\f183' => 'male',
616
  '\f041' => 'map-marker',
 
 
 
 
 
617
  '\f136' => 'maxcdn',
 
 
618
  '\f0fa' => 'medkit',
619
  '\f11a' => 'meh-o',
 
620
  '\f130' => 'microphone',
621
  '\f131' => 'microphone-slash',
622
  '\f068' => 'minus',
@@ -624,25 +746,45 @@ class YIT_Plugin_Common {
624
  '\f146' => 'minus-square',
625
  '\f147' => 'minus-square-o',
626
  '\f10b' => 'mobile',
 
627
  '\f0d6' => 'money',
628
  '\f186' => 'moon-o',
 
 
629
  '\f001' => 'music',
 
 
 
 
630
  '\f03b' => 'outdent',
631
  '\f18c' => 'pagelines',
 
 
 
632
  '\f0c6' => 'paperclip',
 
 
633
  '\f04c' => 'pause',
 
 
634
  '\f040' => 'pencil',
635
  '\f14b' => 'pencil-square',
636
  '\f044' => 'pencil-square-o',
637
  '\f095' => 'phone',
638
  '\f098' => 'phone-square',
 
639
  '\f03e' => 'picture-o',
 
 
 
640
  '\f0d2' => 'pinterest',
 
641
  '\f0d3' => 'pinterest-square',
642
  '\f072' => 'plane',
643
  '\f04b' => 'play',
644
  '\f144' => 'play-circle',
645
  '\f01d' => 'play-circle-o',
 
646
  '\f067' => 'plus',
647
  '\f055' => 'plus-circle',
648
  '\f0fe' => 'plus-square',
@@ -650,71 +792,119 @@ class YIT_Plugin_Common {
650
  '\f011' => 'power-off',
651
  '\f02f' => 'print',
652
  '\f12e' => 'puzzle-piece',
 
653
  '\f029' => 'qrcode',
654
  '\f128' => 'question',
655
  '\f059' => 'question-circle',
656
  '\f10d' => 'quote-left',
657
  '\f10e' => 'quote-right',
 
658
  '\f074' => 'random',
 
 
 
 
659
  '\f021' => 'refresh',
 
660
  '\f18b' => 'renren',
 
661
  '\f01e' => 'repeat',
662
  '\f112' => 'reply',
663
  '\f122' => 'reply-all',
664
  '\f079' => 'retweet',
 
665
  '\f018' => 'road',
666
  '\f135' => 'rocket',
 
 
 
667
  '\f09e' => 'rss',
668
  '\f143' => 'rss-square',
669
  '\f158' => 'rub',
 
 
 
670
  '\f0c4' => 'scissors',
671
  '\f002' => 'search',
672
  '\f010' => 'search-minus',
673
  '\f00e' => 'search-plus',
 
 
 
 
674
  '\f064' => 'share',
 
 
675
  '\f14d' => 'share-square',
676
  '\f045' => 'share-square-o',
 
 
677
  '\f132' => 'shield',
 
 
678
  '\f07a' => 'shopping-cart',
679
  '\f090' => 'sign-in',
680
  '\f08b' => 'sign-out',
681
  '\f012' => 'signal',
 
682
  '\f0e8' => 'sitemap',
 
683
  '\f17e' => 'skype',
 
 
 
684
  '\f118' => 'smile-o',
 
685
  '\f0dc' => 'sort',
686
  '\f15d' => 'sort-alpha-asc',
687
  '\f15e' => 'sort-alpha-desc',
688
  '\f160' => 'sort-amount-asc',
689
  '\f161' => 'sort-amount-desc',
690
- '\f0dd' => 'sort-asc',
691
- '\f0de' => 'sort-desc',
 
692
  '\f162' => 'sort-numeric-asc',
693
  '\f163' => 'sort-numeric-desc',
 
 
 
694
  '\f110' => 'spinner',
 
 
695
  '\f0c8' => 'square',
696
  '\f096' => 'square-o',
697
  '\f18d' => 'stack-exchange',
698
  '\f16c' => 'stack-overflow',
699
  '\f005' => 'star',
700
  '\f089' => 'star-half',
 
 
701
  '\f123' => 'star-half-o',
702
  '\f006' => 'star-o',
 
 
703
  '\f048' => 'step-backward',
704
  '\f051' => 'step-forward',
705
  '\f0f1' => 'stethoscope',
706
  '\f04d' => 'stop',
 
707
  '\f0cc' => 'strikethrough',
 
 
708
  '\f12c' => 'subscript',
 
709
  '\f0f2' => 'suitcase',
710
  '\f185' => 'sun-o',
711
  '\f12b' => 'superscript',
 
712
  '\f0ce' => 'table',
713
  '\f10a' => 'tablet',
714
  '\f0e4' => 'tachometer',
715
  '\f02b' => 'tag',
716
  '\f02c' => 'tags',
717
  '\f0ae' => 'tasks',
 
 
718
  '\f120' => 'terminal',
719
  '\f034' => 'text-height',
720
  '\f035' => 'text-width',
@@ -731,40 +921,75 @@ class YIT_Plugin_Common {
731
  '\f057' => 'times-circle',
732
  '\f05c' => 'times-circle-o',
733
  '\f043' => 'tint',
 
 
 
 
 
 
 
 
 
 
734
  '\f014' => 'trash-o',
 
735
  '\f181' => 'trello',
736
  '\f091' => 'trophy',
737
  '\f0d1' => 'truck',
738
  '\f195' => 'try',
 
739
  '\f173' => 'tumblr',
740
  '\f174' => 'tumblr-square',
 
 
741
  '\f099' => 'twitter',
742
  '\f081' => 'twitter-square',
743
  '\f0e9' => 'umbrella',
744
  '\f0cd' => 'underline',
745
  '\f0e2' => 'undo',
 
 
746
  '\f09c' => 'unlock',
747
  '\f13e' => 'unlock-alt',
 
748
  '\f093' => 'upload',
749
  '\f155' => 'usd',
750
  '\f007' => 'user',
751
  '\f0f0' => 'user-md',
 
 
 
752
  '\f0c0' => 'users',
 
 
 
 
753
  '\f03d' => 'video-camera',
754
  '\f194' => 'vimeo-square',
 
755
  '\f189' => 'vk',
756
  '\f027' => 'volume-down',
757
  '\f026' => 'volume-off',
758
  '\f028' => 'volume-up',
 
 
759
  '\f18a' => 'weibo',
 
 
760
  '\f193' => 'wheelchair',
 
761
  '\f17a' => 'windows',
 
 
762
  '\f0ad' => 'wrench',
763
  '\f168' => 'xing',
764
  '\f169' => 'xing-square',
 
 
 
765
  '\f167' => 'youtube',
766
  '\f16a' => 'youtube-play',
767
- '\f166' => 'youtube-square'
768
  ),
769
 
770
  'awesome_icons_socials' =>array(
406
  '\f0f9' => 'ambulance',
407
  '\f13d' => 'anchor',
408
  '\f17b' => 'android',
409
+ '\f209' => 'angellist',
410
  '\f103' => 'angle-double-down',
411
  '\f100' => 'angle-double-left',
412
  '\f101' => 'angle-double-right',
417
  '\f106' => 'angle-up',
418
  '\f179' => 'apple',
419
  '\f187' => 'archive',
420
+ '\f1fe' => 'area-chart',
421
  '\f0ab' => 'arrow-circle-down',
422
  '\f0a8' => 'arrow-circle-left',
423
  '\f01a' => 'arrow-circle-o-down',
435
  '\f07e' => 'arrows-h',
436
  '\f07d' => 'arrows-v',
437
  '\f069' => 'asterisk',
438
+ '\f1fa' => 'at',
439
+ '\f1b9' => 'automobile',
440
  '\f04a' => 'backward',
441
  '\f05e' => 'ban',
442
+ '\f19c' => 'bank',
443
+ '\f080' => 'bar-chart',
444
  '\f080' => 'bar-chart-o',
445
  '\f02a' => 'barcode',
446
  '\f0c9' => 'bars',
447
+ '\f236' => 'bed',
448
  '\f0fc' => 'beer',
449
+ '\f1b4' => 'behance',
450
+ '\f1b5' => 'behance-square',
451
  '\f0f3' => 'bell',
452
  '\f0a2' => 'bell-o',
453
+ '\f1f6' => 'bell-slash',
454
+ '\f1f7' => 'bell-slash-o',
455
+ '\f206' => 'bicycle',
456
+ '\f1e5' => 'binoculars',
457
+ '\f1fd' => 'birthday-cake',
458
  '\f171' => 'bitbucket',
459
  '\f172' => 'bitbucket-square',
460
+ '\f15a' => 'bitcoin',
461
  '\f032' => 'bold',
462
  '\f0e7' => 'bolt',
463
+ '\f1e2' => 'bomb',
464
  '\f02d' => 'book',
465
  '\f02e' => 'bookmark',
466
  '\f097' => 'bookmark-o',
467
  '\f0b1' => 'briefcase',
468
  '\f15a' => 'btc',
469
  '\f188' => 'bug',
470
+ '\f1ad' => 'building',
471
  '\f0f7' => 'building-o',
472
  '\f0a1' => 'bullhorn',
473
  '\f140' => 'bullseye',
474
+ '\f207' => 'bus',
475
+ '\f20d' => 'buysellads',
476
+ '\f1ba' => 'cab',
477
+ '\f1ec' => 'calculator',
478
  '\f073' => 'calendar',
479
  '\f133' => 'calendar-o',
480
  '\f030' => 'camera',
481
  '\f083' => 'camera-retro',
482
+ '\f1b9' => 'car',
483
  '\f0d7' => 'caret-down',
484
  '\f0d9' => 'caret-left',
485
  '\f0da' => 'caret-right',
488
  '\f152' => 'caret-square-o-right',
489
  '\f151' => 'caret-square-o-up',
490
  '\f0d8' => 'caret-up',
491
+ '\f218' => 'cart-arrow-down',
492
+ '\f217' => 'cart-plus',
493
+ '\f20a' => 'cc',
494
+ '\f1f3' => 'cc-amex',
495
+ '\f1f2' => 'cc-discover',
496
+ '\f1f1' => 'cc-mastercard',
497
+ '\f1f4' => 'cc-paypal',
498
+ '\f1f5' => 'cc-stripe',
499
+ '\f1f0' => 'cc-visa',
500
  '\f0a3' => 'certificate',
501
+ '\f0c1' => 'chain',
502
  '\f127' => 'chain-broken',
503
  '\f00c' => 'check',
504
  '\f058' => 'check-circle',
513
  '\f053' => 'chevron-left',
514
  '\f054' => 'chevron-right',
515
  '\f077' => 'chevron-up',
516
+ '\f1ae' => 'child',
517
+ '\f111' => 'circle',
518
  '\f10c' => 'circle-o',
519
+ '\f1ce' => 'circle-o-notch',
520
+ '\f1db' => 'circle-thin',
521
  '\f0ea' => 'clipboard',
522
  '\f017' => 'clock-o',
523
+ '\f00d' => 'close',
524
  '\f0c2' => 'cloud',
525
  '\f0ed' => 'cloud-download',
526
  '\f0ee' => 'cloud-upload',
527
+ '\f157' => 'cny',
528
  '\f121' => 'code',
529
  '\f126' => 'code-fork',
530
+ '\f1cb' => 'codepen',
531
  '\f0f4' => 'coffee',
532
  '\f013' => 'cog',
533
  '\f085' => 'cogs',
538
  '\f0e6' => 'comments-o',
539
  '\f14e' => 'compass',
540
  '\f066' => 'compress',
541
+ '\f20e' => 'connectdevelop',
542
+ '\f0c5' => 'copy',
543
+ '\f1f9' => 'copyright',
544
  '\f09d' => 'credit-card',
545
  '\f125' => 'crop',
546
  '\f05b' => 'crosshairs',
547
  '\f13c' => 'css3',
548
+ '\f1b2' => 'cube',
549
+ '\f1b3' => 'cubes',
550
+ '\f0c4' => 'cut',
551
  '\f0f5' => 'cutlery',
552
+ '\f0e4' => 'dashboard',
553
+ '\f210' => 'dashcube',
554
+ '\f1c0' => 'database',
555
+ '\f03b' => 'dedent',
556
+ '\f1a5' => 'delicious',
557
  '\f108' => 'desktop',
558
+ '\f1bd' => 'deviantart',
559
+ '\f219' => 'diamond',
560
+ '\f1a6' => 'digg',
561
+ '\f155' => 'dollar',
562
  '\f192' => 'dot-circle-o',
563
  '\f019' => 'download',
564
  '\f17d' => 'dribbble',
565
  '\f16b' => 'dropbox',
566
+ '\f1a9' => 'drupal',
567
+ '\f044' => 'edit',
568
  '\f052' => 'eject',
569
  '\f141' => 'ellipsis-h',
570
  '\f142' => 'ellipsis-v',
571
+ '\f1d1' => 'empire',
572
  '\f0e0' => 'envelope',
573
  '\f003' => 'envelope-o',
574
+ '\f199' => 'envelope-square',
575
  '\f12d' => 'eraser',
576
  '\f153' => 'eur',
577
+ '\f153' => 'euro',
578
  '\f0ec' => 'exchange',
579
  '\f12a' => 'exclamation',
580
  '\f06a' => 'exclamation-circle',
584
  '\f14c' => 'external-link-square',
585
  '\f06e' => 'eye',
586
  '\f070' => 'eye-slash',
587
+ '\f1fb' => 'eyedropper',
588
  '\f09a' => 'facebook',
589
+ '\f09a' => 'facebook-f',
590
+ '\f230' => 'facebook-official',
591
  '\f082' => 'facebook-square',
592
  '\f049' => 'fast-backward',
593
  '\f050' => 'fast-forward',
594
+ '\f1ac' => 'fax',
595
  '\f182' => 'female',
596
  '\f0fb' => 'fighter-jet',
597
  '\f15b' => 'file',
598
+ '\f1c6' => 'file-archive-o',
599
+ '\f1c7' => 'file-audio-o',
600
+ '\f1c9' => 'file-code-o',
601
+ '\f1c3' => 'file-excel-o',
602
+ '\f1c5' => 'file-image-o',
603
+ '\f1c8' => 'file-movie-o',
604
  '\f016' => 'file-o',
605
+ '\f1c1' => 'file-pdf-o',
606
+ '\f1c5' => 'file-photo-o',
607
+ '\f1c5' => 'file-picture-o',
608
+ '\f1c4' => 'file-powerpoint-o',
609
+ '\f1c7' => 'file-sound-o',
610
  '\f15c' => 'file-text',
611
  '\f0f6' => 'file-text-o',
612
+ '\f1c8' => 'file-video-o',
613
+ '\f1c2' => 'file-word-o',
614
+ '\f1c6' => 'file-zip-o',
615
  '\f0c5' => 'files-o',
616
  '\f008' => 'film',
617
  '\f0b0' => 'filter',
620
  '\f024' => 'flag',
621
  '\f11e' => 'flag-checkered',
622
  '\f11d' => 'flag-o',
623
+ '\f0e7' => 'flash',
624
  '\f0c3' => 'flask',
625
  '\f16e' => 'flickr',
626
  '\f0c7' => 'floppy-o',
629
  '\f07c' => 'folder-open',
630
  '\f115' => 'folder-open-o',
631
  '\f031' => 'font',
632
+ '\f211' => 'forumbee',
633
  '\f04e' => 'forward',
634
  '\f180' => 'foursquare',
635
  '\f119' => 'frown-o',
636
+ '\f1e3' => 'futbol-o',
637
  '\f11b' => 'gamepad',
638
  '\f0e3' => 'gavel',
639
  '\f154' => 'gbp',
640
+ '\f1d1' => 'ge',
641
+ '\f013' => 'gear',
642
+ '\f085' => 'gears',
643
+ '\f1db' => 'genderless',
644
  '\f06b' => 'gift',
645
+ '\f1d3' => 'git',
646
+ '\f1d2' => 'git-square',
647
  '\f09b' => 'github',
648
  '\f113' => 'github-alt',
649
  '\f092' => 'github-square',
650
  '\f184' => 'gittip',
651
  '\f000' => 'glass',
652
  '\f0ac' => 'globe',
653
+ '\f1a0' => 'google',
654
  '\f0d5' => 'google-plus',
655
  '\f0d4' => 'google-plus-square',
656
+ '\f1ee' => 'google-wallet',
657
+ '\f19d' => 'graduation-cap',
658
+ '\f184' => 'gratipay',
659
+ '\f0c0' => 'group',
660
  '\f0fd' => 'h-square',
661
+ '\f1d4' => 'hacker-news',
662
  '\f0a7' => 'hand-o-down',
663
  '\f0a5' => 'hand-o-left',
664
  '\f0a4' => 'hand-o-right',
665
  '\f0a6' => 'hand-o-up',
666
  '\f0a0' => 'hdd-o',
667
+ '\f1dc' => 'header',
668
  '\f025' => 'headphones',
669
  '\f004' => 'heart',
670
  '\f08a' => 'heart-o',
671
+ '\f21e' => 'heartbeat',
672
+ '\f1da' => 'history',
673
  '\f015' => 'home',
674
  '\f0f8' => 'hospital-o',
675
+ '\f236' => 'hotel',
676
  '\f13b' => 'html5',
677
+ '\f20b' => 'ils',
678
+ '\f03e' => 'image',
679
  '\f01c' => 'inbox',
680
  '\f03c' => 'indent',
681
  '\f129' => 'info',
682
  '\f05a' => 'info-circle',
683
  '\f156' => 'inr',
684
  '\f16d' => 'instagram',
685
+ '\f19c' => 'institution',
686
+ '\f208' => 'ioxhost',
687
  '\f033' => 'italic',
688
+ '\f1aa' => 'joomla',
689
  '\f157' => 'jpy',
690
+ '\f1cc' => 'jsfiddle',
691
  '\f084' => 'key',
692
  '\f11c' => 'keyboard-o',
693
  '\f159' => 'krw',
694
+ '\f1ab' => 'language',
695
  '\f109' => 'laptop',
696
+ '\f202' => 'lastfm',
697
+ '\f203' => 'lastfm-square',
698
  '\f06c' => 'leaf',
699
+ '\f212' => 'leanpub',
700
+ '\f0e3' => 'legal',
701
  '\f094' => 'lemon-o',
702
  '\f149' => 'level-down',
703
  '\f148' => 'level-up',
704
+ '\f1cd' => 'life-bouy',
705
+ '\f1cd' => 'life-buoy',
706
+ '\f1cd' => 'life-ring',
707
+ '\f1cd' => 'life-saver',
708
  '\f0eb' => 'lightbulb-o',
709
+ '\f201' => 'line-chart',
710
  '\f0c1' => 'link',
711
  '\f0e1' => 'linkedin',
712
  '\f08c' => 'linkedin-square',
723
  '\f176' => 'long-arrow-up',
724
  '\f0d0' => 'magic',
725
  '\f076' => 'magnet',
726
+ '\f064' => 'mail-forward',
727
+ '\f112' => 'mail-reply',
728
  '\f122' => 'mail-reply-all',
729
  '\f183' => 'male',
730
  '\f041' => 'map-marker',
731
+ '\f222' => 'mars',
732
+ '\f227' => 'mars-double',
733
+ '\f229' => 'mars-stroke',
734
+ '\f22b' => 'mars-stroke-h',
735
+ '\f22a' => 'mars-stroke-v',
736
  '\f136' => 'maxcdn',
737
+ '\f20c' => 'meanpath',
738
+ '\f23a' => 'medium',
739
  '\f0fa' => 'medkit',
740
  '\f11a' => 'meh-o',
741
+ '\f223' => 'mercury',
742
  '\f130' => 'microphone',
743
  '\f131' => 'microphone-slash',
744
  '\f068' => 'minus',
746
  '\f146' => 'minus-square',
747
  '\f147' => 'minus-square-o',
748
  '\f10b' => 'mobile',
749
+ '\f10b' => 'mobile-phone',
750
  '\f0d6' => 'money',
751
  '\f186' => 'moon-o',
752
+ '\f19d' => 'mortar-board',
753
+ '\f21c' => 'motorcycle',
754
  '\f001' => 'music',
755
+ '\f0c9' => 'navicon',
756
+ '\f22c' => 'neuter',
757
+ '\f1ea' => 'newspaper-o',
758
+ '\f19b' => 'openid',
759
  '\f03b' => 'outdent',
760
  '\f18c' => 'pagelines',
761
+ '\f1fc' => 'paint-brush',
762
+ '\f1d8' => 'paper-plane',
763
+ '\f1d9' => 'paper-plane-o',
764
  '\f0c6' => 'paperclip',
765
+ '\f1dd' => 'paragraph',
766
+ '\f0ea' => 'paste',
767
  '\f04c' => 'pause',
768
+ '\f1b0' => 'paw',
769
+ '\f1ed' => 'paypal',
770
  '\f040' => 'pencil',
771
  '\f14b' => 'pencil-square',
772
  '\f044' => 'pencil-square-o',
773
  '\f095' => 'phone',
774
  '\f098' => 'phone-square',
775
+ '\f03e' => 'photo',
776
  '\f03e' => 'picture-o',
777
+ '\f200' => 'pie-chart',
778
+ '\f1a7' => 'pied-piper',
779
+ '\f1a8' => 'pied-piper-alt',
780
  '\f0d2' => 'pinterest',
781
+ '\f231' => 'pinterest-p',
782
  '\f0d3' => 'pinterest-square',
783
  '\f072' => 'plane',
784
  '\f04b' => 'play',
785
  '\f144' => 'play-circle',
786
  '\f01d' => 'play-circle-o',
787
+ '\f1e6' => 'plug',
788
  '\f067' => 'plus',
789
  '\f055' => 'plus-circle',
790
  '\f0fe' => 'plus-square',
792
  '\f011' => 'power-off',
793
  '\f02f' => 'print',
794
  '\f12e' => 'puzzle-piece',
795
+ '\f1d6' => 'qq',
796
  '\f029' => 'qrcode',
797
  '\f128' => 'question',
798
  '\f059' => 'question-circle',
799
  '\f10d' => 'quote-left',
800
  '\f10e' => 'quote-right',
801
+ '\f1d0' => 'ra',
802
  '\f074' => 'random',
803
+ '\f1d0' => 'rebel',
804
+ '\f1b8' => 'recycle',
805
+ '\f1a1' => 'reddit',
806
+ '\f1a2' => 'reddit-square',
807
  '\f021' => 'refresh',
808
+ '\f00d' => 'remove',
809
  '\f18b' => 'renren',
810
+ '\f0c9' => 'reorder',
811
  '\f01e' => 'repeat',
812
  '\f112' => 'reply',
813
  '\f122' => 'reply-all',
814
  '\f079' => 'retweet',
815
+ '\f157' => 'rmb',
816
  '\f018' => 'road',
817
  '\f135' => 'rocket',
818
+ '\f0e2' => 'rotate-left',
819
+ '\f01e' => 'rotate-right',
820
+ '\f158' => 'rouble',
821
  '\f09e' => 'rss',
822
  '\f143' => 'rss-square',
823
  '\f158' => 'rub',
824
+ '\f158' => 'ruble',
825
+ '\f156' => 'rupee',
826
+ '\f0c7' => 'save',
827
  '\f0c4' => 'scissors',
828
  '\f002' => 'search',
829
  '\f010' => 'search-minus',
830
  '\f00e' => 'search-plus',
831
+ '\f213' => 'sellsy',
832
+ '\f1d8' => 'send',
833
+ '\f1d9' => 'send-o',
834
+ '\f233' => 'server',
835
  '\f064' => 'share',
836
+ '\f1e0' => 'share-alt',
837
+ '\f1e1' => 'share-alt-square',
838
  '\f14d' => 'share-square',
839
  '\f045' => 'share-square-o',
840
+ '\f20b' => 'shekel',
841
+ '\f20b' => 'sheqel',
842
  '\f132' => 'shield',
843
+ '\f21a' => 'ship',
844
+ '\f214' => 'shirtsinbulk',
845
  '\f07a' => 'shopping-cart',
846
  '\f090' => 'sign-in',
847
  '\f08b' => 'sign-out',
848
  '\f012' => 'signal',
849
+ '\f215' => 'simplybuilt',
850
  '\f0e8' => 'sitemap',
851
+ '\f216' => 'skyatlas',
852
  '\f17e' => 'skype',
853
+ '\f198' => 'slack',
854
+ '\f1de' => 'sliders',
855
+ '\f1e7' => 'slideshare',
856
  '\f118' => 'smile-o',
857
+ '\f1e3' => 'soccer-ball-o',
858
  '\f0dc' => 'sort',
859
  '\f15d' => 'sort-alpha-asc',
860
  '\f15e' => 'sort-alpha-desc',
861
  '\f160' => 'sort-amount-asc',
862
  '\f161' => 'sort-amount-desc',
863
+ '\f0de' => 'sort-asc',
864
+ '\f0dd' => 'sort-desc',
865
+ '\f0dd' => 'sort-down',
866
  '\f162' => 'sort-numeric-asc',
867
  '\f163' => 'sort-numeric-desc',
868
+ '\f0de' => 'sort-up',
869
+ '\f1be' => 'soundcloud',
870
+ '\f197' => 'space-shuttle',
871
  '\f110' => 'spinner',
872
+ '\f1b1' => 'spoon',
873
+ '\f1bc' => 'spotify',
874
  '\f0c8' => 'square',
875
  '\f096' => 'square-o',
876
  '\f18d' => 'stack-exchange',
877
  '\f16c' => 'stack-overflow',
878
  '\f005' => 'star',
879
  '\f089' => 'star-half',
880
+ '\f123' => 'star-half-empty',
881
+ '\f123' => 'star-half-full',
882
  '\f123' => 'star-half-o',
883
  '\f006' => 'star-o',
884
+ '\f1b6' => 'steam',
885
+ '\f1b7' => 'steam-square',
886
  '\f048' => 'step-backward',
887
  '\f051' => 'step-forward',
888
  '\f0f1' => 'stethoscope',
889
  '\f04d' => 'stop',
890
+ '\f21d' => 'street-view',
891
  '\f0cc' => 'strikethrough',
892
+ '\f1a4' => 'stumbleupon',
893
+ '\f1a3' => 'stumbleupon-circle',
894
  '\f12c' => 'subscript',
895
+ '\f239' => 'subway',
896
  '\f0f2' => 'suitcase',
897
  '\f185' => 'sun-o',
898
  '\f12b' => 'superscript',
899
+ '\f1cd' => 'support',
900
  '\f0ce' => 'table',
901
  '\f10a' => 'tablet',
902
  '\f0e4' => 'tachometer',
903
  '\f02b' => 'tag',
904
  '\f02c' => 'tags',
905
  '\f0ae' => 'tasks',
906
+ '\f1ba' => 'taxi',
907
+ '\f1d5' => 'tencent-weibo',
908
  '\f120' => 'terminal',
909
  '\f034' => 'text-height',
910
  '\f035' => 'text-width',
921
  '\f057' => 'times-circle',
922
  '\f05c' => 'times-circle-o',
923
  '\f043' => 'tint',
924
+ '\f150' => 'toggle-down',
925
+ '\f191' => 'toggle-left',
926
+ '\f204' => 'toggle-off',
927
+ '\f205' => 'toggle-on',
928
+ '\f152' => 'toggle-right',
929
+ '\f151' => 'toggle-up',
930
+ '\f238' => 'train',
931
+ '\f224' => 'transgender',
932
+ '\f225' => 'transgender-alt',
933
+ '\f1f8' => 'trash',
934
  '\f014' => 'trash-o',
935
+ '\f1bb' => 'tree',
936
  '\f181' => 'trello',
937
  '\f091' => 'trophy',
938
  '\f0d1' => 'truck',
939
  '\f195' => 'try',
940
+ '\f1e4' => 'tty',
941
  '\f173' => 'tumblr',
942
  '\f174' => 'tumblr-square',
943
+ '\f195' => 'turkish-lira',
944
+ '\f1e8' => 'twitch',
945
  '\f099' => 'twitter',
946
  '\f081' => 'twitter-square',
947
  '\f0e9' => 'umbrella',
948
  '\f0cd' => 'underline',
949
  '\f0e2' => 'undo',
950
+ '\f19c' => 'university',
951
+ '\f127' => 'unlink',
952
  '\f09c' => 'unlock',
953
  '\f13e' => 'unlock-alt',
954
+ '\f0dc' => 'unsorted',
955
  '\f093' => 'upload',
956
  '\f155' => 'usd',
957
  '\f007' => 'user',
958
  '\f0f0' => 'user-md',
959
+ '\f234' => 'user-plus',
960
+ '\f21b' => 'user-secret',
961
+ '\f235' => 'user-times',
962
  '\f0c0' => 'users',
963
+ '\f221' => 'venus',
964
+ '\f226' => 'venus-double',
965
+ '\f228' => 'venus-mars',
966
+ '\f237' => 'viacoin',
967
  '\f03d' => 'video-camera',
968
  '\f194' => 'vimeo-square',
969
+ '\f1ca' => 'vine',
970
  '\f189' => 'vk',
971
  '\f027' => 'volume-down',
972
  '\f026' => 'volume-off',
973
  '\f028' => 'volume-up',
974
+ '\f071' => 'warning',
975
+ '\f1d7' => 'wechat',
976
  '\f18a' => 'weibo',
977
+ '\f1d7' => 'weixin',
978
+ '\f232' => 'whatsapp',
979
  '\f193' => 'wheelchair',
980
+ '\f1eb' => 'wifi',
981
  '\f17a' => 'windows',
982
+ '\f159' => 'won',
983
+ '\f19a' => 'wordpress',
984
  '\f0ad' => 'wrench',
985
  '\f168' => 'xing',
986
  '\f169' => 'xing-square',
987
+ '\f19e' => 'yahoo',
988
+ '\f1e9' => 'yelp',
989
+ '\f157' => 'yen',
990
  '\f167' => 'youtube',
991
  '\f16a' => 'youtube-play',
992
+ '\f166' => 'youtube-square',
993
  ),
994
 
995
  'awesome_icons_socials' =>array(
plugin-fw/lib/yit-plugin-panel-wc.php CHANGED
@@ -232,26 +232,6 @@ if ( ! class_exists( 'YIT_Plugin_Panel_WooCommerce' ) ) {
232
  }
233
  }
234
 
235
- /**
236
- * Fire the action to print the custom tab
237
- *
238
- * @param $current_tab string
239
- *
240
- * @return void
241
- * @since 1.0
242
- * @author Antonino Scarfì <antonino.scarfi@yithemes.com>
243
- */
244
- public function print_video_box() {
245
- $file = $this->settings['options-path'] . '/video-box.php';
246
-
247
- if ( ! file_exists( $file ) ) {
248
- return;
249
- }
250
-
251
- $args = include_once( $file );
252
- $this->yit_videobox( $args );
253
- }
254
-
255
  /**
256
  * Update options
257
  *
232
  }
233
  }
234
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
235
  /**
236
  * Update options
237
  *
plugin-fw/lib/yit-plugin-panel.php CHANGED
@@ -46,12 +46,14 @@ if ( ! class_exists( 'YIT_Plugin_Panel' ) ) {
46
  */
47
  private $_main_array_options = array();
48
 
49
- /**
50
- * Constructor
51
- *
52
- * @since 1.0
53
- * @author Emanuela Castorina <emanuela.castorina@yithemes.it>
54
- */
 
 
55
  public function __construct( $args = array() ) {
56
 
57
  if ( ! empty( $args ) ) {
@@ -60,7 +62,9 @@ if ( ! class_exists( 'YIT_Plugin_Panel' ) ) {
60
  'parent_slug' => 'edit.php?',
61
  'page_title' => __( 'Plugin Settings', 'yit' ),
62
  'menu_title' => __( 'Settings', 'yit' ),
63
- 'capability' => 'manage_options'
 
 
64
  );
65
 
66
  $this->settings = wp_parse_args( $args, $default_args );
@@ -70,14 +74,11 @@ if ( ! class_exists( 'YIT_Plugin_Panel' ) ) {
70
  $this->add_menu_page();
71
  }
72
 
73
- add_action( 'admin_init', array( &$this, 'register_settings' ) );
74
- add_action( 'admin_menu', array( &$this, 'add_setting_page' ) );
75
- add_action( 'admin_bar_menu', array( &$this, 'add_admin_bar_menu' ), 100 );
76
- add_action( 'admin_init', array( &$this, 'add_fields' ) );
77
 
78
- /* Add VideoBox and InfoBox */
79
- add_action( 'woocommerce_admin_field_boxinfo', array( $this, 'add_infobox' ), 10, 1 );
80
- add_action( 'woocommerce_admin_field_videobox', array( $this, 'add_videobox' ), 10, 1 );
81
  }
82
 
83
  add_action( 'admin_enqueue_scripts', array( $this, 'admin_enqueue_scripts' ) );
@@ -118,14 +119,18 @@ if ( ! class_exists( 'YIT_Plugin_Panel' ) ) {
118
  * @author Emanuela Castorina <emanuela.castorina@yithemes.it>
119
  */
120
  public function admin_enqueue_scripts() {
 
 
 
121
  //scripts
122
  wp_enqueue_media();
123
  wp_enqueue_script( 'jquery-ui' );
124
  wp_enqueue_script( 'jquery-ui-core' );
125
  wp_enqueue_script( 'jquery-ui-slider' );
 
126
  wp_enqueue_style( 'jquery-chosen', YIT_CORE_PLUGIN_URL . '/assets/css/chosen/chosen.css' );
127
  wp_enqueue_script( 'jquery-chosen', YIT_CORE_PLUGIN_URL . '/assets/js/chosen/chosen.jquery.js', array( 'jquery' ), '1.1.0', true );
128
- wp_enqueue_script( 'yit-plugin-panel', YIT_CORE_PLUGIN_URL . '/assets/js/yit-plugin-panel.min.js', array( 'jquery', 'jquery-chosen' ), $this->version, true );
129
  wp_register_script( 'codemirror', YIT_CORE_PLUGIN_URL . '/assets/js/codemirror/codemirror.js', array( 'jquery' ), $this->version, true );
130
  wp_register_script( 'codemirror-javascript', YIT_CORE_PLUGIN_URL . '/assets/js/codemirror/javascript.js', array( 'jquery', 'codemirror' ), $this->version, true );
131
 
@@ -133,9 +138,14 @@ if ( ! class_exists( 'YIT_Plugin_Panel' ) ) {
133
  wp_register_style( 'codemirror', YIT_CORE_PLUGIN_URL . '/assets/css/codemirror/codemirror.css' );
134
 
135
  //styles
 
 
 
136
  wp_enqueue_style( 'jquery-ui-overcast', YIT_CORE_PLUGIN_URL . '/assets/css/overcast/jquery-ui-1.8.9.custom.css', false, '1.8.9', 'all' );
137
  wp_enqueue_style( 'yit-plugin-style', YIT_CORE_PLUGIN_URL . '/assets/css/yit-plugin-panel.css', $this->version );
138
  wp_enqueue_style( 'raleway-font', '//fonts.googleapis.com/css?family=Raleway:400,500,600,700,800,100,200,300,900' );
 
 
139
  }
140
 
141
  /**
@@ -148,7 +158,7 @@ if ( ! class_exists( 'YIT_Plugin_Panel' ) ) {
148
  * @author Emanuela Castorina <emanuela.castorina@yithemes.it>
149
  */
150
  public function register_settings() {
151
- register_setting( 'yit_' . $this->settings['parent'] . '_options', 'yit_' . $this->settings['parent'] . '_options', array( &$this, 'options_validate' ) );
152
  }
153
 
154
  /**
@@ -223,7 +233,15 @@ if ( ! class_exists( 'YIT_Plugin_Panel' ) ) {
223
  * @author Emanuela Castorina <emanuela.castorina@yithemes.it>
224
  */
225
  public function add_setting_page() {
226
- add_submenu_page( $this->settings['parent_slug'] . $this->settings['parent_page'], $this->settings['page_title'], $this->settings['menu_title'], $this->settings['capability'], $this->settings['page'], array( &$this, 'yit_panel' ) );
 
 
 
 
 
 
 
 
227
  /* === Duplicate Items Hack === */
228
  $this->remove_duplicate_submenu_page();
229
  do_action( 'yit_after_add_settings_page' );
@@ -261,6 +279,7 @@ if ( ! class_exists( 'YIT_Plugin_Panel' ) ) {
261
  return;
262
  }
263
  ?>
 
264
  <div id="wrap" class="plugin-option">
265
  <?php $this->message(); ?>
266
  <h2><?php echo $this->get_tab_title() ?></h2>
@@ -275,7 +294,7 @@ if ( ! class_exists( 'YIT_Plugin_Panel' ) ) {
275
  <form method="post">
276
  <?php $warning = __( 'If you continue with this action, you will reset all options in this page.', 'yit' ) ?>
277
  <input type="hidden" name="yit-action" value="reset" />
278
- <input type="submit" name="yit-reset" class="button-secondary" value="<?php _e( 'Reset Defaults', 'yit' ) ?>" onclick="return confirm('<?php echo $warning . '\n' . __( 'Are you sure?', 'yit' ) ?>');" />
279
  </form>
280
  <p>&nbsp;</p>
281
  <?php endif ?>
@@ -754,6 +773,25 @@ if ( ! class_exists( 'YIT_Plugin_Panel' ) ) {
754
  }
755
  }
756
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
757
  }
758
 
759
  }
46
  */
47
  private $_main_array_options = array();
48
 
49
+ /**
50
+ * Constructor
51
+ *
52
+ * @since 1.0
53
+ * @author Emanuela Castorina <emanuela.castorina@yithemes.it>
54
+ *
55
+ * @param array $args
56
+ */
57
  public function __construct( $args = array() ) {
58
 
59
  if ( ! empty( $args ) ) {
62
  'parent_slug' => 'edit.php?',
63
  'page_title' => __( 'Plugin Settings', 'yit' ),
64
  'menu_title' => __( 'Settings', 'yit' ),
65
+ 'capability' => 'manage_options',
66
+ 'icon_url' => '',
67
+ 'position' => null
68
  );
69
 
70
  $this->settings = wp_parse_args( $args, $default_args );
74
  $this->add_menu_page();
75
  }
76
 
77
+ add_action( 'admin_init', array( $this, 'register_settings' ) );
78
+ add_action( 'admin_menu', array( $this, 'add_setting_page' ), 20 );
79
+ add_action( 'admin_bar_menu', array( $this, 'add_admin_bar_menu' ), 100 );
80
+ add_action( 'admin_init', array( $this, 'add_fields' ) );
81
 
 
 
 
82
  }
83
 
84
  add_action( 'admin_enqueue_scripts', array( $this, 'admin_enqueue_scripts' ) );
119
  * @author Emanuela Castorina <emanuela.castorina@yithemes.it>
120
  */
121
  public function admin_enqueue_scripts() {
122
+
123
+ global $wp_scripts;
124
+
125
  //scripts
126
  wp_enqueue_media();
127
  wp_enqueue_script( 'jquery-ui' );
128
  wp_enqueue_script( 'jquery-ui-core' );
129
  wp_enqueue_script( 'jquery-ui-slider' );
130
+ wp_enqueue_script( 'jquery-ui-dialog' );
131
  wp_enqueue_style( 'jquery-chosen', YIT_CORE_PLUGIN_URL . '/assets/css/chosen/chosen.css' );
132
  wp_enqueue_script( 'jquery-chosen', YIT_CORE_PLUGIN_URL . '/assets/js/chosen/chosen.jquery.js', array( 'jquery' ), '1.1.0', true );
133
+ wp_enqueue_script( 'yit-plugin-panel', YIT_CORE_PLUGIN_URL . '/assets/js/yit-plugin-panel.js', array( 'jquery', 'jquery-chosen' ), $this->version, true );
134
  wp_register_script( 'codemirror', YIT_CORE_PLUGIN_URL . '/assets/js/codemirror/codemirror.js', array( 'jquery' ), $this->version, true );
135
  wp_register_script( 'codemirror-javascript', YIT_CORE_PLUGIN_URL . '/assets/js/codemirror/javascript.js', array( 'jquery', 'codemirror' ), $this->version, true );
136
 
138
  wp_register_style( 'codemirror', YIT_CORE_PLUGIN_URL . '/assets/css/codemirror/codemirror.css' );
139
 
140
  //styles
141
+
142
+ $jquery_version = isset( $wp_scripts->registered['jquery-ui-core']->ver ) ? $wp_scripts->registered['jquery-ui-core']->ver : '1.9.2';
143
+
144
  wp_enqueue_style( 'jquery-ui-overcast', YIT_CORE_PLUGIN_URL . '/assets/css/overcast/jquery-ui-1.8.9.custom.css', false, '1.8.9', 'all' );
145
  wp_enqueue_style( 'yit-plugin-style', YIT_CORE_PLUGIN_URL . '/assets/css/yit-plugin-panel.css', $this->version );
146
  wp_enqueue_style( 'raleway-font', '//fonts.googleapis.com/css?family=Raleway:400,500,600,700,800,100,200,300,900' );
147
+
148
+ wp_enqueue_style( 'jquery-ui-style', '//code.jquery.com/ui/' . $jquery_version . '/themes/smoothness/jquery-ui.css', array(), $jquery_version );
149
  }
150
 
151
  /**
158
  * @author Emanuela Castorina <emanuela.castorina@yithemes.it>
159
  */
160
  public function register_settings() {
161
+ register_setting( 'yit_' . $this->settings['parent'] . '_options', 'yit_' . $this->settings['parent'] . '_options', array( $this, 'options_validate' ) );
162
  }
163
 
164
  /**
233
  * @author Emanuela Castorina <emanuela.castorina@yithemes.it>
234
  */
235
  public function add_setting_page() {
236
+ $this->settings['icon_url'] = isset( $this->settings['icon_url'] ) ? $this->settings['icon_url'] : '';
237
+ $this->settings['position'] = isset( $this->settings['position'] ) ? $this->settings['position'] : null;
238
+ $parent = $this->settings['parent_slug'] . $this->settings['parent_page'];
239
+
240
+ if ( ! empty( $parent ) ) {
241
+ add_submenu_page( $parent, $this->settings['page_title'], $this->settings['menu_title'], $this->settings['capability'], $this->settings['page'], array( $this, 'yit_panel' ) );
242
+ } else {
243
+ add_menu_page( $this->settings['page_title'], $this->settings['menu_title'], $this->settings['capability'], $this->settings['page'], array( $this, 'yit_panel' ), $this->settings['icon_url'], $this->settings['position'] );
244
+ }
245
  /* === Duplicate Items Hack === */
246
  $this->remove_duplicate_submenu_page();
247
  do_action( 'yit_after_add_settings_page' );
279
  return;
280
  }
281
  ?>
282
+ <?php $this->print_video_box(); ?>
283
  <div id="wrap" class="plugin-option">
284
  <?php $this->message(); ?>
285
  <h2><?php echo $this->get_tab_title() ?></h2>
294
  <form method="post">
295
  <?php $warning = __( 'If you continue with this action, you will reset all options in this page.', 'yit' ) ?>
296
  <input type="hidden" name="yit-action" value="reset" />
297
+ <input type="submit" name="yit-reset" class="button-secondary" value="<?php _e( 'Reset to Default', 'yit' ) ?>" onclick="return confirm('<?php echo $warning . '\n' . __( 'Are you sure?', 'yit' ) ?>');" />
298
  </form>
299
  <p>&nbsp;</p>
300
  <?php endif ?>
773
  }
774
  }
775
 
776
+ /**
777
+ * Fire the action to print the custom tab
778
+ *
779
+ * @return void
780
+ * @since 1.0
781
+ * @author Antonino Scarfì <antonino.scarfi@yithemes.com>
782
+ */
783
+ public function print_video_box() {
784
+ $file = $this->settings['options-path'] . '/video-box.php';
785
+
786
+ if ( ! file_exists( $file ) ) {
787
+ return;
788
+ }
789
+
790
+ $args = include_once( $file );
791
+
792
+ $this->add_videobox( $args );
793
+ }
794
+
795
  }
796
 
797
  }
plugin-fw/lib/yit-plugin-subpanel.php CHANGED
@@ -144,7 +144,7 @@ if ( ! class_exists( 'YIT_Plugin_SubPanel' ) ) {
144
  <form method="post">
145
  <?php $warning = __( 'If you continue with this action, you will reset all the options in this page.', 'yit' ) ?>
146
  <input type="hidden" name="yit-action" value="reset" />
147
- <input type="submit" name="yit-reset" class="button-secondary" value="<?php _e( 'Reset Defaults', 'yit' ) ?>" onclick="return confirm('<?php echo $warning . '\n' . __( 'Are you sure?', 'yit' ) ?>');" />
148
  </form>
149
  <p>&nbsp;</p>
150
  <?php endif ?>
144
  <form method="post">
145
  <?php $warning = __( 'If you continue with this action, you will reset all the options in this page.', 'yit' ) ?>
146
  <input type="hidden" name="yit-action" value="reset" />
147
+ <input type="submit" name="yit-reset" class="button-secondary" value="<?php _e( 'Reset to Default', 'yit' ) ?>" onclick="return confirm('<?php echo $warning . '\n' . __( 'Are you sure?', 'yit' ) ?>');" />
148
  </form>
149
  <p>&nbsp;</p>
150
  <?php endif ?>
plugin-fw/lib/yit-video.php CHANGED
@@ -121,7 +121,9 @@ if ( ! class_exists( 'YIT_Video' ) ) {
121
  */
122
  public static function video_id_by_url( $url ) {
123
  $parsed = parse_url( esc_url( $url ) );
124
-
 
 
125
  switch ( $parsed['host'] ) {
126
 
127
  case 'www.youtube.com' :
121
  */
122
  public static function video_id_by_url( $url ) {
123
  $parsed = parse_url( esc_url( $url ) );
124
+ if ( ! isset( $parsed['host'] ) ) {
125
+ return false;
126
+ }
127
  switch ( $parsed['host'] ) {
128
 
129
  case 'www.youtube.com' :
plugin-fw/licence/assets/css/yit-licence.css CHANGED
@@ -315,6 +315,19 @@
315
  outline: 0;
316
  }
317
 
 
 
 
 
 
 
 
 
 
 
 
 
 
318
  /* === Responsive === */
319
 
320
  @media (max-width: 767px) {}
315
  outline: 0;
316
  }
317
 
318
+ /* Licence FAQ */
319
+ .yit-container.product-licence-activation .activation-faq {
320
+ background: #ffffff;
321
+ margin-bottom: 20px;
322
+ border: 1px solid #dcdcdc;
323
+ padding: 0 15px;
324
+ border-radius: 3px;
325
+ }
326
+
327
+ .yit-container.product-licence-activation .activation-faq h3{
328
+ color: #808a97;
329
+ }
330
+
331
  /* === Responsive === */
332
 
333
  @media (max-width: 767px) {}
plugin-fw/licence/lib/yit-licence.php CHANGED
@@ -99,9 +99,17 @@ if ( ! class_exists( 'YIT_Licence' ) ) {
99
  * @author Andrea Grillo <andrea.grillo@yithemes.com>
100
  */
101
  public function get_home_url() {
102
- return is_ssl() ? str_replace( 'https://', '', home_url() ) : str_replace( 'http://', '', home_url() );
 
 
 
 
 
 
 
103
  }
104
 
 
105
  /**
106
  * Check if the request is ajax
107
  *
99
  * @author Andrea Grillo <andrea.grillo@yithemes.com>
100
  */
101
  public function get_home_url() {
102
+ $home_url = home_url();
103
+ $schemes = apply_filters( 'yit_licence_url_schemes', array( 'https://', 'http://' ) );
104
+
105
+ foreach( $schemes as $scheme ){
106
+ $home_url = str_replace( $scheme, '', $home_url );
107
+ }
108
+
109
+ return $home_url;
110
  }
111
 
112
+
113
  /**
114
  * Check if the request is ajax
115
  *
plugin-fw/licence/templates/panel/activation/activation-panel.php CHANGED
@@ -18,6 +18,20 @@ $banned_products = isset( $no_active_products[ '107' ] ) ? $no_active_produc
18
  <div class="yit-container product-licence-activation">
19
  <h2><?php _e( 'Yithemes Licence Activation', 'yit' ) ?></h2>
20
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
21
  <div class="licence-check-section">
22
  <form method="post" id="licence-check-update" action="<?php echo admin_url( 'admin-ajax.php' ) ?>">
23
  <span class="licence-label" style="display: block;"><?php _e( 'Have you updated your licenses? Have you asked for an extension? Update information concerning your products.', 'yit' ); ?></span>
18
  <div class="yit-container product-licence-activation">
19
  <h2><?php _e( 'Yithemes Licence Activation', 'yit' ) ?></h2>
20
 
21
+ <?php if( is_a( $this, 'YIT_Theme_Licence' ) ) : ?>
22
+ <div class="activation-faq">
23
+ <h3><?php _e( 'I cannot find the license key for activating the theme I have bought some time ago. Where can I find it?', 'yit' ) ?></h3>
24
+ <p>
25
+ <?php
26
+ _e( 'If you have purchased one of our products before 27 January 2015, you can benefit from support and updates (the services offered with the license)
27
+ until 27 January 2016 and you do not have to purchase it again to get a new license key, because, before this date, your license used to be activated automatically by our system.
28
+ After 27 January 2016, instead, if you want to benefit from support and updates you have to buy a new license and activate it through the license key you will be
29
+ provided with and that you can find in your YIThemes account, in section "My licenses".', 'yit' )
30
+ ?>
31
+ </p>
32
+ </div>
33
+ <?php endif; ?>
34
+
35
  <div class="licence-check-section">
36
  <form method="post" id="licence-check-update" action="<?php echo admin_url( 'admin-ajax.php' ) ?>">
37
  <span class="licence-label" style="display: block;"><?php _e( 'Have you updated your licenses? Have you asked for an extension? Update information concerning your products.', 'yit' ); ?></span>
plugin-fw/templates/metaboxes/types/ajax-products.php CHANGED
@@ -38,9 +38,7 @@ $multiple = ( $is_multiple ) ? ' multiple' : '';
38
  <script>
39
 
40
  (function ($) {
41
-
42
- // Ajax Chosen Product Selectors
43
-
44
  $("select.ajax_chosen_select_products").ajaxChosen({
45
  method: 'GET',
46
  url: '<?php echo admin_url('admin-ajax.php') ?>',
@@ -59,6 +57,7 @@ $multiple = ( $is_multiple ) ? ' multiple' : '';
59
 
60
  return terms;
61
  });
 
62
 
63
  })(jQuery);
64
  </script>
38
  <script>
39
 
40
  (function ($) {
41
+ $(document).ready(function(){
 
 
42
  $("select.ajax_chosen_select_products").ajaxChosen({
43
  method: 'GET',
44
  url: '<?php echo admin_url('admin-ajax.php') ?>',
57
 
58
  return terms;
59
  });
60
+ })
61
 
62
  })(jQuery);
63
  </script>
plugin-fw/templates/metaboxes/types/contactform.php CHANGED
@@ -1,4 +1,6 @@
1
  <?php
 
 
2
  extract( $args );
3
 
4
  $types = array(
@@ -51,7 +53,8 @@ $options["icon"] = YIT_Plugin_Common::get_awesome_icons();
51
 
52
  /* End select Font Awesome */
53
  ?>
54
-
 
55
 
56
  <p class="field-row">
57
  <a href="" class="button-secondary add-items"><?php _e( 'Add field', 'yit' ) ?></a>
@@ -420,6 +423,7 @@ $options["icon"] = YIT_Plugin_Common::get_awesome_icons();
420
  </div>
421
  </div>
422
  </div>
 
423
 
424
  <script>
425
 
1
  <?php
2
+
3
+
4
  extract( $args );
5
 
6
  $types = array(
53
 
54
  /* End select Font Awesome */
55
  ?>
56
+ <div id="<?php echo $id ?>-container" <?php if ( isset($deps) ): ?>data-field="<?php echo $id ?>" data-dep="<?php echo $deps['ids'] ?>" data-value="<?php echo $deps['values'] ?>" <?php endif ?>>
57
+ <label for="<?php echo $id ?>"><?php echo $label ?></label>
58
 
59
  <p class="field-row">
60
  <a href="" class="button-secondary add-items"><?php _e( 'Add field', 'yit' ) ?></a>
423
  </div>
424
  </div>
425
  </div>
426
+ </div>
427
 
428
  <script>
429
 
plugin-fw/templates/metaboxes/types/image-gallery.php CHANGED
@@ -29,7 +29,12 @@ if ( !empty( $value ) ) {
29
  <?php foreach ( $array_id as $image_id ) : ?>
30
  <li class="image" data-attachment_id = <?php echo esc_attr($image_id) ?>>
31
  <a href="#">
32
- <?php yit_image( "id=$image_id&size=admin-post-type-thumbnails" ); ?>
 
 
 
 
 
33
  </a>
34
  <ul class="actions">
35
  <li><a href="#" class="delete" title="<?php _e( 'Delete image', 'yit' ); ?>">x</a></li>
29
  <?php foreach ( $array_id as $image_id ) : ?>
30
  <li class="image" data-attachment_id = <?php echo esc_attr($image_id) ?>>
31
  <a href="#">
32
+ <?php
33
+ if( function_exists( 'yit_image' ) ) :
34
+ yit_image( "id=$image_id&size=admin-post-type-thumbnails" );
35
+ else:
36
+ echo wp_get_attachment_image( $image_id, array( 80, 80 ) );
37
+ endif; ?>
38
  </a>
39
  <ul class="actions">
40
  <li><a href="#" class="delete" title="<?php _e( 'Delete image', 'yit' ); ?>">x</a></li>
plugin-fw/templates/metaboxes/types/images.php CHANGED
@@ -27,7 +27,12 @@ if ( empty( $value ) || ! is_array( $value ) )
27
  <?php if ( ! empty( $value ) ) : foreach ( $value as $image_id ) : ?>
28
  <li>
29
  <a href="#">
30
- <?php yit_image( "id=$image_id&size=admin-post-type-thumbnails" );//echo wp_get_attachment_image( $image_id, 'admin-post-type-thumbnails' ); ?>
 
 
 
 
 
31
  <input type="hidden" name="<?php echo $name ?>[]" value="<?php echo esc_attr( $image_id ) ?>" />
32
  </a>
33
  <a href="#" title="<?php _e( 'Delete image', 'yit' ) ?>" class="delete">X</a>
27
  <?php if ( ! empty( $value ) ) : foreach ( $value as $image_id ) : ?>
28
  <li>
29
  <a href="#">
30
+ <?php
31
+ if( function_exists( 'yit_image' ) ) :
32
+ yit_image( "id=$image_id&size=admin-post-type-thumbnails" );
33
+ else:
34
+ echo wp_get_attachment_image( $image_id, array( 80, 80 ) );
35
+ endif; ?>
36
  <input type="hidden" name="<?php echo $name ?>[]" value="<?php echo esc_attr( $image_id ) ?>" />
37
  </a>
38
  <a href="#" title="<?php _e( 'Delete image', 'yit' ) ?>" class="delete">X</a>
plugin-fw/templates/panel/videobox.php CHANGED
@@ -38,8 +38,8 @@ if ( ! defined( 'ABSPATH' ) ) {
38
  * ),
39
  */
40
  ?>
41
- <div id="normal-sortables" class="meta-box-sortables">
42
- <div id="<?php echo $id ?>" class="postbox ">
43
  <h3><span><?php echo $name ?></span></h3>
44
  <div class="inside">
45
  <div class="yith_videobox">
38
  * ),
39
  */
40
  ?>
41
+ <div id="normal-sortables" class="meta-box-sortables yith-videobox-wrapper">
42
+ <div id="<?php echo $id ?>" class="postbox">
43
  <h3><span><?php echo $name ?></span></h3>
44
  <div class="inside">
45
  <div class="yith_videobox">
plugin-fw/yit-functions.php CHANGED
@@ -65,7 +65,9 @@ if ( ! function_exists( 'yit_plugin_get_template' ) ) {
65
  }
66
 
67
  // include file located
68
- include( $located );
 
 
69
 
70
  if ( $return ) {
71
  return ob_get_clean();
65
  }
66
 
67
  // include file located
68
+ if( file_exists( $located ) ){
69
+ include( $located );
70
+ }
71
 
72
  if ( $return ) {
73
  return ob_get_clean();
plugin-options/settings-options.php CHANGED
@@ -21,8 +21,8 @@ $videobox = defined( 'YWCTM_PREMIUM' ) ? '' : array(
21
  'title_first_column' => __( 'Discover the Advanced Features', 'ywctm' ),
22
  'description_first_column' => __( 'Upgrade to the PREMIUM VERSION of YITH WooCommerce Catalog Mode to benefit from all features!', 'ywctm' ),
23
  'video' => array(
24
- 'video_id' => '120697979',
25
- 'video_image_url' => YWCTM_ASSETS_URL.'images/yith-woocommerce-catalog-mode.jpg',
26
  'video_description' => __( 'YITH WooCommerce Catalog Mode', 'ywctm' ),
27
  ),
28
  'title_second_column' => __( 'Get Support and Pro Features', 'ywctm' ),
@@ -41,6 +41,15 @@ $exclusion = ! defined( 'YWCTM_PREMIUM' ) ? '' : array (
41
  'desc' => __( 'Exclude selected products (See "Exclusions" tab)', 'ywctm' ),
42
  'id' => 'ywctm_exclude_hide_add_to_cart',
43
  'default' => 'no',
 
 
 
 
 
 
 
 
 
44
  'checkboxgroup' => 'end'
45
  );
46
 
@@ -94,6 +103,7 @@ return array(
94
  'checkboxgroup' => ! defined( 'YWCTM_PREMIUM' ) ? 'end' : ''
95
  ),
96
  'catalog_mode_settings_exclude_products' => $exclusion,
 
97
  'catalog_mode_settings_disable_cart_in_header' => array(
98
  'name' => __( '"Cart" and "Checkout" pages', 'ywctm' ),
99
  'type' => 'checkbox',
21
  'title_first_column' => __( 'Discover the Advanced Features', 'ywctm' ),
22
  'description_first_column' => __( 'Upgrade to the PREMIUM VERSION of YITH WooCommerce Catalog Mode to benefit from all features!', 'ywctm' ),
23
  'video' => array(
24
+ 'video_id' => '118792418',
25
+ 'video_image_url' => YWCTM_ASSETS_URL.'/images/yith-woocommerce-catalog-mode.jpg',
26
  'video_description' => __( 'YITH WooCommerce Catalog Mode', 'ywctm' ),
27
  ),
28
  'title_second_column' => __( 'Get Support and Pro Features', 'ywctm' ),
41
  'desc' => __( 'Exclude selected products (See "Exclusions" tab)', 'ywctm' ),
42
  'id' => 'ywctm_exclude_hide_add_to_cart',
43
  'default' => 'no',
44
+ 'checkboxgroup' => ''
45
+ );
46
+
47
+ $reverse_exclusion = ! defined( 'YWCTM_PREMIUM' ) ? '' : array (
48
+ 'name' => __( '"Add to cart" button', 'ywctm' ),
49
+ 'type' => 'checkbox',
50
+ 'desc' => __( 'Reverse Exclusion List (Restrict Catalog Mode to selected items only)', 'ywctm' ),
51
+ 'id' => 'ywctm_exclude_hide_add_to_cart_reverse',
52
+ 'default' => 'no',
53
  'checkboxgroup' => 'end'
54
  );
55
 
103
  'checkboxgroup' => ! defined( 'YWCTM_PREMIUM' ) ? 'end' : ''
104
  ),
105
  'catalog_mode_settings_exclude_products' => $exclusion,
106
+ 'catalog_mode_settings_exclude_products_reverse' => $reverse_exclusion,
107
  'catalog_mode_settings_disable_cart_in_header' => array(
108
  'name' => __( '"Cart" and "Checkout" pages', 'ywctm' ),
109
  'type' => 'checkbox',
readme.txt CHANGED
@@ -4,23 +4,23 @@ Contributors: yithemes
4
  Tags: woocommerce, products, themes, yit, yith, e-commerce, shop, catalog mode, catalogue mode, remove add to cart, ask for price, ask price, asking for price, asking price, button remove, call, call for price, call me, call us, contact, email, hide add to cart, hide price
5
  Requires at least: 4.0
6
  Tested up to: 4.1.1
7
- Stable tag: 1.0.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
11
- YITH WooCommerce Catalog Mode allows you to disable shop functions.
12
 
13
  == Description ==
14
 
15
- YITH WooCommerce Catalog Mode lets you deactivate the selling features of your e-commerce site.
16
 
17
- With this plugin you can:
18
- 1. Create a showcase of your products
19
- 2. Temporarily deactivate the selling operations to perform maintenance actions in your warehouse without putting offline your site
20
 
21
- How it works:
22
- 1. You can hide the "Add to cart" button in the site pages
23
- 2. You can hide the "Cart" and "Checkout page and the "Cart" widget in the site pages
 
 
24
 
25
  Full documentation is available [here](http://yithemes.com/docs-plugins/yith-woocommerce-catalog-mode/).
26
 
@@ -40,10 +40,18 @@ YITH WooCommerce Catalog Mode will add a new tab called "Catalog Mode" inside th
40
 
41
  == Screenshots ==
42
 
43
- 1. This is the settings page for the plugin, you can find it inside the YIT Plugins menu item. You can hide "add to cart" buttons and cart and checkout pages.
 
 
 
 
44
 
45
  == Changelog ==
46
 
 
 
 
 
47
  = 1.0.2 =
48
 
49
  * Fixed: Added functions for themes compatibility
@@ -56,13 +64,6 @@ YITH WooCommerce Catalog Mode will add a new tab called "Catalog Mode" inside th
56
 
57
  * Initial release
58
 
59
- == Support ==
60
- Already knew it, right?! Great, but maybe you do not know that: if you're looking for how to install the plugins or how to use them within your Wordpress installations, which is the right way to ask support?
61
- That's the way:
62
-
63
- * Register on http://yithemes.com
64
- * Go to Support > Get Support
65
-
66
  == Upgrade Notice ==
67
 
68
  Last Stable Tag 1.0.2
4
  Tags: woocommerce, products, themes, yit, yith, e-commerce, shop, catalog mode, catalogue mode, remove add to cart, ask for price, ask price, asking for price, asking price, button remove, call, call for price, call me, call us, contact, email, hide add to cart, hide price
5
  Requires at least: 4.0
6
  Tested up to: 4.1.1
7
+ Stable tag: 1.0.3
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
11
+ YITH WooCommerce Catalog Mode, a plugin for disabling sales in your e-commerce and turn it into an e-commerce into an online catalogue.
12
 
13
  == Description ==
14
 
15
+ YITH WooCommerce Catalog Mode is one of our the most appealing plugins for our customers who need to switch their e-commerce site into an online catalogue. Reasons for this switch may be a thousand, but most common ones are concerned with the need of our customers to perform maintenance actions in their warehouse without putting their site offline. Have you ever happened to take inventory and have to put your website down? How many potential customers lost! A catalogue gives you the opportunity to leave your products online and to let your customers contact you anyway for whatever question they might have. This increases customers' loyalty and you do not lose visibility online.
16
 
17
+ **Features:**
 
 
18
 
19
+ * Enable/disable the plugin from option panel
20
+ * Enable showing plugin settings for administrators also
21
+ * Hide "Add to Cart" button in product detail page
22
+ * Hide "Add to Cart" button in the other pages of the site (catalog, shop etc.)
23
+ * Hide "Cart" and "Checkout" pages and any reference to them
24
 
25
  Full documentation is available [here](http://yithemes.com/docs-plugins/yith-woocommerce-catalog-mode/).
26
 
40
 
41
  == Screenshots ==
42
 
43
+ 1. This is the settings page for the plugin, you can find it inside the YIT Plugins menu item. You can hide "Add to Cart" buttons and Cart and Checkout pages.
44
+
45
+ 2. This image shows the shop page as it appears when "Add to Cart" button is hidden and Cart and Checkout page are deactivated.
46
+
47
+ 3. This image shows product detail page as it appears when "Add to Cart" button is hidden and Cart and Checkout page are deactivated.
48
 
49
  == Changelog ==
50
 
51
+ = 1.0.3 =
52
+
53
+ * Fixed: Improved code performance
54
+
55
  = 1.0.2 =
56
 
57
  * Fixed: Added functions for themes compatibility
64
 
65
  * Initial release
66
 
 
 
 
 
 
 
 
67
  == Upgrade Notice ==
68
 
69
  Last Stable Tag 1.0.2
screenshot-2.jpg ADDED
Binary file
screenshot-3.jpg ADDED
Binary file
templates/admin/premium.php CHANGED
@@ -198,7 +198,7 @@
198
  Upgrade to the <span class="highlight">premium version</span>
199
  of <span class="highlight">YITH WooCommerce Catalog Mode</span> to benefit from all features!
200
  </p>
201
- <a href="<?php $this->get_premium_landing_uri() ?>" target="_blank" class="premium-cta-button button btn">
202
  <span class="highlight">UPGRADE</span>
203
  <span>to the premium version</span>
204
  </a>
@@ -279,6 +279,20 @@
279
  </div>
280
  </div>
281
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
282
  <div class="section section-cta section-odd">
283
  <div class="landing-container">
284
  <div class="premium-cta">
@@ -286,7 +300,7 @@
286
  Upgrade to the <span class="highlight">premium version</span>
287
  of <span class="highlight">YITH WooCommerce Catalog Mode</span> to benefit from all features!
288
  </p>
289
- <a href="<?php $this->get_premium_landing_uri() ?>" target="_blank" class="premium-cta-button button btn">
290
  <span class="highlight">UPGRADE</span>
291
  <span>to the premium version</span>
292
  </a>
198
  Upgrade to the <span class="highlight">premium version</span>
199
  of <span class="highlight">YITH WooCommerce Catalog Mode</span> to benefit from all features!
200
  </p>
201
+ <a href="<?php echo $this->get_premium_landing_uri() ?>" target="_blank" class="premium-cta-button button btn">
202
  <span class="highlight">UPGRADE</span>
203
  <span>to the premium version</span>
204
  </a>
279
  </div>
280
  </div>
281
  </div>
282
+ <div class="section section-odd clear" style="background: url(<?php echo YWCTM_ASSETS_URL ?>/images/06-bg.png) no-repeat #f1f1f1; background-position: 15% 100%">
283
+ <div class="landing-container">
284
+ <div class="col-2">
285
+ <div class="section-title">
286
+ <img src="<?php echo YWCTM_ASSETS_URL ?>/images/06-icon.png" alt="Number" />
287
+ <h2>REVERSE EXCLUSION LIST</h2>
288
+ </div>
289
+ <p>Apply Catalog Mode to some items only: add them to the "Exclusion List" and make it work in the opposite way as usual. All items in the shop show price and “Add to Cart” button, while items in the list don’t.</p>
290
+ </div>
291
+ <div class="col-1">
292
+ <img src="<?php echo YWCTM_ASSETS_URL ?>/images/06.png" alt="Number" />
293
+ </div>
294
+ </div>
295
+ </div>
296
  <div class="section section-cta section-odd">
297
  <div class="landing-container">
298
  <div class="premium-cta">
300
  Upgrade to the <span class="highlight">premium version</span>
301
  of <span class="highlight">YITH WooCommerce Catalog Mode</span> to benefit from all features!
302
  </p>
303
+ <a href="<?php echo $this->get_premium_landing_uri() ?>" target="_blank" class="premium-cta-button button btn">
304
  <span class="highlight">UPGRADE</span>
305
  <span>to the premium version</span>
306
  </a>