SiteOrigin Widgets Bundle - Version 1.5.6

Version Description

  • January 23 2016 =
  • Fixed widget name migration
  • Fixed hero image height issue.
  • Fixed admin page layout.
Download this release

Release Info

Developer gpriday
Plugin Icon 128x128 SiteOrigin Widgets Bundle
Version 1.5.6
Comparing to
See all releases

Code changes from version 1.5.4 to 1.5.6

Files changed (171) hide show
  1. admin/admin.css +1 -1
  2. base/css/admin.css +25 -4
  3. base/inc.php +11 -6
  4. base/inc/attachments.php +2 -1
  5. base/inc/fields/js/so-tinymce-field.js +2 -2
  6. base/inc/fields/js/so-tinymce-field.min.js +1 -1
  7. base/inc/fields/repeater.class.php +2 -2
  8. base/inc/fields/tinymce.class.php +4 -4
  9. base/inc/post-selector.php +14 -1
  10. base/inc/widgets/base-slider.class.php +1 -1
  11. base/js/admin.js +7 -4
  12. base/js/admin.min.js +1 -1
  13. base/js/posts-selector.js +13 -2
  14. base/js/posts-selector.min.js +1 -1
  15. base/siteorigin-widget.class.php +6 -1
  16. icons/elegantline/filter.php +107 -0
  17. icons/fontawesome/filter.php +681 -0
  18. icons/genericons/filter.php +131 -0
  19. icons/icomoon/filter.php +458 -0
  20. icons/icons.php +17 -1746
  21. icons/ionicons/filter.php +740 -0
  22. icons/ionicons/font/ionicons.eot +0 -0
  23. icons/ionicons/font/ionicons.svg +2230 -0
  24. icons/ionicons/font/ionicons.ttf +0 -0
  25. icons/ionicons/font/ionicons.woff +0 -0
  26. icons/ionicons/style.css +28 -0
  27. icons/licenses.txt +9 -1
  28. icons/typicons/filter.php +343 -0
  29. js/slider/jquery.slider.js +1 -1
  30. readme.txt +36 -2
  31. so-widgets-bundle.php +42 -35
  32. widgets/{so-button-widget → button}/assets/banner.svg +30 -30
  33. widgets/{so-button-widget/so-button-widget.php → button/button.php} +0 -0
  34. widgets/{so-button-widget → button}/css/style.css +1 -0
  35. widgets/{so-button-widget → button}/styles/atom.less +0 -0
  36. widgets/{so-button-widget → button}/styles/flat.less +0 -0
  37. widgets/{so-button-widget → button}/styles/wire.less +0 -0
  38. widgets/{so-button-widget → button}/tpl/base.php +0 -0
  39. widgets/{so-contact-widget → contact}/assets/banner.svg +43 -43
  40. widgets/{so-contact-widget/so-contact-widget.php → contact/contact.php} +231 -43
  41. widgets/contact/js/contact.js +62 -0
  42. widgets/contact/js/contact.min.js +1 -0
  43. widgets/{so-contact-widget → contact}/styles/default.less +54 -3
  44. widgets/{so-contact-widget → contact}/tpl/default.php +20 -9
  45. widgets/{so-cta-widget → cta}/assets/banner.svg +33 -33
  46. widgets/{so-cta-widget → cta}/css/style.css +0 -0
  47. widgets/{so-cta-widget/so-cta-widget.php → cta/cta.php} +1 -1
  48. widgets/{so-cta-widget → cta}/js/cta.js +0 -0
  49. widgets/{so-cta-widget → cta}/js/cta.min.js +0 -0
  50. widgets/{so-cta-widget → cta}/styles/basic.less +0 -0
  51. widgets/{so-cta-widget → cta}/tpl/base.php +0 -0
  52. widgets/{so-editor-widget → editor}/assets/banner.svg +38 -38
  53. widgets/{so-editor-widget/so-editor-widget.php → editor/editor.php} +4 -9
  54. widgets/{so-editor-widget → editor}/tpl/editor.php +1 -1
  55. widgets/{so-features-widget → features}/assets/banner.svg +56 -56
  56. widgets/{so-features-widget → features}/css/fonts/feature-background.eot +0 -0
  57. widgets/{so-features-widget → features}/css/fonts/feature-background.svg +0 -0
  58. widgets/{so-features-widget → features}/css/fonts/feature-background.ttf +0 -0
  59. widgets/{so-features-widget → features}/css/fonts/feature-background.woff +0 -0
  60. widgets/{so-features-widget → features}/css/fonts/readme.txt +0 -0
  61. widgets/{so-features-widget → features}/css/style.css +0 -0
  62. widgets/{so-features-widget/so-features-widget.php → features/features.php} +0 -0
  63. widgets/{so-features-widget → features}/images/containers/explode.svg +0 -0
  64. widgets/{so-features-widget → features}/images/containers/frame.svg +0 -0
  65. widgets/{so-features-widget → features}/images/containers/hex.svg +0 -0
  66. widgets/{so-features-widget → features}/images/containers/octagon.svg +0 -0
  67. widgets/{so-features-widget → features}/images/containers/round.svg +0 -0
  68. widgets/{so-features-widget → features}/images/containers/rounded-hex.svg +0 -0
  69. widgets/{so-features-widget → features}/images/containers/rounded-square.svg +0 -0
  70. widgets/{so-features-widget → features}/images/containers/rounded-sticker.svg +0 -0
  71. widgets/{so-features-widget → features}/images/containers/square.svg +0 -0
  72. widgets/{so-features-widget → features}/images/containers/sticker.svg +0 -0
  73. widgets/{so-features-widget → features}/inc/containers.php +0 -0
  74. widgets/{so-features-widget → features}/styles/features.less +0 -0
  75. widgets/{so-features-widget → features}/tpl/base.php +0 -0
  76. widgets/{so-google-map-widget → google-map}/assets/banner.svg +44 -44
  77. widgets/{so-google-map-widget → google-map}/css/style.css +0 -0
  78. widgets/{so-google-map-widget/so-google-map-widget.php → google-map/google-map.php} +22 -20
  79. widgets/google-map/js/js-map.js +206 -0
  80. widgets/google-map/js/js-map.min.js +1 -0
  81. widgets/google-map/tpl/js-map.php +6 -0
  82. widgets/{so-google-map-widget → google-map}/tpl/static-map.php +0 -0
  83. widgets/{so-headline-widget → headline}/assets/banner.svg +38 -38
  84. widgets/{so-headline-widget/so-headline-widget.php → headline/headline.php} +0 -0
  85. widgets/{so-headline-widget → headline}/styles/sow-headline.less +0 -0
  86. widgets/{so-headline-widget → headline}/tpl/headline.php +0 -0
  87. widgets/{so-slider-widget → hero}/assets/banner.svg +40 -40
  88. widgets/{so-hero-widget/so-hero-widget.php → hero/hero.php} +43 -20
  89. widgets/hero/styles/default.less +98 -0
  90. widgets/{so-hero-widget → hero}/tpl/default.php +0 -0
  91. widgets/{so-image-grid-widget → image-grid}/css/image-grid.css +0 -0
  92. widgets/{so-image-grid-widget/so-image-grid-widget.php → image-grid/image-grid.php} +2 -2
  93. widgets/{so-image-grid-widget → image-grid}/js/image-grid.js +0 -0
  94. widgets/{so-image-grid-widget → image-grid}/js/image-grid.min.js +0 -0
  95. widgets/{so-image-grid-widget → image-grid}/styles/default.less +0 -0
  96. widgets/{so-image-grid-widget → image-grid}/tpl/default.php +0 -0
  97. widgets/{so-image-widget → image}/assets/banner.svg +36 -36
  98. widgets/{so-image-widget/so-image-widget.php → image/image.php} +45 -3
  99. widgets/image/styles/sow-image.less +16 -0
  100. widgets/image/tpl/base.php +56 -0
  101. widgets/{so-post-carousel-widget → post-carousel}/assets/banner.svg +44 -44
  102. widgets/{so-post-carousel-widget → post-carousel}/css/fonts/carousel-arrows.eot +0 -0
  103. widgets/{so-post-carousel-widget → post-carousel}/css/fonts/carousel-arrows.svg +0 -0
  104. widgets/{so-post-carousel-widget → post-carousel}/css/fonts/carousel-arrows.ttf +0 -0
  105. widgets/{so-post-carousel-widget → post-carousel}/css/fonts/carousel-arrows.woff +0 -0
  106. widgets/{so-post-carousel-widget → post-carousel}/css/images/carousel-loader.gif +0 -0
  107. widgets/{so-post-carousel-widget → post-carousel}/css/style.css +0 -0
  108. widgets/{so-post-carousel-widget → post-carousel}/js/carousel.js +0 -0
  109. widgets/{so-post-carousel-widget → post-carousel}/js/carousel.min.js +0 -0
  110. widgets/{so-post-carousel-widget/so-post-carousel-widget.php → post-carousel/post-carousel.php} +0 -0
  111. widgets/{so-post-carousel-widget → post-carousel}/tpl/base.php +0 -0
  112. widgets/{so-post-carousel-widget → post-carousel}/tpl/carousel-post-loop.php +0 -0
  113. widgets/{so-price-table-widget → price-table}/assets/banner.svg +36 -36
  114. widgets/{so-price-table-widget → price-table}/js/pricetable.js +0 -0
  115. widgets/{so-price-table-widget → price-table}/js/pricetable.min.js +0 -0
  116. widgets/{so-price-table-widget/so-price-table-widget.php → price-table/price-table.php} +21 -4
  117. widgets/{so-price-table-widget → price-table}/styles/atom.less +0 -0
  118. widgets/{so-price-table-widget → price-table}/tpl/atom.php +2 -2
  119. widgets/simple-masonry/js/imagesloaded.pkgd.js +942 -0
  120. widgets/simple-masonry/js/imagesloaded.pkgd.min.js +1 -0
  121. widgets/{so-simple-masonry-widget → simple-masonry}/js/packery.pkgd.js +0 -0
  122. widgets/{so-simple-masonry-widget → simple-masonry}/js/packery.pkgd.min.js +0 -0
  123. widgets/simple-masonry/js/simple-masonry.js +66 -0
  124. widgets/simple-masonry/js/simple-masonry.min.js +1 -0
  125. widgets/{so-simple-masonry-widget/so-simple-masonry-widget.php → simple-masonry/simple-masonry.php} +9 -3
  126. widgets/{so-simple-masonry-widget → simple-masonry}/styles/simple-masonry.less +0 -0
  127. widgets/{so-simple-masonry-widget → simple-masonry}/tpl/simple-masonry.php +0 -0
  128. widgets/{so-hero-widget → slider}/assets/banner.svg +40 -40
  129. widgets/{so-slider-widget/so-slider-widget.php → slider/slider.php} +0 -0
  130. widgets/{so-slider-widget → slider}/styles/default.less +0 -0
  131. widgets/{so-slider-widget → slider}/tpl/default.php +0 -0
  132. widgets/so-button-widget/css/style.less +0 -49
  133. widgets/so-cta-widget/css/style.less +0 -44
  134. widgets/so-features-widget/css/style.less +0 -185
  135. widgets/so-features-widget/styles/base.php +0 -0
  136. widgets/so-google-map-widget/css/style.less +0 -13
  137. widgets/so-google-map-widget/js/js-map-admin.js +0 -30
  138. widgets/so-google-map-widget/js/js-map-admin.min.js +0 -1
  139. widgets/so-google-map-widget/js/js-map.js +0 -173
  140. widgets/so-google-map-widget/js/js-map.min.js +0 -1
  141. widgets/so-google-map-widget/tpl/js-map.php +0 -10
  142. widgets/so-hero-widget/styles/default.less +0 -93
  143. widgets/so-image-widget/tpl/base.php +0 -35
  144. widgets/so-post-carousel-widget/css/style.less +0 -208
  145. widgets/so-simple-masonry-widget/js/simple-masonry.js +0 -65
  146. widgets/so-simple-masonry-widget/js/simple-masonry.min.js +0 -1
  147. widgets/so-testimonial-widget/tpl/default.php +0 -39
  148. widgets/{so-social-media-buttons-widget → social-media-buttons}/assets/banner.svg +39 -39
  149. widgets/{so-social-media-buttons-widget → social-media-buttons}/data/networks.php +0 -0
  150. widgets/{so-social-media-buttons-widget → social-media-buttons}/js/social-media-buttons-admin.js +0 -0
  151. widgets/{so-social-media-buttons-widget → social-media-buttons}/js/social-media-buttons-admin.min.js +0 -0
  152. widgets/{so-social-media-buttons-widget/so-social-media-buttons-widget.php → social-media-buttons/social-media-buttons.php} +0 -0
  153. widgets/{so-social-media-buttons-widget → social-media-buttons}/styles/atom.less +0 -0
  154. widgets/{so-social-media-buttons-widget → social-media-buttons}/styles/flat.less +0 -0
  155. widgets/{so-social-media-buttons-widget → social-media-buttons}/styles/widget-mixins.less +0 -0
  156. widgets/{so-social-media-buttons-widget → social-media-buttons}/styles/wire.less +0 -0
  157. widgets/{so-social-media-buttons-widget → social-media-buttons}/tpl/social-media-buttons.php +0 -0
  158. widgets/{so-testimonial-widget → testimonial}/assets/banner.svg +41 -41
  159. widgets/{so-testimonial-widget → testimonial}/css/style.css +0 -0
  160. widgets/{so-testimonial-widget → testimonial}/styles/default.less +0 -0
  161. widgets/{so-testimonial-widget → testimonial}/svg/svgdefs.svg +0 -0
  162. widgets/{so-testimonial-widget/so-testimonial-widget.php → testimonial/testimonial.php} +22 -16
  163. widgets/testimonial/tpl/default.php +71 -0
  164. widgets/{so-video-widget → video}/assets/banner.svg +36 -36
  165. widgets/{so-video-widget → video}/css/controls-skin.png +0 -0
  166. widgets/{so-video-widget → video}/css/html-player-responsive.css +0 -0
  167. widgets/{so-video-widget → video}/css/skin.css +0 -0
  168. widgets/{so-video-widget → video}/js/so-video-widget.js +0 -0
  169. widgets/{so-video-widget → video}/js/so-video-widget.min.js +0 -0
  170. widgets/{so-video-widget → video}/tpl/default.php +0 -0
  171. widgets/{so-video-widget/so-video-widget.php → video/video.php} +0 -0
