<?php
/*
Theme Designed By: Meysam Hosseinkhani
Email: Meysam98@Gmail.com
Demo Website: azinfile.elmfile.ir
Author Website: Hosseinkhani.ir
*/
   class Widget_Icon
   {
   	private $icons_font_awesome = array(
   		"fa-ad"=>"&#xf641;","fa-address-book"=>"&#xf2b9;","fa-address-card"=>"&#xf2bb;","fa-adjust"=>"&#xf042;","fa-air-freshener"=>"&#xf5d0;","fa-align-center"=>"&#xf037;","fa-align-justify"=>"&#xf039;","fa-align-left"=>"&#xf036;","fa-align-right"=>"&#xf038;","fa-allergies"=>"&#xf461;","fa-ambulance"=>"&#xf0f9;","fa-american-sign-language-interpreting"=>"&#xf2a3;","fa-anchor"=>"&#xf13d;","fa-angle-double-down"=>"&#xf103;","fa-angle-double-left"=>"&#xf100;","fa-angle-double-right"=>"&#xf101;","fa-angle-double-up"=>"&#xf102;","fa-angle-down"=>"&#xf107;","fa-angle-left"=>"&#xf104;","fa-angle-right"=>"&#xf105;","fa-angle-up"=>"&#xf106;","fa-angry"=>"&#xf556;","fa-ankh"=>"&#xf644;","fa-apple-alt"=>"&#xf5d1;","fa-archive"=>"&#xf187;","fa-archway"=>"&#xf557;","fa-arrow-alt-circle-down"=>"&#xf358;","fa-arrow-alt-circle-left"=>"&#xf359;","fa-arrow-alt-circle-right"=>"&#xf35a;","fa-arrow-alt-circle-up"=>"&#xf35b;","fa-arrow-circle-down"=>"&#xf0ab;","fa-arrow-circle-left"=>"&#xf0a8;","fa-arrow-circle-right"=>"&#xf0a9;","fa-arrow-circle-up"=>"&#xf0aa;","fa-arrow-down"=>"&#xf063;","fa-arrow-left"=>"&#xf060;","fa-arrow-right"=>"&#xf061;","fa-arrow-up"=>"&#xf062;","fa-arrows-alt"=>"&#xf0b2;","fa-arrows-alt-h"=>"&#xf337;","fa-arrows-alt-v"=>"&#xf338;","fa-assistive-listening-systems"=>"&#xf2a2;","fa-asterisk"=>"&#xf069;","fa-at"=>"&#xf1fa;","fa-atlas"=>"&#xf558;","fa-atom"=>"&#xf5d2;","fa-audio-description"=>"&#xf29e;","fa-award"=>"&#xf559;","fa-baby"=>"&#xf77c;","fa-baby-carriage"=>"&#xf77d;","fa-backspace"=>"&#xf55a;","fa-backward"=>"&#xf04a;","fa-bacon"=>"&#xf7e5;","fa-bacteria"=>"&#xf959;","fa-bacterium"=>"&#xf95a;","fa-bahai"=>"&#xf666;","fa-balance-scale"=>"&#xf24e;","fa-balance-scale-left"=>"&#xf515;","fa-balance-scale-right"=>"&#xf516;","fa-ban"=>"&#xf05e;","fa-band-aid"=>"&#xf462;","fa-barcode"=>"&#xf02a;","fa-bars"=>"&#xf0c9;","fa-baseball-ball"=>"&#xf433;","fa-basketball-ball"=>"&#xf434;","fa-bath"=>"&#xf2cd;","fa-battery-empty"=>"&#xf244;","fa-battery-full"=>"&#xf240;","fa-battery-half"=>"&#xf242;","fa-battery-quarter"=>"&#xf243;","fa-battery-three-quarters"=>"&#xf241;","fa-bed"=>"&#xf236;","fa-beer"=>"&#xf0fc;","fa-bell"=>"&#xf0f3;","fa-bell-slash"=>"&#xf1f6;","fa-bezier-curve"=>"&#xf55b;","fa-bible"=>"&#xf647;","fa-bicycle"=>"&#xf206;","fa-biking"=>"&#xf84a;","fa-binoculars"=>"&#xf1e5;","fa-biohazard"=>"&#xf780;","fa-birthday-cake"=>"&#xf1fd;","fa-blender"=>"&#xf517;","fa-blender-phone"=>"&#xf6b6;","fa-blind"=>"&#xf29d;","fa-blog"=>"&#xf781;","fa-bold"=>"&#xf032;","fa-bolt"=>"&#xf0e7;","fa-bomb"=>"&#xf1e2;","fa-bone"=>"&#xf5d7;","fa-bong"=>"&#xf55c;","fa-book"=>"&#xf02d;","fa-book-dead"=>"&#xf6b7;","fa-book-medical"=>"&#xf7e6;","fa-book-open"=>"&#xf518;","fa-book-reader"=>"&#xf5da;","fa-bookmark"=>"&#xf02e;","fa-border-all"=>"&#xf84c;","fa-border-none"=>"&#xf850;","fa-border-style"=>"&#xf853;","fa-bowling-ball"=>"&#xf436;","fa-box"=>"&#xf466;","fa-box-open"=>"&#xf49e;","fa-box-tissue"=>"&#xf95b;","fa-boxes"=>"&#xf468;","fa-braille"=>"&#xf2a1;","fa-brain"=>"&#xf5dc;","fa-bread-slice"=>"&#xf7ec;","fa-briefcase"=>"&#xf0b1;","fa-briefcase-medical"=>"&#xf469;","fa-broadcast-tower"=>"&#xf519;","fa-broom"=>"&#xf51a;","fa-brush"=>"&#xf55d;","fa-bug"=>"&#xf188;","fa-building"=>"&#xf1ad;","fa-bullhorn"=>"&#xf0a1;","fa-bullseye"=>"&#xf140;","fa-burn"=>"&#xf46a;","fa-bus"=>"&#xf207;","fa-bus-alt"=>"&#xf55e;","fa-business-time"=>"&#xf64a;","fa-calculator"=>"&#xf1ec;","fa-calendar"=>"&#xf133;","fa-calendar-alt"=>"&#xf073;","fa-calendar-check"=>"&#xf274;","fa-calendar-day"=>"&#xf783;","fa-calendar-minus"=>"&#xf272;","fa-calendar-plus"=>"&#xf271;","fa-calendar-times"=>"&#xf273;","fa-calendar-week"=>"&#xf784;","fa-camera"=>"&#xf030;","fa-camera-retro"=>"&#xf083;","fa-campground"=>"&#xf6bb;","fa-candy-cane"=>"&#xf786;","fa-cannabis"=>"&#xf55f;","fa-capsules"=>"&#xf46b;","fa-car"=>"&#xf1b9;","fa-car-alt"=>"&#xf5de;","fa-car-battery"=>"&#xf5df;","fa-car-crash"=>"&#xf5e1;","fa-car-side"=>"&#xf5e4;","fa-caravan"=>"&#xf8ff;","fa-caret-down"=>"&#xf0d7;","fa-caret-left"=>"&#xf0d9;","fa-caret-right"=>"&#xf0da;","fa-caret-square-down"=>"&#xf150;","fa-caret-square-left"=>"&#xf191;","fa-caret-square-right"=>"&#xf152;","fa-caret-square-up"=>"&#xf151;","fa-caret-up"=>"&#xf0d8;","fa-carrot"=>"&#xf787;","fa-cart-arrow-down"=>"&#xf218;","fa-cart-plus"=>"&#xf217;","fa-cash-register"=>"&#xf788;","fa-cat"=>"&#xf6be;","fa-certificate"=>"&#xf0a3;","fa-chair"=>"&#xf6c0;","fa-chalkboard"=>"&#xf51b;","fa-chalkboard-teacher"=>"&#xf51c;","fa-charging-station"=>"&#xf5e7;","fa-chart-area"=>"&#xf1fe;","fa-chart-bar"=>"&#xf080;","fa-chart-line"=>"&#xf201;","fa-chart-pie"=>"&#xf200;","fa-check"=>"&#xf00c;","fa-check-circle"=>"&#xf058;","fa-check-double"=>"&#xf560;","fa-check-square"=>"&#xf14a;","fa-cheese"=>"&#xf7ef;","fa-chess"=>"&#xf439;","fa-chess-bishop"=>"&#xf43a;","fa-chess-board"=>"&#xf43c;","fa-chess-king"=>"&#xf43f;","fa-chess-knight"=>"&#xf441;","fa-chess-pawn"=>"&#xf443;","fa-chess-queen"=>"&#xf445;","fa-chess-rook"=>"&#xf447;","fa-chevron-circle-down"=>"&#xf13a;","fa-chevron-circle-left"=>"&#xf137;","fa-chevron-circle-right"=>"&#xf138;","fa-chevron-circle-up"=>"&#xf139;","fa-chevron-down"=>"&#xf078;","fa-chevron-left"=>"&#xf053;","fa-chevron-right"=>"&#xf054;","fa-chevron-up"=>"&#xf077;","fa-child"=>"&#xf1ae;","fa-church"=>"&#xf51d;","fa-circle"=>"&#xf111;","fa-circle-notch"=>"&#xf1ce;","fa-city"=>"&#xf64f;","fa-clinic-medical"=>"&#xf7f2;","fa-clipboard"=>"&#xf328;","fa-clipboard-check"=>"&#xf46c;","fa-clipboard-list"=>"&#xf46d;","fa-clock"=>"&#xf017;","fa-clone"=>"&#xf24d;","fa-closed-captioning"=>"&#xf20a;","fa-cloud"=>"&#xf0c2;","fa-cloud-download-alt"=>"&#xf381;","fa-cloud-meatball"=>"&#xf73b;","fa-cloud-moon"=>"&#xf6c3;","fa-cloud-moon-rain"=>"&#xf73c;","fa-cloud-rain"=>"&#xf73d;","fa-cloud-showers-heavy"=>"&#xf740;","fa-cloud-sun"=>"&#xf6c4;","fa-cloud-sun-rain"=>"&#xf743;","fa-cloud-upload-alt"=>"&#xf382;","fa-cocktail"=>"&#xf561;","fa-code"=>"&#xf121;","fa-code-branch"=>"&#xf126;","fa-coffee"=>"&#xf0f4;","fa-cog"=>"&#xf013;","fa-cogs"=>"&#xf085;","fa-coins"=>"&#xf51e;","fa-columns"=>"&#xf0db;","fa-comment"=>"&#xf075;","fa-comment-alt"=>"&#xf27a;","fa-comment-dollar"=>"&#xf651;","fa-comment-dots"=>"&#xf4ad;","fa-comment-medical"=>"&#xf7f5;","fa-comment-slash"=>"&#xf4b3;","fa-comments"=>"&#xf086;","fa-comments-dollar"=>"&#xf653;","fa-compact-disc"=>"&#xf51f;","fa-compass"=>"&#xf14e;","fa-compress"=>"&#xf066;","fa-compress-alt"=>"&#xf422;","fa-compress-arrows-alt"=>"&#xf78c;","fa-concierge-bell"=>"&#xf562;","fa-cookie"=>"&#xf563;","fa-cookie-bite"=>"&#xf564;","fa-copy"=>"&#xf0c5;","fa-copyright"=>"&#xf1f9;","fa-couch"=>"&#xf4b8;","fa-credit-card"=>"&#xf09d;","fa-crop"=>"&#xf125;","fa-crop-alt"=>"&#xf565;","fa-cross"=>"&#xf654;","fa-crosshairs"=>"&#xf05b;","fa-crow"=>"&#xf520;","fa-crown"=>"&#xf521;","fa-crutch"=>"&#xf7f7;","fa-cube"=>"&#xf1b2;","fa-cubes"=>"&#xf1b3;","fa-cut"=>"&#xf0c4;","fa-database"=>"&#xf1c0;","fa-deaf"=>"&#xf2a4;","fa-democrat"=>"&#xf747;","fa-desktop"=>"&#xf108;","fa-dharmachakra"=>"&#xf655;","fa-diagnoses"=>"&#xf470;","fa-dice"=>"&#xf522;","fa-dice-d20"=>"&#xf6cf;","fa-dice-d6"=>"&#xf6d1;","fa-dice-five"=>"&#xf523;","fa-dice-four"=>"&#xf524;","fa-dice-one"=>"&#xf525;","fa-dice-six"=>"&#xf526;","fa-dice-three"=>"&#xf527;","fa-dice-two"=>"&#xf528;","fa-digital-tachograph"=>"&#xf566;","fa-directions"=>"&#xf5eb;","fa-disease"=>"&#xf7fa;","fa-divide"=>"&#xf529;","fa-dizzy"=>"&#xf567;","fa-dna"=>"&#xf471;","fa-dog"=>"&#xf6d3;","fa-dollar-sign"=>"&#xf155;","fa-dolly"=>"&#xf472;","fa-dolly-flatbed"=>"&#xf474;","fa-donate"=>"&#xf4b9;","fa-door-closed"=>"&#xf52a;","fa-door-open"=>"&#xf52b;","fa-dot-circle"=>"&#xf192;","fa-dove"=>"&#xf4ba;","fa-download"=>"&#xf019;","fa-drafting-compass"=>"&#xf568;","fa-dragon"=>"&#xf6d5;","fa-draw-polygon"=>"&#xf5ee;","fa-drum"=>"&#xf569;","fa-drum-steelpan"=>"&#xf56a;","fa-drumstick-bite"=>"&#xf6d7;","fa-dumbbell"=>"&#xf44b;","fa-dumpster"=>"&#xf793;","fa-dumpster-fire"=>"&#xf794;","fa-dungeon"=>"&#xf6d9;","fa-edit"=>"&#xf044;","fa-egg"=>"&#xf7fb;","fa-eject"=>"&#xf052;","fa-ellipsis-h"=>"&#xf141;","fa-ellipsis-v"=>"&#xf142;","fa-envelope"=>"&#xf0e0;","fa-envelope-open"=>"&#xf2b6;","fa-envelope-open-text"=>"&#xf658;","fa-envelope-square"=>"&#xf199;","fa-equals"=>"&#xf52c;","fa-eraser"=>"&#xf12d;","fa-ethernet"=>"&#xf796;","fa-euro-sign"=>"&#xf153;","fa-exchange-alt"=>"&#xf362;","fa-exclamation"=>"&#xf12a;","fa-exclamation-circle"=>"&#xf06a;","fa-exclamation-triangle"=>"&#xf071;","fa-expand"=>"&#xf065;","fa-expand-alt"=>"&#xf424;","fa-expand-arrows-alt"=>"&#xf31e;","fa-external-link-alt"=>"&#xf35d;","fa-external-link-square-alt"=>"&#xf360;","fa-eye"=>"&#xf06e;","fa-eye-dropper"=>"&#xf1fb;","fa-eye-slash"=>"&#xf070;","fa-fan"=>"&#xf863;","fa-fast-backward"=>"&#xf049;","fa-fast-forward"=>"&#xf050;","fa-faucet"=>"&#xf905;","fa-fax"=>"&#xf1ac;","fa-feather"=>"&#xf52d;","fa-feather-alt"=>"&#xf56b;","fa-female"=>"&#xf182;","fa-fighter-jet"=>"&#xf0fb;","fa-file"=>"&#xf15b;","fa-file-alt"=>"&#xf15c;","fa-file-archive"=>"&#xf1c6;","fa-file-audio"=>"&#xf1c7;","fa-file-code"=>"&#xf1c9;","fa-file-contract"=>"&#xf56c;","fa-file-csv"=>"&#xf6dd;","fa-file-download"=>"&#xf56d;","fa-file-excel"=>"&#xf1c3;","fa-file-export"=>"&#xf56e;","fa-file-image"=>"&#xf1c5;","fa-file-import"=>"&#xf56f;","fa-file-invoice"=>"&#xf570;","fa-file-invoice-dollar"=>"&#xf571;","fa-file-medical"=>"&#xf477;","fa-file-medical-alt"=>"&#xf478;","fa-file-pdf"=>"&#xf1c1;","fa-file-powerpoint"=>"&#xf1c4;","fa-file-prescription"=>"&#xf572;","fa-file-signature"=>"&#xf573;","fa-file-upload"=>"&#xf574;","fa-file-video"=>"&#xf1c8;","fa-file-word"=>"&#xf1c2;","fa-fill"=>"&#xf575;","fa-fill-drip"=>"&#xf576;","fa-film"=>"&#xf008;","fa-filter"=>"&#xf0b0;","fa-fingerprint"=>"&#xf577;","fa-fire"=>"&#xf06d;","fa-fire-alt"=>"&#xf7e4;","fa-fire-extinguisher"=>"&#xf134;","fa-first-aid"=>"&#xf479;","fa-fish"=>"&#xf578;","fa-fist-raised"=>"&#xf6de;","fa-flag"=>"&#xf024;","fa-flag-checkered"=>"&#xf11e;","fa-flag-usa"=>"&#xf74d;","fa-flask"=>"&#xf0c3;","fa-flushed"=>"&#xf579;","fa-folder"=>"&#xf07b;","fa-folder-minus"=>"&#xf65d;","fa-folder-open"=>"&#xf07c;","fa-folder-plus"=>"&#xf65e;","fa-font"=>"&#xf031;","fa-football-ball"=>"&#xf44e;","fa-forward"=>"&#xf04e;","fa-frog"=>"&#xf52e;","fa-frown"=>"&#xf119;","fa-frown-open"=>"&#xf57a;","fa-funnel-dollar"=>"&#xf662;","fa-futbol"=>"&#xf1e3;","fa-gamepad"=>"&#xf11b;","fa-gas-pump"=>"&#xf52f;","fa-gavel"=>"&#xf0e3;","fa-gem"=>"&#xf3a5;","fa-genderless"=>"&#xf22d;","fa-ghost"=>"&#xf6e2;","fa-gift"=>"&#xf06b;","fa-gifts"=>"&#xf79c;","fa-glass-cheers"=>"&#xf79f;","fa-glass-martini"=>"&#xf000;","fa-glass-martini-alt"=>"&#xf57b;","fa-glass-whiskey"=>"&#xf7a0;","fa-glasses"=>"&#xf530;","fa-globe"=>"&#xf0ac;","fa-globe-africa"=>"&#xf57c;","fa-globe-americas"=>"&#xf57d;","fa-globe-asia"=>"&#xf57e;","fa-globe-europe"=>"&#xf7a2;","fa-golf-ball"=>"&#xf450;","fa-gopuram"=>"&#xf664;","fa-graduation-cap"=>"&#xf19d;","fa-greater-than"=>"&#xf531;","fa-greater-than-equal"=>"&#xf532;","fa-grimace"=>"&#xf57f;","fa-grin"=>"&#xf580;","fa-grin-alt"=>"&#xf581;","fa-grin-beam"=>"&#xf582;","fa-grin-beam-sweat"=>"&#xf583;","fa-grin-hearts"=>"&#xf584;","fa-grin-squint"=>"&#xf585;","fa-grin-squint-tears"=>"&#xf586;","fa-grin-stars"=>"&#xf587;","fa-grin-tears"=>"&#xf588;","fa-grin-tongue"=>"&#xf589;","fa-grin-tongue-squint"=>"&#xf58a;","fa-grin-tongue-wink"=>"&#xf58b;","fa-grin-wink"=>"&#xf58c;","fa-grip-horizontal"=>"&#xf58d;","fa-grip-lines"=>"&#xf7a4;","fa-grip-lines-vertical"=>"&#xf7a5;","fa-grip-vertical"=>"&#xf58e;","fa-guitar"=>"&#xf7a6;","fa-h-square"=>"&#xf0fd;","fa-hamburger"=>"&#xf805;","fa-hammer"=>"&#xf6e3;","fa-hamsa"=>"&#xf665;","fa-hand-holding"=>"&#xf4bd;","fa-hand-holding-heart"=>"&#xf4be;","fa-hand-holding-medical"=>"&#xf95c;","fa-hand-holding-usd"=>"&#xf4c0;","fa-hand-holding-water"=>"&#xf4c1;","fa-hand-lizard"=>"&#xf258;","fa-hand-middle-finger"=>"&#xf806;","fa-hand-paper"=>"&#xf256;","fa-hand-peace"=>"&#xf25b;","fa-hand-point-down"=>"&#xf0a7;","fa-hand-point-left"=>"&#xf0a5;","fa-hand-point-right"=>"&#xf0a4;","fa-hand-point-up"=>"&#xf0a6;","fa-hand-pointer"=>"&#xf25a;","fa-hand-rock"=>"&#xf255;","fa-hand-scissors"=>"&#xf257;","fa-hand-sparkles"=>"&#xf95d;","fa-hand-spock"=>"&#xf259;","fa-hands"=>"&#xf4c2;","fa-hands-helping"=>"&#xf4c4;","fa-hands-wash"=>"&#xf95e;","fa-handshake"=>"&#xf2b5;","fa-handshake-alt-slash"=>"&#xf95f;","fa-handshake-slash"=>"&#xf960;","fa-hanukiah"=>"&#xf6e6;","fa-hard-hat"=>"&#xf807;","fa-hashtag"=>"&#xf292;","fa-hat-cowboy"=>"&#xf8c0;","fa-hat-cowboy-side"=>"&#xf8c1;","fa-hat-wizard"=>"&#xf6e8;","fa-hdd"=>"&#xf0a0;","fa-head-side-cough"=>"&#xf961;","fa-head-side-cough-slash"=>"&#xf962;","fa-head-side-mask"=>"&#xf963;","fa-head-side-virus"=>"&#xf964;","fa-heading"=>"&#xf1dc;","fa-headphones"=>"&#xf025;","fa-headphones-alt"=>"&#xf58f;","fa-headset"=>"&#xf590;","fa-heart"=>"&#xf004;","fa-heart-broken"=>"&#xf7a9;","fa-heartbeat"=>"&#xf21e;","fa-helicopter"=>"&#xf533;","fa-highlighter"=>"&#xf591;","fa-hiking"=>"&#xf6ec;","fa-hippo"=>"&#xf6ed;","fa-history"=>"&#xf1da;","fa-hockey-puck"=>"&#xf453;","fa-holly-berry"=>"&#xf7aa;","fa-home"=>"&#xf015;","fa-horse"=>"&#xf6f0;","fa-horse-head"=>"&#xf7ab;","fa-hospital"=>"&#xf0f8;","fa-hospital-alt"=>"&#xf47d;","fa-hospital-symbol"=>"&#xf47e;","fa-hospital-user"=>"&#xf80d;","fa-hot-tub"=>"&#xf593;","fa-hotdog"=>"&#xf80f;","fa-hotel"=>"&#xf594;","fa-hourglass"=>"&#xf254;","fa-hourglass-end"=>"&#xf253;","fa-hourglass-half"=>"&#xf252;","fa-hourglass-start"=>"&#xf251;","fa-house-damage"=>"&#xf6f1;","fa-house-user"=>"&#xf965;","fa-hryvnia"=>"&#xf6f2;","fa-i-cursor"=>"&#xf246;","fa-ice-cream"=>"&#xf810;","fa-icicles"=>"&#xf7ad;","fa-icons"=>"&#xf86d;","fa-id-badge"=>"&#xf2c1;","fa-id-card"=>"&#xf2c2;","fa-id-card-alt"=>"&#xf47f;","fa-igloo"=>"&#xf7ae;","fa-image"=>"&#xf03e;","fa-images"=>"&#xf302;","fa-inbox"=>"&#xf01c;","fa-indent"=>"&#xf03c;","fa-industry"=>"&#xf275;","fa-infinity"=>"&#xf534;","fa-info"=>"&#xf129;","fa-info-circle"=>"&#xf05a;","fa-italic"=>"&#xf033;","fa-jedi"=>"&#xf669;","fa-joint"=>"&#xf595;","fa-journal-whills"=>"&#xf66a;","fa-kaaba"=>"&#xf66b;","fa-key"=>"&#xf084;","fa-keyboard"=>"&#xf11c;","fa-khanda"=>"&#xf66d;","fa-kiss"=>"&#xf596;","fa-kiss-beam"=>"&#xf597;","fa-kiss-wink-heart"=>"&#xf598;","fa-kiwi-bird"=>"&#xf535;","fa-landmark"=>"&#xf66f;","fa-language"=>"&#xf1ab;","fa-laptop"=>"&#xf109;","fa-laptop-code"=>"&#xf5fc;","fa-laptop-house"=>"&#xf966;","fa-laptop-medical"=>"&#xf812;","fa-laugh"=>"&#xf599;","fa-laugh-beam"=>"&#xf59a;","fa-laugh-squint"=>"&#xf59b;","fa-laugh-wink"=>"&#xf59c;","fa-layer-group"=>"&#xf5fd;","fa-leaf"=>"&#xf06c;","fa-lemon"=>"&#xf094;","fa-less-than"=>"&#xf536;","fa-less-than-equal"=>"&#xf537;","fa-level-down-alt"=>"&#xf3be;","fa-level-up-alt"=>"&#xf3bf;","fa-life-ring"=>"&#xf1cd;","fa-lightbulb"=>"&#xf0eb;","fa-link"=>"&#xf0c1;","fa-lira-sign"=>"&#xf195;","fa-list"=>"&#xf03a;","fa-list-alt"=>"&#xf022;","fa-list-ol"=>"&#xf0cb;","fa-list-ul"=>"&#xf0ca;","fa-location-arrow"=>"&#xf124;","fa-lock"=>"&#xf023;","fa-lock-open"=>"&#xf3c1;","fa-long-arrow-alt-down"=>"&#xf309;","fa-long-arrow-alt-left"=>"&#xf30a;","fa-long-arrow-alt-right"=>"&#xf30b;","fa-long-arrow-alt-up"=>"&#xf30c;","fa-low-vision"=>"&#xf2a8;","fa-luggage-cart"=>"&#xf59d;","fa-lungs"=>"&#xf604;","fa-lungs-virus"=>"&#xf967;","fa-magic"=>"&#xf0d0;","fa-magnet"=>"&#xf076;","fa-mail-bulk"=>"&#xf674;","fa-male"=>"&#xf183;","fa-map"=>"&#xf279;","fa-map-marked"=>"&#xf59f;","fa-map-marked-alt"=>"&#xf5a0;","fa-map-marker"=>"&#xf041;","fa-map-marker-alt"=>"&#xf3c5;","fa-map-pin"=>"&#xf276;","fa-map-signs"=>"&#xf277;","fa-marker"=>"&#xf5a1;","fa-mars"=>"&#xf222;","fa-mars-double"=>"&#xf227;","fa-mars-stroke"=>"&#xf229;","fa-mars-stroke-h"=>"&#xf22b;","fa-mars-stroke-v"=>"&#xf22a;","fa-mask"=>"&#xf6fa;","fa-medal"=>"&#xf5a2;","fa-medkit"=>"&#xf0fa;","fa-meh"=>"&#xf11a;","fa-meh-blank"=>"&#xf5a4;","fa-meh-rolling-eyes"=>"&#xf5a5;","fa-memory"=>"&#xf538;","fa-menorah"=>"&#xf676;","fa-mercury"=>"&#xf223;","fa-meteor"=>"&#xf753;","fa-microchip"=>"&#xf2db;","fa-microphone"=>"&#xf130;","fa-microphone-alt"=>"&#xf3c9;","fa-microphone-alt-slash"=>"&#xf539;","fa-microphone-slash"=>"&#xf131;","fa-microscope"=>"&#xf610;","fa-minus"=>"&#xf068;","fa-minus-circle"=>"&#xf056;","fa-minus-square"=>"&#xf146;","fa-mitten"=>"&#xf7b5;","fa-mobile"=>"&#xf10b;","fa-mobile-alt"=>"&#xf3cd;","fa-money-bill"=>"&#xf0d6;","fa-money-bill-alt"=>"&#xf3d1;","fa-money-bill-wave"=>"&#xf53a;","fa-money-bill-wave-alt"=>"&#xf53b;","fa-money-check"=>"&#xf53c;","fa-money-check-alt"=>"&#xf53d;","fa-monument"=>"&#xf5a6;","fa-moon"=>"&#xf186;","fa-mortar-pestle"=>"&#xf5a7;","fa-mosque"=>"&#xf678;","fa-motorcycle"=>"&#xf21c;","fa-mountain"=>"&#xf6fc;","fa-mouse"=>"&#xf8cc;","fa-mouse-pointer"=>"&#xf245;","fa-mug-hot"=>"&#xf7b6;","fa-music"=>"&#xf001;","fa-network-wired"=>"&#xf6ff;","fa-neuter"=>"&#xf22c;","fa-newspaper"=>"&#xf1ea;","fa-not-equal"=>"&#xf53e;","fa-notes-medical"=>"&#xf481;","fa-object-group"=>"&#xf247;","fa-object-ungroup"=>"&#xf248;","fa-oil-can"=>"&#xf613;","fa-om"=>"&#xf679;","fa-otter"=>"&#xf700;","fa-outdent"=>"&#xf03b;","fa-pager"=>"&#xf815;","fa-paint-brush"=>"&#xf1fc;","fa-paint-roller"=>"&#xf5aa;","fa-palette"=>"&#xf53f;","fa-pallet"=>"&#xf482;","fa-paper-plane"=>"&#xf1d8;","fa-paperclip"=>"&#xf0c6;","fa-parachute-box"=>"&#xf4cd;","fa-paragraph"=>"&#xf1dd;","fa-parking"=>"&#xf540;","fa-passport"=>"&#xf5ab;","fa-pastafarianism"=>"&#xf67b;","fa-paste"=>"&#xf0ea;","fa-pause"=>"&#xf04c;","fa-pause-circle"=>"&#xf28b;","fa-paw"=>"&#xf1b0;","fa-peace"=>"&#xf67c;","fa-pen"=>"&#xf304;","fa-pen-alt"=>"&#xf305;","fa-pen-fancy"=>"&#xf5ac;","fa-pen-nib"=>"&#xf5ad;","fa-pen-square"=>"&#xf14b;","fa-pencil-alt"=>"&#xf303;","fa-pencil-ruler"=>"&#xf5ae;","fa-people-arrows"=>"&#xf968;","fa-people-carry"=>"&#xf4ce;","fa-pepper-hot"=>"&#xf816;","fa-percent"=>"&#xf295;","fa-percentage"=>"&#xf541;","fa-person-booth"=>"&#xf756;","fa-phone"=>"&#xf095;","fa-phone-alt"=>"&#xf879;","fa-phone-slash"=>"&#xf3dd;","fa-phone-square"=>"&#xf098;","fa-phone-square-alt"=>"&#xf87b;","fa-phone-volume"=>"&#xf2a0;","fa-photo-video"=>"&#xf87c;","fa-piggy-bank"=>"&#xf4d3;","fa-pills"=>"&#xf484;","fa-pizza-slice"=>"&#xf818;","fa-place-of-worship"=>"&#xf67f;","fa-plane"=>"&#xf072;","fa-plane-arrival"=>"&#xf5af;","fa-plane-departure"=>"&#xf5b0;","fa-plane-slash"=>"&#xf969;","fa-play"=>"&#xf04b;","fa-play-circle"=>"&#xf144;","fa-plug"=>"&#xf1e6;","fa-plus"=>"&#xf067;","fa-plus-circle"=>"&#xf055;","fa-plus-square"=>"&#xf0fe;","fa-podcast"=>"&#xf2ce;","fa-poll"=>"&#xf681;","fa-poll-h"=>"&#xf682;","fa-poo"=>"&#xf2fe;","fa-poo-storm"=>"&#xf75a;","fa-poop"=>"&#xf619;","fa-portrait"=>"&#xf3e0;","fa-pound-sign"=>"&#xf154;","fa-power-off"=>"&#xf011;","fa-pray"=>"&#xf683;","fa-praying-hands"=>"&#xf684;","fa-prescription"=>"&#xf5b1;","fa-prescription-bottle"=>"&#xf485;","fa-prescription-bottle-alt"=>"&#xf486;","fa-print"=>"&#xf02f;","fa-procedures"=>"&#xf487;","fa-project-diagram"=>"&#xf542;","fa-pump-medical"=>"&#xf96a;","fa-pump-soap"=>"&#xf96b;","fa-puzzle-piece"=>"&#xf12e;","fa-qrcode"=>"&#xf029;","fa-question"=>"&#xf128;","fa-question-circle"=>"&#xf059;","fa-quidditch"=>"&#xf458;","fa-quote-left"=>"&#xf10d;","fa-quote-right"=>"&#xf10e;","fa-quran"=>"&#xf687;","fa-radiation"=>"&#xf7b9;","fa-radiation-alt"=>"&#xf7ba;","fa-rainbow"=>"&#xf75b;","fa-random"=>"&#xf074;","fa-receipt"=>"&#xf543;","fa-record-vinyl"=>"&#xf8d9;","fa-recycle"=>"&#xf1b8;","fa-redo"=>"&#xf01e;","fa-redo-alt"=>"&#xf2f9;","fa-registered"=>"&#xf25d;","fa-remove-format"=>"&#xf87d;","fa-reply"=>"&#xf3e5;","fa-reply-all"=>"&#xf122;","fa-republican"=>"&#xf75e;","fa-restroom"=>"&#xf7bd;","fa-retweet"=>"&#xf079;","fa-ribbon"=>"&#xf4d6;","fa-ring"=>"&#xf70b;","fa-road"=>"&#xf018;","fa-robot"=>"&#xf544;","fa-rocket"=>"&#xf135;","fa-route"=>"&#xf4d7;","fa-rss"=>"&#xf09e;","fa-rss-square"=>"&#xf143;","fa-ruble-sign"=>"&#xf158;","fa-ruler"=>"&#xf545;","fa-ruler-combined"=>"&#xf546;","fa-ruler-horizontal"=>"&#xf547;","fa-ruler-vertical"=>"&#xf548;","fa-running"=>"&#xf70c;","fa-rupee-sign"=>"&#xf156;","fa-sad-cry"=>"&#xf5b3;","fa-sad-tear"=>"&#xf5b4;","fa-satellite"=>"&#xf7bf;","fa-satellite-dish"=>"&#xf7c0;","fa-save"=>"&#xf0c7;","fa-school"=>"&#xf549;","fa-screwdriver"=>"&#xf54a;","fa-scroll"=>"&#xf70e;","fa-sd-card"=>"&#xf7c2;","fa-search"=>"&#xf002;","fa-search-dollar"=>"&#xf688;","fa-search-location"=>"&#xf689;","fa-search-minus"=>"&#xf010;","fa-search-plus"=>"&#xf00e;","fa-seedling"=>"&#xf4d8;","fa-server"=>"&#xf233;","fa-shapes"=>"&#xf61f;","fa-share"=>"&#xf064;","fa-share-alt"=>"&#xf1e0;","fa-share-alt-square"=>"&#xf1e1;","fa-share-square"=>"&#xf14d;","fa-shekel-sign"=>"&#xf20b;","fa-shield-alt"=>"&#xf3ed;","fa-shield-virus"=>"&#xf96c;","fa-ship"=>"&#xf21a;","fa-shipping-fast"=>"&#xf48b;","fa-shoe-prints"=>"&#xf54b;","fa-shopping-bag"=>"&#xf290;","fa-shopping-basket"=>"&#xf291;","fa-shopping-cart"=>"&#xf07a;","fa-shower"=>"&#xf2cc;","fa-shuttle-van"=>"&#xf5b6;","fa-sign"=>"&#xf4d9;","fa-sign-in-alt"=>"&#xf2f6;","fa-sign-language"=>"&#xf2a7;","fa-sign-out-alt"=>"&#xf2f5;","fa-signal"=>"&#xf012;","fa-signature"=>"&#xf5b7;","fa-sim-card"=>"&#xf7c4;","fa-sink"=>"&#xf96d;","fa-sitemap"=>"&#xf0e8;","fa-skating"=>"&#xf7c5;","fa-skiing"=>"&#xf7c9;","fa-skiing-nordic"=>"&#xf7ca;","fa-skull"=>"&#xf54c;","fa-skull-crossbones"=>"&#xf714;","fa-slash"=>"&#xf715;","fa-sleigh"=>"&#xf7cc;","fa-sliders-h"=>"&#xf1de;","fa-smile"=>"&#xf118;","fa-smile-beam"=>"&#xf5b8;","fa-smile-wink"=>"&#xf4da;","fa-smog"=>"&#xf75f;","fa-smoking"=>"&#xf48d;","fa-smoking-ban"=>"&#xf54d;","fa-sms"=>"&#xf7cd;","fa-snowboarding"=>"&#xf7ce;","fa-snowflake"=>"&#xf2dc;","fa-snowman"=>"&#xf7d0;","fa-snowplow"=>"&#xf7d2;","fa-soap"=>"&#xf96e;","fa-socks"=>"&#xf696;","fa-solar-panel"=>"&#xf5ba;","fa-sort"=>"&#xf0dc;","fa-sort-alpha-down"=>"&#xf15d;","fa-sort-alpha-down-alt"=>"&#xf881;","fa-sort-alpha-up"=>"&#xf15e;","fa-sort-alpha-up-alt"=>"&#xf882;","fa-sort-amount-down"=>"&#xf160;","fa-sort-amount-down-alt"=>"&#xf884;","fa-sort-amount-up"=>"&#xf161;","fa-sort-amount-up-alt"=>"&#xf885;","fa-sort-down"=>"&#xf0dd;","fa-sort-numeric-down"=>"&#xf162;","fa-sort-numeric-down-alt"=>"&#xf886;","fa-sort-numeric-up"=>"&#xf163;","fa-sort-numeric-up-alt"=>"&#xf887;","fa-sort-up"=>"&#xf0de;","fa-spa"=>"&#xf5bb;","fa-space-shuttle"=>"&#xf197;","fa-spell-check"=>"&#xf891;","fa-spider"=>"&#xf717;","fa-spinner"=>"&#xf110;","fa-splotch"=>"&#xf5bc;","fa-spray-can"=>"&#xf5bd;","fa-square"=>"&#xf0c8;","fa-square-full"=>"&#xf45c;","fa-square-root-alt"=>"&#xf698;","fa-stamp"=>"&#xf5bf;","fa-star"=>"&#xf005;","fa-star-and-crescent"=>"&#xf699;","fa-star-half"=>"&#xf089;","fa-star-half-alt"=>"&#xf5c0;","fa-star-of-david"=>"&#xf69a;","fa-star-of-life"=>"&#xf621;","fa-step-backward"=>"&#xf048;","fa-step-forward"=>"&#xf051;","fa-stethoscope"=>"&#xf0f1;","fa-sticky-note"=>"&#xf249;","fa-stop"=>"&#xf04d;","fa-stop-circle"=>"&#xf28d;","fa-stopwatch"=>"&#xf2f2;","fa-stopwatch-20"=>"&#xf96f;","fa-store"=>"&#xf54e;","fa-store-alt"=>"&#xf54f;","fa-store-alt-slash"=>"&#xf970;","fa-store-slash"=>"&#xf971;","fa-stream"=>"&#xf550;","fa-street-view"=>"&#xf21d;","fa-strikethrough"=>"&#xf0cc;","fa-stroopwafel"=>"&#xf551;","fa-subscript"=>"&#xf12c;","fa-subway"=>"&#xf239;","fa-suitcase"=>"&#xf0f2;","fa-suitcase-rolling"=>"&#xf5c1;","fa-sun"=>"&#xf185;","fa-superscript"=>"&#xf12b;","fa-surprise"=>"&#xf5c2;","fa-swatchbook"=>"&#xf5c3;","fa-swimmer"=>"&#xf5c4;","fa-swimming-pool"=>"&#xf5c5;","fa-synagogue"=>"&#xf69b;","fa-sync"=>"&#xf021;","fa-sync-alt"=>"&#xf2f1;","fa-syringe"=>"&#xf48e;","fa-table"=>"&#xf0ce;","fa-table-tennis"=>"&#xf45d;","fa-tablet"=>"&#xf10a;","fa-tablet-alt"=>"&#xf3fa;","fa-tablets"=>"&#xf490;","fa-tachometer-alt"=>"&#xf3fd;","fa-tag"=>"&#xf02b;","fa-tags"=>"&#xf02c;","fa-tape"=>"&#xf4db;","fa-tasks"=>"&#xf0ae;","fa-taxi"=>"&#xf1ba;","fa-teeth"=>"&#xf62e;","fa-teeth-open"=>"&#xf62f;","fa-temperature-high"=>"&#xf769;","fa-temperature-low"=>"&#xf76b;","fa-tenge"=>"&#xf7d7;","fa-terminal"=>"&#xf120;","fa-text-height"=>"&#xf034;","fa-text-width"=>"&#xf035;","fa-th"=>"&#xf00a;","fa-th-large"=>"&#xf009;","fa-th-list"=>"&#xf00b;","fa-theater-masks"=>"&#xf630;","fa-thermometer"=>"&#xf491;","fa-thermometer-empty"=>"&#xf2cb;","fa-thermometer-full"=>"&#xf2c7;","fa-thermometer-half"=>"&#xf2c9;","fa-thermometer-quarter"=>"&#xf2ca;","fa-thermometer-three-quarters"=>"&#xf2c8;","fa-thumbs-down"=>"&#xf165;","fa-thumbs-up"=>"&#xf164;","fa-thumbtack"=>"&#xf08d;","fa-ticket-alt"=>"&#xf3ff;","fa-times"=>"&#xf00d;","fa-times-circle"=>"&#xf057;","fa-tint"=>"&#xf043;","fa-tint-slash"=>"&#xf5c7;","fa-tired"=>"&#xf5c8;","fa-toggle-off"=>"&#xf204;","fa-toggle-on"=>"&#xf205;","fa-toilet"=>"&#xf7d8;","fa-toilet-paper"=>"&#xf71e;","fa-toilet-paper-slash"=>"&#xf972;","fa-toolbox"=>"&#xf552;","fa-tools"=>"&#xf7d9;","fa-tooth"=>"&#xf5c9;","fa-torah"=>"&#xf6a0;","fa-torii-gate"=>"&#xf6a1;","fa-tractor"=>"&#xf722;","fa-trademark"=>"&#xf25c;","fa-traffic-light"=>"&#xf637;","fa-trailer"=>"&#xf941;","fa-train"=>"&#xf238;","fa-tram"=>"&#xf7da;","fa-transgender"=>"&#xf224;","fa-transgender-alt"=>"&#xf225;","fa-trash"=>"&#xf1f8;","fa-trash-alt"=>"&#xf2ed;","fa-trash-restore"=>"&#xf829;","fa-trash-restore-alt"=>"&#xf82a;","fa-tree"=>"&#xf1bb;","fa-trophy"=>"&#xf091;","fa-truck"=>"&#xf0d1;","fa-truck-loading"=>"&#xf4de;","fa-truck-monster"=>"&#xf63b;","fa-truck-moving"=>"&#xf4df;","fa-truck-pickup"=>"&#xf63c;","fa-tshirt"=>"&#xf553;","fa-tty"=>"&#xf1e4;","fa-tv"=>"&#xf26c;","fa-umbrella"=>"&#xf0e9;","fa-umbrella-beach"=>"&#xf5ca;","fa-underline"=>"&#xf0cd;","fa-undo"=>"&#xf0e2;","fa-undo-alt"=>"&#xf2ea;","fa-universal-access"=>"&#xf29a;","fa-university"=>"&#xf19c;","fa-unlink"=>"&#xf127;","fa-unlock"=>"&#xf09c;","fa-unlock-alt"=>"&#xf13e;","fa-upload"=>"&#xf093;","fa-user"=>"&#xf007;","fa-user-alt"=>"&#xf406;","fa-user-alt-slash"=>"&#xf4fa;","fa-user-astronaut"=>"&#xf4fb;","fa-user-check"=>"&#xf4fc;","fa-user-circle"=>"&#xf2bd;","fa-user-clock"=>"&#xf4fd;","fa-user-cog"=>"&#xf4fe;","fa-user-edit"=>"&#xf4ff;","fa-user-friends"=>"&#xf500;","fa-user-graduate"=>"&#xf501;","fa-user-injured"=>"&#xf728;","fa-user-lock"=>"&#xf502;","fa-user-md"=>"&#xf0f0;","fa-user-minus"=>"&#xf503;","fa-user-ninja"=>"&#xf504;","fa-user-nurse"=>"&#xf82f;","fa-user-plus"=>"&#xf234;","fa-user-secret"=>"&#xf21b;","fa-user-shield"=>"&#xf505;","fa-user-slash"=>"&#xf506;","fa-user-tag"=>"&#xf507;","fa-user-tie"=>"&#xf508;","fa-user-times"=>"&#xf235;","fa-users"=>"&#xf0c0;","fa-users-cog"=>"&#xf509;","fa-users-slash"=>"&#xf973;","fa-utensil-spoon"=>"&#xf2e5;","fa-utensils"=>"&#xf2e7;","fa-vector-square"=>"&#xf5cb;","fa-venus"=>"&#xf221;","fa-venus-double"=>"&#xf226;","fa-venus-mars"=>"&#xf228;","fa-vial"=>"&#xf492;","fa-vials"=>"&#xf493;","fa-video"=>"&#xf03d;","fa-video-slash"=>"&#xf4e2;","fa-vihara"=>"&#xf6a7;","fa-virus"=>"&#xf974;","fa-virus-slash"=>"&#xf975;","fa-viruses"=>"&#xf976;","fa-voicemail"=>"&#xf897;","fa-volleyball-ball"=>"&#xf45f;","fa-volume-down"=>"&#xf027;","fa-volume-mute"=>"&#xf6a9;","fa-volume-off"=>"&#xf026;","fa-volume-up"=>"&#xf028;","fa-vote-yea"=>"&#xf772;","fa-vr-cardboard"=>"&#xf729;","fa-walking"=>"&#xf554;","fa-wallet"=>"&#xf555;","fa-warehouse"=>"&#xf494;","fa-water"=>"&#xf773;","fa-wave-square"=>"&#xf83e;","fa-weight"=>"&#xf496;","fa-weight-hanging"=>"&#xf5cd;","fa-wheelchair"=>"&#xf193;","fa-wifi"=>"&#xf1eb;","fa-wind"=>"&#xf72e;","fa-window-close"=>"&#xf410;","fa-window-maximize"=>"&#xf2d0;","fa-window-minimize"=>"&#xf2d1;","fa-window-restore"=>"&#xf2d2;","fa-wine-bottle"=>"&#xf72f;","fa-wine-glass"=>"&#xf4e3;","fa-wine-glass-alt"=>"&#xf5ce;","fa-won-sign"=>"&#xf159;","fa-wrench"=>"&#xf0ad;","fa-x-ray"=>"&#xf497;","fa-yen-sign"=>"&#xf157;","fa-yin-yang"=>"&#xf6ad;"
   	);
   	private $defaults = array(
   		'icon' => 'none'
   	);
   
   	public function __construct()
   	{
   		//actions
   		add_action('in_widget_form', array(&$this, 'display_admin_widget_box_options'), 10, 3);
   		add_action('admin_enqueue_scripts', array(&$this, 'admin_widgets_scripts_styles'));
   
   		//filters
   		add_filter('widget_display_callback', array(&$this, 'display_frontend_widgets'), 10, 3);
   		add_filter('widget_update_callback', array(&$this, 'update_admin_widgets_options'), 10, 3);
   	}
   
   	/**
   	 * Loads admin-side scripts and styles
   	*/
   	public function admin_widgets_scripts_styles($page)
   	{
   		if($page !== 'widgets.php')
           	return;
   
   		wp_enqueue_script('widget-icon', get_template_directory_uri() .'/includes/widget-icon/js/widget-icon.js', array('wp-color-picker'));
   		wp_enqueue_style('widget-icon-admin-style', get_template_directory_uri() .'/includes/widget-icon/css/widget-icon-admin.css');
   	}
   
   	/**
   	 * Displays widget box
   	*/
   	public function display_admin_widget_box_options($widget, $empty, $instance)
   	{
   		$icon = (isset($instance['wi_opt']['widget_icon']) ? $instance['wi_opt']['widget_icon'] : $this->defaults['icon']);
   		
   
   		$widget_color_type = $widget->get_field_name('widget_color_type');
   		$widget_color_type_str = str_replace(array('][', ']', '['), '-', $widget_color_type);
   		$widget_padding_type = $widget->get_field_name('widget_padding_type');
   		$widget_padding_type_str = str_replace(array('][', ']', '['), '-', $widget_padding_type);
   		$widget_library = $widget->get_field_name('widget_library');
   		$widget_library_str = str_replace(array('][', ']', '['), '-', $widget_library);
   
   		ksort($this->icons_font_awesome, SORT_STRING);
   
   
   		$icons_font_awesome = '
   			<select id="'.$widget_library_str.'_font-awesome" name="'.$widget->get_field_name('widget_icon').'" class="js-example-basic-single widget-icon-selection widget-lib-font-awesome icons-font-awesome">
   				<option value="none" '.selected($icon, 'none', FALSE).'>-- خالی --</option>';
   
   		foreach($this->icons_font_awesome as $name => $code)
   		{
   			$icons_font_awesome .= '
   				<option value="'.$name.'" '.selected($icon, $name, FALSE).'>'.$name.'&nbsp;&nbsp;'.$code.'</option>';
   		}
   
   		$icons_font_awesome .= '
   			</select>';
   
   		echo '
   		<div class="widget-icon">
   			<p class="label">آیکن ابزارک را انتخاب نمایید</p>
   			'.$icons_font_awesome.'
   		</div>';
   	}
   
   
   	/**
   	 * Saves widget box
   	*/
   	public function update_admin_widgets_options($instance, $new_instance)
   	{
   		//nothing set?
   		if(!isset($new_instance['widget_icon']))
   			unset($instance['wi_opt']);
   		else
   		{
   			
   			//icon
   			if(isset($new_instance['widget_icon']))
   				$instance['wi_opt']['widget_icon'] = sanitize_key($new_instance['widget_icon']);
   			else
   				$instance['wi_opt']['widget_icon'] = $this->defaults['icon'];
   		}
   
   		return $instance;
   	}
   
   
   	/**
   	 * Manages front-end display of widgets
   	*/
   	public function display_frontend_widgets($instance, $widget_class, $args)
   	{
   		if(isset($instance['wi_opt']['widget_icon']) && $instance['wi_opt']['widget_icon'] !== 'none')
   		{
   
   			$library = 'fa';
   
   			$icon = ($instance['wi_opt']['widget_icon'] !== 'none' ? '<i class="'.$library.' '.$instance['wi_opt']['widget_icon'].'"></i>' : '');
   
   			$args['before_title'] = $args['before_title'].$icon;
   
   			$widget_class->widget($args, $instance);
   
   			return FALSE;
   		}
   
   		else return $instance;
   	}
   }
   
   
   $widget_icon = new Widget_Icon();
   ?>