admin/admin.css CHANGED
@@ -13,7 +13,7 @@
13
width: 50px;
14
height: 43px;
15
position: relative;
16
- margin: 16px 22px 0 0;
17
}
18
#sow-widgets-page .page-banner .icon img {
19
position: absolute;
13
width: 50px;
14
height: 43px;
15
position: relative;
16
+ margin: 8px 22px 0 0;
17
}
18
#sow-widgets-page .page-banner .icon img {
19
position: absolute;
base/css/admin.css CHANGED
@@ -452,7 +452,7 @@
452
}
453
.siteorigin-widget-form .siteorigin-widget-field-type-link .existing-content-selector .posts.loading {
454
min-height: 40px;
455
- background: #ffffff url("img/wpspin_light.gif") center center no-repeat;
456
}
457
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
458
.siteorigin-widget-form .siteorigin-widget-field-type-link .existing-content-selector .posts.loading {
@@ -604,6 +604,10 @@
604
.siteorigin-widgets-query-builder .query-builder-content .query-builder-form-field input[type="number"] {
605
width: 150px;
606
}
607
.siteorigin-widgets-query-builder .query-builder-content .query-builder-form-field .sow-order-button {
608
display: inline-block;
609
width: 19px;
@@ -659,7 +663,7 @@
659
text-align: center;
660
}
661
.siteorigin-widgets-query-builder .sow-post-selector-summary.sow-post-loading .sow-thumbnail {
662
- background: url(img/loading.gif) center center no-repeat #eeeeee;
663
}
664
.siteorigin-widgets-query-builder .sow-post-selector-summary.sow-post-loading .sow-thumbnail img {
665
display: none;
@@ -722,6 +726,23 @@
722
display: table;
723
clear: both;
724
}
725
.siteorigin-widget-preview {
726
display: block !important;
727
}
@@ -753,7 +774,7 @@
753
top: 30px;
754
height: 50px;
755
background: #fafafa;
756
- border-bottom: 1px solid #d8d8d8;
757
}
758
.siteorigin-widget-preview-dialog .so-widget-toolbar h3 {
759
margin: 15px 0 15px 20px;
@@ -799,7 +820,7 @@
799
left: 30px;
800
right: 30px;
801
bottom: 30px;
802
- background: #ffffff url("img/wpspin_light.gif") center center no-repeat;
803
}
804
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
805
.siteorigin-widget-preview-dialog .so-widget-iframe {
452
}
453
.siteorigin-widget-form .siteorigin-widget-field-type-link .existing-content-selector .posts.loading {
454
min-height: 40px;
455
+ background: #FFFFFF url("img/wpspin_light.gif") center center no-repeat;
456
}
457
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
458
.siteorigin-widget-form .siteorigin-widget-field-type-link .existing-content-selector .posts.loading {
604
.siteorigin-widgets-query-builder .query-builder-content .query-builder-form-field input[type="number"] {
605
width: 150px;
606
}
607
+ .siteorigin-widgets-query-builder .query-builder-content .query-builder-form-field input[type="date"] {
608
+ width: 150px;
609
+ margin: 0 10px;
610
+ }
611
.siteorigin-widgets-query-builder .query-builder-content .query-builder-form-field .sow-order-button {
612
display: inline-block;
613
width: 19px;
663
text-align: center;
664
}
665
.siteorigin-widgets-query-builder .sow-post-selector-summary.sow-post-loading .sow-thumbnail {
666
+ background: url(img/loading.gif) center center no-repeat #EEEEEE;
667
}
668
.siteorigin-widgets-query-builder .sow-post-selector-summary.sow-post-loading .sow-thumbnail img {
669
display: none;
726
display: table;
727
clear: both;
728
}
729
+ .siteorigin-widgets-query-builder .media-modal-close .media-modal-icon {
730
+ position: absolute;
731
+ top: 50%;
732
+ left: 50%;
733
+ text-decoration: none;
734
+ width: 20px;
735
+ height: 20px;
736
+ margin-left: -10px;
737
+ margin-top: -10px;
738
+ color: #666666;
739
+ text-align: center;
740
+ }
741
+ .siteorigin-widgets-query-builder .media-modal-close .media-modal-icon:before {
742
+ font: 400 20px/1em dashicons;
743
+ top: 7px;
744
+ left: 13px;
745
+ }
746
.siteorigin-widget-preview {
747
display: block !important;
748
}
774
top: 30px;
775
height: 50px;
776
background: #fafafa;
777
+ border-bottom: 1px solid #D8D8D8;
778
}
779
.siteorigin-widget-preview-dialog .so-widget-toolbar h3 {
780
margin: 15px 0 15px 20px;
820
left: 30px;
821
right: 30px;
822
bottom: 30px;
823
+ background: #FFFFFF url("img/wpspin_light.gif") center center no-repeat;
824
}
825
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
826
.siteorigin-widget-preview-dialog .so-widget-iframe {
base/inc.php CHANGED
@@ -266,11 +266,10 @@ function sow_esc_url_raw( $url ) {
266
* @return mixed|void
267
*/
268
function siteorigin_widgets_fonts_google_webfonts( ) {
269
- $fonts = include plugin_dir_path(__FILE__) . 'inc/fonts.php';
270
- $fonts = apply_filters( '', $fonts );
271
- return $fonts;
272
}
273
- add_filter('siteorigin_widgets_fonts_google_webfonts', 'siteorigin_widgets_fonts_google_webfonts_filter');
274
275
function siteorigin_widgets_is_google_webfont( $font_value ) {
276
$google_webfonts = siteorigin_widgets_fonts_google_webfonts();
@@ -323,11 +322,17 @@ function siteorigin_widgets_get_measurements_list() {
323
'cm',
324
'mm',
325
'em',
326
- 'ex',
327
'pt',
328
'pc',
329
);
330
331
// Allow themes and plugins to trim or enhance the list.
332
return apply_filters('siteorigin_widgets_get_measurements_list', $measurements);
333
- }
266
* @return mixed|void
267
*/
268
function siteorigin_widgets_fonts_google_webfonts( ) {
269
+ $fonts = include plugin_dir_path( __FILE__ ) . 'inc/fonts.php';
270
+ $fonts = apply_filters( 'siteorigin_widgets_google_webfonts', $fonts );
271
+ return !empty( $fonts ) ? $fonts : array();
272
}
273
274
function siteorigin_widgets_is_google_webfont( $font_value ) {
275
$google_webfonts = siteorigin_widgets_fonts_google_webfonts();
322
'cm',
323
'mm',
324
'em',
325
+ 'rem',
326
'pt',
327
'pc',
328
+ 'ex',
329
+ 'ch',
330
+ 'vw',
331
+ 'vh',
332
+ 'vmin',
333
+ 'vmax',
334
);
335
336
// Allow themes and plugins to trim or enhance the list.
337
return apply_filters('siteorigin_widgets_get_measurements_list', $measurements);
338
+ }
base/inc/attachments.php CHANGED
@@ -51,6 +51,7 @@ function siteorigin_widgets_get_attachment_image( $attachment, $size, $fallback
51
foreach( $atts as $id => $val ) {
52
$return .= $id . '="' . esc_attr($val) . '" ';
53
}
54
return $return;
55
}
56
- }
51
foreach( $atts as $id => $val ) {
52
$return .= $id . '="' . esc_attr($val) . '" ';
53
}
54
+ $return .= '>';
55
return $return;
56
}
57
+ }
base/inc/fields/js/so-tinymce-field.js CHANGED
@@ -21,7 +21,7 @@
21
if (id.indexOf('__i__') > -1) return;
22
var mceSettings = $container.data('mceSettings');
23
var widgetIdBase = $container.data('widgetIdBase');
24
- var name = $textarea.attr('name').replace(/\[\d\]/g, '');
25
var fieldName = /[a-zA-Z0-9\-]+(?:\[[a-zA-Z0-9]+\])?\[(.*)\]/.exec(name)[1];
26
var idPattern = new RegExp('widget-' + widgetIdBase + '-.*-' + fieldName.replace(/\]\[/g, '-') + '[-\d]*');
27
for (var initId in tinyMCEPreInit.mceInit) {
@@ -129,4 +129,4 @@
129
}
130
});
131
132
- })( jQuery );
21
if (id.indexOf('__i__') > -1) return;
22
var mceSettings = $container.data('mceSettings');
23
var widgetIdBase = $container.data('widgetIdBase');
24
+ var name = $textarea.attr('name').replace(/\[\d+\]/g, '');
25
var fieldName = /[a-zA-Z0-9\-]+(?:\[[a-zA-Z0-9]+\])?\[(.*)\]/.exec(name)[1];
26
var idPattern = new RegExp('widget-' + widgetIdBase + '-.*-' + fieldName.replace(/\]\[/g, '-') + '[-\d]*');
27
for (var initId in tinyMCEPreInit.mceInit) {
129
}
130
});
131
132
+ })( jQuery );
base/inc/fields/js/so-tinymce-field.min.js CHANGED
@@ -1 +1 @@
1
- !function(e){var t=function(i){"undefined"!=typeof tinyMCEPreInit?(tinyMCEPreInit.mceInit.hasOwnProperty("undefined")&&delete tinyMCEPreInit.mceInit.undefined,tinyMCEPreInit.qtInit.hasOwnProperty("undefined")&&delete tinyMCEPreInit.qtInit.undefined,QTags.instances.hasOwnProperty("undefined")&&delete QTags.instances.undefined,e(i).find("> .siteorigin-widget-field-type-tinymce > .siteorigin-widget-tinymce-container").each(function(t,i){var n=e(i),r=n.find("textarea"),o=r.attr("id");if("undefined"!=typeof tinymce){if(o.indexOf("__i__")>-1)return;var d=n.data("mceSettings"),s=n.data("widgetIdBase"),a=r.attr("name").replace(/\[\d\]/g,""),c=/[a-zA-Z0-9\-]+(?:\[[a-zA-Z0-9]+\])?\[(.*)\]/.exec(a)[1],f=new RegExp("widget-"+s+"-.*-"+c.replace(/\]\[/g,"-")+"[-d]*");for(var g in tinyMCEPreInit.mceInit)g.match(f)&&(d=e.extend({},tinyMCEPreInit.mceInit[g],d));var m,l=tinymce.get(o);null!=l&&(m=l.getContent(),l.remove());var u=function(e){e.on("change",function(){tinymce.get(o).save(),r.trigger("change"),r.val(window.switchEditors.pre_wpautop(e.getContent()))}),e.on("init",function(){m&&e.setContent(m)}),r.on("keyup",function(){e.setContent(window.switchEditors.wpautop(r.val()))})};d=e.extend({},d,{selector:"#"+o,setup:u}),tinyMCEPreInit.mceInit[o]=d;var y=n.find("div#wp-"+o+"-wrap");if(y.hasClass("tmce-active"))if(e("#"+o).is(":visible"))tinymce.init(tinyMCEPreInit.mceInit[o]);else var p=setInterval(function(){e("#"+o).is(":visible")&&(tinymce.init(tinyMCEPreInit.mceInit[o]),clearInterval(p))},500)}var I=n.data("qtSettings");I=e.extend({},tinyMCEPreInit.qtInit["siteorigin-widget-input-tinymce-field"],I,{id:o}),tinyMCEPreInit.qtInit[o]=I,n.find(".quicktags-toolbar").remove(),quicktags(tinyMCEPreInit.qtInit[o]),e(this).on("click",function(t){var i=e(t.target);i.hasClass("wp-switch-editor")&&(mode=i.hasClass("switch-tmce")?"tmce":"html",e(this).find("+ .siteorigin-widget-tinymce-selected-editor").val(mode))})}),QTags._buttonsInit()):setTimeout(function(){t(i)},500)};e(document).on("sowsetupform",function(i){var n=e(i.target);n.is(".siteorigin-widget-field-repeater-item-form")?n.is(":visible")?t(n):n.on("slideToggleOpenComplete",function(){n.is(":visible")&&(t(n),n.off("slideToggleOpenComplete"))}):t(n)}),e(document).on("sortstop",function(i,n){n.item.is(".siteorigin-widget-field-repeater-item")?n.item.find("> .siteorigin-widget-field-repeater-item-form").each(function(){t(e(this))}):t(n.item.find(".siteorigin-widget-form"))})}(jQuery);
1
+ !function(e){var t=function(i){"undefined"!=typeof tinyMCEPreInit?(tinyMCEPreInit.mceInit.hasOwnProperty("undefined")&&delete tinyMCEPreInit.mceInit.undefined,tinyMCEPreInit.qtInit.hasOwnProperty("undefined")&&delete tinyMCEPreInit.qtInit.undefined,QTags.instances.hasOwnProperty("undefined")&&delete QTags.instances.undefined,e(i).find("> .siteorigin-widget-field-type-tinymce > .siteorigin-widget-tinymce-container").each(function(t,i){var n=e(i),r=n.find("textarea"),o=r.attr("id");if("undefined"!=typeof tinymce){if(o.indexOf("__i__")>-1)return;var d=n.data("mceSettings"),s=n.data("widgetIdBase"),a=r.attr("name").replace(/\[\d+\]/g,""),c=/[a-zA-Z0-9\-]+(?:\[[a-zA-Z0-9]+\])?\[(.*)\]/.exec(a)[1],f=new RegExp("widget-"+s+"-.*-"+c.replace(/\]\[/g,"-")+"[-d]*");for(var g in tinyMCEPreInit.mceInit)g.match(f)&&(d=e.extend({},tinyMCEPreInit.mceInit[g],d));var m,l=tinymce.get(o);null!=l&&(m=l.getContent(),l.remove());var u=function(e){e.on("change",function(){tinymce.get(o).save(),r.trigger("change"),r.val(window.switchEditors.pre_wpautop(e.getContent()))}),e.on("init",function(){m&&e.setContent(m)}),r.on("keyup",function(){e.setContent(window.switchEditors.wpautop(r.val()))})};d=e.extend({},d,{selector:"#"+o,setup:u}),tinyMCEPreInit.mceInit[o]=d;var y=n.find("div#wp-"+o+"-wrap");if(y.hasClass("tmce-active"))if(e("#"+o).is(":visible"))tinymce.init(tinyMCEPreInit.mceInit[o]);else var p=setInterval(function(){e("#"+o).is(":visible")&&(tinymce.init(tinyMCEPreInit.mceInit[o]),clearInterval(p))},500)}var I=n.data("qtSettings");I=e.extend({},tinyMCEPreInit.qtInit["siteorigin-widget-input-tinymce-field"],I,{id:o}),tinyMCEPreInit.qtInit[o]=I,n.find(".quicktags-toolbar").remove(),quicktags(tinyMCEPreInit.qtInit[o]),e(this).on("click",function(t){var i=e(t.target);i.hasClass("wp-switch-editor")&&(mode=i.hasClass("switch-tmce")?"tmce":"html",e(this).find("+ .siteorigin-widget-tinymce-selected-editor").val(mode))})}),QTags._buttonsInit()):setTimeout(function(){t(i)},500)};e(document).on("sowsetupform",function(i){var n=e(i.target);n.is(".siteorigin-widget-field-repeater-item-form")?n.is(":visible")?t(n):n.on("slideToggleOpenComplete",function(){n.is(":visible")&&(t(n),n.off("slideToggleOpenComplete"))}):t(n)}),e(document).on("sortstop",function(i,n){n.item.is(".siteorigin-widget-field-repeater-item")?n.item.find("> .siteorigin-widget-field-repeater-item-form").each(function(){t(e(this))}):t(n.item.find(".siteorigin-widget-form"))})}(jQuery);
base/inc/fields/repeater.class.php CHANGED
@@ -61,7 +61,7 @@ class SiteOrigin_Widget_Field_Repeater extends SiteOrigin_Widget_Field_Container
61
<?php echo ! empty( $this->scroll_count ) ? 'data-scroll-count="' . esc_attr( $this->scroll_count ) . '"' : '' ?>
62
<?php if( ! empty( $this->readonly ) ) echo 'readonly' ?>>
63
<div class="siteorigin-widget-field-repeater-top">
64
- <div class="siteorigin-widget-field-repeater-expend"></div>
65
<h3><?php echo esc_html( $this->label ) ?></h3>
66
</div>
67
<div class="siteorigin-widget-field-repeater-items">
@@ -125,4 +125,4 @@ class SiteOrigin_Widget_Field_Repeater extends SiteOrigin_Widget_Field_Container
125
126
return $value;
127
}
128
- }
61
<?php echo ! empty( $this->scroll_count ) ? 'data-scroll-count="' . esc_attr( $this->scroll_count ) . '"' : '' ?>
62
<?php if( ! empty( $this->readonly ) ) echo 'readonly' ?>>
63
<div class="siteorigin-widget-field-repeater-top">
64
+ <div class="siteorigin-widget-field-repeater-expand"></div>
65
<h3><?php echo esc_html( $this->label ) ?></h3>
66
</div>
67
<div class="siteorigin-widget-field-repeater-items">
125
126
return $value;
127
}
128
+ }
base/inc/fields/tinymce.class.php CHANGED
@@ -225,8 +225,8 @@ class SiteOrigin_Widget_Field_TinyMCE extends SiteOrigin_Widget_Field_Text_Input
225
226
public function sanitize_instance( $instance ) {
227
$selected_editor_name = $this->get_selected_editor_field_name( $this->base_name );
228
- $selected_editor = $instance[ $selected_editor_name ];
229
- if( ! empty( $selected_editor ) ) {
230
$instance[ $selected_editor_name ] = in_array( $selected_editor, array( 'tinymce', 'tmce', 'html' ) ) ? $selected_editor : $this->default_editor;
231
}
232
return $instance;
@@ -236,8 +236,8 @@ class SiteOrigin_Widget_Field_TinyMCE extends SiteOrigin_Widget_Field_Text_Input
236
$v_name = $base_name;
237
if( strpos($v_name, '][') !== false ) {
238
// Remove this splitter
239
- $v_name = substr( $v_name, strpos($v_name, '][') + 2 );
240
}
241
return $v_name . '_selected_editor';
242
}
243
- }
225
226
public function sanitize_instance( $instance ) {
227
$selected_editor_name = $this->get_selected_editor_field_name( $this->base_name );
228
+ if( ! empty( $instance[ $selected_editor_name ] ) ) {
229
+ $selected_editor = $instance[ $selected_editor_name ];
230
$instance[ $selected_editor_name ] = in_array( $selected_editor, array( 'tinymce', 'tmce', 'html' ) ) ? $selected_editor : $this->default_editor;
231
}
232
return $instance;
236
$v_name = $base_name;
237
if( strpos($v_name, '][') !== false ) {
238
// Remove this splitter
239
+ $v_name = substr( $v_name, strrpos($v_name, '][') + 2 );
240
}
241
return $v_name . '_selected_editor';
242
}
243
+ }
base/inc/post-selector.php CHANGED
@@ -65,6 +65,10 @@ function siteorigin_widget_post_selector_process_query($query){
65
}
66
}
67
68
if ( ! empty( $query['sticky'] ) ) {
69
switch($query['sticky']){
70
case 'ignore' :
@@ -122,6 +126,15 @@ function siteorigin_widget_post_selector_form_fields(){
122
$return['tax_query'] .= '<input type="text" name="tax_query" class="" placeholder="search" />';
123
$return['tax_query'] .= '</label>';
124
125
126
// The order by field
127
$return['orderby'] = '';
@@ -314,4 +327,4 @@ function siteorigin_widget_post_selector_search_taxonomy_terms(){
314
echo json_encode($return);
315
exit();
316
}
317
- add_action('wp_ajax_sow_search_terms', 'siteorigin_widget_post_selector_search_taxonomy_terms');
65
}
66
}
67
68
+ if ( ! empty( $query['date_query'] ) ) {
69
+ $query['date_query'] = json_decode( $query['date_query'], true );
70
+ }
71
+
72
if ( ! empty( $query['sticky'] ) ) {
73
switch($query['sticky']){
74
case 'ignore' :
126
$return['tax_query'] .= '<input type="text" name="tax_query" class="" placeholder="search" />';
127
$return['tax_query'] .= '</label>';
128
129
+ $return['date_query'] = '';
130
+ $return['date_query'] .= '<label><span>' . __('Date range', 'so-widgets-bundle') . '</span>';
131
+ $return['date_query'] .= __( 'From', 'so-widgets-bundle' );
132
+ $return['date_query'] .= '<input type="date" name="after" class="" />';
133
+ $return['date_query'] .= __( 'To', 'so-widgets-bundle' );
134
+ $return['date_query'] .= '<input type="date" name="before" class="" />';
135
+ $return['date_query'] .= '<small>' . __('In the format \'yyyy-mm-dd\'.', 'so-widgets-bundle') . '</small>';
136
+ $return['date_query'] .= '</label>';
137
+
138
139
// The order by field
140
$return['orderby'] = '';
327
echo json_encode($return);
328
exit();
329
}
330
+ add_action('wp_ajax_sow_search_terms', 'siteorigin_widget_post_selector_search_taxonomy_terms');
base/inc/widgets/base-slider.class.php CHANGED
@@ -289,4 +289,4 @@ abstract class SiteOrigin_Widget_Base_Slider extends SiteOrigin_Widget {
289
}
290
}
291
292
- }
289
}
290
}
291
292
+ }
base/js/admin.js CHANGED
@@ -454,7 +454,7 @@
454
// Toggle display of the existing content
455
$.find('.select-content-button, .button-close').click( function(e) {
456
e.preventDefault();
457
-
458
$(this).blur();
459
var $s = $.find('.existing-content-selector');
460
$s.toggle();
@@ -742,9 +742,11 @@
742
});
743
} );
744
745
- $el.find('> .siteorigin-widget-field-repeater-top > .siteorigin-widget-field-repeater-expend').click( function(e){
746
e.preventDefault();
747
- $el.closest('.siteorigin-widget-field-repeater').find('> .siteorigin-widget-field-repeater-items').slideToggle('fast');
748
} );
749
} );
750
};
@@ -834,6 +836,7 @@
834
}
835
e.preventDefault();
836
$(this).closest('.siteorigin-widget-field-repeater-item').find('.siteorigin-widget-field-repeater-item-form').eq(0).slideToggle('fast', function () {
837
if($(this).is(':visible')) {
838
$(this).trigger('slideToggleOpenComplete');
839
}
@@ -1122,4 +1125,4 @@ var sowEmitters = {
1122
return match.split(',').map( function(s) { return s.trim(); } ).indexOf( val ) !== -1;
1123
} );
1124
}
1125
- };
454
// Toggle display of the existing content
455
$.find('.select-content-button, .button-close').click( function(e) {
456
e.preventDefault();
457
+
458
$(this).blur();
459
var $s = $.find('.existing-content-selector');
460
$s.toggle();
742
});
743
} );
744
745
+ $el.find('> .siteorigin-widget-field-repeater-top > .siteorigin-widget-field-repeater-expand').click( function(e){
746
e.preventDefault();
747
+ $el.closest('.siteorigin-widget-field-repeater').find('> .siteorigin-widget-field-repeateritems-').slideToggle('fast', function() {
748
+ $(window).resize();
749
+ });
750
} );
751
} );
752
};
836
}
837
e.preventDefault();
838
$(this).closest('.siteorigin-widget-field-repeater-item').find('.siteorigin-widget-field-repeater-item-form').eq(0).slideToggle('fast', function () {
839
+ $(window).resize();
840
if($(this).is(':visible')) {
841
$(this).trigger('slideToggleOpenComplete');
842
}
1125
return match.split(',').map( function(s) { return s.trim(); } ).indexOf( val ) !== -1;
1126
} );
1127
}
1128
+ };
base/js/admin.min.js CHANGED
@@ -1 +1 @@
1
- !function(e){e.fn.sowSetupForm=function(){return e(this).each(function(i,t){var n,a,r=e(t),s=!0,o=r.find("input[name]");if(o.length&&-1!==o.attr("name").indexOf("__i__"))return this;if(r.is(".siteorigin-widget-form-main")){if(r.data("sow-form-setup")===!0)return!0;if(e("body").hasClass("widgets-php")&&!r.is(":visible")&&0===r.closest(".panel-dialog").length)return!0;r.on("sowstatechange",function(i,t,n){r.find("[data-state-handler]").each(function(){var i=e(this),a=e.extend({},i.data("state-handler"),s?i.data("state-handler-initial"):{});if(0===Object.keys(a).length)return!0;var r,o,d,l,f,g,c={},u=window.sowForms.getRepeaterId(i);if(u!==!1){var p={};for(var m in a)p[m.replace("{$repeater}",u)]=a[m];a=p}for(var m in a)if(f=!1,r=m.match(/^([a-zA-Z0-9_-]+)(\[([a-zA-Z0-9_\-,]+)\])?(\[\])?#x2F;),null!==r){if(o={group:"default",name:"",multi:!1},void 0!==r[2]?(o.group=r[1],o.name=r[3]):o.name=r[0],o.multi=void 0!==r[4],"_else"===o.group)o.group=o.name,o.name="",f=o.group===t&&"undefined"==typeof c[o.group];else{g=o.name.split(",").map(function(e){return e.trim()});for(var w=0;w<g.length&&!(f=o.group===t&&g[w]===n);w++);}if(f){d=a[m],o.multi||(d=[d]);for(var w=0;w<d.length;w++)l="undefined"!=typeof d[w][1]&&Boolean(d[w][1])?i.find(d[w][1]):i,l[d[w][0]].apply(l,"undefined"!=typeof d[w][2]?d[w][2]:[]);c[o.group]=!0}}})}),r.sowSetupPreview(),n=r}else n=r.closest(".siteorigin-widget-form-main");a=n.find("> .siteorigin-widgets-form-id").val();var d=r.find("> .siteorigin-widget-field");d.find("> .siteorigin-widget-section").sowSetupForm(),d.filter(".siteorigin-widget-field-type-widget:not(:has(> .siteorigin-widget-section))").sowSetupForm(),d.find(".siteorigin-widget-input").each(function(i,t){null===e(t).data("original-name")&&e(t).data("original-name",e(t).attr("name"))}),d.find("> .siteorigin-widget-field-repeater").sowSetupRepeater(),r.find(".siteorigin-widget-field-repeater-item").sowSetupRepeaterItems(),d.find("> .siteorigin-widget-input-color").wpColorPicker(),d.find("> .media-field-wrapper").each(function(){var i=e(this),t=i.closest(".siteorigin-widget-field");i.find("a.media-upload-button").click(function(i){if("undefined"!=typeof wp.media){var n=e(this),a=e(this).closest(".siteorigin-widget-field"),r=e(this).data("frame");return r?(r.open(),!1):(r=wp.media({title:n.data("choose"),library:{type:n.data("library").split(",").map(function(e){return e.trim()})},button:{text:n.data("update"),close:!1}}),n.data("frame",r),r.on("select",function(){var e=r.state().get("selection").first().attributes;a.find(".current .title").html(e.title);var i=a.find("input[type=hidden]");i.val(e.id),i.trigger("change"),"undefined"!=typeof e.sizes?"undefined"!=typeof e.sizes.thumbnail?a.find(".current .thumbnail").attr("src",e.sizes.thumbnail.url).fadeIn():a.find(".current .thumbnail").attr("src",e.sizes.full.url).fadeIn():a.find(".current .thumbnail").attr("src",e.icon).fadeIn(),t.find(".media-remove-button").removeClass("remove-hide"),r.close()}),r.open(),!1)}}),i.find(".current").mouseenter(function(){var i=e(this).find(".title");""!==i.html()&&i.fadeIn("fast")}).mouseleave(function(){e(this).find(".title").clearQueue().fadeOut("fast")}),t.find("a.media-remove-button").click(function(i){i.preventDefault(),t.find(".current .title").html(""),t.find("input[type=hidden]").val(""),t.find(".current .thumbnail").fadeOut("fast"),e(this).addClass("remove-hide")})}),d.filter(".siteorigin-widget-field-type-widget, .siteorigin-widget-field-type-section").find("> label").click(function(){e(this);e(this).toggleClass("siteorigin-widget-section-visible"),e(this).siblings(".siteorigin-widget-section").slideToggle(function(){e(window).resize(),e(this).find("> .siteorigin-widget-field-container-state").val(e(this).is(":visible")?"open":"closed")})});var l={};d.filter(".siteorigin-widget-field-type-icon").each(function(){var i=e(this),t=i.find(".siteorigin-widget-icon-selector"),n=t.find(".siteorigin-widget-icon-icon"),a=i.find(".siteorigin-widget-icon-selector-current");a.click(function(){t.slideToggle()});var r=function(){var i=t.find("select.siteorigin-widget-icon-family").val(),r=t.find(".siteorigin-widget-icon-icons");if("undefined"!=typeof l[i]){r.empty(),0===e("#siteorigin-widget-font-"+i).length&&e("<link rel='stylesheet' type='text/css'>").attr("id","siteorigin-widget-font-"+i).attr("href",l[i].style_uri).appendTo("head");for(var s in l[i].icons){var o=e('<div data-sow-icon="'+l[i].icons[s]+'"/>').attr("data-value",i+"-"+s).addClass("sow-icon-"+i).addClass("siteorigin-widget-icon-icons-icon").click(function(){var s=e(this);s.hasClass("siteorigin-widget-active")?(s.removeClass("siteorigin-widget-active"),n.val(""),a.find("span").hide()):(r.find(".siteorigin-widget-icon-icons-icon").removeClass("siteorigin-widget-active"),s.addClass("siteorigin-widget-active"),n.val(s.data("value")),a.find("span").show().attr("data-sow-icon",s.attr("data-sow-icon")).attr("class","").addClass("sow-icon-"+i)),n.trigger("change"),t.slideUp()});r.append(o),n.val()===i+"-"+s&&(o.hasClass("siteorigin-widget-active")||o.click(),o.addClass("siteorigin-widget-active"))}r.prepend(r.find(".siteorigin-widget-active"))}},s=function(){var i=t.find("select.siteorigin-widget-icon-family").val();"undefined"!=typeof i&&""!==i&&("undefined"==typeof l[i]?e.getJSON(soWidgets.ajaxurl,{action:"siteorigin_widgets_get_icons",family:t.find("select.siteorigin-widget-icon-family").val()},function(e){l[i]=e,r()}):r())};s(),t.find("select.siteorigin-widget-icon-family").change(function(){t.find(".siteorigin-widget-icon-icons").empty(),s()})}),d.filter(".siteorigin-widget-field-type-slider").each(function(){var i=e(this),t=i.find('input[type="number"]'),n=i.find(".siteorigin-widget-value-slider");n.slider({max:parseInt(t.attr("max")),min:parseInt(t.attr("min")),value:parseInt(t.val()),slide:function(e,n){t.val(parseInt(n.value)),i.find(".siteorigin-widget-slider-value").html(n.value)}})}),d.filter(".siteorigin-widget-field-type-link").each(function(){var i=e(this),t=null,n=function(){null!==t&&t.abort();var n=i.find(".content-text-search").val(),a=i.find("ul.posts").empty().addClass("loading");e.get(soWidgets.ajaxurl,{action:"so_widgets_search_posts",query:n},function(i){for(var t=0;t<i.length;t++)""===i[t].post_title&&(i[t].post_title="&nbsp;"),a.append(e("<li>").addClass("post").html(i[t].post_title+"<span>("+i[t].post_type+")</span>").data(i[t]));a.removeClass("loading")})};i.find(".select-content-button, .button-close").click(function(t){t.preventDefault(),e(this).blur();var a=i.find(".existing-content-selector");a.toggle(),a.is(":visible")&&0===a.find("ul.posts li").length&&n()}),i.on("click",".posts li",function(t){t.preventDefault();var n=e(this);i.find("input.siteorigin-widget-input").val("post: "+n.data("ID")),i.find(".existing-content-selector").toggle()});var a=null;i.find(".content-text-search").keyup(function(){null!==a&&clearTimeout(a),a=setTimeout(function(){n()},500)})});var f=function(){var i=e(this),t=i.closest("[data-state-emitter]").data("state-emitter");if("undefined"!=typeof t){var a=function(t,n){if("undefined"==typeof sowEmitters[t.callback]||"_"===t.callback.substr(0,1))return n;var a=window.sowForms.getRepeaterId(i);return a!==!1&&(t.args=t.args.map(function(e){return e.replace("{$repeater}",a)})),e.extend(n,sowEmitters[t.callback](i.val(),t.args))},r={"default":""};"undefined"==typeof t.length&&(t=[t]);for(var s=0;s<t.length;s++)r=a(t[s],r);var o=n.data("states");"undefined"==typeof o&&(o={"default":""});for(var d in r)("undefined"==typeof o[d]||r[d]!==o[d])&&(o[d]=r[d],n.trigger("sowstatechange",[d,r[d]]));n.data("states",o)}};d.filter("[data-state-emitter]").each(function(){e(this).find(".siteorigin-widget-input").on("keyup change",f),e(this).find(".siteorigin-widget-input").each(function(){var i=e(this);i.is(":radio")?i.is(":checked")&&f.call(i[0]):f.call(i[0])})}),r.trigger("sowsetupform",d).data("sow-form-setup",!0),r.find(".siteorigin-widget-field-repeater-item").trigger("updateFieldPositions"),s=!1})},e.fn.sowSetupPreview=function(){var i=e(this),t=i.siblings(".siteorigin-widget-preview");t.find("> a").click(function(t){t.preventDefault();var n={};i.find("*[name]").each(function(){var i=e(this),t=/[a-zA-Z0-9\-]+\[[a-zA-Z0-9]+\]\[(.*)\]/.exec(i.attr("name"));if(void 0===t)return!0;t=t[1];var a=t.split("][");a=a.map(function(e){return!isNaN(parseFloat(e))&&isFinite(e)?parseInt(e):e});for(var r=n,s=0;s<a.length;s++)if(s===a.length-1)if("checkbox"===i.attr("type"))i.is(":checked")?r[a[s]]=""!==i.val()?i.val():!0:r[a[s]]=!1;else if("radio"===i.attr("type"))i.is(":checked")&&(r[a[s]]=""!==i.val()?i.val():!0);else if("TEXTAREA"===i.prop("tagName")&&i.hasClass("wp-editor-area")){var o=null;"undefined"!=typeof tinyMCE&&(o=tinyMCE.get(i.attr("id"))),null===o||"function"!=typeof o.getContent||o.isHidden()?r[a[s]]=i.val():r[a[s]]=o.getContent()}else r[a[s]]=i.val();else"undefined"==typeof r[a[s]]&&(r[a[s]]={}),r=r[a[s]]});var a=e(e("#so-widgets-bundle-tpl-preview-dialog").html().trim()).appendTo("body");a.find('input[name="data"]').val(JSON.stringify(n)),a.find('input[name="class"]').val(i.data("class")),a.find("iframe").on("load",function(){e(this).css("visibility","visible")}),a.find("form").submit(),a.find(".close").click(function(){a.remove()})})},e.fn.sowSetupRepeater=function(){return e(this).each(function(i,t){var n=e(t),a=n.find(".siteorigin-widget-field-repeater-items"),r=n.data("repeater-name");a.bind("updateFieldPositions",function(){var i=e(this),t=i.find("> .siteorigin-widget-field-repeater-item");t.each(function(i,t){e(t).find(".siteorigin-widget-input").each(function(t,n){var a=e(n).data("repeater-positions");"undefined"==typeof a&&(a={}),a[r]=i,e(n).data("repeater-positions",a)})}),i.find(".siteorigin-widget-input").each(function(i,t){var n=e(t).data("repeater-positions"),a=e(t);if("undefined"!=typeof n){var r=a.data("original-name");if("undefined"==typeof r&&(a.data("original-name",a.attr("name")),r=a.attr("name")),!r)return;for(var s in n)r=r.replace("#"+s+"#",n[s]);e(t).attr("name",r)}});var a=n.data("scroll-count")?parseInt(n.data("scroll-count")):0;if(a>0&&t.length>a){var s=t.first().outerHeight();i.css("max-height",s*a).css("overflow","auto")}else i.css("max-height","").css("overflow","")}),a.sortable({handle:".siteorigin-widget-field-repeater-item-top",items:"> .siteorigin-widget-field-repeater-item",update:function(){a.trigger("updateFieldPositions")}}),a.trigger("updateFieldPositions"),n.find("> .siteorigin-widget-field-repeater-add").disableSelection().click(function(i){i.preventDefault(),n.closest(".siteorigin-widget-field-repeater").sowAddRepeaterItem().find("> .siteorigin-widget-field-repeater-items").slideDown("fast",function(){e(window).resize()})}),n.find("> .siteorigin-widget-field-repeater-top > .siteorigin-widget-field-repeater-expend").click(function(e){e.preventDefault(),n.closest(".siteorigin-widget-field-repeater").find("> .siteorigin-widget-field-repeater-items").slideToggle("fast")})})},e.fn.sowAddRepeaterItem=function(){return e(this).each(function(i,t){var n=e(t),a=n.find("> .siteorigin-widget-field-repeater-items").children().length+1,r=e("<div>"+n.find("> .siteorigin-widget-field-repeater-item-html").html()+"</div>");r.find("[data-name]").each(function(){var i=e(this);0===i.closest(".siteorigin-widget-field-repeater-item-html").length&&i.attr("name",e(this).data("name"))});var s=r.html().replace(/_id_/g,a),o="undefined"!=typeof n.attr("readonly"),d=e('<div class="siteorigin-widget-field-repeater-item ui-draggable" />').append(e('<div class="siteorigin-widget-field-repeater-item-top" />').append(e('<div class="siteorigin-widget-field-expand" />')).append(o?"":e('<div class="siteorigin-widget-field-copy" />')).append(o?"":e('<div class="siteorigin-widget-field-remove" />')).append(e("<h4 />").html(n.data("item-name")))).append(e('<div class="siteorigin-widget-field-repeater-item-form" />').html(s));n.find("> .siteorigin-widget-field-repeater-items").append(d).sortable("refresh").trigger("updateFieldPositions"),d.sowSetupRepeaterItems(),d.hide().slideDown("fast",function(){e(window).resize()})})},e.fn.sowRemoveRepeaterItem=function(){return e(this).each(function(i,t){var n=e(this).closest(".siteorigin-widget-field-repeater-items");e(this).remove(),n.sortable("refresh").trigger("updateFieldPositions")})},e.fn.sowSetupRepeaterItems=function(){return e(this).each(function(i,t){var n=e(t);if("undefined"==typeof n.data("sowrepeater-actions-setup")){var a=n.closest(".siteorigin-widget-field-repeater"),r=n.find("> .siteorigin-widget-field-repeater-item-top"),s=a.data("item-label");if(s&&s.selector){var o=function(){var e=s.hasOwnProperty("valueMethod")&&s.valueMethod?s.valueMethod:"val",i=n.find(s.selector)[e]();i&&(i.length>80&&(i=i.substr(0,79)+"..."),r.find("h4").text(i))};o();var d=s.hasOwnProperty("updateEvent")&&s.updateEvent?s.updateEvent:"change";n.bind(d,o)}r.click(function(i){"siteorigin-widget-field-remove"!==i.target.className&&"siteorigin-widget-field-copy"!==i.target.className&&(i.preventDefault(),e(this).closest(".siteorigin-widget-field-repeater-item").find(".siteorigin-widget-field-repeater-item-form").eq(0).slideToggle("fast",function(){e(this).is(":visible")?e(this).trigger("slideToggleOpenComplete"):e(this).trigger("slideToggleCloseComplete")}))}),r.find(".siteorigin-widget-field-remove").click(function(i){if(i.preventDefault(),confirm(soWidgets.sure)){var t=e(this).closest(".siteorigin-widget-field-repeater-items");e(this).closest(".siteorigin-widget-field-repeater-item").slideUp("fast",function(){e(this).remove(),t.sortable("refresh").trigger("updateFieldPositions"),e(window).resize()})}}),r.find(".siteorigin-widget-field-copy").click(function(i){i.preventDefault();var t=e(this).closest(".siteorigin-widget-form-main"),a=e(this).closest(".siteorigin-widget-field-repeater-item"),r=a.clone(),s=a.closest(".siteorigin-widget-field-repeater-items"),o=s.children().length,d={};r.find("*[name]").each(function(){var i=e(this),s=i.attr("id"),l=i.attr("name");if(i.is("textarea")&&i.parent().is(".wp-editor-container")&&"undefined"!=typeof tinymce){i.parent().empty().append(i),i.css("display","");var f=tinymce.get(s);f&&i.val(f.getContent())}else if(i.is(".wp-color-picker")){var g=i.closest(".wp-picker-container"),c=i.closest(".siteorigin-widget-field");g.remove(),c.append(i.remove())}else{var u=a.find('[name="'+l+'"]');u.length&&null!=u.val()&&i.val(u.val())}if(s){var p=s.replace(/-\d+#x2F;,"");d[p]||(d[p]=t.find(".siteorigin-widget-input[id^="+p+"]").not("[id*=_id_]").length+1);var m=p+"-"+d[p]++;i.attr("id",m),r.find("label[for="+s+"]").attr("for",m),r.find("[id*="+s+"]").each(function(){var i=e(this).attr("id"),t=i.replace(s,m);e(this).attr("id",t)}),"undefined"!=typeof tinymce&&tinymce.get(m)&&tinymce.get(m).remove()}var w=a.parents(".siteorigin-widget-field-repeater").length,v=e("body");(v.hasClass("wp-customizer")||v.hasClass("widgets-php"))&&0==n.closest(".panel-dialog").length&&(w+=1);var h=l.replace(new RegExp("((?:.*?\\[\\d+\\]){"+(w-1).toString()+"})?(.*?\\[)\\d+(\\])"),"$1$2"+o.toString()+"$3");i.attr("name",h),i.data("original-name",h)}),s.append(r).sortable("refresh").trigger("updateFieldPositions"),r.sowSetupRepeaterItems(),r.hide().slideDown("fast",function(){e(window).resize()})}),n.find("> .siteorigin-widget-field-repeater-item-form").sowSetupForm(),n.data("sowrepeater-actions-setup",!0)}})};var i={getRepeaterId:function(e){"undefined"==typeof this.id&&(this.id=1);var i=e.closest(".siteorigin-widget-field-repeater-item");if(i.length){var t=i.data("item-id");return void 0===t&&(t=this.id++),i.data("item-id",t),t}return!1},getWidgetFieldVariable:function(e,i,t){var n=window.sow_field_javascript_variables[e];i=i.replace(/\[#.*?#\]/g,"");for(var a=/[a-zA-Z0-9\-]+(?:\[c?[0-9]+\])?\[(.*)\]/.exec(i)[1],r=a.split("]["),s=r.length?n:null;r.length;)s=s[r.shift()];return s[t]},fetchWidgetVariable:function(i,t,n){window.sowVars=window.sowVars||{},"undefined"==typeof window.sowVars[t]?e.post(soWidgets.ajaxurl,{action:"sow_get_javascript_variables",widget:t,key:i},function(e){window.sowVars[t]=e,n(window.sowVars[t][i])}):n(window.sowVars[t][i])}};window.sowForms=i,e(".widgets-holder-wrap").on("click",".widget:has(.siteorigin-widget-form-main) .widget-top",function(){var i=e(this).closest(".widget").find(".siteorigin-widget-form-main");setTimeout(function(){i.sowSetupForm()},200)}),e("body").hasClass("wp-customizer")&&e(document).on("widget-added",function(e,i){i.find(".siteorigin-widget-form").sowSetupForm()}),e(document).on("dialogopen",function(i){e(i.target).find(".siteorigin-widget-form-main").sowSetupForm()}),e(document).trigger("sowadminloaded")}(jQuery);var sowEmitters={_match:function(e,i){"undefined"==typeof i&&(i=".*");var t=new RegExp("^([a-zA-Z0-9_-]+)(\\[([a-zA-Z0-9_-]+)\\])? *: *("+i+") *quot;),n=t.exec(e);if(null===n)return!1;var a="",r="default";return void 0!==n[3]?(r=n[1],a=n[3]):a=n[1],{match:n[4].trim(),group:r,state:a}},_checker:function(e,i,t,n){var a={};"undefined"==typeof i.length&&(i=[i]);for(var r,s=0;s<i.length;s++)r=sowEmitters._match(i[s],t),r!==!1&&("_true"===r.match||n(e,i,r.match))&&(a[r.group]=r.state);return a},select:function(e,i){"undefined"==typeof i.length&&(i=[i]);for(var t={},n=0;n<i.length;n++)""===i[n]&&(i[n]="default"),t[i[n]]=e;return t},conditional:function(val,args){return sowEmitters._checker(val,args,"[^;{}]*",function(val,args,match){return eval(match)})},"in":function(e,i){return sowEmitters._checker(e,i,"[^;{}]*",function(e,i,t){return-1!==t.split(",").map(function(e){return e.trim()}).indexOf(e)})}};
1
+ !function(e){e.fn.sowSetupForm=function(){return e(this).each(function(i,t){var n,a,r=e(t),s=!0,o=r.find("input[name]");if(o.length&&-1!==o.attr("name").indexOf("__i__"))return this;if(r.is(".siteorigin-widget-form-main")){if(r.data("sow-form-setup")===!0)return!0;if(e("body").hasClass("widgets-php")&&!r.is(":visible")&&0===r.closest(".panel-dialog").length)return!0;r.on("sowstatechange",function(i,t,n){r.find("[data-state-handler]").each(function(){var i=e(this),a=e.extend({},i.data("state-handler"),s?i.data("state-handler-initial"):{});if(0===Object.keys(a).length)return!0;var r,o,d,l,f,g,c={},u=window.sowForms.getRepeaterId(i);if(u!==!1){var p={};for(var w in a)p[w.replace("{$repeater}",u)]=a[w];a=p}for(var w in a)if(f=!1,r=w.match(/^([a-zA-Z0-9_-]+)(\[([a-zA-Z0-9_\-,]+)\])?(\[\])?#x2F;),null!==r){if(o={group:"default",name:"",multi:!1},void 0!==r[2]?(o.group=r[1],o.name=r[3]):o.name=r[0],o.multi=void 0!==r[4],"_else"===o.group)o.group=o.name,o.name="",f=o.group===t&&"undefined"==typeof c[o.group];else{g=o.name.split(",").map(function(e){return e.trim()});for(var m=0;m<g.length&&!(f=o.group===t&&g[m]===n);m++);}if(f){d=a[w],o.multi||(d=[d]);for(var m=0;m<d.length;m++)l="undefined"!=typeof d[m][1]&&Boolean(d[m][1])?i.find(d[m][1]):i,l[d[m][0]].apply(l,"undefined"!=typeof d[m][2]?d[m][2]:[]);c[o.group]=!0}}})}),r.sowSetupPreview(),n=r}else n=r.closest(".siteorigin-widget-form-main");a=n.find("> .siteorigin-widgets-form-id").val();var d=r.find("> .siteorigin-widget-field");d.find("> .siteorigin-widget-section").sowSetupForm(),d.filter(".siteorigin-widget-field-type-widget:not(:has(> .siteorigin-widget-section))").sowSetupForm(),d.find(".siteorigin-widget-input").each(function(i,t){null===e(t).data("original-name")&&e(t).data("original-name",e(t).attr("name"))}),d.find("> .siteorigin-widget-field-repeater").sowSetupRepeater(),r.find(".siteorigin-widget-field-repeater-item").sowSetupRepeaterItems(),d.find("> .siteorigin-widget-input-color").wpColorPicker(),d.find("> .media-field-wrapper").each(function(){var i=e(this),t=i.closest(".siteorigin-widget-field");i.find("a.media-upload-button").click(function(i){if("undefined"!=typeof wp.media){var n=e(this),a=e(this).closest(".siteorigin-widget-field"),r=e(this).data("frame");return r?(r.open(),!1):(r=wp.media({title:n.data("choose"),library:{type:n.data("library").split(",").map(function(e){return e.trim()})},button:{text:n.data("update"),close:!1}}),n.data("frame",r),r.on("select",function(){var e=r.state().get("selection").first().attributes;a.find(".current .title").html(e.title);var i=a.find("input[type=hidden]");i.val(e.id),i.trigger("change"),"undefined"!=typeof e.sizes?"undefined"!=typeof e.sizes.thumbnail?a.find(".current .thumbnail").attr("src",e.sizes.thumbnail.url).fadeIn():a.find(".current .thumbnail").attr("src",e.sizes.full.url).fadeIn():a.find(".current .thumbnail").attr("src",e.icon).fadeIn(),t.find(".media-remove-button").removeClass("remove-hide"),r.close()}),r.open(),!1)}}),i.find(".current").mouseenter(function(){var i=e(this).find(".title");""!==i.html()&&i.fadeIn("fast")}).mouseleave(function(){e(this).find(".title").clearQueue().fadeOut("fast")}),t.find("a.media-remove-button").click(function(i){i.preventDefault(),t.find(".current .title").html(""),t.find("input[type=hidden]").val(""),t.find(".current .thumbnail").fadeOut("fast"),e(this).addClass("remove-hide")})}),d.filter(".siteorigin-widget-field-type-widget, .siteorigin-widget-field-type-section").find("> label").click(function(){e(this);e(this).toggleClass("siteorigin-widget-section-visible"),e(this).siblings(".siteorigin-widget-section").slideToggle(function(){e(window).resize(),e(this).find("> .siteorigin-widget-field-container-state").val(e(this).is(":visible")?"open":"closed")})});var l={};d.filter(".siteorigin-widget-field-type-icon").each(function(){var i=e(this),t=i.find(".siteorigin-widget-icon-selector"),n=t.find(".siteorigin-widget-icon-icon"),a=i.find(".siteorigin-widget-icon-selector-current");a.click(function(){t.slideToggle()});var r=function(){var i=t.find("select.siteorigin-widget-icon-family").val(),r=t.find(".siteorigin-widget-icon-icons");if("undefined"!=typeof l[i]){r.empty(),0===e("#siteorigin-widget-font-"+i).length&&e("<link rel='stylesheet' type='text/css'>").attr("id","siteorigin-widget-font-"+i).attr("href",l[i].style_uri).appendTo("head");for(var s in l[i].icons){var o=e('<div data-sow-icon="'+l[i].icons[s]+'"/>').attr("data-value",i+"-"+s).addClass("sow-icon-"+i).addClass("siteorigin-widget-icon-icons-icon").click(function(){var s=e(this);s.hasClass("siteorigin-widget-active")?(s.removeClass("siteorigin-widget-active"),n.val(""),a.find("span").hide()):(r.find(".siteorigin-widget-icon-icons-icon").removeClass("siteorigin-widget-active"),s.addClass("siteorigin-widget-active"),n.val(s.data("value")),a.find("span").show().attr("data-sow-icon",s.attr("data-sow-icon")).attr("class","").addClass("sow-icon-"+i)),n.trigger("change"),t.slideUp()});r.append(o),n.val()===i+"-"+s&&(o.hasClass("siteorigin-widget-active")||o.click(),o.addClass("siteorigin-widget-active"))}r.prepend(r.find(".siteorigin-widget-active"))}},s=function(){var i=t.find("select.siteorigin-widget-icon-family").val();"undefined"!=typeof i&&""!==i&&("undefined"==typeof l[i]?e.getJSON(soWidgets.ajaxurl,{action:"siteorigin_widgets_get_icons",family:t.find("select.siteorigin-widget-icon-family").val()},function(e){l[i]=e,r()}):r())};s(),t.find("select.siteorigin-widget-icon-family").change(function(){t.find(".siteorigin-widget-icon-icons").empty(),s()})}),d.filter(".siteorigin-widget-field-type-slider").each(function(){var i=e(this),t=i.find('input[type="number"]'),n=i.find(".siteorigin-widget-value-slider");n.slider({max:parseInt(t.attr("max")),min:parseInt(t.attr("min")),value:parseInt(t.val()),slide:function(e,n){t.val(parseInt(n.value)),i.find(".siteorigin-widget-slider-value").html(n.value)}})}),d.filter(".siteorigin-widget-field-type-link").each(function(){var i=e(this),t=null,n=function(){null!==t&&t.abort();var n=i.find(".content-text-search").val(),a=i.find("ul.posts").empty().addClass("loading");e.get(soWidgets.ajaxurl,{action:"so_widgets_search_posts",query:n},function(i){for(var t=0;t<i.length;t++)""===i[t].post_title&&(i[t].post_title="&nbsp;"),a.append(e("<li>").addClass("post").html(i[t].post_title+"<span>("+i[t].post_type+")</span>").data(i[t]));a.removeClass("loading")})};i.find(".select-content-button, .button-close").click(function(t){t.preventDefault(),e(this).blur();var a=i.find(".existing-content-selector");a.toggle(),a.is(":visible")&&0===a.find("ul.posts li").length&&n()}),i.on("click",".posts li",function(t){t.preventDefault();var n=e(this);i.find("input.siteorigin-widget-input").val("post: "+n.data("ID")),i.find(".existing-content-selector").toggle()});var a=null;i.find(".content-text-search").keyup(function(){null!==a&&clearTimeout(a),a=setTimeout(function(){n()},500)})});var f=function(){var i=e(this),t=i.closest("[data-state-emitter]").data("state-emitter");if("undefined"!=typeof t){var a=function(t,n){if("undefined"==typeof sowEmitters[t.callback]||"_"===t.callback.substr(0,1))return n;var a=window.sowForms.getRepeaterId(i);return a!==!1&&(t.args=t.args.map(function(e){return e.replace("{$repeater}",a)})),e.extend(n,sowEmitters[t.callback](i.val(),t.args))},r={"default":""};"undefined"==typeof t.length&&(t=[t]);for(var s=0;s<t.length;s++)r=a(t[s],r);var o=n.data("states");"undefined"==typeof o&&(o={"default":""});for(var d in r)("undefined"==typeof o[d]||r[d]!==o[d])&&(o[d]=r[d],n.trigger("sowstatechange",[d,r[d]]));n.data("states",o)}};d.filter("[data-state-emitter]").each(function(){e(this).find(".siteorigin-widget-input").on("keyup change",f),e(this).find(".siteorigin-widget-input").each(function(){var i=e(this);i.is(":radio")?i.is(":checked")&&f.call(i[0]):f.call(i[0])})}),r.trigger("sowsetupform",d).data("sow-form-setup",!0),r.find(".siteorigin-widget-field-repeater-item").trigger("updateFieldPositions"),s=!1})},e.fn.sowSetupPreview=function(){var i=e(this),t=i.siblings(".siteorigin-widget-preview");t.find("> a").click(function(t){t.preventDefault();var n={};i.find("*[name]").each(function(){var i=e(this),t=/[a-zA-Z0-9\-]+\[[a-zA-Z0-9]+\]\[(.*)\]/.exec(i.attr("name"));if(void 0===t)return!0;t=t[1];var a=t.split("][");a=a.map(function(e){return!isNaN(parseFloat(e))&&isFinite(e)?parseInt(e):e});for(var r=n,s=0;s<a.length;s++)if(s===a.length-1)if("checkbox"===i.attr("type"))i.is(":checked")?r[a[s]]=""!==i.val()?i.val():!0:r[a[s]]=!1;else if("radio"===i.attr("type"))i.is(":checked")&&(r[a[s]]=""!==i.val()?i.val():!0);else if("TEXTAREA"===i.prop("tagName")&&i.hasClass("wp-editor-area")){var o=null;"undefined"!=typeof tinyMCE&&(o=tinyMCE.get(i.attr("id"))),null===o||"function"!=typeof o.getContent||o.isHidden()?r[a[s]]=i.val():r[a[s]]=o.getContent()}else r[a[s]]=i.val();else"undefined"==typeof r[a[s]]&&(r[a[s]]={}),r=r[a[s]]});var a=e(e("#so-widgets-bundle-tpl-preview-dialog").html().trim()).appendTo("body");a.find('input[name="data"]').val(JSON.stringify(n)),a.find('input[name="class"]').val(i.data("class")),a.find("iframe").on("load",function(){e(this).css("visibility","visible")}),a.find("form").submit(),a.find(".close").click(function(){a.remove()})})},e.fn.sowSetupRepeater=function(){return e(this).each(function(i,t){var n=e(t),a=n.find(".siteorigin-widget-field-repeater-items"),r=n.data("repeater-name");a.bind("updateFieldPositions",function(){var i=e(this),t=i.find("> .siteorigin-widget-field-repeater-item");t.each(function(i,t){e(t).find(".siteorigin-widget-input").each(function(t,n){var a=e(n).data("repeater-positions");"undefined"==typeof a&&(a={}),a[r]=i,e(n).data("repeater-positions",a)})}),i.find(".siteorigin-widget-input").each(function(i,t){var n=e(t).data("repeater-positions"),a=e(t);if("undefined"!=typeof n){var r=a.data("original-name");if("undefined"==typeof r&&(a.data("original-name",a.attr("name")),r=a.attr("name")),!r)return;for(var s in n)r=r.replace("#"+s+"#",n[s]);e(t).attr("name",r)}});var a=n.data("scroll-count")?parseInt(n.data("scroll-count")):0;if(a>0&&t.length>a){var s=t.first().outerHeight();i.css("max-height",s*a).css("overflow","auto")}else i.css("max-height","").css("overflow","")}),a.sortable({handle:".siteorigin-widget-field-repeater-item-top",items:"> .siteorigin-widget-field-repeater-item",update:function(){a.trigger("updateFieldPositions")}}),a.trigger("updateFieldPositions"),n.find("> .siteorigin-widget-field-repeater-add").disableSelection().click(function(i){i.preventDefault(),n.closest(".siteorigin-widget-field-repeater").sowAddRepeaterItem().find("> .siteorigin-widget-field-repeater-items").slideDown("fast",function(){e(window).resize()})}),n.find("> .siteorigin-widget-field-repeater-top > .siteorigin-widget-field-repeater-expand").click(function(i){i.preventDefault(),n.closest(".siteorigin-widget-field-repeater").find("> .siteorigin-widget-field-repeateritems-").slideToggle("fast",function(){e(window).resize()})})})},e.fn.sowAddRepeaterItem=function(){return e(this).each(function(i,t){var n=e(t),a=n.find("> .siteorigin-widget-field-repeater-items").children().length+1,r=e("<div>"+n.find("> .siteorigin-widget-field-repeater-item-html").html()+"</div>");r.find("[data-name]").each(function(){var i=e(this);0===i.closest(".siteorigin-widget-field-repeater-item-html").length&&i.attr("name",e(this).data("name"))});var s=r.html().replace(/_id_/g,a),o="undefined"!=typeof n.attr("readonly"),d=e('<div class="siteorigin-widget-field-repeater-item ui-draggable" />').append(e('<div class="siteorigin-widget-field-repeater-item-top" />').append(e('<div class="siteorigin-widget-field-expand" />')).append(o?"":e('<div class="siteorigin-widget-field-copy" />')).append(o?"":e('<div class="siteorigin-widget-field-remove" />')).append(e("<h4 />").html(n.data("item-name")))).append(e('<div class="siteorigin-widget-field-repeater-item-form" />').html(s));n.find("> .siteorigin-widget-field-repeater-items").append(d).sortable("refresh").trigger("updateFieldPositions"),d.sowSetupRepeaterItems(),d.hide().slideDown("fast",function(){e(window).resize()})})},e.fn.sowRemoveRepeaterItem=function(){return e(this).each(function(i,t){var n=e(this).closest(".siteorigin-widget-field-repeater-items");e(this).remove(),n.sortable("refresh").trigger("updateFieldPositions")})},e.fn.sowSetupRepeaterItems=function(){return e(this).each(function(i,t){var n=e(t);if("undefined"==typeof n.data("sowrepeater-actions-setup")){var a=n.closest(".siteorigin-widget-field-repeater"),r=n.find("> .siteorigin-widget-field-repeater-item-top"),s=a.data("item-label");if(s&&s.selector){var o=function(){var e=s.hasOwnProperty("valueMethod")&&s.valueMethod?s.valueMethod:"val",i=n.find(s.selector)[e]();i&&(i.length>80&&(i=i.substr(0,79)+"..."),r.find("h4").text(i))};o();var d=s.hasOwnProperty("updateEvent")&&s.updateEvent?s.updateEvent:"change";n.bind(d,o)}r.click(function(i){"siteorigin-widget-field-remove"!==i.target.className&&"siteorigin-widget-field-copy"!==i.target.className&&(i.preventDefault(),e(this).closest(".siteorigin-widget-field-repeater-item").find(".siteorigin-widget-field-repeater-item-form").eq(0).slideToggle("fast",function(){e(window).resize(),e(this).is(":visible")?e(this).trigger("slideToggleOpenComplete"):e(this).trigger("slideToggleCloseComplete")}))}),r.find(".siteorigin-widget-field-remove").click(function(i){if(i.preventDefault(),confirm(soWidgets.sure)){var t=e(this).closest(".siteorigin-widget-field-repeater-items");e(this).closest(".siteorigin-widget-field-repeater-item").slideUp("fast",function(){e(this).remove(),t.sortable("refresh").trigger("updateFieldPositions"),e(window).resize()})}}),r.find(".siteorigin-widget-field-copy").click(function(i){i.preventDefault();var t=e(this).closest(".siteorigin-widget-form-main"),a=e(this).closest(".siteorigin-widget-field-repeater-item"),r=a.clone(),s=a.closest(".siteorigin-widget-field-repeater-items"),o=s.children().length,d={};r.find("*[name]").each(function(){var i=e(this),s=i.attr("id"),l=i.attr("name");if(i.is("textarea")&&i.parent().is(".wp-editor-container")&&"undefined"!=typeof tinymce){i.parent().empty().append(i),i.css("display","");var f=tinymce.get(s);f&&i.val(f.getContent())}else if(i.is(".wp-color-picker")){var g=i.closest(".wp-picker-container"),c=i.closest(".siteorigin-widget-field");g.remove(),c.append(i.remove())}else{var u=a.find('[name="'+l+'"]');u.length&&null!=u.val()&&i.val(u.val())}if(s){var p=s.replace(/-\d+#x2F;,"");d[p]||(d[p]=t.find(".siteorigin-widget-input[id^="+p+"]").not("[id*=_id_]").length+1);var w=p+"-"+d[p]++;i.attr("id",w),r.find("label[for="+s+"]").attr("for",w),r.find("[id*="+s+"]").each(function(){var i=e(this).attr("id"),t=i.replace(s,w);e(this).attr("id",t)}),"undefined"!=typeof tinymce&&tinymce.get(w)&&tinymce.get(w).remove()}var m=a.parents(".siteorigin-widget-field-repeater").length,v=e("body");(v.hasClass("wp-customizer")||v.hasClass("widgets-php"))&&0==n.closest(".panel-dialog").length&&(m+=1);var h=l.replace(new RegExp("((?:.*?\\[\\d+\\]){"+(m-1).toString()+"})?(.*?\\[)\\d+(\\])"),"$1$2"+o.toString()+"$3");i.attr("name",h),i.data("original-name",h)}),s.append(r).sortable("refresh").trigger("updateFieldPositions"),r.sowSetupRepeaterItems(),r.hide().slideDown("fast",function(){e(window).resize()})}),n.find("> .siteorigin-widget-field-repeater-item-form").sowSetupForm(),n.data("sowrepeater-actions-setup",!0)}})};var i={getRepeaterId:function(e){"undefined"==typeof this.id&&(this.id=1);var i=e.closest(".siteorigin-widget-field-repeater-item");if(i.length){var t=i.data("item-id");return void 0===t&&(t=this.id++),i.data("item-id",t),t}return!1},getWidgetFieldVariable:function(e,i,t){var n=window.sow_field_javascript_variables[e];i=i.replace(/\[#.*?#\]/g,"");for(var a=/[a-zA-Z0-9\-]+(?:\[c?[0-9]+\])?\[(.*)\]/.exec(i)[1],r=a.split("]["),s=r.length?n:null;r.length;)s=s[r.shift()];return s[t]},fetchWidgetVariable:function(i,t,n){window.sowVars=window.sowVars||{},"undefined"==typeof window.sowVars[t]?e.post(soWidgets.ajaxurl,{action:"sow_get_javascript_variables",widget:t,key:i},function(e){window.sowVars[t]=e,n(window.sowVars[t][i])}):n(window.sowVars[t][i])}};window.sowForms=i,e(".widgets-holder-wrap").on("click",".widget:has(.siteorigin-widget-form-main) .widget-top",function(){var i=e(this).closest(".widget").find(".siteorigin-widget-form-main");setTimeout(function(){i.sowSetupForm()},200)}),e("body").hasClass("wp-customizer")&&e(document).on("widget-added",function(e,i){i.find(".siteorigin-widget-form").sowSetupForm()}),e(document).on("dialogopen",function(i){e(i.target).find(".siteorigin-widget-form-main").sowSetupForm()}),e(document).trigger("sowadminloaded")}(jQuery);var sowEmitters={_match:function(e,i){"undefined"==typeof i&&(i=".*");var t=new RegExp("^([a-zA-Z0-9_-]+)(\\[([a-zA-Z0-9_-]+)\\])? *: *("+i+") *quot;),n=t.exec(e);if(null===n)return!1;var a="",r="default";return void 0!==n[3]?(r=n[1],a=n[3]):a=n[1],{match:n[4].trim(),group:r,state:a}},_checker:function(e,i,t,n){var a={};"undefined"==typeof i.length&&(i=[i]);for(var r,s=0;s<i.length;s++)r=sowEmitters._match(i[s],t),r!==!1&&("_true"===r.match||n(e,i,r.match))&&(a[r.group]=r.state);return a},select:function(e,i){"undefined"==typeof i.length&&(i=[i]);for(var t={},n=0;n<i.length;n++)""===i[n]&&(i[n]="default"),t[i[n]]=e;return t},conditional:function(val,args){return sowEmitters._checker(val,args,"[^;{}]*",function(val,args,match){return eval(match)})},"in":function(e,i){return sowEmitters._checker(e,i,"[^;{}]*",function(e,i,t){return-1!==t.split(",").map(function(e){return e.trim()}).indexOf(e)})}};
base/js/posts-selector.js CHANGED
@@ -56,6 +56,7 @@ var soWidgetPostSelector = ( function ($, _) {
56
posts_per_page: null,
57
post__in: null,
58
tax_query: null,
59
60
// The order fields for get_posts.
61
orderby: null,
@@ -81,6 +82,7 @@ var soWidgetPostSelector = ( function ($, _) {
81
if( typeof this.get('post_type') !== 'undefined' ) query.push('post_type=' + this.get('post_type'));
82
if( typeof this.get('post__in') !== 'undefined' && !_.isEmpty( this.get('post__in') ) ) query.push( 'post__in=' + this.get('post__in').join(',') );
83
if( typeof this.get('tax_query') !== 'undefined' && !_.isEmpty( this.get('tax_query') ) ) query.push( 'tax_query=' + this.get('tax_query').join(',') );
84
85
if( typeof this.get('orderby') !== 'undefined' ) query.push( 'orderby=' + this.get('orderby') );
86
if( typeof this.get('order') !== 'undefined' ) query.push( 'order=' + this.get('order') );
@@ -121,6 +123,7 @@ var soWidgetPostSelector = ( function ($, _) {
121
if( params.hasOwnProperty('post_type') ) theQuery.post_type = params.post_type;
122
if( params.hasOwnProperty('post__in') ) theQuery.post__in = params.post__in.split(',');
123
if( params.hasOwnProperty('tax_query') ) theQuery.tax_query = params.tax_query.split(',');
124
125
if( params.hasOwnProperty('orderby') ) theQuery.orderby = params.orderby;
126
if( params.hasOwnProperty('order') ) theQuery.order = params.order;
@@ -329,6 +332,14 @@ var soWidgetPostSelector = ( function ($, _) {
329
this.form.append('<div class="query-builder-form-field ui-front">' + sowPostsSelectorTpl.fields.tax_query + '</div>');
330
if( typeof this.model.get('tax_query') !== 'undefined' ) this.form.find('input[name="tax_query"]').val( this.model.get('tax_query'));
331
332
// The order field
333
this.form.append($('<div class="query-builder-form-field">' + sowPostsSelectorTpl.fields.orderby + '</div>').disableSelection());
334
if( typeof this.model.get('orderby') !== 'undefined' ) this.form.find('select[name="orderby"]').val(this.model.get('orderby'));
@@ -452,7 +463,7 @@ var soWidgetPostSelector = ( function ($, _) {
452
else {
453
this.model.set( 'tax_query', []);
454
}
455
-
456
this.model.set( 'orderby', this.$el.find('*[name="orderby"]').val() );
457
this.model.set( 'order', this.$el.find('*[name="order"]').val() );
458
this.model.set( 'posts_per_page', this.$el.find('*[name="posts_per_page"]').val() );
@@ -710,4 +721,4 @@ var soWidgetPostSelector = ( function ($, _) {
710
});
711
} );
712
713
- } )( jQuery, _ );
56
posts_per_page: null,
57
post__in: null,
58
tax_query: null,
59
+ date_range: null,
60
61
// The order fields for get_posts.
62
orderby: null,
82
if( typeof this.get('post_type') !== 'undefined' ) query.push('post_type=' + this.get('post_type'));
83
if( typeof this.get('post__in') !== 'undefined' && !_.isEmpty( this.get('post__in') ) ) query.push( 'post__in=' + this.get('post__in').join(',') );
84
if( typeof this.get('tax_query') !== 'undefined' && !_.isEmpty( this.get('tax_query') ) ) query.push( 'tax_query=' + this.get('tax_query').join(',') );
85
+ if( typeof this.get('date_query') !== 'undefined' && !_.isEmpty( this.get('date_query') ) ) query.push( 'date_query=' + JSON.stringify(this.get('date_query')) );
86
87
if( typeof this.get('orderby') !== 'undefined' ) query.push( 'orderby=' + this.get('orderby') );
88
if( typeof this.get('order') !== 'undefined' ) query.push( 'order=' + this.get('order') );
123
if( params.hasOwnProperty('post_type') ) theQuery.post_type = params.post_type;
124
if( params.hasOwnProperty('post__in') ) theQuery.post__in = params.post__in.split(',');
125
if( params.hasOwnProperty('tax_query') ) theQuery.tax_query = params.tax_query.split(',');
126
+ if( params.hasOwnProperty('date_query') ) theQuery.date_query = JSON.parse(params.date_query);
127
128
if( params.hasOwnProperty('orderby') ) theQuery.orderby = params.orderby;
129
if( params.hasOwnProperty('order') ) theQuery.order = params.order;
332
this.form.append('<div class="query-builder-form-field ui-front">' + sowPostsSelectorTpl.fields.tax_query + '</div>');
333
if( typeof this.model.get('tax_query') !== 'undefined' ) this.form.find('input[name="tax_query"]').val( this.model.get('tax_query'));
334
335
+ // The date range fields
336
+ this.form.append('<div class="query-builder-form-field">' + sowPostsSelectorTpl.fields.date_query + '</div>');
337
+ if( typeof this.model.get('date_query') !== 'undefined' ) {
338
+ var dateQuery = this.model.get('date_query');
339
+ if( dateQuery.hasOwnProperty('after')) this.form.find('input[name="after"]').val(dateQuery.after);
340
+ if( dateQuery.hasOwnProperty('before')) this.form.find('input[name="before"]').val(dateQuery.before);
341
+ }
342
+
343
// The order field
344
this.form.append($('<div class="query-builder-form-field">' + sowPostsSelectorTpl.fields.orderby + '</div>').disableSelection());
345
if( typeof this.model.get('orderby') !== 'undefined' ) this.form.find('select[name="orderby"]').val(this.model.get('orderby'));
463
else {
464
this.model.set( 'tax_query', []);
465
}
466
+ this.model.set( 'date_query', {after: this.$el.find('*[name="after"]').val(), before: this.$el.find('*[name="before"]').val()});
467
this.model.set( 'orderby', this.$el.find('*[name="orderby"]').val() );
468
this.model.set( 'order', this.$el.find('*[name="order"]').val() );
469
this.model.set( 'posts_per_page', this.$el.find('*[name="posts_per_page"]').val() );
721
});
722
} );
723
724
+ } )( jQuery, _ );
base/js/posts-selector.min.js CHANGED
@@ -1 +1 @@
1
- var soWidgetPostSelector=function(e,t){var s,i,o,n,r,l,d,a;s=self.Post=Backbone.Model.extend({title:null,thumbnail:null,id:null}),i=self.PostCollection=Backbone.Collection.extend({model:s,foundPosts:null,updateWithQuery:function(t){if(""!==t){var s=this;e.post(sowPostsSelectorTpl.ajaxurl,{action:"sow_get_posts",query:t,ignore_pagination:!0},function(e){s.foundPosts=e.found_posts,s.reset(e.posts)})}}}),l=self.Query=Backbone.Model.extend({query:null,syncField:null,post_type:null,terms:null,post_status:null,posts_per_page:null,post__in:null,tax_query:null,orderby:null,order:null,sticky:null,defaults:{post_type:"post",orderby:"post_date",order:"DESC",posts_per_page:"",post_status:"publish",sticky:""},initialize:function(e,t){this.set(this.parseQuery(e.query))},getQuery:function(){var e=[];return"undefined"!=typeof this.get("post_type")&&e.push("post_type="+this.get("post_type")),"undefined"==typeof this.get("post__in")||t.isEmpty(this.get("post__in"))||e.push("post__in="+this.get("post__in").join(",")),"undefined"==typeof this.get("tax_query")||t.isEmpty(this.get("tax_query"))||e.push("tax_query="+this.get("tax_query").join(",")),"undefined"!=typeof this.get("orderby")&&e.push("orderby="+this.get("orderby")),"undefined"!=typeof this.get("order")&&e.push("order="+this.get("order")),"undefined"!=typeof this.get("posts_per_page")&&e.push("posts_per_page="+this.get("posts_per_page")),"undefined"!=typeof this.get("sticky")&&e.push("sticky="+this.get("sticky")),"undefined"!=typeof this.get("additional")&&e.push("additional="+this.get("additional")),e.join("&")},setQuery:function(e){return this.set(this.parseQuery(e)),this},parseQuery:function(e){for(var t,s=/([^&=]+)=?([^&]*)/g,i=/\+/g,o=function(e){return decodeURIComponent(e.replace(i," "))},n={};t=s.exec(e);){var r=o(t[1]),l=o(t[2]);"[]"===r.substring(r.length-2)?(r=r.substring(0,r.length-2),(n[r]||(n[r]=[])).push(l)):n[r]=l}var d={};return n.hasOwnProperty("post_type")&&(d.post_type=n.post_type),n.hasOwnProperty("post__in")&&(d.post__in=n.post__in.split(",")),n.hasOwnProperty("tax_query")&&(d.tax_query=n.tax_query.split(",")),n.hasOwnProperty("orderby")&&(d.orderby=n.orderby),n.hasOwnProperty("order")&&(d.order=n.order),n.hasOwnProperty("posts_per_page")&&(d.posts_per_page=n.posts_per_page),n.hasOwnProperty("sticky")&&(d.sticky=n.sticky),n.hasOwnProperty("additional")&&(d.additional=n.additional),d.query=e,d},sync:function(e,t){if("create"===e){var s=this.syncField.val(),i=this.getQuery();s!==i&&(this.syncField.val(i),this.syncField.trigger("change"))}else this.setQuery(this.syncField.val())},setSyncField:function(e){this.syncField=e}}),a=self.QueryBuilder=Backbone.View.extend({attached:!1,rendered:!1,views:{},activeView:null,events:{"click .media-modal-backdrop, .media-modal-close":"escapeHandler","click .media-toolbar-primary .button":"buttonHandler"},initialize:function(){this.listenTo(this.model,"change",this.queryModelChange);var e=new i;this.views.postSummary=new o({posts:e,el:this.el}),this.views.postSummary.builder=this,this.views.postSummary.posts.updateWithQuery(this.model.getQuery()),this.addSubView("form",new d({el:this.el,model:this.model})),this.addSubView("postsView",new n({el:this.el,posts:e})),this.addSubView("postsSelect",new r({el:this.el,model:this.model})),this.views.form.bind("buttonHandler",this.close,this)},changeModel:function(e){this.model=e,this.render()},render:function(){return this.$el.html(sowPostsSelectorTpl.modal),this.$el.find(".media-toolbar-primary .button").html(this.views[this.activeView].buttonText),this.$el.find(".media-frame-title h1").html(this.views[this.activeView].modalTitle),this.rendered=!0,"postsSelect"!==this.activeView&&this.views.postSummary.render(),this.views[this.activeView].render(),this},close:function(){return this.$el.hide(),this.trigger("close"),this.model.save(),this},open:function(){this.show(),this.setActiveView("form"),this.trigger("open"),this.model.fetch()},save:function(){this.close(),this.model.save(),this.trigger("save")},attach:function(){return this.rendered||this.render(),this.attached||(this.$el.appendTo("body"),this.attached=!0),this},show:function(){this.attach(),this.$el.is(":visible")||this.$el.show()},escapeHandler:function(e){e.preventDefault(),this.close()},buttonHandler:function(e){e.preventDefault(),this.views[this.activeView].buttonHandler().trigger("buttonHandler")},addSubView:function(e,t){this.views[e]=t,t.builder=this,null===this.activeView&&(this.activeView=e)},setActiveView:function(e){this.activeView=e,this.render()},queryModelChange:function(){this.views.postSummary.posts.updateWithQuery(this.model.getQuery())}}),d=self.QueryForm=Backbone.View.extend({buttonText:"Save Query",modalTitle:"Build Posts Query",form:null,initialize:function(e){},render:function(){var t=this;this.form=e('<div class="query-builder-form>"></div>'),this.form.append('<div class="query-builder-form-field">'+sowPostsSelectorTpl.fields.post_type+"</div>"),"undefined"!=typeof this.model.get("post_type")&&this.form.find('select[name="post_type"]').val(this.model.get("post_type")),this.form.append('<div class="query-builder-form-field">'+sowPostsSelectorTpl.fields.post__in+"</div>"),"undefined"!=typeof this.model.get("post__in")&&this.form.find('input[name="post__in"]').val(this.model.get("post__in").join(",")),this.form.append('<div class="query-builder-form-field ui-front">'+sowPostsSelectorTpl.fields.tax_query+"</div>"),"undefined"!=typeof this.model.get("tax_query")&&this.form.find('input[name="tax_query"]').val(this.model.get("tax_query")),this.form.append(e('<div class="query-builder-form-field">'+sowPostsSelectorTpl.fields.orderby+"</div>").disableSelection()),"undefined"!=typeof this.model.get("orderby")&&this.form.find('select[name="orderby"]').val(this.model.get("orderby")),"undefined"!=typeof this.model.get("order")&&this.form.find('input[name="order"]').val(this.model.get("order")),this.form.append('<div class="query-builder-form-field">'+sowPostsSelectorTpl.fields.posts_per_page+"</div>"),"undefined"!=typeof this.model.get("posts_per_page")&&this.form.find('input[name="posts_per_page"]').val(this.model.get("posts_per_page")),this.form.append('<div class="query-builder-form-field">'+sowPostsSelectorTpl.fields.sticky+"</div>"),"undefined"!=typeof this.model.get("sticky")&&this.form.find('select[name="sticky"]').val(this.model.get("sticky")),this.form.append('<div class="query-builder-form-field">'+sowPostsSelectorTpl.fields.additional+"</div>"),"undefined"!=typeof this.model.get("additional")&&this.form.find('input[name="additional"]').val(this.model.get("additional"));var s=this.form.find('input[name="order"]'),i=s.closest(".query-builder-form-field").find(".sow-order-button"),o=function(){"DESC"===s.val()?(i.removeClass("sow-order-button-asc"),i.addClass("sow-order-button-desc")):(i.addClass("sow-order-button-asc"),i.removeClass("sow-order-button-desc"))};return o(),i.click(function(e){return e.preventDefault(),"DESC"===s.val()?s.val("ASC"):s.val("DESC"),o(),t.updateModel(),!1}),this.$el.find(".query-builder-content").empty().append(this.form),this.$el.find(".query-builder-form-field select, .query-builder-form-field input").change(function(){t.updateModel()}),this.$el.find(".query-builder-form-field .sow-select-posts").click(function(e){e.preventDefault(),t.builder.setActiveView("postsSelect")}),this.form.find('input[name="tax_query"]').autocomplete({source:function(t,s){e.getJSON(sowPostsSelectorTpl.ajaxurl,{term:t.term.split(/,\s*/).pop(),action:"sow_search_terms"},s)},search:function(){var e=this.value.split(/,\s*/).pop();return e.length<1?!1:void 0},focus:function(){return!1},select:function(e,s){var i=this.value.split(/,\s*/);return i.pop(),i.push(s.item.value),i.push(""),this.value=i.join(", "),t.updateModel(),!1}}),this},updateModel:function(){if(this.model.set("post_type",this.$el.find('*[name="post_type"]').val()),""!==this.$el.find('*[name="post__in"]').val().trim()?this.model.set("post__in",this.$el.find('*[name="post__in"]').val().split(",").map(function(e){return Number(e.trim())})):this.model.set("post__in",[]),""!==this.$el.find('*[name="tax_query"]').val().trim()){var e=this.$el.find('*[name="tax_query"]').val().split(",").map(function(e){return e.trim()});this.model.set("tax_query",t.compact(e))}else this.model.set("tax_query",[]);return this.model.set("orderby",this.$el.find('*[name="orderby"]').val()),this.model.set("order",this.$el.find('*[name="order"]').val()),this.model.set("posts_per_page",this.$el.find('*[name="posts_per_page"]').val()),this.model.set("sticky",this.$el.find('*[name="sticky"]').val()),this.model.set("additional",this.$el.find('*[name="additional"]').val()),this.model.set("query",this.model.getQuery()),this},buttonHandler:function(){return this.updateModel(),this}}),o=self.PostCollectionSummaryView=Backbone.View.extend({template:t.template(sowPostsSelectorTpl.foundPosts),posts:null,initialize:function(e){this.posts=e.posts,this.posts.bind("reset",this.render,this)},render:function(){this.$el.find(".media-toolbar-secondary").html(this.template({foundPosts:this.posts.foundPosts}));var e=this;this.$el.find(".media-toolbar-secondary .preview-query-posts").click(function(t){t.preventDefault(),e.builder.setActiveView("postsView")})}}),n=self.PostCollectionView=Backbone.View.extend({buttonText:"Back",modalTitle:"Current Posts",template:t.template(sowPostsSelectorTpl.postSummary),posts:null,initialize:function(e){this.posts=e.posts},render:function(){var e=this.$el.find(".query-builder-content").empty().append('<div class="sow-current-posts"></div>').find(".sow-current-posts");e=this.$el.find(".query-builder-content");var t=this.template;return this.posts.each(function(s){e.append(t(s.attributes))}),this},buttonHandler:function(){return this.builder.setActiveView("form"),this}}),r=self.PostSelectView=Backbone.View.extend({buttonText:"Finish Selection",modalTitle:"Select Posts",sortable:null,postCache:{},postTemplate:t.template(sowPostsSelectorTpl.postSummary),initialize:function(){this.postCache={}},render:function(){var t=this.model.get("post__in"),s=this.model.get("post_type");this.$el.find(".query-builder-content").empty().html(sowPostsSelectorTpl.selector),this.sortable=this.$el.find(".query-builder-content #sow-post-selector .sow-posts-sortable").sortable({placeholder:"ui-state-highlight",forcePlaceholderSize:!0,items:"> .sow-post-selector-summary"}),this.addPosts(t);var i=this,o=this.$el.find(".query-builder-content #sow-post-selector .sow-search-field");return o.autocomplete({source:function(t,i){t.type=s,t.action="sow_search_posts",e.get(sowPostsSelectorTpl.ajaxurl,t,i)},minLength:0,select:function(t,s){return t.preventDefault(),e(this).val(""),i.addPosts([s.item.value]),!1}}),o.focusin(function(){o.autocomplete("search",o.val())}),this.$el.find(".query-builder-content").on("click",".sow-remove",function(t){t.preventDefault();var s=e(this);s.closest(".sow-post-selector-summary").fadeOut("fast",function(){e(this).remove(),i.sortable.sortable("refresh")})}),this},addPosts:function(s){if("undefined"!=typeof s&&!t.isEmpty(s)){for(var i=[],o=0;o<s.length;o++)"undefined"==typeof this.postCache[s[o]]&&i.push(s[o]);var n=this;t.isEmpty(i)||e.post(sowPostsSelectorTpl.ajaxurl,{action:"sow_get_posts",query:"post_type=_all&posts_per_page=-1&post__in="+i.join(",")},function(e){console.log(e),"undefined"!=typeof e.posts&&t.each(e.posts,function(e,t){n.postCache[e.id]={id:e.id,title:e.title,thumbnail:e.thumbnail,editUrl:e.editUrl}}),n.refreshLoading()});for(var r,o=0;o<s.length;o++)r="undefined"==typeof this.postCache[s[o]]?e(this.postTemplate({id:s[o],title:"",thumbnail:"",editUrl:"#"})).addClass("sow-post-loading"):e(this.postTemplate(this.postCache[s[o]])),r.appendTo(this.sortable);return this.sortable.sortable("refresh"),this}},refreshLoading:function(){var t=this;this.sortable.find(".sow-post-selector-summary.sow-post-loading").each(function(){var s=e(this),i=s.data("id");if("undefined"!=typeof t.postCache[i]){s.removeClass("sow-post-loading");var o=e(t.postTemplate(t.postCache[i]));s.html(o.html())}})},buttonHandler:function(){var s=[];return this.sortable.find(".sow-post-selector-summary").each(function(){s.push(Number(e(this).data("id")))}),this.model.set("post__in",s),t.isEmpty(s)||(this.model.set("post_type","_all"),this.model.set("orderby","post__in")),this.builder.setActiveView("form"),this}});var u=new a({model:new l({query:""})});jQuery(function(e){e("body").on("click",".sow-select-posts",function(t){t.preventDefault();var s=e(this);u.model.setSyncField(s.siblings(".siteorigin-widget-input")),u.model.sync("update"),u.views.postSummary.posts.on("reset",function(e){s.find(".sow-current-count").text(e.foundPosts)}),u.open()})})}(jQuery,_);
1
+ var soWidgetPostSelector=function(e,t){var s,i,o,n,r,l,d,a;s=self.Post=Backbone.Model.extend({title:null,thumbnail:null,id:null}),i=self.PostCollection=Backbone.Collection.extend({model:s,foundPosts:null,updateWithQuery:function(t){if(""!==t){var s=this;e.post(sowPostsSelectorTpl.ajaxurl,{action:"sow_get_posts",query:t,ignore_pagination:!0},function(e){s.foundPosts=e.found_posts,s.reset(e.posts)})}}}),l=self.Query=Backbone.Model.extend({query:null,syncField:null,post_type:null,terms:null,post_status:null,posts_per_page:null,post__in:null,tax_query:null,date_range:null,orderby:null,order:null,sticky:null,defaults:{post_type:"post",orderby:"post_date",order:"DESC",posts_per_page:"",post_status:"publish",sticky:""},initialize:function(e,t){this.set(this.parseQuery(e.query))},getQuery:function(){var e=[];return"undefined"!=typeof this.get("post_type")&&e.push("post_type="+this.get("post_type")),"undefined"==typeof this.get("post__in")||t.isEmpty(this.get("post__in"))||e.push("post__in="+this.get("post__in").join(",")),"undefined"==typeof this.get("tax_query")||t.isEmpty(this.get("tax_query"))||e.push("tax_query="+this.get("tax_query").join(",")),"undefined"==typeof this.get("date_query")||t.isEmpty(this.get("date_query"))||e.push("date_query="+JSON.stringify(this.get("date_query"))),"undefined"!=typeof this.get("orderby")&&e.push("orderby="+this.get("orderby")),"undefined"!=typeof this.get("order")&&e.push("order="+this.get("order")),"undefined"!=typeof this.get("posts_per_page")&&e.push("posts_per_page="+this.get("posts_per_page")),"undefined"!=typeof this.get("sticky")&&e.push("sticky="+this.get("sticky")),"undefined"!=typeof this.get("additional")&&e.push("additional="+this.get("additional")),e.join("&")},setQuery:function(e){return this.set(this.parseQuery(e)),this},parseQuery:function(e){for(var t,s=/([^&=]+)=?([^&]*)/g,i=/\+/g,o=function(e){return decodeURIComponent(e.replace(i," "))},n={};t=s.exec(e);){var r=o(t[1]),l=o(t[2]);"[]"===r.substring(r.length-2)?(r=r.substring(0,r.length-2),(n[r]||(n[r]=[])).push(l)):n[r]=l}var d={};return n.hasOwnProperty("post_type")&&(d.post_type=n.post_type),n.hasOwnProperty("post__in")&&(d.post__in=n.post__in.split(",")),n.hasOwnProperty("tax_query")&&(d.tax_query=n.tax_query.split(",")),n.hasOwnProperty("date_query")&&(d.date_query=JSON.parse(n.date_query)),n.hasOwnProperty("orderby")&&(d.orderby=n.orderby),n.hasOwnProperty("order")&&(d.order=n.order),n.hasOwnProperty("posts_per_page")&&(d.posts_per_page=n.posts_per_page),n.hasOwnProperty("sticky")&&(d.sticky=n.sticky),n.hasOwnProperty("additional")&&(d.additional=n.additional),d.query=e,d},sync:function(e,t){if("create"===e){var s=this.syncField.val(),i=this.getQuery();s!==i&&(this.syncField.val(i),this.syncField.trigger("change"))}else this.setQuery(this.syncField.val())},setSyncField:function(e){this.syncField=e}}),a=self.QueryBuilder=Backbone.View.extend({attached:!1,rendered:!1,views:{},activeView:null,events:{"click .media-modal-backdrop, .media-modal-close":"escapeHandler","click .media-toolbar-primary .button":"buttonHandler"},initialize:function(){this.listenTo(this.model,"change",this.queryModelChange);var e=new i;this.views.postSummary=new o({posts:e,el:this.el}),this.views.postSummary.builder=this,this.views.postSummary.posts.updateWithQuery(this.model.getQuery()),this.addSubView("form",new d({el:this.el,model:this.model})),this.addSubView("postsView",new n({el:this.el,posts:e})),this.addSubView("postsSelect",new r({el:this.el,model:this.model})),this.views.form.bind("buttonHandler",this.close,this)},changeModel:function(e){this.model=e,this.render()},render:function(){return this.$el.html(sowPostsSelectorTpl.modal),this.$el.find(".media-toolbar-primary .button").html(this.views[this.activeView].buttonText),this.$el.find(".media-frame-title h1").html(this.views[this.activeView].modalTitle),this.rendered=!0,"postsSelect"!==this.activeView&&this.views.postSummary.render(),this.views[this.activeView].render(),this},close:function(){return this.$el.hide(),this.trigger("close"),this.model.save(),this},open:function(){this.show(),this.setActiveView("form"),this.trigger("open"),this.model.fetch()},save:function(){this.close(),this.model.save(),this.trigger("save")},attach:function(){return this.rendered||this.render(),this.attached||(this.$el.appendTo("body"),this.attached=!0),this},show:function(){this.attach(),this.$el.is(":visible")||this.$el.show()},escapeHandler:function(e){e.preventDefault(),this.close()},buttonHandler:function(e){e.preventDefault(),this.views[this.activeView].buttonHandler().trigger("buttonHandler")},addSubView:function(e,t){this.views[e]=t,t.builder=this,null===this.activeView&&(this.activeView=e)},setActiveView:function(e){this.activeView=e,this.render()},queryModelChange:function(){this.views.postSummary.posts.updateWithQuery(this.model.getQuery())}}),d=self.QueryForm=Backbone.View.extend({buttonText:"Save Query",modalTitle:"Build Posts Query",form:null,initialize:function(e){},render:function(){var t=this;if(this.form=e('<div class="query-builder-form>"></div>'),this.form.append('<div class="query-builder-form-field">'+sowPostsSelectorTpl.fields.post_type+"</div>"),"undefined"!=typeof this.model.get("post_type")&&this.form.find('select[name="post_type"]').val(this.model.get("post_type")),this.form.append('<div class="query-builder-form-field">'+sowPostsSelectorTpl.fields.post__in+"</div>"),"undefined"!=typeof this.model.get("post__in")&&this.form.find('input[name="post__in"]').val(this.model.get("post__in").join(",")),this.form.append('<div class="query-builder-form-field ui-front">'+sowPostsSelectorTpl.fields.tax_query+"</div>"),"undefined"!=typeof this.model.get("tax_query")&&this.form.find('input[name="tax_query"]').val(this.model.get("tax_query")),this.form.append('<div class="query-builder-form-field">'+sowPostsSelectorTpl.fields.date_query+"</div>"),"undefined"!=typeof this.model.get("date_query")){var s=this.model.get("date_query");s.hasOwnProperty("after")&&this.form.find('input[name="after"]').val(s.after),s.hasOwnProperty("before")&&this.form.find('input[name="before"]').val(s.before)}this.form.append(e('<div class="query-builder-form-field">'+sowPostsSelectorTpl.fields.orderby+"</div>").disableSelection()),"undefined"!=typeof this.model.get("orderby")&&this.form.find('select[name="orderby"]').val(this.model.get("orderby")),"undefined"!=typeof this.model.get("order")&&this.form.find('input[name="order"]').val(this.model.get("order")),this.form.append('<div class="query-builder-form-field">'+sowPostsSelectorTpl.fields.posts_per_page+"</div>"),"undefined"!=typeof this.model.get("posts_per_page")&&this.form.find('input[name="posts_per_page"]').val(this.model.get("posts_per_page")),this.form.append('<div class="query-builder-form-field">'+sowPostsSelectorTpl.fields.sticky+"</div>"),"undefined"!=typeof this.model.get("sticky")&&this.form.find('select[name="sticky"]').val(this.model.get("sticky")),this.form.append('<div class="query-builder-form-field">'+sowPostsSelectorTpl.fields.additional+"</div>"),"undefined"!=typeof this.model.get("additional")&&this.form.find('input[name="additional"]').val(this.model.get("additional"));var i=this.form.find('input[name="order"]'),o=i.closest(".query-builder-form-field").find(".sow-order-button"),n=function(){"DESC"===i.val()?(o.removeClass("sow-order-button-asc"),o.addClass("sow-order-button-desc")):(o.addClass("sow-order-button-asc"),o.removeClass("sow-order-button-desc"))};return n(),o.click(function(e){return e.preventDefault(),"DESC"===i.val()?i.val("ASC"):i.val("DESC"),n(),t.updateModel(),!1}),this.$el.find(".query-builder-content").empty().append(this.form),this.$el.find(".query-builder-form-field select, .query-builder-form-field input").change(function(){t.updateModel()}),this.$el.find(".query-builder-form-field .sow-select-posts").click(function(e){e.preventDefault(),t.builder.setActiveView("postsSelect")}),this.form.find('input[name="tax_query"]').autocomplete({source:function(t,s){e.getJSON(sowPostsSelectorTpl.ajaxurl,{term:t.term.split(/,\s*/).pop(),action:"sow_search_terms"},s)},search:function(){var e=this.value.split(/,\s*/).pop();return e.length<1?!1:void 0},focus:function(){return!1},select:function(e,s){var i=this.value.split(/,\s*/);return i.pop(),i.push(s.item.value),i.push(""),this.value=i.join(", "),t.updateModel(),!1}}),this},updateModel:function(){if(this.model.set("post_type",this.$el.find('*[name="post_type"]').val()),""!==this.$el.find('*[name="post__in"]').val().trim()?this.model.set("post__in",this.$el.find('*[name="post__in"]').val().split(",").map(function(e){return Number(e.trim())})):this.model.set("post__in",[]),""!==this.$el.find('*[name="tax_query"]').val().trim()){var e=this.$el.find('*[name="tax_query"]').val().split(",").map(function(e){return e.trim()});this.model.set("tax_query",t.compact(e))}else this.model.set("tax_query",[]);return this.model.set("date_query",{after:this.$el.find('*[name="after"]').val(),before:this.$el.find('*[name="before"]').val()}),this.model.set("orderby",this.$el.find('*[name="orderby"]').val()),this.model.set("order",this.$el.find('*[name="order"]').val()),this.model.set("posts_per_page",this.$el.find('*[name="posts_per_page"]').val()),this.model.set("sticky",this.$el.find('*[name="sticky"]').val()),this.model.set("additional",this.$el.find('*[name="additional"]').val()),this.model.set("query",this.model.getQuery()),this},buttonHandler:function(){return this.updateModel(),this}}),o=self.PostCollectionSummaryView=Backbone.View.extend({template:t.template(sowPostsSelectorTpl.foundPosts),posts:null,initialize:function(e){this.posts=e.posts,this.posts.bind("reset",this.render,this)},render:function(){this.$el.find(".media-toolbar-secondary").html(this.template({foundPosts:this.posts.foundPosts}));var e=this;this.$el.find(".media-toolbar-secondary .preview-query-posts").click(function(t){t.preventDefault(),e.builder.setActiveView("postsView")})}}),n=self.PostCollectionView=Backbone.View.extend({buttonText:"Back",modalTitle:"Current Posts",template:t.template(sowPostsSelectorTpl.postSummary),posts:null,initialize:function(e){this.posts=e.posts},render:function(){var e=this.$el.find(".query-builder-content").empty().append('<div class="sow-current-posts"></div>').find(".sow-current-posts");e=this.$el.find(".query-builder-content");var t=this.template;return this.posts.each(function(s){e.append(t(s.attributes))}),this},buttonHandler:function(){return this.builder.setActiveView("form"),this}}),r=self.PostSelectView=Backbone.View.extend({buttonText:"Finish Selection",modalTitle:"Select Posts",sortable:null,postCache:{},postTemplate:t.template(sowPostsSelectorTpl.postSummary),initialize:function(){this.postCache={}},render:function(){var t=this.model.get("post__in"),s=this.model.get("post_type");this.$el.find(".query-builder-content").empty().html(sowPostsSelectorTpl.selector),this.sortable=this.$el.find(".query-builder-content #sow-post-selector .sow-posts-sortable").sortable({placeholder:"ui-state-highlight",forcePlaceholderSize:!0,items:"> .sow-post-selector-summary"}),this.addPosts(t);var i=this,o=this.$el.find(".query-builder-content #sow-post-selector .sow-search-field");return o.autocomplete({source:function(t,i){t.type=s,t.action="sow_search_posts",e.get(sowPostsSelectorTpl.ajaxurl,t,i)},minLength:0,select:function(t,s){return t.preventDefault(),e(this).val(""),i.addPosts([s.item.value]),!1}}),o.focusin(function(){o.autocomplete("search",o.val())}),this.$el.find(".query-builder-content").on("click",".sow-remove",function(t){t.preventDefault();var s=e(this);s.closest(".sow-post-selector-summary").fadeOut("fast",function(){e(this).remove(),i.sortable.sortable("refresh")})}),this},addPosts:function(s){if("undefined"!=typeof s&&!t.isEmpty(s)){for(var i=[],o=0;o<s.length;o++)"undefined"==typeof this.postCache[s[o]]&&i.push(s[o]);var n=this;t.isEmpty(i)||e.post(sowPostsSelectorTpl.ajaxurl,{action:"sow_get_posts",query:"post_type=_all&posts_per_page=-1&post__in="+i.join(",")},function(e){console.log(e),"undefined"!=typeof e.posts&&t.each(e.posts,function(e,t){n.postCache[e.id]={id:e.id,title:e.title,thumbnail:e.thumbnail,editUrl:e.editUrl}}),n.refreshLoading()});for(var r,o=0;o<s.length;o++)r="undefined"==typeof this.postCache[s[o]]?e(this.postTemplate({id:s[o],title:"",thumbnail:"",editUrl:"#"})).addClass("sow-post-loading"):e(this.postTemplate(this.postCache[s[o]])),r.appendTo(this.sortable);return this.sortable.sortable("refresh"),this}},refreshLoading:function(){var t=this;this.sortable.find(".sow-post-selector-summary.sow-post-loading").each(function(){var s=e(this),i=s.data("id");if("undefined"!=typeof t.postCache[i]){s.removeClass("sow-post-loading");var o=e(t.postTemplate(t.postCache[i]));s.html(o.html())}})},buttonHandler:function(){var s=[];return this.sortable.find(".sow-post-selector-summary").each(function(){s.push(Number(e(this).data("id")))}),this.model.set("post__in",s),t.isEmpty(s)||(this.model.set("post_type","_all"),this.model.set("orderby","post__in")),this.builder.setActiveView("form"),this}});var u=new a({model:new l({query:""})});jQuery(function(e){e("body").on("click",".sow-select-posts",function(t){t.preventDefault();var s=e(this);u.model.setSyncField(s.siblings(".siteorigin-widget-input")),u.model.sync("update"),u.views.postSummary.posts.on("reset",function(e){s.find(".sow-current-count").text(e.foundPosts)}),u.open()})})}(jQuery,_);
base/siteorigin-widget.class.php CHANGED
@@ -626,7 +626,12 @@ abstract class SiteOrigin_Widget extends WP_Widget {
626
$lc_functions = new SiteOrigin_Widgets_Less_Functions($this, $instance);
627
$lc_functions->registerFunctions($c);
628
629
- $css = $c->compile( $less );
630
631
// Remove any attributes with default as the value
632
$css = preg_replace('/[a-zA-Z\-]+ *: *default *;/', '', $css);
626
$lc_functions = new SiteOrigin_Widgets_Less_Functions($this, $instance);
627
$lc_functions->registerFunctions($c);
628
629
+ try {
630
+ $css = $c->compile( $less );
631
+ }
632
+ catch ( Exception $e ) {
633
+ $css = '';
634
+ }
635
636
// Remove any attributes with default as the value
637
$css = preg_replace('/[a-zA-Z\-]+ *: *default *;/', '', $css);
icons/elegantline/filter.php ADDED
@@ -0,0 +1,107 @@
1
+ <?php
2
+
3
+ function siteorigin_widgets_icons_elegantline_filter($icons) {
4
+ return array_merge($icons, array(
5
+ 'mobile' => '&#xe000;',
6
+ 'laptop' => '&#xe001;',
7
+ 'desktop' => '&#xe002;',
8
+ 'tablet' => '&#xe003;',
9
+ 'phone' => '&#xe004;',
10
+ 'document' => '&#xe005;',
11
+ 'documents' => '&#xe006;',
12
+ 'search' => '&#xe007;',
13
+ 'clipboard' => '&#xe008;',
14
+ 'newspaper' => '&#xe009;',
15
+ 'notebook' => '&#xe00a;',
16
+ 'book-open' => '&#xe00b;',
17
+ 'browser' => '&#xe00c;',
18
+ 'calendar' => '&#xe00d;',
19
+ 'presentation' => '&#xe00e;',
20
+ 'picture' => '&#xe00f;',
21
+ 'pictures' => '&#xe010;',
22
+ 'video' => '&#xe011;',
23
+ 'camera' => '&#xe012;',
24
+ 'printer' => '&#xe013;',
25
+ 'toolbox' => '&#xe014;',
26
+ 'briefcase' => '&#xe015;',
27
+ 'wallet' => '&#xe016;',
28
+ 'gift' => '&#xe017;',
29
+ 'bargraph' => '&#xe018;',
30
+ 'grid' => '&#xe019;',
31
+ 'expand' => '&#xe01a;',
32
+ 'focus' => '&#xe01b;',
33
+ 'edit' => '&#xe01c;',
34
+ 'adjustments' => '&#xe01d;',
35
+ 'ribbon' => '&#xe01e;',
36
+ 'hourglass' => '&#xe01f;',
37
+ 'lock' => '&#xe020;',
38
+ 'megaphone' => '&#xe021;',
39
+ 'shield' => '&#xe022;',
40
+ 'trophy' => '&#xe023;',
41
+ 'flag' => '&#xe024;',
42
+ 'map' => '&#xe025;',
43
+ 'puzzle' => '&#xe026;',
44
+ 'basket' => '&#xe027;',
45
+ 'envelope' => '&#xe028;',
46
+ 'streetsign' => '&#xe029;',
47
+ 'telescope' => '&#xe02a;',
48
+ 'gears' => '&#xe02b;',
49
+ 'key' => '&#xe02c;',
50
+ 'paperclip' => '&#xe02d;',
51
+ 'attachment' => '&#xe02e;',
52
+ 'pricetags' => '&#xe02f;',
53
+ 'lightbulb' => '&#xe030;',
54
+ 'layers' => '&#xe031;',
55
+ 'pencil' => '&#xe032;',
56
+ 'tools' => '&#xe033;',
57
+ 'tools-2' => '&#xe034;',
58
+ 'scissors' => '&#xe035;',
59
+ 'paintbrush' => '&#xe036;',
60
+ 'magnifying-glass' => '&#xe037;',
61
+ 'circle-compass' => '&#xe038;',
62
+ 'linegraph' => '&#xe039;',
63
+ 'mic' => '&#xe03a;',
64
+ 'strategy' => '&#xe03b;',
65
+ 'beaker' => '&#xe03c;',
66
+ 'caution' => '&#xe03d;',
67
+ 'recycle' => '&#xe03e;',
68
+ 'anchor' => '&#xe03f;',
69
+ 'profile-male' => '&#xe040;',
70
+ 'profile-female' => '&#xe041;',
71
+ 'bike' => '&#xe042;',
72
+ 'wine' => '&#xe043;',
73
+ 'hotairballoon' => '&#xe044;',
74
+ 'globe' => '&#xe045;',
75
+ 'genius' => '&#xe046;',
76
+ 'map-pin' => '&#xe047;',
77
+ 'dial' => '&#xe048;',
78
+ 'chat' => '&#xe049;',
79
+ 'heart' => '&#xe04a;',
80
+ 'cloud' => '&#xe04b;',
81
+ 'upload' => '&#xe04c;',
82
+ 'download' => '&#xe04d;',
83
+ 'target' => '&#xe04e;',
84
+ 'hazardous' => '&#xe04f;',
85
+ 'piechart' => '&#xe050;',
86
+ 'speedometer' => '&#xe051;',
87
+ 'global' => '&#xe052;',
88
+ 'compass' => '&#xe053;',
89
+ 'lifesaver' => '&#xe054;',
90
+ 'clock' => '&#xe055;',
91
+ 'aperture' => '&#xe056;',
92
+ 'quote' => '&#xe057;',
93
+ 'scope' => '&#xe058;',
94
+ 'alarmclock' => '&#xe059;',
95
+ 'refresh' => '&#xe05a;',
96
+ 'happy' => '&#xe05b;',
97
+ 'sad' => '&#xe05c;',
98
+ 'facebook' => '&#xe05d;',
99
+ 'twitter' => '&#xe05e;',
100
+ 'googleplus' => '&#xe05f;',
101
+ 'rss' => '&#xe060;',
102
+ 'tumblr' => '&#xe061;',
103
+ 'linkedin' => '&#xe062;',
104
+ 'dribbble' => '&#xe063;',
105
+ ));
106
+ }
107
+ add_filter('siteorigin_widgets_icons_elegantline', 'siteorigin_widgets_icons_elegantline_filter');
icons/fontawesome/filter.php ADDED
@@ -0,0 +1,681 @@
1
+ <?php
2
+
3
+ function siteorigin_widgets_icons_fontawesome_filter( $icons ){
4
+ return array_merge($icons, array(
5
+ '500px' => '&#xf26e;',
6
+ 'adjust' => '&#xf042;',
7
+ 'adn' => '&#xf170;',
8
+ 'align-center' => '&#xf037;',
9
+ 'align-justify' => '&#xf039;',
10
+ 'align-left' => '&#xf036;',
11
+ 'align-right' => '&#xf038;',
12
+ 'amazon' => '&#xf270;',
13
+ 'ambulance' => '&#xf0f9;',
14
+ 'anchor' => '&#xf13d;',
15
+ 'android' => '&#xf17b;',
16
+ 'angellist' => '&#xf209;',
17
+ 'angle-double-down' => '&#xf103;',
18
+ 'angle-double-left' => '&#xf100;',
19
+ 'angle-double-right' => '&#xf101;',
20
+ 'angle-double-up' => '&#xf102;',
21
+ 'angle-down' => '&#xf107;',
22
+ 'angle-left' => '&#xf104;',
23
+ 'angle-right' => '&#xf105;',
24
+ 'angle-up' => '&#xf106;',
25
+ 'apple' => '&#xf179;',
26
+ 'archive' => '&#xf187;',
27
+ 'area-chart' => '&#xf1fe;',
28
+ 'arrow-circle-down' => '&#xf0ab;',
29
+ 'arrow-circle-left' => '&#xf0a8;',
30
+ 'arrow-circle-o-down' => '&#xf01a;',
31
+ 'arrow-circle-o-left' => '&#xf190;',
32
+ 'arrow-circle-o-right' => '&#xf18e;',
33
+ 'arrow-circle-o-up' => '&#xf01b;',
34
+ 'arrow-circle-right' => '&#xf0a9;',
35
+ 'arrow-circle-up' => '&#xf0aa;',
36
+ 'arrow-down' => '&#xf063;',
37
+ 'arrow-left' => '&#xf060;',
38
+ 'arrow-right' => '&#xf061;',
39
+ 'arrow-up' => '&#xf062;',
40
+ 'arrows' => '&#xf047;',
41
+ 'arrows-alt' => '&#xf0b2;',
42
+ 'arrows-h' => '&#xf07e;',
43
+ 'arrows-v' => '&#xf07d;',
44
+ 'asterisk' => '&#xf069;',
45
+ 'at' => '&#xf1fa;',
46
+ 'automobile' => '&#xf1b9;',
47
+ 'backward' => '&#xf04a;',
48
+ 'balance-scale' => '&#xf24e;',
49
+ 'ban' => '&#xf05e;',
50
+ 'bank' => '&#xf19c;',
51
+ 'bar-chart' => '&#xf080;',
52
+ 'bar-chart-o' => '&#xf080;',
53
+ 'barcode' => '&#xf02a;',
54
+ 'bars' => '&#xf0c9;',
55
+ 'battery-0' => '&#xf244;',
56
+ 'battery-1' => '&#xf243;',
57
+ 'battery-2' => '&#xf242;',
58
+ 'battery-3' => '&#xf241;',
59
+ 'battery-4' => '&#xf240;',
60
+ 'battery-empty' => '&#xf244;',
61
+ 'battery-full' => '&#xf240;',
62
+ 'battery-half' => '&#xf242;',
63
+ 'battery-quarter' => '&#xf243;',
64
+ 'battery-three-quarters' => '&#xf241;',
65
+ 'bed' => '&#xf236;',
66
+ 'beer' => '&#xf0fc;',
67
+ 'behance' => '&#xf1b4;',
68
+ 'behance-square' => '&#xf1b5;',
69
+ 'bell' => '&#xf0f3;',
70
+ 'bell-o' => '&#xf0a2;',
71
+ 'bell-slash' => '&#xf1f6;',
72
+ 'bell-slash-o' => '&#xf1f7;',
73
+ 'bicycle' => '&#xf206;',
74
+ 'binoculars' => '&#xf1e5;',
75
+ 'birthday-cake' => '&#xf1fd;',
76
+ 'bitbucket' => '&#xf171;',
77
+ 'bitbucket-square' => '&#xf172;',
78
+ 'bitcoin' => '&#xf15a;',
79
+ 'black-tie' => '&#xf27e;',
80
+ 'bold' => '&#xf032;',
81
+ 'bolt' => '&#xf0e7;',
82
+ 'bomb' => '&#xf1e2;',
83
+ 'book' => '&#xf02d;',
84
+ 'bookmark' => '&#xf02e;',
85
+ 'bookmark-o' => '&#xf097;',
86
+ 'briefcase' => '&#xf0b1;',
87
+ 'btc' => '&#xf15a;',
88
+ 'bug' => '&#xf188;',
89
+ 'building' => '&#xf1ad;',
90
+ 'building-o' => '&#xf0f7;',
91
+ 'bullhorn' => '&#xf0a1;',
92
+ 'bullseye' => '&#xf140;',
93
+ 'bus' => '&#xf207;',
94
+ 'buysellads' => '&#xf20d;',
95
+ 'cab' => '&#xf1ba;',
96
+ 'calculator' => '&#xf1ec;',
97
+ 'calendar' => '&#xf073;',
98
+ 'calendar-check-o' => '&#xf274;',
99
+ 'calendar-minus-o' => '&#xf272;',
100
+ 'calendar-o' => '&#xf133;',
101
+ 'calendar-plus-o' => '&#xf271;',
102
+ 'calendar-times-o' => '&#xf273;',
103
+ 'camera' => '&#xf030;',
104
+ 'camera-retro' => '&#xf083;',
105
+ 'car' => '&#xf1b9;',
106
+ 'caret-down' => '&#xf0d7;',
107
+ 'caret-left' => '&#xf0d9;',
108
+ 'caret-right' => '&#xf0da;',
109
+ 'caret-square-o-down' => '&#xf150;',
110
+ 'caret-square-o-left' => '&#xf191;',
111
+ 'caret-square-o-right' => '&#xf152;',
112
+ 'caret-square-o-up' => '&#xf151;',
113
+ 'caret-up' => '&#xf0d8;',
114
+ 'cart-arrow-down' => '&#xf218;',
115
+ 'cart-plus' => '&#xf217;',
116
+ 'cc' => '&#xf20a;',
117
+ 'cc-amex' => '&#xf1f3;',
118
+ 'cc-diners-club' => '&#xf24c;',
119
+ 'cc-discover' => '&#xf1f2;',
120
+ 'cc-jcb' => '&#xf24b;',
121
+ 'cc-mastercard' => '&#xf1f1;',
122
+ 'cc-paypal' => '&#xf1f4;',
123
+ 'cc-stripe' => '&#xf1f5;',
124
+ 'cc-visa' => '&#xf1f0;',
125
+ 'certificate' => '&#xf0a3;',
126
+ 'chain' => '&#xf0c1;',
127
+ 'chain-broken' => '&#xf127;',
128
+ 'check' => '&#xf00c;',
129
+ 'check-circle' => '&#xf058;',
130
+ 'check-circle-o' => '&#xf05d;',
131
+ 'check-square' => '&#xf14a;',
132
+ 'check-square-o' => '&#xf046;',
133
+ 'chevron-circle-down' => '&#xf13a;',
134
+ 'chevron-circle-left' => '&#xf137;',
135
+ 'chevron-circle-right' => '&#xf138;',
136
+ 'chevron-circle-up' => '&#xf139;',
137
+ 'chevron-down' => '&#xf078;',
138
+ 'chevron-left' => '&#xf053;',
139
+ 'chevron-right' => '&#xf054;',
140
+ 'chevron-up' => '&#xf077;',
141
+ 'child' => '&#xf1ae;',
142
+ 'chrome' => '&#xf268;',
143
+ 'circle' => '&#xf111;',
144
+ 'circle-o' => '&#xf10c;',
145
+ 'circle-o-notch' => '&#xf1ce;',
146
+ 'circle-thin' => '&#xf1db;',
147
+ 'clipboard' => '&#xf0ea;',
148
+ 'clock-o' => '&#xf017;',
149
+ 'clone' => '&#xf24d;',
150
+ 'close' => '&#xf00d;',
151
+ 'cloud' => '&#xf0c2;',
152
+ 'cloud-download' => '&#xf0ed;',
153
+ 'cloud-upload' => '&#xf0ee;',
154
+ 'cny' => '&#xf157;',
155
+ 'code' => '&#xf121;',
156
+ 'code-fork' => '&#xf126;',
157
+ 'codepen' => '&#xf1cb;',
158
+ 'coffee' => '&#xf0f4;',
159
+ 'cog' => '&#xf013;',
160
+ 'cogs' => '&#xf085;',
161
+ 'columns' => '&#xf0db;',
162
+ 'comment' => '&#xf075;',
163
+ 'comment-o' => '&#xf0e5;',
164
+ 'commenting' => '&#xf27a;',
165
+ 'commenting-o' => '&#xf27b;',
166
+ 'comments' => '&#xf086;',
167
+ 'comments-o' => '&#xf0e6;',
168
+ 'compass' => '&#xf14e;',
169
+ 'compress' => '&#xf066;',
170
+ 'connectdevelop' => '&#xf20e;',
171
+ 'contao' => '&#xf26d;',
172
+ 'copy' => '&#xf0c5;',
173
+ 'copyright' => '&#xf1f9;',
174
+ 'creative-commons' => '&#xf25e;',
175
+ 'credit-card' => '&#xf09d;',
176
+ 'crop' => '&#xf125;',
177
+ 'crosshairs' => '&#xf05b;',
178
+ 'css3' => '&#xf13c;',
179
+ 'cube' => '&#xf1b2;',
180
+ 'cubes' => '&#xf1b3;',
181
+ 'cut' => '&#xf0c4;',
182
+ 'cutlery' => '&#xf0f5;',
183
+ 'dashboard' => '&#xf0e4;',
184
+ 'dashcube' => '&#xf210;',
185
+ 'database' => '&#xf1c0;',
186
+ 'dedent' => '&#xf03b;',
187
+ 'delicious' => '&#xf1a5;',
188
+ 'desktop' => '&#xf108;',
189
+ 'deviantart' => '&#xf1bd;',
190
+ 'diamond' => '&#xf219;',
191
+ 'digg' => '&#xf1a6;',
192
+ 'dollar' => '&#xf155;',
193
+ 'dot-circle-o' => '&#xf192;',
194
+ 'download' => '&#xf019;',
195
+ 'dribbble' => '&#xf17d;',
196
+ 'dropbox' => '&#xf16b;',
197
+ 'drupal' => '&#xf1a9;',
198
+ 'edit' => '&#xf044;',
199
+ 'eject' => '&#xf052;',
200
+ 'ellipsis-h' => '&#xf141;',
201
+ 'ellipsis-v' => '&#xf142;',
202
+ 'empire' => '&#xf1d1;',
203
+ 'envelope' => '&#xf0e0;',
204
+ 'envelope-o' => '&#xf003;',
205
+ 'envelope-square' => '&#xf199;',
206
+ 'eraser' => '&#xf12d;',
207
+ 'eur' => '&#xf153;',
208
+ 'euro' => '&#xf153;',
209
+ 'exchange' => '&#xf0ec;',
210
+ 'exclamation' => '&#xf12a;',
211
+ 'exclamation-circle' => '&#xf06a;',
212
+ 'exclamation-triangle' => '&#xf071;',
213
+ 'expand' => '&#xf065;',
214
+ 'expeditedssl' => '&#xf23e;',
215
+ 'external-link' => '&#xf08e;',
216
+ 'external-link-square' => '&#xf14c;',
217
+ 'eye' => '&#xf06e;',
218
+ 'eye-slash' => '&#xf070;',
219
+ 'eyedropper' => '&#xf1fb;',
220
+ 'facebook' => '&#xf09a;',
221
+ 'facebook-f' => '&#xf09a;',
222
+ 'facebook-official' => '&#xf230;',
223
+ 'facebook-square' => '&#xf082;',
224
+ 'fast-backward' => '&#xf049;',
225
+ 'fast-forward' => '&#xf050;',
226
+ 'fax' => '&#xf1ac;',
227
+ 'feed' => '&#xf09e;',
228
+ 'female' => '&#xf182;',
229
+ 'fighter-jet' => '&#xf0fb;',
230
+ 'file' => '&#xf15b;',
231
+ 'file-archive-o' => '&#xf1c6;',
232
+ 'file-audio-o' => '&#xf1c7;',
233
+ 'file-code-o' => '&#xf1c9;',
234
+ 'file-excel-o' => '&#xf1c3;',
235
+ 'file-image-o' => '&#xf1c5;',
236
+ 'file-movie-o' => '&#xf1c8;',
237
+ 'file-o' => '&#xf016;',
238
+ 'file-pdf-o' => '&#xf1c1;',
239
+ 'file-photo-o' => '&#xf1c5;',
240
+ 'file-picture-o' => '&#xf1c5;',
241
+ 'file-powerpoint-o' => '&#xf1c4;',
242
+ 'file-sound-o' => '&#xf1c7;',
243
+ 'file-text' => '&#xf15c;',
244
+ 'file-text-o' => '&#xf0f6;',
245
+ 'file-video-o' => '&#xf1c8;',
246
+ 'file-word-o' => '&#xf1c2;',
247
+ 'file-zip-o' => '&#xf1c6;',
248
+ 'files-o' => '&#xf0c5;',
249
+ 'film' => '&#xf008;',
250
+ 'filter' => '&#xf0b0;',
251
+ 'fire' => '&#xf06d;',
252
+ 'fire-extinguisher' => '&#xf134;',
253
+ 'firefox' => '&#xf269;',
254
+ 'flag' => '&#xf024;',
255
+ 'flag-checkered' => '&#xf11e;',
256
+ 'flag-o' => '&#xf11d;',
257
+ 'flash' => '&#xf0e7;',
258
+ 'flask' => '&#xf0c3;',
259
+ 'flickr' => '&#xf16e;',
260
+ 'floppy-o' => '&#xf0c7;',
261
+ 'folder' => '&#xf07b;',
262
+ 'folder-o' => '&#xf114;',
263
+ 'folder-open' => '&#xf07c;',
264
+ 'folder-open-o' => '&#xf115;',
265
+ 'font' => '&#xf031;',
266
+ 'fonticons' => '&#xf280;',
267
+ 'forumbee' => '&#xf211;',
268
+ 'forward' => '&#xf04e;',
269
+ 'foursquare' => '&#xf180;',
270
+ 'frown-o' => '&#xf119;',
271
+ 'futbol-o' => '&#xf1e3;',
272
+ 'gamepad' => '&#xf11b;',
273
+ 'gavel' => '&#xf0e3;',
274
+ 'gbp' => '&#xf154;',
275
+ 'ge' => '&#xf1d1;',
276
+ 'gear' => '&#xf013;',
277
+ 'gears' => '&#xf085;',
278
+ 'genderless' => '&#xf22d;',
279
+ 'get-pocket' => '&#xf265;',
280
+ 'gg' => '&#xf260;',
281
+ 'gg-circle' => '&#xf261;',
282
+ 'gift' => '&#xf06b;',
283
+ 'git' => '&#xf1d3;',
284
+ 'git-square' => '&#xf1d2;',
285
+ 'github' => '&#xf09b;',
286
+ 'github-alt' => '&#xf113;',
287
+ 'github-square' => '&#xf092;',
288
+ 'gittip' => '&#xf184;',
289
+ 'glass' => '&#xf000;',
290
+ 'globe' => '&#xf0ac;',
291
+ 'google' => '&#xf1a0;',
292
+ 'google-plus' => '&#xf0d5;',
293
+ 'google-plus-square' => '&#xf0d4;',
294
+ 'google-wallet' => '&#xf1ee;',
295
+ 'graduation-cap' => '&#xf19d;',
296
+ 'gratipay' => '&#xf184;',
297
+ 'group' => '&#xf0c0;',
298
+ 'h-square' => '&#xf0fd;',
299
+ 'hacker-news' => '&#xf1d4;',
300
+ 'hand-grab-o' => '&#xf255;',
301
+ 'hand-lizard-o' => '&#xf258;',
302
+ 'hand-o-down' => '&#xf0a7;',
303
+ 'hand-o-left' => '&#xf0a5;',
304
+ 'hand-o-right' => '&#xf0a4;',
305
+ 'hand-o-up' => '&#xf0a6;',
306
+ 'hand-paper-o' => '&#xf256;',
307
+ 'hand-peace-o' => '&#xf25b;',
308
+ 'hand-pointer-o' => '&#xf25a;',
309
+ 'hand-rock-o' => '&#xf255;',
310
+ 'hand-scissors-o' => '&#xf257;',
311
+ 'hand-spock-o' => '&#xf259;',
312
+ 'hand-stop-o' => '&#xf256;',
313
+ 'hdd-o' => '&#xf0a0;',
314
+ 'header' => '&#xf1dc;',
315
+ 'headphones' => '&#xf025;',
316
+ 'heart' => '&#xf004;',
317
+ 'heart-o' => '&#xf08a;',
318
+ 'heartbeat' => '&#xf21e;',
319
+ 'history' => '&#xf1da;',
320
+ 'home' => '&#xf015;',
321
+ 'hospital-o' => '&#xf0f8;',
322
+ 'hotel' => '&#xf236;',
323
+ 'hourglass' => '&#xf254;',
324
+ 'hourglass-1' => '&#xf251;',
325
+ 'hourglass-2' => '&#xf252;',
326
+ 'hourglass-3' => '&#xf253;',
327
+ 'hourglass-end' => '&#xf253;',
328
+ 'hourglass-half' => '&#xf252;',
329
+ 'hourglass-o' => '&#xf250;',
330
+ 'hourglass-start' => '&#xf251;',
331
+ 'houzz' => '&#xf27c;',
332
+ 'html5' => '&#xf13b;',
333
+ 'i-cursor' => '&#xf246;',
334
+ 'ils' => '&#xf20b;',
335
+ 'image' => '&#xf03e;',
336
+ 'inbox' => '&#xf01c;',
337
+ 'indent' => '&#xf03c;',
338
+ 'industry' => '&#xf275;',
339
+ 'info' => '&#xf129;',
340
+ 'info-circle' => '&#xf05a;',
341
+ 'inr' => '&#xf156;',
342
+ 'instagram' => '&#xf16d;',
343
+ 'institution' => '&#xf19c;',
344
+ 'internet-explorer' => '&#xf26b;',
345
+ 'intersex' => '&#xf224;',
346
+ 'ioxhost' => '&#xf208;',
347
+ 'italic' => '&#xf033;',
348
+ 'joomla' => '&#xf1aa;',
349
+ 'jpy' => '&#xf157;',
350
+ 'jsfiddle' => '&#xf1cc;',
351
+ 'key' => '&#xf084;',
352
+ 'keyboard-o' => '&#xf11c;',
353
+ 'krw' => '&#xf159;',
354
+ 'language' => '&#xf1ab;',
355
+ 'laptop' => '&#xf109;',
356
+ 'lastfm' => '&#xf202;',
357
+ 'lastfm-square' => '&#xf203;',
358
+ 'leaf' => '&#xf06c;',
359
+ 'leanpub' => '&#xf212;',
360
+ 'legal' => '&#xf0e3;',
361
+ 'lemon-o' => '&#xf094;',
362
+ 'level-down' => '&#xf149;',
363
+ 'level-up' => '&#xf148;',
364
+ 'life-bouy' => '&#xf1cd;',
365
+ 'life-buoy' => '&#xf1cd;',
366
+ 'life-ring' => '&#xf1cd;',
367
+ 'life-saver' => '&#xf1cd;',
368
+ 'lightbulb-o' => '&#xf0eb;',
369
+ 'line-chart' => '&#xf201;',
370
+ 'link' => '&#xf0c1;',
371
+ 'linkedin' => '&#xf0e1;',
372
+ 'linkedin-square' => '&#xf08c;',
373
+ 'linux' => '&#xf17c;',
374
+ 'list' => '&#xf03a;',
375
+ 'list-alt' => '&#xf022;',
376
+ 'list-ol' => '&#xf0cb;',
377
+ 'list-ul' => '&#xf0ca;',
378
+ 'location-arrow' => '&#xf124;',
379
+ 'lock' => '&#xf023;',
380
+ 'long-arrow-down' => '&#xf175;',
381
+ 'long-arrow-left' => '&#xf177;',
382
+ 'long-arrow-right' => '&#xf178;',
383
+ 'long-arrow-up' => '&#xf176;',
384
+ 'magic' => '&#xf0d0;',
385
+ 'magnet' => '&#xf076;',
386
+ 'mail-forward' => '&#xf064;',
387
+ 'mail-reply' => '&#xf112;',
388
+ 'mail-reply-all' => '&#xf122;',
389
+ 'male' => '&#xf183;',
390
+ 'map' => '&#xf279;',
391
+ 'map-marker' => '&#xf041;',
392
+ 'map-o' => '&#xf278;',
393
+ 'map-pin' => '&#xf276;',
394
+ 'map-signs' => '&#xf277;',
395
+ 'mars' => '&#xf222;',
396
+ 'mars-double' => '&#xf227;',
397
+ 'mars-stroke' => '&#xf229;',
398
+ 'mars-stroke-h' => '&#xf22b;',
399
+ 'mars-stroke-v' => '&#xf22a;',
400
+ 'maxcdn' => '&#xf136;',
401
+ 'meanpath' => '&#xf20c;',
402
+ 'medium' => '&#xf23a;',
403
+ 'medkit' => '&#xf0fa;',
404
+ 'meh-o' => '&#xf11a;',
405
+ 'mercury' => '&#xf223;',
406
+ 'microphone' => '&#xf130;',
407
+ 'microphone-slash' => '&#xf131;',
408
+ 'minus' => '&#xf068;',
409
+ 'minus-circle' => '&#xf056;',
410
+ 'minus-square' => '&#xf146;',
411
+ 'minus-square-o' => '&#xf147;',
412
+ 'mobile' => '&#xf10b;',
413
+ 'mobile-phone' => '&#xf10b;',
414
+ 'money' => '&#xf0d6;',
415
+ 'moon-o' => '&#xf186;',
416
+ 'mortar-board' => '&#xf19d;',
417
+ 'motorcycle' => '&#xf21c;',
418
+ 'mouse-pointer' => '&#xf245;',
419
+ 'music' => '&#xf001;',
420
+ 'navicon' => '&#xf0c9;',
421
+ 'neuter' => '&#xf22c;',
422
+ 'newspaper-o' => '&#xf1ea;',
423
+ 'object-group' => '&#xf247;',
424
+ 'object-ungroup' => '&#xf248;',
425
+ 'odnoklassniki' => '&#xf263;',
426
+ 'odnoklassniki-square' => '&#xf264;',
427
+ 'opencart' => '&#xf23d;',
428
+ 'openid' => '&#xf19b;',
429
+ 'opera' => '&#xf26a;',
430
+ 'optin-monster' => '&#xf23c;',
431
+ 'outdent' => '&#xf03b;',
432
+ 'pagelines' => '&#xf18c;',
433
+ 'paint-brush' => '&#xf1fc;',
434
+ 'paper-plane' => '&#xf1d8;',
435
+ 'paper-plane-o' => '&#xf1d9;',
436
+ 'paperclip' => '&#xf0c6;',
437
+ 'paragraph' => '&#xf1dd;',
438
+ 'paste' => '&#xf0ea;',
439
+ 'pause' => '&#xf04c;',
440
+ 'paw' => '&#xf1b0;',
441
+ 'paypal' => '&#xf1ed;',
442
+ 'pencil' => '&#xf040;',
443
+ 'pencil-square' => '&#xf14b;',
444
+ 'pencil-square-o' => '&#xf044;',
445
+ 'phone' => '&#xf095;',
446
+ 'phone-square' => '&#xf098;',
447
+ 'photo' => '&#xf03e;',
448
+ 'picture-o' => '&#xf03e;',
449
+ 'pie-chart' => '&#xf200;',
450
+ 'pied-piper' => '&#xf1a7;',
451
+ 'pied-piper-alt' => '&#xf1a8;',
452
+ 'pinterest' => '&#xf0d2;',
453
+ 'pinterest-p' => '&#xf231;',
454
+ 'pinterest-square' => '&#xf0d3;',
455
+ 'plane' => '&#xf072;',
456
+ 'play' => '&#xf04b;',
457
+ 'play-circle' => '&#xf144;',
458
+ 'play-circle-o' => '&#xf01d;',
459
+ 'plug' => '&#xf1e6;',
460
+ 'plus' => '&#xf067;',
461
+ 'plus-circle' => '&#xf055;',
462
+ 'plus-square' => '&#xf0fe;',
463
+ 'plus-square-o' => '&#xf196;',
464
+ 'power-off' => '&#xf011;',
465
+ 'print' => '&#xf02f;',
466
+ 'puzzle-piece' => '&#xf12e;',
467
+ 'qq' => '&#xf1d6;',
468
+ 'qrcode' => '&#xf029;',
469
+ 'question' => '&#xf128;',
470
+ 'question-circle' => '&#xf059;',
471
+ 'quote-left' => '&#xf10d;',
472
+ 'quote-right' => '&#xf10e;',
473
+ 'ra' => '&#xf1d0;',
474
+ 'random' => '&#xf074;',
475
+ 'rebel' => '&#xf1d0;',
476
+ 'recycle' => '&#xf1b8;',
477
+ 'reddit' => '&#xf1a1;',
478
+ 'reddit-square' => '&#xf1a2;',
479
+ 'refresh' => '&#xf021;',
480
+ 'registered' => '&#xf25d;',
481
+ 'remove' => '&#xf00d;',
482
+ 'renren' => '&#xf18b;',
483
+ 'reorder' => '&#xf0c9;',
484
+ 'repeat' => '&#xf01e;',
485
+ 'reply' => '&#xf112;',
486
+ 'reply-all' => '&#xf122;',
487
+ 'retweet' => '&#xf079;',
488
+ 'rmb' => '&#xf157;',
489
+ 'road' => '&#xf018;',
490
+ 'rocket' => '&#xf135;',
491
+ 'rotate-left' => '&#xf0e2;',
492
+ 'rotate-right' => '&#xf01e;',
493
+ 'rouble' => '&#xf158;',
494
+ 'rss' => '&#xf09e;',
495
+ 'rss-square' => '&#xf143;',
496
+ 'rub' => '&#xf158;',
497
+ 'ruble' => '&#xf158;',
498
+ 'rupee' => '&#xf156;',
499
+ 'safari' => '&#xf267;',
500
+ 'save' => '&#xf0c7;',
501
+ 'scissors' => '&#xf0c4;',
502
+ 'search' => '&#xf002;',
503
+ 'search-minus' => '&#xf010;',
504
+ 'search-plus' => '&#xf00e;',
505
+ 'sellsy' => '&#xf213;',
506
+ 'send' => '&#xf1d8;',
507
+ 'send-o' => '&#xf1d9;',
508
+ 'server' => '&#xf233;',
509
+ 'share' => '&#xf064;',
510
+ 'share-alt' => '&#xf1e0;',
511
+ 'share-alt-square' => '&#xf1e1;',
512
+ 'share-square' => '&#xf14d;',
513
+ 'share-square-o' => '&#xf045;',
514
+ 'shekel' => '&#xf20b;',
515
+ 'sheqel' => '&#xf20b;',
516
+ 'shield' => '&#xf132;',
517
+ 'ship' => '&#xf21a;',
518
+ 'shirtsinbulk' => '&#xf214;',
519
+ 'shopping-cart' => '&#xf07a;',
520
+ 'sign-in' => '&#xf090;',
521
+ 'sign-out' => '&#xf08b;',
522
+ 'signal' => '&#xf012;',
523
+ 'simplybuilt' => '&#xf215;',
524
+ 'sitemap' => '&#xf0e8;',
525
+ 'skyatlas' => '&#xf216;',
526
+ 'skype' => '&#xf17e;',
527
+ 'slack' => '&#xf198;',
528
+ 'sliders' => '&#xf1de;',
529
+ 'slideshare' => '&#xf1e7;',
530
+ 'smile-o' => '&#xf118;',
531
+ 'soccer-ball-o' => '&#xf1e3;',
532
+ 'sort' => '&#xf0dc;',
533
+ 'sort-alpha-asc' => '&#xf15d;',
534
+ 'sort-alpha-desc' => '&#xf15e;',
535
+ 'sort-amount-asc' => '&#xf160;',
536
+ 'sort-amount-desc' => '&#xf161;',
537
+ 'sort-asc' => '&#xf0de;',
538
+ 'sort-desc' => '&#xf0dd;',
539
+ 'sort-down' => '&#xf0dd;',
540
+ 'sort-numeric-asc' => '&#xf162;',
541
+ 'sort-numeric-desc' => '&#xf163;',
542
+ 'sort-up' => '&#xf0de;',
543
+ 'soundcloud' => '&#xf1be;',
544
+ 'space-shuttle' => '&#xf197;',
545
+ 'spinner' => '&#xf110;',
546
+ 'spoon' => '&#xf1b1;',
547
+ 'spotify' => '&#xf1bc;',
548
+ 'square' => '&#xf0c8;',
549
+ 'square-o' => '&#xf096;',
550
+ 'stack-exchange' => '&#xf18d;',
551
+ 'stack-overflow' => '&#xf16c;',
552
+ 'star' => '&#xf005;',
553
+ 'star-half' => '&#xf089;',
554
+ 'star-half-empty' => '&#xf123;',
555
+ 'star-half-full' => '&#xf123;',
556
+ 'star-half-o' => '&#xf123;',
557
+ 'star-o' => '&#xf006;',
558
+ 'steam' => '&#xf1b6;',
559
+ 'steam-square' => '&#xf1b7;',
560
+ 'step-backward' => '&#xf048;',
561
+ 'step-forward' => '&#xf051;',
562
+ 'stethoscope' => '&#xf0f1;',
563
+ 'sticky-note' => '&#xf249;',
564
+ 'sticky-note-o' => '&#xf24a;',
565
+ 'stop' => '&#xf04d;',
566
+ 'street-view' => '&#xf21d;',
567
+ 'strikethrough' => '&#xf0cc;',
568
+ 'stumbleupon' => '&#xf1a4;',
569
+ 'stumbleupon-circle' => '&#xf1a3;',
570
+ 'subscript' => '&#xf12c;',
571
+ 'subway' => '&#xf239;',
572
+ 'suitcase' => '&#xf0f2;',
573
+ 'sun-o' => '&#xf185;',
574
+ 'superscript' => '&#xf12b;',
575
+ 'support' => '&#xf1cd;',
576
+ 'table' => '&#xf0ce;',
577
+ 'tablet' => '&#xf10a;',
578
+ 'tachometer' => '&#xf0e4;',
579
+ 'tag' => '&#xf02b;',
580
+ 'tags' => '&#xf02c;',
581
+ 'tasks' => '&#xf0ae;',
582
+ 'taxi' => '&#xf1ba;',
583
+ 'television' => '&#xf26c;',
584
+ 'tencent-weibo' => '&#xf1d5;',
585
+ 'terminal' => '&#xf120;',
586
+ 'text-height' => '&#xf034;',
587
+ 'text-width' => '&#xf035;',
588
+ 'th' => '&#xf00a;',
589
+ 'th-large' => '&#xf009;',
590
+ 'th-list' => '&#xf00b;',
591
+ 'thumb-tack' => '&#xf08d;',
592
+ 'thumbs-down' => '&#xf165;',
593
+ 'thumbs-o-down' => '&#xf088;',
594
+ 'thumbs-o-up' => '&#xf087;',
595
+ 'thumbs-up' => '&#xf164;',
596
+ 'ticket' => '&#xf145;',
597
+ 'times' => '&#xf00d;',
598
+ 'times-circle' => '&#xf057;',
599
+ 'times-circle-o' => '&#xf05c;',
600
+ 'tint' => '&#xf043;',
601
+ 'toggle-down' => '&#xf150;',
602
+ 'toggle-left' => '&#xf191;',
603
+ 'toggle-off' => '&#xf204;',
604
+ 'toggle-on' => '&#xf205;',
605
+ 'toggle-right' => '&#xf152;',
606
+ 'toggle-up' => '&#xf151;',
607
+ 'trademark' => '&#xf25c;',
608
+ 'train' => '&#xf238;',
609
+ 'transgender' => '&#xf224;',
610
+ 'transgender-alt' => '&#xf225;',
611
+ 'trash' => '&#xf1f8;',
612
+ 'trash-o' => '&#xf014;',
613
+ 'tree' => '&#xf1bb;',
614
+ 'trello' => '&#xf181;',
615
+ 'tripadvisor' => '&#xf262;',
616
+ 'trophy' => '&#xf091;',
617
+ 'truck' => '&#xf0d1;',
618
+ 'try' => '&#xf195;',
619
+ 'tty' => '&#xf1e4;',
620
+ 'tumblr' => '&#xf173;',
621
+ 'tumblr-square' => '&#xf174;',
622
+ 'turkish-lira' => '&#xf195;',
623
+ 'tv' => '&#xf26c;',
624
+ 'twitch' => '&#xf1e8;',
625
+ 'twitter' => '&#xf099;',
626
+ 'twitter-square' => '&#xf081;',
627
+ 'umbrella' => '&#xf0e9;',
628
+ 'underline' => '&#xf0cd;',
629
+ 'undo' => '&#xf0e2;',
630
+ 'university' => '&#xf19c;',
631
+ 'unlink' => '&#xf127;',
632
+ 'unlock' => '&#xf09c;',
633
+ 'unlock-alt' => '&#xf13e;',
634
+ 'unsorted' => '&#xf0dc;',
635
+ 'upload' => '&#xf093;',
636
+ 'usd' => '&#xf155;',
637
+ 'user' => '&#xf007;',
638
+ 'user-md' => '&#xf0f0;',
639
+ 'user-plus' => '&#xf234;',
640
+ 'user-secret' => '&#xf21b;',
641
+ 'user-times' => '&#xf235;',
642
+ 'users' => '&#xf0c0;',
643
+ 'venus' => '&#xf221;',
644
+ 'venus-double' => '&#xf226;',
645
+ 'venus-mars' => '&#xf228;',
646
+ 'viacoin' => '&#xf237;',
647
+ 'video-camera' => '&#xf03d;',
648
+ 'vimeo' => '&#xf27d;',
649
+ 'vimeo-square' => '&#xf194;',
650
+ 'vine' => '&#xf1ca;',
651
+ 'vk' => '&#xf189;',
652
+ 'volume-down' => '&#xf027;',
653
+ 'volume-off' => '&#xf026;',
654
+ 'volume-up' => '&#xf028;',
655
+ 'warning' => '&#xf071;',
656
+ 'wechat' => '&#xf1d7;',
657
+ 'weibo' => '&#xf18a;',
658
+ 'weixin' => '&#xf1d7;',
659
+ 'whatsapp' => '&#xf232;',
660
+ 'wheelchair' => '&#xf193;',
661
+ 'wifi' => '&#xf1eb;',
662
+ 'wikipedia-w' => '&#xf266;',
663
+ 'windows' => '&#xf17a;',
664
+ 'won' => '&#xf159;',
665
+ 'wordpress' => '&#xf19a;',
666
+ 'wrench' => '&#xf0ad;',
667
+ 'xing' => '&#xf168;',
668
+ 'xing-square' => '&#xf169;',
669
+ 'y-combinator' => '&#xf23b;',
670
+ 'y-combinator-square' => '&#xf1d4;',
671
+ 'yahoo' => '&#xf19e;',
672
+ 'yc' => '&#xf23b;',
673
+ 'yc-square' => '&#xf1d4;',
674
+ 'yelp' => '&#xf1e9;',
675
+ 'yen' => '&#xf157;',
676
+ 'youtube' => '&#xf167;',
677
+ 'youtube-play' => '&#xf16a;',
678
+ 'youtube-square' => '&#xf166;',
679
+ ));
680
+ }
681
+ add_filter('siteorigin_widgets_icons_fontawesome', 'siteorigin_widgets_icons_fontawesome_filter');
icons/genericons/filter.php ADDED
@@ -0,0 +1,131 @@
1
+ <?php
2
+
3
+ function siteorigin_widgets_icons_genericons_filter( $icons ){
4
+ return $icons + array(
5
+ "standard" => '&#xf100;',
6
+ "aside" => '&#xf101;',
7
+ "image" => '&#xf102;',
8
+ "gallery" => '&#xf103;',
9
+ "video" => '&#xf104;',
10
+ "status" => '&#xf105;',
11
+ "quote" => '&#xf106;',
12
+ "link" => '&#xf107;',
13
+ "chat" => '&#xf108;',
14
+ "audio" => '&#xf109;',
15
+ "github" => '&#xf200;',
16
+ "dribbble" => '&#xf201;',
17
+ "twitter" => '&#xf202;',
18
+ "facebook" => '&#xf203;',
19
+ "facebook-alt" => '&#xf204;',
20
+ "wordpress" => '&#xf205;',
21
+ "googleplus" => '&#xf206;',
22
+ "linkedin" => '&#xf207;',
23
+ "linkedin-alt" => '&#xf208;',
24
+ "pinterest" => '&#xf209;',
25
+ "pinterest-alt" => '&#xf210;',
26
+ "flickr" => '&#xf211;',
27
+ "vimeo" => '&#xf212;',
28
+ "youtube" => '&#xf213;',
29
+ "tumblr" => '&#xf214;',
30
+ "instagram" => '&#xf215;',
31
+ "codepen" => '&#xf216;',
32
+ "polldaddy" => '&#xf217;',
33
+ "googleplus-alt" => '&#xf218;',
34
+ "path" => '&#xf219;',
35
+ "skype" => '&#xf220;',
36
+ "digg" => '&#xf221;',
37
+ "reddit" => '&#xf222;',
38
+ "stumbleupon" => '&#xf223;',
39
+ "pocket" => '&#xf224;',
40
+ "dropbox" => '&#xf225;',
41
+ "comment" => '&#xf300;',
42
+ "category" => '&#xf301;',
43
+ "tag" => '&#xf302;',
44
+ "time" => '&#xf303;',
45
+ "user" => '&#xf304;',
46
+ "day" => '&#xf305;',
47
+ "week" => '&#xf306;',
48
+ "month" => '&#xf307;',
49
+ "pinned" => '&#xf308;',
50
+ "search" => '&#xf400;',
51
+ "unzoom" => '&#xf401;',
52
+ "zoom" => '&#xf402;',
53
+ "show" => '&#xf403;',
54
+ "hide" => '&#xf404;',
55
+ "close" => '&#xf405;',
56
+ "close-alt" => '&#xf406;',
57
+ "trash" => '&#xf407;',
58
+ "star" => '&#xf408;',
59
+ "home" => '&#xf409;',
60
+ "mail" => '&#xf410;',
61
+ "edit" => '&#xf411;',
62
+ "reply" => '&#xf412;',
63
+ "feed" => '&#xf413;',
64
+ "warning" => '&#xf414;',
65
+ "share" => '&#xf415;',
66
+ "attachment" => '&#xf416;',
67
+ "location" => '&#xf417;',
68
+ "checkmark" => '&#xf418;',
69
+ "menu" => '&#xf419;',
70
+ "refresh" => '&#xf420;',
71
+ "minimize" => '&#xf421;',
72
+ "maximize" => '&#xf422;',
73
+ "404" => '&#xf423;',
74
+ "spam" => '&#xf424;',
75
+ "summary" => '&#xf425;',
76
+ "cloud" => '&#xf426;',
77
+ "key" => '&#xf427;',
78
+ "dot" => '&#xf428;',
79
+ "next" => '&#xf429;',
80
+ "previous" => '&#xf430;',
81
+ "expand" => '&#xf431;',
82
+ "collapse" => '&#xf432;',
83
+ "dropdown" => '&#xf433;',
84
+ "dropdown-left" => '&#xf434;',
85
+ "top" => '&#xf435;',
86
+ "draggable" => '&#xf436;',
87
+ "phone" => '&#xf437;',
88
+ "send-to-phone" => '&#xf438;',
89
+ "plugin" => '&#xf439;',
90
+ "cloud-download" => '&#xf440;',
91
+ "cloud-upload" => '&#xf441;',
92
+ "external" => '&#xf442;',
93
+ "document" => '&#xf443;',
94
+ "book" => '&#xf444;',
95
+ "cog" => '&#xf445;',
96
+ "unapprove" => '&#xf446;',
97
+ "cart" => '&#xf447;',
98
+ "pause" => '&#xf448;',
99
+ "stop" => '&#xf449;',
100
+ "skip-back" => '&#xf450;',
101
+ "skip-ahead" => '&#xf451;',
102
+ "play" => '&#xf452;',
103
+ "tablet" => '&#xf453;',
104
+ "send-to-tablet" => '&#xf454;',
105
+ "info" => '&#xf455;',
106
+ "notice" => '&#xf456;',
107
+ "help" => '&#xf457;',
108
+ "fastforward" => '&#xf458;',
109
+ "rewind" => '&#xf459;',
110
+ "portfolio" => '&#xf460;',
111
+ "heart" => '&#xf461;',
112
+ "code" => '&#xf462;',
113
+ "subscribe" => '&#xf463;',
114
+ "unsubscribe" => '&#xf464;',
115
+ "subscribed" => '&#xf465;',
116
+ "reply-alt" => '&#xf466;',
117
+ "reply-single" => '&#xf467;',
118
+ "flag" => '&#xf468;',
119
+ "print" => '&#xf469;',
120
+ "lock" => '&#xf470;',
121
+ "bold" => '&#xf471;',
122
+ "italic" => '&#xf472;',
123
+ "picture" => '&#xf473;',
124
+ "fullscreen" => '&#xf474;',
125
+ "uparrow" => '&#xf500;',
126
+ "rightarrow" => '&#xf501;',
127
+ "downarrow" => '&#xf502;',
128
+ "leftarrow" => '&#xf503;',
129
+ );
130
+ }
131
+ add_filter('siteorigin_widgets_icons_genericons', 'siteorigin_widgets_icons_genericons_filter');
icons/icomoon/filter.php ADDED
@@ -0,0 +1,458 @@
1
+ <?php
2
+
3
+ function siteorigin_widgets_icons_icomoon_filter($icons) {
4
+ return array_merge( $icons, array(
5
+ 'home' => '&#xe600;',
6
+ 'home2' => '&#xe601;',
7
+ 'home3' => '&#xe602;',
8
+ 'office' => '&#xe603;',
9
+ 'newspaper' => '&#xe604;',
10
+ 'pencil' => '&#xe605;',
11
+ 'pencil2' => '&#xe606;',
12
+ 'quill' => '&#xe607;',
13
+ 'pen' => '&#xe608;',
14
+ 'blog' => '&#xe609;',
15
+ 'droplet' => '&#xe60a;',
16
+ 'paint-format' => '&#xe60b;',
17
+ 'image' => '&#xe60c;',
18
+ 'image2' => '&#xe60d;',
19
+ 'images' => '&#xe60e;',
20
+ 'camera' => '&#xe60f;',
21
+ 'music' => '&#xe610;',
22
+ 'headphones' => '&#xe611;',
23
+ 'play' => '&#xe612;',
24
+ 'film' => '&#xe613;',
25
+ 'camera2' => '&#xe614;',
26
+ 'dice' => '&#xe615;',
27
+ 'pacman' => '&#xe616;',
28
+ 'spades' => '&#xe617;',
29
+ 'clubs' => '&#xe618;',
30
+ 'diamonds' => '&#xe619;',
31
+ 'pawn' => '&#xe61a;',
32
+ 'bullhorn' => '&#xe61b;',
33
+ 'connection' => '&#xe61c;',
34
+ 'podcast' => '&#xe61d;',
35
+ 'feed' => '&#xe61e;',
36
+ 'book' => '&#xe61f;',
37
+ 'books' => '&#xe620;',
38
+ 'library' => '&#xe621;',
39
+ 'file' => '&#xe622;',
40
+ 'profile' => '&#xe623;',
41
+ 'file2' => '&#xe624;',
42
+ 'file3' => '&#xe625;',
43
+ 'file4' => '&#xe626;',
44
+ 'copy' => '&#xe627;',
45
+ 'copy2' => '&#xe628;',
46
+ 'copy3' => '&#xe629;',
47
+ 'paste' => '&#xe62a;',
48
+ 'paste2' => '&#xe62b;',
49
+ 'paste3' => '&#xe62c;',
50
+ 'stack' => '&#xe62d;',
51
+ 'folder' => '&#xe62e;',
52
+ 'folder-open' => '&#xe62f;',
53
+ 'tag' => '&#xe630;',
54
+ 'tags' => '&#xe631;',
55
+ 'barcode' => '&#xe632;',
56
+ 'qrcode' => '&#xe633;',
57
+ 'ticket' => '&#xe634;',
58
+ 'cart' => '&#xe635;',
59
+ 'cart2' => '&#xe636;',
60
+ 'cart3' => '&#xe637;',
61
+ 'coin' => '&#xe638;',
62
+ 'credit' => '&#xe639;',
63
+ 'calculate' => '&#xe63a;',
64
+ 'support' => '&#xe63b;',
65
+ 'phone' => '&#xe63c;',
66
+ 'phone-hang-up' => '&#xe63d;',
67
+ 'address-book' => '&#xe63e;',
68
+ 'notebook' => '&#xe63f;',
69
+ 'envelope' => '&#xe640;',
70
+ 'pushpin' => '&#xe641;',
71
+ 'location' => '&#xe642;',
72
+ 'location2' => '&#xe643;',
73
+ 'compass' => '&#xe644;',
74
+ 'map' => '&#xe645;',
75
+ 'map2' => '&#xe646;',
76
+ 'history' => '&#xe647;',
77
+ 'clock' => '&#xe648;',
78
+ 'clock2' => '&#xe649;',
79
+ 'alarm' => '&#xe64a;',
80
+ 'alarm2' => '&#xe64b;',
81
+ 'bell' => '&#xe64c;',
82
+ 'stopwatch' => '&#xe64d;',
83
+ 'calendar' => '&#xe64e;',
84
+ 'calendar2' => '&#xe64f;',
85
+ 'print' => '&#xe650;',
86
+ 'keyboard' => '&#xe651;',
87
+ 'screen' => '&#xe652;',
88
+ 'laptop' => '&#xe653;',
89
+ 'mobile' => '&#xe654;',
90
+ 'mobile2' => '&#xe655;',
91
+ 'tablet' => '&#xe656;',
92
+ 'tv' => '&#xe657;',
93
+ 'cabinet' => '&#xe658;',
94
+ 'drawer' => '&#xe659;',
95
+ 'drawer2' => '&#xe65a;',
96
+ 'drawer3' => '&#xe65b;',
97
+ 'box-add' => '&#xe65c;',
98
+ 'box-remove' => '&#xe65d;',
99
+ 'download' => '&#xe65e;',
100
+ 'upload' => '&#xe65f;',
101
+ 'disk' => '&#xe660;',
102
+ 'storage' => '&#xe661;',
103
+ 'undo' => '&#xe662;',
104
+ 'redo' => '&#xe663;',
105
+ 'flip' => '&#xe664;',
106
+ 'flip2' => '&#xe665;',
107
+ 'undo2' => '&#xe666;',
108
+ 'redo2' => '&#xe667;',
109
+ 'forward' => '&#xe668;',
110
+ 'reply' => '&#xe669;',
111
+ 'bubble' => '&#xe66a;',
112
+ 'bubbles' => '&#xe66b;',
113
+ 'bubbles2' => '&#xe66c;',
114
+ 'bubble2' => '&#xe66d;',
115
+ 'bubbles3' => '&#xe66e;',
116
+ 'bubbles4' => '&#xe66f;',
117
+ 'user' => '&#xe670;',
118
+ 'users' => '&#xe671;',
119
+ 'user2' => '&#xe672;',
120
+ 'users2' => '&#xe673;',
121
+ 'user3' => '&#xe674;',
122
+ 'user4' => '&#xe675;',
123
+ 'quotes-left' => '&#xe676;',
124
+ 'busy' => '&#xe677;',
125
+ 'spinner' => '&#xe678;',
126
+ 'spinner2' => '&#xe679;',
127
+ 'spinner3' => '&#xe67a;',
128
+ 'spinner4' => '&#xe67b;',
129
+ 'spinner5' => '&#xe67c;',
130
+ 'spinner6' => '&#xe67d;',
131
+ 'binoculars' => '&#xe67e;',
132
+ 'search' => '&#xe67f;',
133
+ 'zoomin' => '&#xe680;',
134
+ 'zoomout' => '&#xe681;',
135
+ 'expand' => '&#xe682;',
136
+ 'contract' => '&#xe683;',
137
+ 'expand2' => '&#xe684;',
138
+ 'contract2' => '&#xe685;',
139
+ 'key' => '&#xe686;',
140
+ 'key2' => '&#xe687;',
141
+ 'lock' => '&#xe688;',
142
+ 'lock2' => '&#xe689;',
143
+ 'unlocked' => '&#xe68a;',
144
+ 'wrench' => '&#xe68b;',
145
+ 'settings' => '&#xe68c;',
146
+ 'equalizer' => '&#xe68d;',
147
+ 'cog' => '&#xe68e;',
148
+ 'cogs' => '&#xe68f;',
149
+ 'cog2' => '&#xe690;',
150
+ 'hammer' => '&#xe691;',
151
+ 'wand' => '&#xe692;',
152
+ 'aid' => '&#xe693;',
153
+ 'bug' => '&#xe694;',
154
+ 'pie' => '&#xe695;',
155
+ 'stats' => '&#xe696;',
156
+ 'bars' => '&#xe697;',
157
+ 'bars2' => '&#xe698;',
158
+ 'gift' => '&#xe699;',
159
+ 'trophy' => '&#xe69a;',
160
+ 'glass' => '&#xe69b;',
161
+ 'mug' => '&#xe69c;',
162
+ 'food' => '&#xe69d;',
163
+ 'leaf' => '&#xe69e;',
164
+ 'rocket' => '&#xe69f;',
165
+ 'meter' => '&#xe6a0;',
166
+ 'meter2' => '&#xe6a1;',
167
+ 'dashboard' => '&#xe6a2;',
168
+ 'hammer2' => '&#xe6a3;',
169
+ 'fire' => '&#xe6a4;',
170
+ 'lab' => '&#xe6a5;',
171
+ 'magnet' => '&#xe6a6;',
172
+ 'remove' => '&#xe6a7;',
173
+ 'remove2' => '&#xe6a8;',
174
+ 'briefcase' => '&#xe6a9;',
175
+ 'airplane' => '&#xe6aa;',
176
+ 'truck' => '&#xe6ab;',
177
+ 'road' => '&#xe6ac;',
178
+ 'accessibility' => '&#xe6ad;',
179
+ 'target' => '&#xe6ae;',
180
+ 'shield' => '&#xe6af;',
181
+ 'lightning' => '&#xe6b0;',
182
+ 'switch' => '&#xe6b1;',
183
+ 'powercord' => '&#xe6b2;',
184
+ 'signup' => '&#xe6b3;',
185
+ 'list' => '&#xe6b4;',
186
+ 'list2' => '&#xe6b5;',
187
+ 'numbered-list' => '&#xe6b6;',
188
+ 'menu' => '&#xe6b7;',
189
+ 'menu2' => '&#xe6b8;',
190
+ 'tree' => '&#xe6b9;',
191
+ 'cloud' => '&#xe6ba;',
192
+ 'cloud-download' => '&#xe6bb;',
193
+ 'cloud-upload' => '&#xe6bc;',
194
+ 'download2' => '&#xe6bd;',
195
+ 'upload2' => '&#xe6be;',
196
+ 'download3' => '&#xe6bf;',
197
+ 'upload3' => '&#xe6c0;',
198
+ 'globe' => '&#xe6c1;',
199
+ 'earth' => '&#xe6c2;',
200
+ 'link' => '&#xe6c3;',
201
+ 'flag' => '&#xe6c4;',
202
+ 'attachment' => '&#xe6c5;',
203
+ 'eye' => '&#xe6c6;',
204
+ 'eye-blocked' => '&#xe6c7;',
205
+ 'eye2' => '&#xe6c8;',
206
+ 'bookmark' => '&#xe6c9;',
207
+ 'bookmarks' => '&#xe6ca;',
208
+ 'brightness-medium' => '&#xe6cb;',
209
+ 'brightness-contrast' => '&#xe6cc;',
210
+ 'contrast' => '&#xe6cd;',
211
+ 'star' => '&#xe6ce;',
212
+ 'star2' => '&#xe6cf;',
213
+ 'star3' => '&#xe6d0;',
214
+ 'heart' => '&#xe6d1;',
215
+ 'heart2' => '&#xe6d2;',
216
+ 'heart-broken' => '&#xe6d3;',