Пример #1
0
 function ishyoboy_get_google_fonts_js()
 {
     //return '[{"family":"ABeeZee","variants":["regular","italic"]},{"family":"Abel","variants":["regular"]},{"family":"Abril Fatface","variants":["regular"]},{"family":"Aclonica","variants":["regular"]},{"family":"Acme","variants":["regular"]},{"family":"Actor","variants":["regular"]},{"family":"Adamina","variants":["regular"]},{"family":"Advent Pro","variants":["100","200","300","regular","500","600","700"]},{"family":"Aguafina Script","variants":["regular"]},{"family":"Akronim","variants":["regular"]},{"family":"Aladin","variants":["regular"]},{"family":"Aldrich","variants":["regular"]},{"family":"Alegreya","variants":["regular","italic","700","700italic","900","900italic"]},{"family":"Alegreya SC","variants":["regular","italic","700","700italic","900","900italic"]},{"family":"Alex Brush","variants":["regular"]},{"family":"Alfa Slab One","variants":["regular"]},{"family":"Alice","variants":["regular"]},{"family":"Alike","variants":["regular"]},{"family":"Alike Angular","variants":["regular"]},{"family":"Allan","variants":["regular","700"]},{"family":"Allerta","variants":["regular"]},{"family":"Allerta Stencil","variants":["regular"]},{"family":"Allura","variants":["regular"]},{"family":"Almendra","variants":["regular","italic","700","700italic"]},{"family":"Almendra Display","variants":["regular"]},{"family":"Almendra SC","variants":["regular"]},{"family":"Amarante","variants":["regular"]},{"family":"Amaranth","variants":["regular","italic","700","700italic"]},{"family":"Amatic SC","variants":["regular","700"]},{"family":"Amethysta","variants":["regular"]},{"family":"Anaheim","variants":["regular"]},{"family":"Andada","variants":["regular"]},{"family":"Andika","variants":["regular"]},{"family":"Angkor","variants":["regular"]},{"family":"Annie Use Your Telescope","variants":["regular"]},{"family":"Anonymous Pro","variants":["regular","italic","700","700italic"]},{"family":"Antic","variants":["regular"]},{"family":"Antic Didone","variants":["regular"]},{"family":"Antic Slab","variants":["regular"]},{"family":"Anton","variants":["regular"]},{"family":"Arapey","variants":["regular","italic"]},{"family":"Arbutus","variants":["regular"]},{"family":"Arbutus Slab","variants":["regular"]},{"family":"Architects Daughter","variants":["regular"]},{"family":"Archivo Black","variants":["regular"]},{"family":"Archivo Narrow","variants":["regular","italic","700","700italic"]},{"family":"Arimo","variants":["regular","italic","700","700italic"]},{"family":"Arizonia","variants":["regular"]},{"family":"Armata","variants":["regular"]},{"family":"Artifika","variants":["regular"]},{"family":"Arvo","variants":["regular","italic","700","700italic"]},{"family":"Asap","variants":["regular","italic","700","700italic"]},{"family":"Asset","variants":["regular"]},{"family":"Astloch","variants":["regular","700"]},{"family":"Asul","variants":["regular","700"]},{"family":"Atomic Age","variants":["regular"]},{"family":"Aubrey","variants":["regular"]},{"family":"Audiowide","variants":["regular"]},{"family":"Autour One","variants":["regular"]},{"family":"Average","variants":["regular"]},{"family":"Average Sans","variants":["regular"]},{"family":"Averia Gruesa Libre","variants":["regular"]},{"family":"Averia Libre","variants":["300","300italic","regular","italic","700","700italic"]},{"family":"Averia Sans Libre","variants":["300","300italic","regular","italic","700","700italic"]},{"family":"Averia Serif Libre","variants":["300","300italic","regular","italic","700","700italic"]},{"family":"Bad Script","variants":["regular"]},{"family":"Balthazar","variants":["regular"]},{"family":"Bangers","variants":["regular"]},{"family":"Basic","variants":["regular"]},{"family":"Battambang","variants":["regular","700"]},{"family":"Baumans","variants":["regular"]},{"family":"Bayon","variants":["regular"]},{"family":"Belgrano","variants":["regular"]},{"family":"Belleza","variants":["regular"]},{"family":"BenchNine","variants":["300","regular","700"]},{"family":"Bentham","variants":["regular"]},{"family":"Berkshire Swash","variants":["regular"]},{"family":"Bevan","variants":["regular"]},{"family":"Bigelow Rules","variants":["regular"]},{"family":"Bigshot One","variants":["regular"]},{"family":"Bilbo","variants":["regular"]},{"family":"Bilbo Swash Caps","variants":["regular"]},{"family":"Bitter","variants":["regular","italic","700"]},{"family":"Black Ops One","variants":["regular"]},{"family":"Bokor","variants":["regular"]},{"family":"Bonbon","variants":["regular"]},{"family":"Boogaloo","variants":["regular"]},{"family":"Bowlby One","variants":["regular"]},{"family":"Bowlby One SC","variants":["regular"]},{"family":"Brawler","variants":["regular"]},{"family":"Bree Serif","variants":["regular"]},{"family":"Bubblegum Sans","variants":["regular"]},{"family":"Bubbler One","variants":["regular"]},{"family":"Buda","variants":["300"]},{"family":"Buenard","variants":["regular","700"]},{"family":"Butcherman","variants":["regular"]},{"family":"Butterfly Kids","variants":["regular"]},{"family":"Cabin","variants":["regular","italic","500","500italic","600","600italic","700","700italic"]},{"family":"Cabin Condensed","variants":["regular","500","600","700"]},{"family":"Cabin Sketch","variants":["regular","700"]},{"family":"Caesar Dressing","variants":["regular"]},{"family":"Cagliostro","variants":["regular"]},{"family":"Calligraffitti","variants":["regular"]},{"family":"Cambo","variants":["regular"]},{"family":"Candal","variants":["regular"]},{"family":"Cantarell","variants":["regular","italic","700","700italic"]},{"family":"Cantata One","variants":["regular"]},{"family":"Cantora One","variants":["regular"]},{"family":"Capriola","variants":["regular"]},{"family":"Cardo","variants":["regular","italic","700"]},{"family":"Carme","variants":["regular"]},{"family":"Carrois Gothic","variants":["regular"]},{"family":"Carrois Gothic SC","variants":["regular"]},{"family":"Carter One","variants":["regular"]},{"family":"Caudex","variants":["regular","italic","700","700italic"]},{"family":"Cedarville Cursive","variants":["regular"]},{"family":"Ceviche One","variants":["regular"]},{"family":"Changa One","variants":["regular","italic"]},{"family":"Chango","variants":["regular"]},{"family":"Chau Philomene One","variants":["regular","italic"]},{"family":"Chela One","variants":["regular"]},{"family":"Chelsea Market","variants":["regular"]},{"family":"Chenla","variants":["regular"]},{"family":"Cherry Cream Soda","variants":["regular"]},{"family":"Cherry Swash","variants":["regular","700"]},{"family":"Chewy","variants":["regular"]},{"family":"Chicle","variants":["regular"]},{"family":"Chivo","variants":["regular","italic","900","900italic"]},{"family":"Cinzel","variants":["regular","700","900"]},{"family":"Cinzel Decorative","variants":["regular","700","900"]},{"family":"Clicker Script","variants":["regular"]},{"family":"Coda","variants":["regular","800"]},{"family":"Coda Caption","variants":["800"]},{"family":"Codystar","variants":["300","regular"]},{"family":"Combo","variants":["regular"]},{"family":"Comfortaa","variants":["300","regular","700"]},{"family":"Coming Soon","variants":["regular"]},{"family":"Concert One","variants":["regular"]},{"family":"Condiment","variants":["regular"]},{"family":"Content","variants":["regular","700"]},{"family":"Contrail One","variants":["regular"]},{"family":"Convergence","variants":["regular"]},{"family":"Cookie","variants":["regular"]},{"family":"Copse","variants":["regular"]},{"family":"Corben","variants":["regular","700"]},{"family":"Courgette","variants":["regular"]},{"family":"Cousine","variants":["regular","italic","700","700italic"]},{"family":"Coustard","variants":["regular","900"]},{"family":"Covered By Your Grace","variants":["regular"]},{"family":"Crafty Girls","variants":["regular"]},{"family":"Creepster","variants":["regular"]},{"family":"Crete Round","variants":["regular","italic"]},{"family":"Crimson Text","variants":["regular","italic","600","600italic","700","700italic"]},{"family":"Croissant One","variants":["regular"]},{"family":"Crushed","variants":["regular"]},{"family":"Cuprum","variants":["regular","italic","700","700italic"]},{"family":"Cutive","variants":["regular"]},{"family":"Cutive Mono","variants":["regular"]},{"family":"Damion","variants":["regular"]},{"family":"Dancing Script","variants":["regular","700"]},{"family":"Dangrek","variants":["regular"]},{"family":"Dawning of a New Day","variants":["regular"]},{"family":"Days One","variants":["regular"]},{"family":"Delius","variants":["regular"]},{"family":"Delius Swash Caps","variants":["regular"]},{"family":"Delius Unicase","variants":["regular","700"]},{"family":"Della Respira","variants":["regular"]},{"family":"Denk One","variants":["regular"]},{"family":"Devonshire","variants":["regular"]},{"family":"Didact Gothic","variants":["regular"]},{"family":"Diplomata","variants":["regular"]},{"family":"Diplomata SC","variants":["regular"]},{"family":"Domine","variants":["regular","700"]},{"family":"Donegal One","variants":["regular"]},{"family":"Doppio One","variants":["regular"]},{"family":"Dorsa","variants":["regular"]},{"family":"Dosis","variants":["200","300","regular","500","600","700","800"]},{"family":"Dr Sugiyama","variants":["regular"]},{"family":"Droid Sans","variants":["regular","700"]},{"family":"Droid Sans Mono","variants":["regular"]},{"family":"Droid Serif","variants":["regular","italic","700","700italic"]},{"family":"Duru Sans","variants":["regular"]},{"family":"Dynalight","variants":["regular"]},{"family":"EB Garamond","variants":["regular"]},{"family":"Eagle Lake","variants":["regular"]},{"family":"Eater","variants":["regular"]},{"family":"Economica","variants":["regular","italic","700","700italic"]},{"family":"Electrolize","variants":["regular"]},{"family":"Elsie","variants":["regular","900"]},{"family":"Elsie Swash Caps","variants":["regular","900"]},{"family":"Emblema One","variants":["regular"]},{"family":"Emilys Candy","variants":["regular"]},{"family":"Engagement","variants":["regular"]},{"family":"Englebert","variants":["regular"]},{"family":"Enriqueta","variants":["regular","700"]},{"family":"Erica One","variants":["regular"]},{"family":"Esteban","variants":["regular"]},{"family":"Euphoria Script","variants":["regular"]},{"family":"Ewert","variants":["regular"]},{"family":"Exo","variants":["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"]},{"family":"Expletus Sans","variants":["regular","italic","500","500italic","600","600italic","700","700italic"]},{"family":"Fanwood Text","variants":["regular","italic"]},{"family":"Fascinate","variants":["regular"]},{"family":"Fascinate Inline","variants":["regular"]},{"family":"Faster One","variants":["regular"]},{"family":"Fasthand","variants":["regular"]},{"family":"Federant","variants":["regular"]},{"family":"Federo","variants":["regular"]},{"family":"Felipa","variants":["regular"]},{"family":"Fenix","variants":["regular"]},{"family":"Finger Paint","variants":["regular"]},{"family":"Fjalla One","variants":["regular"]},{"family":"Fjord One","variants":["regular"]},{"family":"Flamenco","variants":["300","regular"]},{"family":"Flavors","variants":["regular"]},{"family":"Fondamento","variants":["regular","italic"]},{"family":"Fontdiner Swanky","variants":["regular"]},{"family":"Forum","variants":["regular"]},{"family":"Francois One","variants":["regular"]},{"family":"Freckle Face","variants":["regular"]},{"family":"Fredericka the Great","variants":["regular"]},{"family":"Fredoka One","variants":["regular"]},{"family":"Freehand","variants":["regular"]},{"family":"Fresca","variants":["regular"]},{"family":"Frijole","variants":["regular"]},{"family":"Fruktur","variants":["regular"]},{"family":"Fugaz One","variants":["regular"]},{"family":"GFS Didot","variants":["regular"]},{"family":"GFS Neohellenic","variants":["regular","italic","700","700italic"]},{"family":"Gabriela","variants":["regular"]},{"family":"Gafata","variants":["regular"]},{"family":"Galdeano","variants":["regular"]},{"family":"Galindo","variants":["regular"]},{"family":"Gentium Basic","variants":["regular","italic","700","700italic"]},{"family":"Gentium Book Basic","variants":["regular","italic","700","700italic"]},{"family":"Geo","variants":["regular","italic"]},{"family":"Geostar","variants":["regular"]},{"family":"Geostar Fill","variants":["regular"]},{"family":"Germania One","variants":["regular"]},{"family":"Gilda Display","variants":["regular"]},{"family":"Give You Glory","variants":["regular"]},{"family":"Glass Antiqua","variants":["regular"]},{"family":"Glegoo","variants":["regular"]},{"family":"Gloria Hallelujah","variants":["regular"]},{"family":"Goblin One","variants":["regular"]},{"family":"Gochi Hand","variants":["regular"]},{"family":"Gorditas","variants":["regular","700"]},{"family":"Goudy Bookletter 1911","variants":["regular"]},{"family":"Graduate","variants":["regular"]},{"family":"Grand Hotel","variants":["regular"]},{"family":"Gravitas One","variants":["regular"]},{"family":"Great Vibes","variants":["regular"]},{"family":"Griffy","variants":["regular"]},{"family":"Gruppo","variants":["regular"]},{"family":"Gudea","variants":["regular","italic","700"]},{"family":"Habibi","variants":["regular"]},{"family":"Hammersmith One","variants":["regular"]},{"family":"Hanalei","variants":["regular"]},{"family":"Hanalei Fill","variants":["regular"]},{"family":"Handlee","variants":["regular"]},{"family":"Hanuman","variants":["regular","700"]},{"family":"Happy Monkey","variants":["regular"]},{"family":"Headland One","variants":["regular"]},{"family":"Henny Penny","variants":["regular"]},{"family":"Herr Von Muellerhoff","variants":["regular"]},{"family":"Holtwood One SC","variants":["regular"]},{"family":"Homemade Apple","variants":["regular"]},{"family":"Homenaje","variants":["regular"]},{"family":"IM Fell DW Pica","variants":["regular","italic"]},{"family":"IM Fell DW Pica SC","variants":["regular"]},{"family":"IM Fell Double Pica","variants":["regular","italic"]},{"family":"IM Fell Double Pica SC","variants":["regular"]},{"family":"IM Fell English","variants":["regular","italic"]},{"family":"IM Fell English SC","variants":["regular"]},{"family":"IM Fell French Canon","variants":["regular","italic"]},{"family":"IM Fell French Canon SC","variants":["regular"]},{"family":"IM Fell Great Primer","variants":["regular","italic"]},{"family":"IM Fell Great Primer SC","variants":["regular"]},{"family":"Iceberg","variants":["regular"]},{"family":"Iceland","variants":["regular"]},{"family":"Imprima","variants":["regular"]},{"family":"Inconsolata","variants":["regular","700"]},{"family":"Inder","variants":["regular"]},{"family":"Indie Flower","variants":["regular"]},{"family":"Inika","variants":["regular","700"]},{"family":"Irish Grover","variants":["regular"]},{"family":"Istok Web","variants":["regular","italic","700","700italic"]},{"family":"Italiana","variants":["regular"]},{"family":"Italianno","variants":["regular"]},{"family":"Jacques Francois","variants":["regular"]},{"family":"Jacques Francois Shadow","variants":["regular"]},{"family":"Jim Nightshade","variants":["regular"]},{"family":"Jockey One","variants":["regular"]},{"family":"Jolly Lodger","variants":["regular"]},{"family":"Josefin Sans","variants":["100","100italic","300","300italic","regular","italic","600","600italic","700","700italic"]},{"family":"Josefin Slab","variants":["100","100italic","300","300italic","regular","italic","600","600italic","700","700italic"]},{"family":"Joti One","variants":["regular"]},{"family":"Judson","variants":["regular","italic","700"]},{"family":"Julee","variants":["regular"]},{"family":"Julius Sans One","variants":["regular"]},{"family":"Junge","variants":["regular"]},{"family":"Jura","variants":["300","regular","500","600"]},{"family":"Just Another Hand","variants":["regular"]},{"family":"Just Me Again Down Here","variants":["regular"]},{"family":"Kameron","variants":["regular","700"]},{"family":"Karla","variants":["regular","italic","700","700italic"]},{"family":"Kaushan Script","variants":["regular"]},{"family":"Kavoon","variants":["regular"]},{"family":"Keania One","variants":["regular"]},{"family":"Kelly Slab","variants":["regular"]},{"family":"Kenia","variants":["regular"]},{"family":"Khmer","variants":["regular"]},{"family":"Kite One","variants":["regular"]},{"family":"Knewave","variants":["regular"]},{"family":"Kotta One","variants":["regular"]},{"family":"Koulen","variants":["regular"]},{"family":"Kranky","variants":["regular"]},{"family":"Kreon","variants":["300","regular","700"]},{"family":"Kristi","variants":["regular"]},{"family":"Krona One","variants":["regular"]},{"family":"La Belle Aurore","variants":["regular"]},{"family":"Lancelot","variants":["regular"]},{"family":"Lato","variants":["100","100italic","300","300italic","regular","italic","700","700italic","900","900italic"]},{"family":"League Script","variants":["regular"]},{"family":"Leckerli One","variants":["regular"]},{"family":"Ledger","variants":["regular"]},{"family":"Lekton","variants":["regular","italic","700"]},{"family":"Lemon","variants":["regular"]},{"family":"Libre Baskerville","variants":["regular","italic","700"]},{"family":"Life Savers","variants":["regular","700"]},{"family":"Lilita One","variants":["regular"]},{"family":"Limelight","variants":["regular"]},{"family":"Linden Hill","variants":["regular","italic"]},{"family":"Lobster","variants":["regular"]},{"family":"Lobster Two","variants":["regular","italic","700","700italic"]},{"family":"Londrina Outline","variants":["regular"]},{"family":"Londrina Shadow","variants":["regular"]},{"family":"Londrina Sketch","variants":["regular"]},{"family":"Londrina Solid","variants":["regular"]},{"family":"Lora","variants":["regular","italic","700","700italic"]},{"family":"Love Ya Like A Sister","variants":["regular"]},{"family":"Loved by the King","variants":["regular"]},{"family":"Lovers Quarrel","variants":["regular"]},{"family":"Luckiest Guy","variants":["regular"]},{"family":"Lusitana","variants":["regular","700"]},{"family":"Lustria","variants":["regular"]},{"family":"Macondo","variants":["regular"]},{"family":"Macondo Swash Caps","variants":["regular"]},{"family":"Magra","variants":["regular","700"]},{"family":"Maiden Orange","variants":["regular"]},{"family":"Mako","variants":["regular"]},{"family":"Marcellus","variants":["regular"]},{"family":"Marcellus SC","variants":["regular"]},{"family":"Marck Script","variants":["regular"]},{"family":"Margarine","variants":["regular"]},{"family":"Marko One","variants":["regular"]},{"family":"Marmelad","variants":["regular"]},{"family":"Marvel","variants":["regular","italic","700","700italic"]},{"family":"Mate","variants":["regular","italic"]},{"family":"Mate SC","variants":["regular"]},{"family":"Maven Pro","variants":["regular","500","700","900"]},{"family":"McLaren","variants":["regular"]},{"family":"Meddon","variants":["regular"]},{"family":"MedievalSharp","variants":["regular"]},{"family":"Medula One","variants":["regular"]},{"family":"Megrim","variants":["regular"]},{"family":"Meie Script","variants":["regular"]},{"family":"Merienda","variants":["regular","700"]},{"family":"Merienda One","variants":["regular"]},{"family":"Merriweather","variants":["300","regular","700","900"]},{"family":"Merriweather Sans","variants":["300","regular","700","800"]},{"family":"Metal","variants":["regular"]},{"family":"Metal Mania","variants":["regular"]},{"family":"Metamorphous","variants":["regular"]},{"family":"Metrophobic","variants":["regular"]},{"family":"Michroma","variants":["regular"]},{"family":"Milonga","variants":["regular"]},{"family":"Miltonian","variants":["regular"]},{"family":"Miltonian Tattoo","variants":["regular"]},{"family":"Miniver","variants":["regular"]},{"family":"Miss Fajardose","variants":["regular"]},{"family":"Modern Antiqua","variants":["regular"]},{"family":"Molengo","variants":["regular"]},{"family":"Molle","variants":["italic"]},{"family":"Monda","variants":["regular","700"]},{"family":"Monofett","variants":["regular"]},{"family":"Monoton","variants":["regular"]},{"family":"Monsieur La Doulaise","variants":["regular"]},{"family":"Montaga","variants":["regular"]},{"family":"Montez","variants":["regular"]},{"family":"Montserrat","variants":["regular","700"]},{"family":"Montserrat Alternates","variants":["regular","700"]},{"family":"Montserrat Subrayada","variants":["regular","700"]},{"family":"Moul","variants":["regular"]},{"family":"Moulpali","variants":["regular"]},{"family":"Mountains of Christmas","variants":["regular","700"]},{"family":"Mouse Memoirs","variants":["regular"]},{"family":"Mr Bedfort","variants":["regular"]},{"family":"Mr Dafoe","variants":["regular"]},{"family":"Mr De Haviland","variants":["regular"]},{"family":"Mrs Saint Delafield","variants":["regular"]},{"family":"Mrs Sheppards","variants":["regular"]},{"family":"Muli","variants":["300","300italic","regular","italic"]},{"family":"Mystery Quest","variants":["regular"]},{"family":"Neucha","variants":["regular"]},{"family":"Neuton","variants":["200","300","regular","italic","700","800"]},{"family":"New Rocker","variants":["regular"]},{"family":"News Cycle","variants":["regular","700"]},{"family":"Niconne","variants":["regular"]},{"family":"Nixie One","variants":["regular"]},{"family":"Nobile","variants":["regular","italic","700","700italic"]},{"family":"Nokora","variants":["regular","700"]},{"family":"Norican","variants":["regular"]},{"family":"Nosifer","variants":["regular"]},{"family":"Nothing You Could Do","variants":["regular"]},{"family":"Noticia Text","variants":["regular","italic","700","700italic"]},{"family":"Noto Sans","variants":["regular","italic","700","700italic"]},{"family":"Noto Serif","variants":["regular","italic","700","700italic"]},{"family":"Nova Cut","variants":["regular"]},{"family":"Nova Flat","variants":["regular"]},{"family":"Nova Mono","variants":["regular"]},{"family":"Nova Oval","variants":["regular"]},{"family":"Nova Round","variants":["regular"]},{"family":"Nova Script","variants":["regular"]},{"family":"Nova Slim","variants":["regular"]},{"family":"Nova Square","variants":["regular"]},{"family":"Numans","variants":["regular"]},{"family":"Nunito","variants":["300","regular","700"]},{"family":"Odor Mean Chey","variants":["regular"]},{"family":"Offside","variants":["regular"]},{"family":"Old Standard TT","variants":["regular","italic","700"]},{"family":"Oldenburg","variants":["regular"]},{"family":"Oleo Script","variants":["regular","700"]},{"family":"Oleo Script Swash Caps","variants":["regular","700"]},{"family":"Open Sans","variants":["300","300italic","regular","italic","600","600italic","700","700italic","800","800italic"]},{"family":"Open Sans Condensed","variants":["300","300italic","700"]},{"family":"Oranienbaum","variants":["regular"]},{"family":"Orbitron","variants":["regular","500","700","900"]},{"family":"Oregano","variants":["regular","italic"]},{"family":"Orienta","variants":["regular"]},{"family":"Original Surfer","variants":["regular"]},{"family":"Oswald","variants":["300","regular","700"]},{"family":"Over the Rainbow","variants":["regular"]},{"family":"Overlock","variants":["regular","italic","700","700italic","900","900italic"]},{"family":"Overlock SC","variants":["regular"]},{"family":"Ovo","variants":["regular"]},{"family":"Oxygen","variants":["300","regular","700"]},{"family":"Oxygen Mono","variants":["regular"]},{"family":"PT Mono","variants":["regular"]},{"family":"PT Sans","variants":["regular","italic","700","700italic"]},{"family":"PT Sans Caption","variants":["regular","700"]},{"family":"PT Sans Narrow","variants":["regular","700"]},{"family":"PT Serif","variants":["regular","italic","700","700italic"]},{"family":"PT Serif Caption","variants":["regular","italic"]},{"family":"Pacifico","variants":["regular"]},{"family":"Paprika","variants":["regular"]},{"family":"Parisienne","variants":["regular"]},{"family":"Passero One","variants":["regular"]},{"family":"Passion One","variants":["regular","700","900"]},{"family":"Patrick Hand","variants":["regular"]},{"family":"Patrick Hand SC","variants":["regular"]},{"family":"Patua One","variants":["regular"]},{"family":"Paytone One","variants":["regular"]},{"family":"Peralta","variants":["regular"]},{"family":"Permanent Marker","variants":["regular"]},{"family":"Petit Formal Script","variants":["regular"]},{"family":"Petrona","variants":["regular"]},{"family":"Philosopher","variants":["regular","italic","700","700italic"]},{"family":"Piedra","variants":["regular"]},{"family":"Pinyon Script","variants":["regular"]},{"family":"Pirata One","variants":["regular"]},{"family":"Plaster","variants":["regular"]},{"family":"Play","variants":["regular","700"]},{"family":"Playball","variants":["regular"]},{"family":"Playfair Display","variants":["regular","italic","700","700italic","900","900italic"]},{"family":"Playfair Display SC","variants":["regular","italic","700","700italic","900","900italic"]},{"family":"Podkova","variants":["regular","700"]},{"family":"Poiret One","variants":["regular"]},{"family":"Poller One","variants":["regular"]},{"family":"Poly","variants":["regular","italic"]},{"family":"Pompiere","variants":["regular"]},{"family":"Pontano Sans","variants":["regular"]},{"family":"Port Lligat Sans","variants":["regular"]},{"family":"Port Lligat Slab","variants":["regular"]},{"family":"Prata","variants":["regular"]},{"family":"Preahvihear","variants":["regular"]},{"family":"Press Start 2P","variants":["regular"]},{"family":"Princess Sofia","variants":["regular"]},{"family":"Prociono","variants":["regular"]},{"family":"Prosto One","variants":["regular"]},{"family":"Puritan","variants":["regular","italic","700","700italic"]},{"family":"Purple Purse","variants":["regular"]},{"family":"Quando","variants":["regular"]},{"family":"Quantico","variants":["regular","italic","700","700italic"]},{"family":"Quattrocento","variants":["regular","700"]},{"family":"Quattrocento Sans","variants":["regular","italic","700","700italic"]},{"family":"Questrial","variants":["regular"]},{"family":"Quicksand","variants":["300","regular","700"]},{"family":"Quintessential","variants":["regular"]},{"family":"Qwigley","variants":["regular"]},{"family":"Racing Sans One","variants":["regular"]},{"family":"Radley","variants":["regular","italic"]},{"family":"Raleway","variants":["100","200","300","regular","500","600","700","800","900"]},{"family":"Raleway Dots","variants":["regular"]},{"family":"Rambla","variants":["regular","italic","700","700italic"]},{"family":"Rammetto One","variants":["regular"]},{"family":"Ranchers","variants":["regular"]},{"family":"Rancho","variants":["regular"]},{"family":"Rationale","variants":["regular"]},{"family":"Redressed","variants":["regular"]},{"family":"Reenie Beanie","variants":["regular"]},{"family":"Revalia","variants":["regular"]},{"family":"Ribeye","variants":["regular"]},{"family":"Ribeye Marrow","variants":["regular"]},{"family":"Righteous","variants":["regular"]},{"family":"Risque","variants":["regular"]},{"family":"Roboto","variants":["100","100italic","300","300italic","regular","italic","500","500italic","700","700italic","900","900italic"]},{"family":"Roboto Condensed","variants":["300","300italic","regular","italic","700","700italic"]},{"family":"Rochester","variants":["regular"]},{"family":"Rock Salt","variants":["regular"]},{"family":"Rokkitt","variants":["regular","700"]},{"family":"Romanesco","variants":["regular"]},{"family":"Ropa Sans","variants":["regular","italic"]},{"family":"Rosario","variants":["regular","italic","700","700italic"]},{"family":"Rosarivo","variants":["regular","italic"]},{"family":"Rouge Script","variants":["regular"]},{"family":"Ruda","variants":["regular","700","900"]},{"family":"Rufina","variants":["regular","700"]},{"family":"Ruge Boogie","variants":["regular"]},{"family":"Ruluko","variants":["regular"]},{"family":"Rum Raisin","variants":["regular"]},{"family":"Ruslan Display","variants":["regular"]},{"family":"Russo One","variants":["regular"]},{"family":"Ruthie","variants":["regular"]},{"family":"Rye","variants":["regular"]},{"family":"Sacramento","variants":["regular"]},{"family":"Sail","variants":["regular"]},{"family":"Salsa","variants":["regular"]},{"family":"Sanchez","variants":["regular","italic"]},{"family":"Sancreek","variants":["regular"]},{"family":"Sansita One","variants":["regular"]},{"family":"Sarina","variants":["regular"]},{"family":"Satisfy","variants":["regular"]},{"family":"Scada","variants":["regular","italic","700","700italic"]},{"family":"Schoolbell","variants":["regular"]},{"family":"Seaweed Script","variants":["regular"]},{"family":"Sevillana","variants":["regular"]},{"family":"Seymour One","variants":["regular"]},{"family":"Shadows Into Light","variants":["regular"]},{"family":"Shadows Into Light Two","variants":["regular"]},{"family":"Shanti","variants":["regular"]},{"family":"Share","variants":["regular","italic","700","700italic"]},{"family":"Share Tech","variants":["regular"]},{"family":"Share Tech Mono","variants":["regular"]},{"family":"Shojumaru","variants":["regular"]},{"family":"Short Stack","variants":["regular"]},{"family":"Siemreap","variants":["regular"]},{"family":"Sigmar One","variants":["regular"]},{"family":"Signika","variants":["300","regular","600","700"]},{"family":"Signika Negative","variants":["300","regular","600","700"]},{"family":"Simonetta","variants":["regular","italic","900","900italic"]},{"family":"Sintony","variants":["regular","700"]},{"family":"Sirin Stencil","variants":["regular"]},{"family":"Six Caps","variants":["regular"]},{"family":"Skranji","variants":["regular","700"]},{"family":"Slackey","variants":["regular"]},{"family":"Smokum","variants":["regular"]},{"family":"Smythe","variants":["regular"]},{"family":"Sniglet","variants":["800"]},{"family":"Snippet","variants":["regular"]},{"family":"Snowburst One","variants":["regular"]},{"family":"Sofadi One","variants":["regular"]},{"family":"Sofia","variants":["regular"]},{"family":"Sonsie One","variants":["regular"]},{"family":"Sorts Mill Goudy","variants":["regular","italic"]},{"family":"Source Code Pro","variants":["200","300","regular","500","600","700","900"]},{"family":"Source Sans Pro","variants":["200","200italic","300","300italic","regular","italic","600","600italic","700","700italic","900","900italic"]},{"family":"Special Elite","variants":["regular"]},{"family":"Spicy Rice","variants":["regular"]},{"family":"Spinnaker","variants":["regular"]},{"family":"Spirax","variants":["regular"]},{"family":"Squada One","variants":["regular"]},{"family":"Stalemate","variants":["regular"]},{"family":"Stalinist One","variants":["regular"]},{"family":"Stardos Stencil","variants":["regular","700"]},{"family":"Stint Ultra Condensed","variants":["regular"]},{"family":"Stint Ultra Expanded","variants":["regular"]},{"family":"Stoke","variants":["300","regular"]},{"family":"Strait","variants":["regular"]},{"family":"Sue Ellen Francisco","variants":["regular"]},{"family":"Sunshiney","variants":["regular"]},{"family":"Supermercado One","variants":["regular"]},{"family":"Suwannaphum","variants":["regular"]},{"family":"Swanky and Moo Moo","variants":["regular"]},{"family":"Syncopate","variants":["regular","700"]},{"family":"Tangerine","variants":["regular","700"]},{"family":"Taprom","variants":["regular"]},{"family":"Tauri","variants":["regular"]},{"family":"Telex","variants":["regular"]},{"family":"Tenor Sans","variants":["regular"]},{"family":"Text Me One","variants":["regular"]},{"family":"The Girl Next Door","variants":["regular"]},{"family":"Tienne","variants":["regular","700","900"]},{"family":"Tinos","variants":["regular","italic","700","700italic"]},{"family":"Titan One","variants":["regular"]},{"family":"Titillium Web","variants":["200","200italic","300","300italic","regular","italic","600","600italic","700","700italic","900"]},{"family":"Trade Winds","variants":["regular"]},{"family":"Trocchi","variants":["regular"]},{"family":"Trochut","variants":["regular","italic","700"]},{"family":"Trykker","variants":["regular"]},{"family":"Tulpen One","variants":["regular"]},{"family":"Ubuntu","variants":["300","300italic","regular","italic","500","500italic","700","700italic"]},{"family":"Ubuntu Condensed","variants":["regular"]},{"family":"Ubuntu Mono","variants":["regular","italic","700","700italic"]},{"family":"Ultra","variants":["regular"]},{"family":"Uncial Antiqua","variants":["regular"]},{"family":"Underdog","variants":["regular"]},{"family":"Unica One","variants":["regular"]},{"family":"UnifrakturCook","variants":["700"]},{"family":"UnifrakturMaguntia","variants":["regular"]},{"family":"Unkempt","variants":["regular","700"]},{"family":"Unlock","variants":["regular"]},{"family":"Unna","variants":["regular"]},{"family":"VT323","variants":["regular"]},{"family":"Vampiro One","variants":["regular"]},{"family":"Varela","variants":["regular"]},{"family":"Varela Round","variants":["regular"]},{"family":"Vast Shadow","variants":["regular"]},{"family":"Vibur","variants":["regular"]},{"family":"Vidaloka","variants":["regular"]},{"family":"Viga","variants":["regular"]},{"family":"Voces","variants":["regular"]},{"family":"Volkhov","variants":["regular","italic","700","700italic"]},{"family":"Vollkorn","variants":["regular","italic","700","700italic"]},{"family":"Voltaire","variants":["regular"]},{"family":"Waiting for the Sunrise","variants":["regular"]},{"family":"Wallpoet","variants":["regular"]},{"family":"Walter Turncoat","variants":["regular"]},{"family":"Warnes","variants":["regular"]},{"family":"Wellfleet","variants":["regular"]},{"family":"Wendy One","variants":["regular"]},{"family":"Wire One","variants":["regular"]},{"family":"Yanone Kaffeesatz","variants":["200","300","regular","700"]},{"family":"Yellowtail","variants":["regular"]},{"family":"Yeseva One","variants":["regular"]},{"family":"Yesteryear","variants":["regular"]},{"family":"Zeyada","variants":["regular"]}]';
     return "\n\n<script type='text/javascript'>\n/* <![CDATA[*/\n var ish_google_fonts = '" . ishyoboy_get_google_fonts() . "';\n var ish_regular_fonts = '" . ishyoboy_get_regular_fonts_list() . "';\n/* ]]> */ \n </script>\n\n";
 }
Пример #2
0
    function of_options()
    {
        global $ish_fonts;
        //Access the WordPress Categories via an Array
        $of_categories = array();
        $of_categories_obj = get_categories('hide_empty=0');
        foreach ($of_categories_obj as $of_cat) {
            $of_categories[$of_cat->cat_ID] = $of_cat->cat_name;
        }
        $categories_tmp = array_unshift($of_categories, 'Select a category:');
        //Access the WordPress Pages via an Array
        $of_pages = array();
        $of_pages_obj = get_pages();
        $of_pages['-1'] = __('Select a page', 'ishyoboy');
        foreach ($of_pages_obj as $of_page) {
            $of_pages[$of_page->ID] = $of_page->post_title;
        }
        //Sidebars
        $of_sidebars = array();
        foreach ($GLOBALS['wp_registered_sidebars'] as $sidebar) {
            $of_sidebars[$sidebar['id']] = $sidebar['name'];
        }
        //Menus
        $menus = get_terms('nav_menu', array('hide_empty' => false, 'taxonomy' => 'tax_nav_menu'));
        $of_menus = array('' => __('Select a menu', 'ishyoboy'));
        foreach ($menus as $menu) {
            $of_menus[$menu->term_id] = $menu->name;
        }
        //Social icons
        $social_icons = '[social icon="icon-mail" url="mailto:example@example.com" tooltip="Email us"]
[social icon="icon-twitter" url="http://www.twitter.com" tooltip="Twitter - Username"]
[social icon="icon-facebook" url="http://www.facebook.com" tooltip="Facebook - Username"]';
        //Testing
        $of_options_select = array('one', 'two', 'three', 'four', 'five');
        $of_options_radio = array('one' => 'One', 'two' => 'Two', 'three' => 'Three', 'four' => 'Four', 'five' => 'Five');
        //Sample Homepage blocks for the layout manager (sorter)
        $of_options_homepage_blocks = array("disabled" => array("placebo" => 'placebo', "block_one" => 'Block One', "block_two" => 'Block Two', "block_three" => 'Block Three'), "enabled" => array('placebo' => 'placebo', 'block_four' => 'Block Four'));
        //$googleFonts = array('none' => __( 'Select a font', 'ishyoboy') );
        $googleFonts = json_decode(ishyoboy_get_google_fonts());
        $googleFontsArray = array('none' => __('Select a font', 'ishyoboy'));
        foreach ($googleFonts as $key => $details) {
            $googleFontsArray[$key] = $key;
        }
        /*
                $googleVariantsArray = array();
                foreach ($googleFonts as $key => $details) {
                    if ( FONT_1 == $details->family){
                        foreach ($details->variants as $variant) {
                            $googleVariantsArray[$variant] = $variant;
                        }
                    }
                }
                /**/
        $regular_fonts = array('arial' => 'Arial', 'verdana' => 'Verdana, Geneva', 'trebuchet' => 'Trebuchet', 'georgia' => 'Georgia', 'times' => 'Times New Roman', 'tahoma' => 'Tahoma, Geneva', 'palatino' => 'Palatino', 'helvetica' => 'Helvetica');
        $regular_variants = array('normal' => 'Normal', 'italic' => 'Italic', 'bold' => 'Bold', 'bold italic' => 'Bold Italic');
        //Stylesheets Reader
        $alt_stylesheet_path = LAYOUT_PATH;
        $alt_stylesheets = array();
        $alt_stylesheets_imgs = array();
        if (is_dir($alt_stylesheet_path)) {
            if ($alt_stylesheet_dir = opendir($alt_stylesheet_path)) {
                while (($alt_stylesheet_file = readdir($alt_stylesheet_dir)) !== false) {
                    if (stristr($alt_stylesheet_file, '.php') !== false) {
                        $alt_stylesheets[$alt_stylesheet_file] = ucfirst(substr($alt_stylesheet_file, 0, -4));
                        $alt_stylesheets_imgs[$alt_stylesheet_file] = IYB_TEMPLATE_URI . '/admin/layouts/' . substr($alt_stylesheet_file, 0, -4) . '.png';
                    }
                }
            }
        }
        asort($alt_stylesheets);
        asort($alt_stylesheets_imgs);
        //Background Images Reader
        //$bg_images_path = STYLESHEETPATH. '/images/bg/'; // change this to where you store your bg images
        //$bg_images_url = get_bloginfo('template_url').'/images/bg/'; // change this to where you store your bg images
        $bg_images_path = IYB_HTML_DIR . '/core/images/bg-patterns';
        // change this to where you store your bg images
        $bg_images_url = IYB_HTML_URI . '/core/images/bg-patterns';
        // change this to where you store your bg images
        $bg_images_first = array('' => IYB_HTML_URI . '/core/images/none.png');
        if (is_dir($bg_images_path)) {
            if ($bg_images_dir = opendir($bg_images_path)) {
                while (($bg_images_file = readdir($bg_images_dir)) !== false) {
                    if (stristr($bg_images_file, '.png') !== false || stristr($bg_images_file, '.jpg') !== false || stristr($bg_images_file, '.gif') !== false) {
                        $bg_images[$bg_images_file] = $bg_images_url . '/' . $bg_images_file;
                    }
                }
            }
        }
        asort($bg_images);
        $bg_images = array_merge($bg_images_first, $bg_images);
        /*-----------------------------------------------------------------------------------*/
        /* TO DO: Add options/functions that use these */
        /*-----------------------------------------------------------------------------------*/
        //More Options
        $uploads_arr = wp_upload_dir();
        $all_uploads_path = $uploads_arr['path'];
        $all_uploads = get_option('of_uploads');
        $other_entries = array('Select a number:', '1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19');
        $body_repeat = array('no-repeat', 'repeat-x', 'repeat-y', 'repeat');
        $body_pos = array('top left', 'top center', 'top right', 'center left', 'center center', 'center right', 'bottom left', 'bottom center', 'bottom right');
        // Image Alignment radio box
        $of_options_thumb_align = array('alignleft' => 'Left', 'alignright' => 'Right', 'aligncenter' => 'Center');
        // Image Links to Options
        $of_options_image_link_to = array('image' => 'The Image', 'post' => 'The Post');
        /*-----------------------------------------------------------------------------------*/
        /* The Options Array */
        /*-----------------------------------------------------------------------------------*/
        // Set the Options Array
        global $of_options;
        $of_options = array();
        /* *********************************************************************************************************************
         * 1. General Settings
         */
        $of_options[] = array('name' => __('General Options', 'ishyoboy'), 'class' => 'generaloptions', 'type' => 'heading');
        // PAGE WIDTH
        $of_options[] = array('name' => __('Page Width', 'ishyoboy'), 'desc' => __('Choose one of the pre-defined widths or enter custom one.', 'ishyoboy'), 'id' => 'use_predefined_page_width', 'std' => 1, 'on' => __('Predefined', 'ishyoboy'), 'off' => __('Custom', 'ishyoboy'), 'folds' => 0, 'type' => 'switch');
        $of_options[] = array('name' => '', 'desc' => '', 'id' => 'predefined_page_width', 'std' => '1290', 'type' => 'radio', 'fold' => 'use_predefined_page_width', 'options' => array('1290' => __('Wide Screen', 'ishyoboy') . ' (1290px)', '960' => __('NoteBook', 'ishyoboy') . ' (960px)'));
        $of_options[] = array('name' => '', 'desc' => 'px', 'id' => 'custom_page_width', 'std' => '1290', 'fold' => 'off_' . 'use_predefined_page_width', 'type' => 'text');
        $of_options[] = array('name' => __('Responsive layout', 'ishyoboy'), 'desc' => __('Make the page width fit the screen of every device or set it to never resize.', 'ishyoboy'), 'id' => 'use_responsive_layout', 'std' => 1, 'on' => __('Responsive', 'ishyoboy'), 'off' => __('Fixed', 'ishyoboy'), 'folds' => 1, 'type' => 'switch');
        $of_options[] = array('name' => '', 'desc' => __('px - from this point the layout will change to a mobile version.', 'ishyoboy'), 'id' => 'responsive_layout_breakingpoint', 'std' => IYB_BREAKINGPOINT, 'fold' => 'use_responsive_layout', 'type' => 'text');
        // BREADCRMBS
        $of_options[] = array('name' => __('Breadcrumbs', 'ishyoboy'), 'desc' => __('Display a breadcrumbs navigation in the content of each page.', 'ishyoboy'), 'id' => 'show_breadcrumbs', 'std' => 0, 'type' => 'switch');
        // BACK TO TOP LINK
        $of_options[] = array('name' => __('Back-to-top link', 'ishyoboy'), 'desc' => __('Display back to top link in the right bottom corner of each page.', 'ishyoboy'), 'id' => 'show_back_to_top', 'std' => 1, 'type' => 'switch');
        // PAGE SETTINGS
        $of_options[] = array('name' => __('Regular Pages Sidebar', 'ishyoboy'), 'desc' => __("Display the sidebar on each page by default. This settings can be overridden in each page's settings.", 'ishyoboy') . '<br><br><span style="color: #FF0000;">' . __('<strong>IMPORTANT:</strong><br>Page breaks and Sections will be removed if a sidebar is added.', 'ishyoboy') . '</span>', 'id' => 'show_page_sidebar', 'std' => 0, 'folds' => 1, 'type' => 'switch');
        $of_options[] = array('name' => '', 'desc' => __('Choose whether to display the sidebar on the left or on the right side of the page.', 'ishyoboy'), 'id' => 'page_sidebar_position', 'std' => 'right', 'fold' => 'show_page_sidebar', 'type' => 'select', 'options' => array('left' => 'Left', 'right' => 'Right'));
        $of_options[] = array('name' => '', 'desc' => __('Select which sidebar will be displayed on each page by default.', 'ishyoboy'), 'id' => 'page_sidebar', 'std' => 'sidebar-main', 'fold' => 'show_page_sidebar', 'type' => 'select', 'options' => $of_sidebars);
        // 404 PAGE
        $of_options[] = array('name' => __('404 Error page', 'ishyoboy'), 'desc' => __('Select a page to be displayed instead of the standard 404 Not Found page.', 'ishyoboy'), 'id' => 'use_page_for_404', 'std' => '0', 'folds' => '1', 'type' => 'switch');
        $of_options[] = array('name' => '', 'desc' => __('The page which will be displayed instead of the standard 404 page.', 'ishyoboy'), 'id' => 'page_for_404', 'std' => '', 'fold' => 'use_page_for_404', 'type' => 'select', 'options' => $of_pages);
        // TRACKING
        $of_options[] = array('name' => __('Tracking Code', 'ishyoboy'), 'desc' => __('Paste your Google Analytics (or other) tracking code here. This will be added into the footer template of your theme.', 'ishyoboy'), 'id' => 'tracking_script', 'std' => '', 'type' => 'textarea');
        // ADDTHIS SHARE
        $of_options[] = array('name' => __('Social Sharing Code', 'ishyoboy'), 'desc' => __('Paste your addthis sharing code from https://www.addthis.com/get/sharing', 'ishyoboy'), 'id' => 'addthis_share', 'std' => '<!-- AddThis Button BEGIN --><div class="addthis_toolbox addthis_default_style addthis_32x32_style"><a class="addthis_button_facebook"></a><a class="addthis_button_twitter"></a><a class="addthis_button_google_plusone_share"></a><a class="addthis_button_linkedin"></a><a class="addthis_button_pinterest_share"></a><a class="addthis_button_digg"></a><a class="addthis_button_reddit"></a><a class="addthis_button_xing"></a><a class="addthis_button_gmail"></a><a class="addthis_button_pocket"></a><a class="addthis_button_compact"></a><a class="addthis_counter addthis_bubble_style"></a></div><script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js"></script><!-- AddThis Button END -->', 'type' => 'textarea');
        // CUSTOM CSS
        $of_options[] = array('name' => __('Custom CSS', 'ishyoboy'), 'desc' => __('Quickly add some CSS to your theme by adding it to this block.', 'ishyoboy'), 'id' => 'custom_css', 'std' => '', 'type' => 'textarea');
        // CUSTOM SCRIPTS
        $of_options[] = array('name' => __('Custom Scripts', 'ishyoboy'), 'desc' => __('Quickly add some JavaScript includes to your theme by adding it to this block.', 'ishyoboy'), 'id' => 'custom_scripts', 'std' => '', 'type' => 'textarea');
        // FAVICON
        $of_options[] = array('name' => __('Custom Favicons', 'ishyoboy'), 'desc' => __("Upload a regular 16px x 16px png/gif/ico image that will represent your website's favicon.", 'ishyoboy'), 'id' => 'custom_favicon_16', 'std' => '', 'type' => 'media');
        $of_options[] = array('name' => '', 'desc' => __("For iPad 1, 2 - 72px x 72px png image", 'ishyoboy'), 'id' => 'custom_favicon_72', 'std' => '', 'type' => 'media');
        $of_options[] = array('name' => '', 'desc' => __("For iPhone Retina - 114px x 114px png image", 'ishyoboy'), 'id' => 'custom_favicon_114', 'std' => '', 'type' => 'media');
        $of_options[] = array('name' => '', 'desc' => __("For iPad 3 Retina - 144px x 144px png image", 'ishyoboy'), 'id' => 'custom_favicon_144', 'std' => '', 'type' => 'media');
        /* *********************************************************************************************************************
         * 2. Header Options
         */
        $of_options[] = array('name' => __('Header Options', 'ishyoboy'), 'class' => 'headeroptions', 'type' => 'heading');
        $of_options[] = array('name' => __('Site Logo', 'ishyoboy'), 'desc' => __('Use image logo instead of a simple Site Title and if not empty, Tagline.', 'ishyoboy'), 'id' => 'logo_as_image', 'std' => 0, 'folds' => 1, 'type' => 'switch');
        $of_options[] = array('name' => __(' ', 'ishyoboy'), 'desc' => __('Select an image for the Site Logo.', 'ishyoboy'), 'id' => 'logo_image', 'std' => '', 'fold' => 'logo_as_image', 'mod' => 'min', 'type' => 'media');
        $of_options[] = array('name' => __(' ', 'ishyoboy'), 'desc' => __('Retina devices logo alternative - 2 times bigger than the normal logo.', 'ishyoboy') . '<br><br><span style="color: #FF0000;">' . __('<strong>IMPORTANT:</strong><br>The Site Logo must be set.', 'ishyoboy') . '</span>', 'id' => 'logo_retina_image', 'std' => '', 'fold' => 'logo_as_image', 'mod' => 'min', 'type' => 'media');
        // HEADER HEIGHT
        $of_options[] = array('name' => 'Header height', 'desc' => __('Enter the height of the header in pixels. Default is 140.', 'ishyoboy'), 'id' => 'header_height', 'std' => 100, "min" => '0', "step" => '1', "max" => '300', 'type' => 'sliderui');
        // Main Navigation Style
        $of_options[] = array('name' => __('Main Navigation style', 'ishyoboy'), 'desc' => __('Choose whether to display the Main navigation in Full-Height or Mini.', 'ishyoboy'), 'id' => 'mainnav_full', 'std' => 0, 'on' => 'Full', 'off' => 'Mini', 'folds' => 0, 'type' => 'switch');
        // STICKY NAV
        $of_options[] = array('name' => __('Sticky Navigation', 'ishyoboy'), 'desc' => __('Choose whether the navigation remains sticked to the top of the page while scrolling down.', 'ishyoboy'), 'id' => 'sticky_nav', 'std' => 0, 'folds' => 1, 'type' => 'switch');
        $of_options[] = array('name' => '', 'desc' => __('Display Sticky Nav on tablets and mobile devices', 'ishyoboy'), 'id' => 'sticky_nav_responsive', 'std' => 1, 'fold' => 'sticky_nav', 'type' => 'switch');
        $of_options[] = array('name' => '', 'desc' => __('Show Site Logo in Sticky Nav', 'ishyoboy'), 'id' => 'sticky_nav_logo', 'std' => 1, 'fold' => 'sticky_nav', 'type' => 'switch');
        $of_options[] = array('name' => '', 'desc' => __('Show Site Tagline in Sticky Nav', 'ishyoboy'), 'id' => 'sticky_nav_tagline', 'std' => 1, 'fold' => 'sticky_nav', 'type' => 'switch');
        // HEADER EXPANDABLE
        $of_options[] = array('name' => __('Header Expandable area', 'ishyoboy'), 'desc' => __('Make the top part of the header expandable.', 'ishyoboy'), 'id' => 'expandable_header', 'std' => 0, 'folds' => 1, 'type' => 'switch');
        $of_options[] = array('name' => '', 'desc' => __('Select which sidebar will be displayed inside the expandable area by default.', 'ishyoboy'), 'id' => 'header_sidebar', 'std' => 'sidebar-header', 'fold' => 'expandable_header', 'type' => 'select', 'options' => $of_sidebars);
        $of_options[] = array('name' => '', 'desc' => __('Choose whether the expandable area will be opened or closed by default.', 'ishyoboy'), 'id' => 'header_sidebar_on', 'std' => 0, 'fold' => 'expandable_header', "on" => 'Opened', "off" => 'Closed', 'type' => 'switch');
        // HEADER BAR
        $of_options[] = array('name' => __('Header Bar', 'ishyoboy'), 'desc' => __('Show the header bar used to display social icons and menu', 'ishyoboy'), 'id' => 'use_header_bar', 'std' => 0, 'folds' => 1, 'type' => 'switch');
        $of_options[] = array('name' => '', 'desc' => __('Select which menu to display in top bar', 'ishyoboy'), 'id' => 'header_bar_menu', 'std' => '', 'fold' => 'use_header_bar', 'type' => 'select', 'options' => $of_menus);
        $of_options[] = array('name' => '', 'desc' => __('Social icons: Paste the social icons using the [social] shortcode', 'ishyoboy'), 'id' => 'header_bar_social_icons', 'std' => $social_icons, 'fold' => 'use_header_bar', 'type' => 'textarea');
        if (ishyoboy_wpml_plugin_active()) {
            $of_options[] = array('name' => '', 'desc' => __('Display the language selector', 'ishyoboy'), 'id' => 'header_bar_languages', 'std' => 0, 'folds' => 1, 'fold' => 'use_header_bar', 'type' => 'switch');
        }
        $of_options[] = array('name' => '', 'desc' => __('Positions', 'ishyoboy'), 'id' => 'header_bar_order', 'std' => 'social-left', 'fold' => 'use_header_bar', 'type' => 'select', 'options' => array('social-left' => 'Social on left / Menu on right', 'social-right' => 'Menu on left / Social on right'));
        // HEADER SEARCH
        $of_options[] = array('name' => __('Header navigation search form', 'ishyoboy'), 'desc' => __('Add search form as last navigation item.', 'ishyoboy'), 'id' => 'use_navigation_search', 'std' => '1', 'type' => 'switch');
        /* *********************************************************************************************************************
         * 3. Footer Settings
         */
        $of_options[] = array('name' => __('Footer Options', 'ishyoboy'), 'class' => 'footeroptions', 'type' => 'heading');
        // FOOTER WIDGETS
        $of_options[] = array('name' => __('Footer widget area', 'ishyoboy'), 'desc' => __('Show the footer widget area.', 'ishyoboy'), 'id' => 'footer_widget_area', 'std' => 1, 'folds' => 1, 'type' => 'switch');
        $of_options[] = array('name' => '', 'desc' => __('Select which sidebar will be displayed inside the footer widget area by default.', 'ishyoboy'), 'id' => 'footer_sidebar', 'std' => 'sidebar-footer', 'fold' => 'footer_widget_area', 'type' => 'select', 'options' => $of_sidebars);
        // FOOTER LEGALS
        $of_options[] = array('name' => __('Footer legals area', 'ishyoboy'), 'desc' => __('Show the footer legals area.', 'ishyoboy'), 'id' => 'footer_legals_area', 'std' => 1, 'folds' => 1, 'type' => 'switch');
        $of_options[] = array('name' => '', 'desc' => __('Select which sidebar will be displayed inside the footer legals area by default.', 'ishyoboy'), 'id' => 'footer_legals', 'std' => 'sidebar-footer-legals', 'fold' => 'footer_legals_area', 'type' => 'select', 'options' => $of_sidebars);
        /* *********************************************************************************************************************
         * 3. Portfolio Settings
         */
        $of_options[] = array('name' => __('Portfolio Options', 'ishyoboy'), 'class' => 'portfoliooptions', 'type' => 'heading');
        $url = ADMIN_DIR . 'assets/images/portfolio-styles/';
        $of_options[] = array('name' => __('Portfolio Layout Options', 'ishyoboy'), 'desc' => __('Layout Style', 'ishyoboy'), 'id' => 'portfolio_layout_style', 'std' => '1', 'type' => 'images', 'options' => array('1' => $url . 'portfolio-style1.png', '2' => $url . 'portfolio-style2.png', '3' => $url . 'portfolio-style3.png', '4' => $url . 'portfolio-style4.png'));
        $of_options[] = array('name' => '', 'desc' => __("If Fluid layout selected, the image widths will be scaled down depending on the browser's width", 'ishyoboy'), 'id' => 'portfolio_fluid_layout', 'std' => 0, "on" => __('Fluid', 'ishyoboy'), "off" => __('Fixed', 'ishyoboy'), 'type' => 'switch');
        $of_options[] = array('name' => '', 'desc' => __('Masonry effect - Use masonry effect to align items with different heights', 'ishyoboy'), 'id' => 'portfolio_masonry', 'std' => 0, "on" => __('Enable', 'ishyoboy'), "off" => __('Disable', 'ishyoboy'), 'type' => 'switch');
        $of_options[] = array('name' => __('Additional Layout Options', 'ishyoboy'), 'desc' => __("Animate filter", 'ishyoboy'), 'id' => 'portfolio_animate_filter', 'std' => 0, "on" => __('Yes', 'ishyoboy'), "off" => __('No', 'ishyoboy'), 'type' => 'switch');
        $of_options[] = array('name' => '', 'desc' => __("Show title", 'ishyoboy'), 'id' => 'portfolio_show_title', 'std' => 1, "on" => __('Yes', 'ishyoboy'), "off" => __('No', 'ishyoboy'), 'type' => 'switch');
        $of_options[] = array('name' => '', 'desc' => __("Show categories", 'ishyoboy'), 'id' => 'portfolio_show_categories', 'std' => 1, "on" => __('Yes', 'ishyoboy'), "off" => __('No', 'ishyoboy'), 'type' => 'switch');
        $of_options[] = array('name' => '', 'desc' => __("Show link button", 'ishyoboy'), 'id' => 'portfolio_show_link_button', 'std' => 1, "on" => __('Yes', 'ishyoboy'), "off" => __('No', 'ishyoboy'), 'type' => 'switch');
        $of_options[] = array('name' => '', 'desc' => __("Show popup button", 'ishyoboy'), 'id' => 'portfolio_show_popup_button', 'std' => 1, "on" => __('Yes', 'ishyoboy'), "off" => __('No', 'ishyoboy'), 'type' => 'switch');
        $of_options[] = array('name' => __('Portfolio page', 'ishyoboy'), 'desc' => __('The page which will serve as Portfolio homepage.', 'ishyoboy'), 'id' => 'page_for_custom_post_type_portfolio-post', 'std' => '', 'type' => 'select', 'options' => $of_pages);
        $of_options[] = array('name' => __('Items per page', 'ishyoboy'), 'desc' => __('Number of items displayed per page. To see all items set the value to "-1"', 'ishyoboy'), 'id' => 'portfolio_posts_per_page', 'std' => '9', 'type' => 'text');
        $of_options[] = array('name' => __('Max height', 'ishyoboy'), 'desc' => 'Images will be cut if their height is more than this size. Please enter a number with pixels. E.g: "200px"', 'id' => 'portfolio_height', 'std' => '', 'type' => 'text');
        $of_options[] = array('name' => __('Columns', 'ishyoboy'), 'desc' => __('Number of columns in a row', 'ishyoboy'), 'id' => 'portfolio_columns', 'std' => '4', 'type' => 'select', 'options' => array('2' => '2', '3' => '3', '4' => '4'));
        $of_options[] = array('name' => __('Portfolio Sidebar', 'ishyoboy'), 'desc' => __('Display Sidebar on Portfolio overview and Blog detail pages.', 'ishyoboy') . '<br><br><span style="color: #FF0000;">' . __('<strong>IMPORTANT:</strong><br>Page breaks and Sections will be removed if a sidebar is added.', 'ishyoboy') . '</span>', 'id' => 'show_portfolio_sidebar', 'std' => 0, 'folds' => 1, 'type' => 'switch');
        $of_options[] = array('name' => '', 'desc' => __('Choose whether to display the sidebar on the left or on the right side of the page.', 'ishyoboy'), 'id' => 'portfolio_sidebar_position', 'std' => 'right', 'fold' => 'show_portfolio_sidebar', 'type' => 'select', 'options' => array('left' => 'Left', 'right' => 'Right'));
        $of_options[] = array('name' => '', 'desc' => __('Select which sidebar will be displayed on Portfolio overview and Portfolio detail pages.', 'ishyoboy'), 'id' => 'portfolio_sidebar', 'std' => 'sidebar-main', 'fold' => 'show_portfolio_sidebar', 'type' => 'select', 'options' => $of_sidebars);
        /* *********************************************************************************************************************
         * 3. Blog Settings
         */
        $of_options[] = array('name' => __('Blog Options', 'ishyoboy'), 'class' => 'blogoptions', 'type' => 'heading');
        $of_options[] = array('name' => __('Blog Sidebar', 'ishyoboy'), 'desc' => __('Display Sidebar on Blog overview and Blog detail pages.', 'ishyoboy') . '<br><br><span style="color: #FF0000;">' . __('<strong>IMPORTANT:</strong><br>Page breaks and Sections will be removed if a sidebar is added.', 'ishyoboy') . '</span>', 'id' => 'show_blog_sidebar', 'std' => 1, 'folds' => 1, 'type' => 'switch');
        $of_options[] = array('name' => '', 'desc' => __('Choose whether to display the sidebar on the left or on the right side of the page.', 'ishyoboy'), 'id' => 'blog_sidebar_position', 'std' => 'right', 'fold' => 'show_blog_sidebar', 'type' => 'select', 'options' => array('left' => 'Left', 'right' => 'Right'));
        $of_options[] = array('name' => '', 'desc' => __('Select which sidebar will be displayed on Blog overview and Blog detail pages.', 'ishyoboy'), 'id' => 'blog_sidebar', 'std' => 'sidebar-main', 'fold' => 'show_blog_sidebar', 'type' => 'select', 'options' => $of_sidebars);
        $of_options[] = array('name' => __('Blog Social Sharing', 'ishyoboy'), 'desc' => __('Chose whether to display a social sharing buttons box by default.', 'ishyoboy'), 'id' => 'use_addthis_share', 'std' => '1', 'type' => 'switch');
        /* *********************************************************************************************************************
         * 4. Styling Settings
         */
        $of_options[] = array('name' => __('Styling Options', 'ishyoboy'), 'class' => 'stylingoptions', 'type' => 'heading');
        /*
                    $of_options[] = array(  'name' => __( 'Theme Skin', 'ishyoboy' ),
                                            'desc' => __( 'Use one of the pre-defined skins or manually set all skin options', 'ishyoboy' ),
                                            'id' => 'use_skin',
                                            'std' => 1,
                                            //'folds' => 0,
                                            "on" => 'Use skin',
                                            'off' => 'Custom colors',
                                            'type' => 'switch');*/
        $of_options[] = array('name' => __('Theme Skins', 'ishyoboy'), 'desc' => __('Select one of the pre-defined skins.', 'ishyoboy') . '<br><br><span style="color: red;">' . __('<strong>IMPORTANT:</strong><br>Changing the skin will reset all your currently defined Styling and Fonts options.', 'ishyoboy') . '</span>', 'id' => 'skin', 'std' => 'default.php', 'type' => 'images', 'options' => $alt_stylesheets_imgs);
        $url = ADMIN_DIR . 'assets/images/';
        $of_options[] = array('name' => __('Boxed / Unboxed Layout', 'ishyoboy'), 'desc' => ' Default layout of the theme. Either boxed with a background image or unboxed (full-width).', 'id' => 'boxed_layout', 'std' => 'boxed', 'type' => 'images', 'options' => array('boxed' => $url . '3cm.png', 'unboxed' => $url . '1col.png'));
        $of_options[] = array('name' => __('Main Color Options', 'ishyoboy'), 'desc' => __('Color 1', 'ishyoboy'), 'id' => 'color1', 'std' => ISH_COLOR_1, 'type' => 'color');
        $of_options[] = array('name' => '', 'desc' => __('Color 2', 'ishyoboy'), 'id' => 'color2', 'std' => ISH_COLOR_2, 'type' => 'color');
        $of_options[] = array('name' => '', 'desc' => __('Color 3', 'ishyoboy'), 'id' => 'color3', 'std' => ISH_COLOR_3, 'type' => 'color');
        $of_options[] = array('name' => '', 'desc' => __('Color 4', 'ishyoboy'), 'id' => 'color4', 'std' => ISH_COLOR_4, 'type' => 'color');
        $of_options[] = array('name' => '', 'desc' => __('Text color', 'ishyoboy'), 'id' => 'text_color', 'std' => ISH_TEXT_COLOR, 'type' => 'color');
        $of_options[] = array('name' => '', 'desc' => __('Body content color', 'ishyoboy'), 'id' => 'body_color', 'std' => '#ffffff', 'type' => 'color');
        $of_options[] = array('name' => '', 'desc' => __('Background color (when no pattern or image)', 'ishyoboy'), 'id' => 'background_color', 'std' => '#ffffff', 'type' => 'color');
        $of_options[] = array('name' => __('Patterns & Custom Images', 'ishyoboy'), 'desc' => '', 'id' => 'ish-patterns-options', 'std' => '', 'icon' => false, 'type' => 'ish-acc-section');
        // Background Pattern (Boxed layout only)
        $of_options[] = array('name' => __('Background Pattern (Boxed layout only)', 'ishyoboy'), 'desc' => '', 'id' => 'use_background_pattern', 'std' => 0, 'on' => __('Predefined', 'ishyoboy'), 'off' => __('Custom', 'ishyoboy'), 'folds' => 1, 'type' => 'switch');
        $of_options[] = array('name' => '', 'desc' => __('Choose one of the pre-defined patterns.', 'ishyoboy'), 'id' => 'background_bg_pattern', 'std' => 'solid-light-bg3.png', 'type' => 'tiles', 'fold' => 'use_background_pattern', 'options' => $bg_images);
        $of_options[] = array('name' => '', 'desc' => __('Upload and select custom pattern.', 'ishyoboy'), 'id' => 'background_bg_image', 'std' => IYB_HTML_URI . '/core/images/bg-images/background-2.jpg', 'fold' => 'off_' . 'use_background_pattern', 'mod' => 'min', 'type' => 'media');
        $of_options[] = array('name' => '', 'desc' => __('Background position', 'ishyoboy'), 'id' => 'background_bg_image_cover', 'std' => 1, 'fold' => 'off_' . 'use_background_pattern', 'type' => 'radio', 'options' => array('0' => __('Repeat and scroll', 'ishyoboy'), '1' => __('Fixed and cover', 'ishyoboy')));
        // Expandable Pattern
        $of_options[] = array('name' => __('Header Expandable area pattern', 'ishyoboy'), 'desc' => '', 'id' => 'use_expandable_pattern', 'std' => 1, 'on' => __('Predefined', 'ishyoboy'), 'off' => __('Custom', 'ishyoboy'), 'folds' => 1, 'type' => 'switch');
        $of_options[] = array('name' => '', 'desc' => __('Choose one of the pre-defined patterns.', 'ishyoboy'), 'id' => 'expandable_bg_pattern', 'std' => 'transparent-bg10.png', 'type' => 'tiles', 'fold' => 'use_expandable_pattern', 'options' => $bg_images);
        $of_options[] = array('name' => '', 'desc' => __('Upload and select custom pattern.', 'ishyoboy'), 'id' => 'expandable_bg_image', 'std' => '', 'fold' => 'off_' . 'use_expandable_pattern', 'mod' => 'min', 'type' => 'media');
        // Header Pattern
        $of_options[] = array('name' => __('Header pattern', 'ishyoboy'), 'desc' => '', 'id' => 'use_header_pattern', 'std' => 1, 'on' => __('Predefined', 'ishyoboy'), 'off' => __('Custom', 'ishyoboy'), 'folds' => 1, 'type' => 'switch');
        $of_options[] = array('name' => '', 'desc' => __('Choose one of the pre-defined patterns.', 'ishyoboy'), 'id' => 'header_bg_pattern', 'std' => '', 'type' => 'tiles', 'fold' => 'use_header_pattern', 'options' => $bg_images);
        $of_options[] = array('name' => '', 'desc' => __('Upload and select custom pattern.', 'ishyoboy'), 'id' => 'header_bg_image', 'std' => '', 'fold' => 'off_' . 'use_header_pattern', 'mod' => 'min', 'type' => 'media');
        // Lead Pattern
        $of_options[] = array('name' => __('Lead pattern', 'ishyoboy'), 'desc' => '', 'id' => 'use_lead_pattern', 'std' => 1, 'on' => __('Predefined', 'ishyoboy'), 'off' => __('Custom', 'ishyoboy'), 'folds' => 1, 'type' => 'switch');
        $of_options[] = array('name' => '', 'desc' => __('Choose one of the pre-defined patterns.', 'ishyoboy'), 'id' => 'lead_bg_pattern', 'std' => 'transparent-bg10.png', 'type' => 'tiles', 'fold' => 'use_lead_pattern', 'options' => $bg_images);
        $of_options[] = array('name' => '', 'desc' => __('Upload and select custom pattern.', 'ishyoboy'), 'id' => 'lead_bg_image', 'std' => '', 'fold' => 'off_' . 'use_lead_pattern', 'mod' => 'min', 'type' => 'media');
        // Content Pattern
        $of_options[] = array('name' => __('Content pattern', 'ishyoboy'), 'desc' => '', 'id' => 'use_content_pattern', 'std' => 1, 'on' => __('Predefined', 'ishyoboy'), 'off' => __('Custom', 'ishyoboy'), 'folds' => 1, 'type' => 'switch');
        $of_options[] = array('name' => '', 'desc' => __('Choose one of the pre-defined patterns.', 'ishyoboy'), 'id' => 'content_bg_pattern', 'std' => '', 'type' => 'tiles', 'fold' => 'use_content_pattern', 'options' => $bg_images);
        $of_options[] = array('name' => '', 'desc' => __('Upload and select custom pattern.', 'ishyoboy'), 'id' => 'content_bg_image', 'std' => '', 'fold' => 'off_' . 'use_content_pattern', 'mod' => 'min', 'type' => 'media');
        // Footer Pattern
        $of_options[] = array('name' => __('Footer Widget area pattern', 'ishyoboy'), 'desc' => '', 'id' => 'use_footer_pattern', 'std' => 1, 'on' => __('Predefined', 'ishyoboy'), 'off' => __('Custom', 'ishyoboy'), 'folds' => 1, 'type' => 'switch');
        $of_options[] = array('name' => '', 'desc' => __('Choose one of the pre-defined patterns.', 'ishyoboy'), 'id' => 'footer_bg_pattern', 'std' => 'transparent-bg10.png', 'type' => 'tiles', 'fold' => 'use_footer_pattern', 'options' => $bg_images);
        $of_options[] = array('name' => '', 'desc' => __('Upload and select custom pattern.', 'ishyoboy'), 'id' => 'footer_bg_image', 'std' => '', 'fold' => 'off_' . 'use_footer_pattern', 'mod' => 'min', 'type' => 'media');
        /* *********************************************************************************************************************
         * 4. Font Settings
         */
        /*
                $of_options[] = array(  'name' => __( 'Font Options', 'ishyoboy' ),
                            'class' => 'fontoptions',
                            'type' => 'heading');
        /*
        $of_options[] = array( 	'name' => __( 'Theme Google Font', 'ishyoboy' ),
                                'desc' => __( 'Please choose the font which will be used for all elements across the website.', 'ishyoboy' ),
                                'id' => 'google_font_1',
                                'std' => FONT_1,
                                'fold' => 'use_google_fonts',
                                'type' => 'select_google_font',
                                'preview' 	=> array(
                                                'text' => __( 'Google font preview!', 'ishyoboy' ), //this is the text from preview box
                                                'size' => '30px' //this is the text size from preview box
                                ),
                                'options' 	=> $googleFonts
                        );
        */
        /*
                    $of_options[] = array( 	'name' => __( 'Text Font', 'ishyoboy' ),
                                            'desc' => __( 'Please choose the font which will be used for all text across the website.', 'ishyoboy' ),
                                            'id' => 'google_font_2',
                                            'std' => FONT_1,
                                            'fold' => 'use_google_fonts',
                                            'type' => 'select_google_font',
                                            'preview' 	=> array(
                                                            'text' => '0123456789 ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz<br>.,:;?!@#$%^&*()[]{}\'"|<>/\\', //this is the text from preview box
                                                            'size' => '12px' //this is the text size from preview box
                                            ),
                                            'options' 	=> $googleFonts
                                    );
                    /**/
        $id = 'body_font';
        // Important!
        $of_options[] = array('name' => __('Fonts Options', 'ishyoboy'), 'desc' => '', 'id' => 'ish_fonts_options', 'std' => '', 'icon' => false, 'type' => 'ish-acc-section');
        $of_options[] = array('name' => __('Body Font', 'ishyoboy'), 'desc' => __('Font Type', 'ishyoboy'), 'id' => $id . '_use_google_font', 'std' => 1, 'on' => 'Google', 'off' => 'Regular', 'folds' => 1, 'type' => 'switch');
        // GOOGLE FONT
        $of_options[] = array('name' => '', 'desc' => __('Font Family', 'ishyoboy'), 'id' => $id . '_google', 'std' => 'google' == $ish_fonts[$id]['type'] ? $ish_fonts[$id]['name'] : 'Muli', 'fold' => $id . '_use_google_font', 'type' => 'select_google_font', 'preview' => array('text' => __('0123456789 ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz', 'ishyoboy'), 'size' => '16px'), 'options' => $googleFontsArray);
        $of_options[] = array('name' => '', 'desc' => __('Font Variant', 'ishyoboy'), 'id' => $id . '_google_variant', 'std' => 'google' == $ish_fonts[$id]['type'] ? $ish_fonts[$id]['variant'] : '400', 'fold' => $id . '_use_google_font', 'type' => 'select', 'options' => ishyoboy_google_variants('google' == $ish_fonts[$id]['type'] ? $ish_fonts[$id]['name'] : 'Muli'));
        // REGULAR FONT
        $of_options[] = array('name' => '', 'desc' => __('Font Family', 'ishyoboy'), 'id' => $id . '_regular', 'std' => 'regular' == $ish_fonts[$id]['type'] ? $ish_fonts[$id]['name'] : 'helvetica', 'fold' => 'off_' . $id . '_use_google_font', 'type' => 'select', 'options' => $regular_fonts);
        $of_options[] = array('name' => '', 'desc' => __('Font Variant', 'ishyoboy'), 'id' => $id . '_regular_variant', 'std' => 'regular' == $ish_fonts[$id]['type'] ? $ish_fonts[$id]['name'] : 'normal', 'fold' => 'off_' . $id . '_use_google_font', 'type' => 'select', 'options' => $regular_variants);
        // OTHER SETTINGS
        $of_options[] = array('name' => '', 'desc' => __('Font Size', 'ishyoboy'), 'id' => $id . '_size', 'std' => $ish_fonts[$id]['size'], "min" => '0', "step" => '1', "max" => '200', 'type' => 'sliderui');
        $of_options[] = array('name' => '', 'desc' => __('Line Height', 'ishyoboy'), 'id' => $id . '_line_height', 'std' => $ish_fonts[$id]['line_height'], "min" => '0', "step" => '1', "max" => '200', 'type' => 'sliderui');
        $id = 'header_font';
        // Important!
        $of_options[] = array('name' => __('Header Font', 'ishyoboy'), 'desc' => __('Font Type', 'ishyoboy'), 'id' => $id . '_use_google_font', 'std' => 1, 'on' => 'Google', 'off' => 'Regular', 'folds' => 1, 'type' => 'switch');
        // GOOGLE FONT
        $of_options[] = array('name' => '', 'desc' => __('Font Family', 'ishyoboy'), 'id' => $id . '_google', 'std' => 'google' == $ish_fonts[$id]['type'] ? $ish_fonts[$id]['name'] : 'Muli', 'fold' => $id . '_use_google_font', 'type' => 'select_google_font', 'preview' => array('text' => __('Google font preview!', 'ishyoboy'), 'size' => '30px'), 'options' => $googleFontsArray);
        $of_options[] = array('name' => '', 'desc' => __('Font Variant', 'ishyoboy'), 'id' => $id . '_google_variant', 'std' => 'google' == $ish_fonts[$id]['type'] ? $ish_fonts[$id]['variant'] : '400', 'fold' => $id . '_use_google_font', 'type' => 'select', 'options' => ishyoboy_google_variants('google' == $ish_fonts[$id]['type'] ? $ish_fonts[$id]['name'] : 'Muli'));
        // REGULAR FONT
        $of_options[] = array('name' => '', 'desc' => __('Font Family', 'ishyoboy'), 'id' => $id . '_regular', 'std' => 'regular' == $ish_fonts[$id]['type'] ? $ish_fonts[$id]['name'] : 'helvetica', 'fold' => 'off_' . $id . '_use_google_font', 'type' => 'select', 'options' => $regular_fonts);
        $of_options[] = array('name' => '', 'desc' => __('Font Variant', 'ishyoboy'), 'id' => $id . '_regular_variant', 'std' => 'regular' == $ish_fonts[$id]['type'] ? $ish_fonts[$id]['name'] : 'normal', 'fold' => 'off_' . $id . '_use_google_font', 'type' => 'select', 'options' => $regular_variants);
        // OTHER SETTINGS
        $of_options[] = array('name' => '', 'desc' => __('Font Size', 'ishyoboy'), 'id' => $id . '_size', 'std' => $ish_fonts[$id]['size'], "min" => '0', "step" => '1', "max" => '200', 'type' => 'sliderui');
        $id = 'h1_font';
        // Imortant!
        $of_options[] = array('name' => __('H1', 'ishyoboy'), 'desc' => __('Font Type', 'ishyoboy'), 'id' => $id . '_use_google_font', 'std' => 1, 'on' => 'Google', 'off' => 'Regular', 'folds' => 1, 'type' => 'switch');
        // GOOGLE FONT
        $of_options[] = array('name' => '', 'desc' => __('Font Family', 'ishyoboy'), 'id' => $id . '_google', 'std' => 'google' == $ish_fonts[$id]['type'] ? $ish_fonts[$id]['name'] : 'Raleway', 'fold' => $id . '_use_google_font', 'type' => 'select_google_font', 'preview' => array('text' => __('Google font preview!', 'ishyoboy'), 'size' => '30px'), 'options' => $googleFontsArray);
        $of_options[] = array('name' => '', 'desc' => __('Font Variant', 'ishyoboy'), 'id' => $id . '_google_variant', 'std' => 'google' == $ish_fonts[$id]['type'] ? $ish_fonts[$id]['variant'] : '300', 'fold' => $id . '_use_google_font', 'type' => 'select', 'options' => ishyoboy_google_variants('google' == $ish_fonts[$id]['type'] ? $ish_fonts[$id]['name'] : 'Raleway'));
        // REGULAR FONT
        $of_options[] = array('name' => '', 'desc' => __('Font Family', 'ishyoboy'), 'id' => $id . '_regular', 'std' => 'regular' == $ish_fonts[$id]['type'] ? $ish_fonts[$id]['name'] : 'helvetica', 'fold' => 'off_' . $id . '_use_google_font', 'type' => 'select', 'options' => $regular_fonts);
        $of_options[] = array('name' => '', 'desc' => __('Font Variant', 'ishyoboy'), 'id' => $id . '_regular_variant', 'std' => 'regular' == $ish_fonts[$id]['type'] ? $ish_fonts[$id]['name'] : 'normal', 'fold' => 'off_' . $id . '_use_google_font', 'type' => 'select', 'options' => $regular_variants);
        // OTHER SETTINGS
        $of_options[] = array('name' => '', 'desc' => __('Font Size', 'ishyoboy'), 'id' => $id . '_size', 'std' => $ish_fonts[$id]['size'], "min" => '0', "step" => '1', "max" => '200', 'type' => 'sliderui');
        $of_options[] = array('name' => '', 'desc' => __('Line Height', 'ishyoboy'), 'id' => $id . '_line_height', 'std' => $ish_fonts[$id]['line_height'], "min" => '0', "step" => '1', "max" => '200', 'type' => 'sliderui');
        $id = 'h2_font';
        // Imortant!
        $of_options[] = array('name' => __('H2', 'ishyoboy'), 'desc' => __('Font Type', 'ishyoboy'), 'id' => $id . '_use_google_font', 'std' => 1, 'on' => 'Google', 'off' => 'Regular', 'folds' => 1, 'type' => 'switch');
        // GOOGLE FONT
        $of_options[] = array('name' => '', 'desc' => __('Font Family', 'ishyoboy'), 'id' => $id . '_google', 'std' => 'google' == $ish_fonts[$id]['type'] ? $ish_fonts[$id]['name'] : 'Raleway', 'fold' => $id . '_use_google_font', 'type' => 'select_google_font', 'preview' => array('text' => __('Google font preview!', 'ishyoboy'), 'size' => '30px'), 'options' => $googleFontsArray);
        $of_options[] = array('name' => '', 'desc' => __('Font Variant', 'ishyoboy'), 'id' => $id . '_google_variant', 'std' => 'google' == $ish_fonts[$id]['type'] ? $ish_fonts[$id]['variant'] : '300', 'fold' => $id . '_use_google_font', 'type' => 'select', 'options' => ishyoboy_google_variants('google' == $ish_fonts[$id]['type'] ? $ish_fonts[$id]['name'] : 'Raleway'));
        // REGULAR FONT
        $of_options[] = array('name' => '', 'desc' => __('Font Family', 'ishyoboy'), 'id' => $id . '_regular', 'std' => 'regular' == $ish_fonts[$id]['type'] ? $ish_fonts[$id]['name'] : 'helvetica', 'fold' => 'off_' . $id . '_use_google_font', 'type' => 'select', 'options' => $regular_fonts);
        $of_options[] = array('name' => '', 'desc' => __('Font Variant', 'ishyoboy'), 'id' => $id . '_regular_variant', 'std' => 'regular' == $ish_fonts[$id]['type'] ? $ish_fonts[$id]['name'] : 'normal', 'fold' => 'off_' . $id . '_use_google_font', 'type' => 'select', 'options' => $regular_variants);
        // OTHER SETTINGS
        $of_options[] = array('name' => '', 'desc' => __('Font Size', 'ishyoboy'), 'id' => $id . '_size', 'std' => $ish_fonts[$id]['size'], "min" => '0', "step" => '1', "max" => '200', 'type' => 'sliderui');
        $of_options[] = array('name' => '', 'desc' => __('Line Height', 'ishyoboy'), 'id' => $id . '_line_height', 'std' => $ish_fonts[$id]['line_height'], "min" => '0', "step" => '1', "max" => '200', 'type' => 'sliderui');
        $id = 'h3_font';
        // Imortant!
        $of_options[] = array('name' => __('H3', 'ishyoboy'), 'desc' => __('Font Type', 'ishyoboy'), 'id' => $id . '_use_google_font', 'std' => 1, 'on' => 'Google', 'off' => 'Regular', 'folds' => 1, 'type' => 'switch');
        // GOOGLE FONT
        $of_options[] = array('name' => '', 'desc' => __('Font Family', 'ishyoboy'), 'id' => $id . '_google', 'std' => 'google' == $ish_fonts[$id]['type'] ? $ish_fonts[$id]['name'] : 'Raleway', 'fold' => $id . '_use_google_font', 'type' => 'select_google_font', 'preview' => array('text' => __('Google font preview!', 'ishyoboy'), 'size' => '30px'), 'options' => $googleFontsArray);
        $of_options[] = array('name' => '', 'desc' => __('Font Variant', 'ishyoboy'), 'id' => $id . '_google_variant', 'std' => 'google' == $ish_fonts[$id]['type'] ? $ish_fonts[$id]['variant'] : '400', 'fold' => $id . '_use_google_font', 'type' => 'select', 'options' => ishyoboy_google_variants('google' == $ish_fonts[$id]['type'] ? $ish_fonts[$id]['name'] : 'Raleway'));
        // REGULAR FONT
        $of_options[] = array('name' => '', 'desc' => __('Font Family', 'ishyoboy'), 'id' => $id . '_regular', 'std' => 'regular' == $ish_fonts[$id]['type'] ? $ish_fonts[$id]['name'] : 'helvetica', 'fold' => 'off_' . $id . '_use_google_font', 'type' => 'select', 'options' => $regular_fonts);
        $of_options[] = array('name' => '', 'desc' => __('Font Variant', 'ishyoboy'), 'id' => $id . '_regular_variant', 'std' => 'regular' == $ish_fonts[$id]['type'] ? $ish_fonts[$id]['name'] : 'normal', 'fold' => 'off_' . $id . '_use_google_font', 'type' => 'select', 'options' => $regular_variants);
        // OTHER SETTINGS
        $of_options[] = array('name' => '', 'desc' => __('Font Size', 'ishyoboy'), 'id' => $id . '_size', 'std' => $ish_fonts[$id]['size'], "min" => '0', "step" => '1', "max" => '200', 'type' => 'sliderui');
        $of_options[] = array('name' => '', 'desc' => __('Line Height', 'ishyoboy'), 'id' => $id . '_line_height', 'std' => $ish_fonts[$id]['line_height'], "min" => '0', "step" => '1', "max" => '200', 'type' => 'sliderui');
        $id = 'h4_font';
        // Imortant!
        $of_options[] = array('name' => __('H4', 'ishyoboy'), 'desc' => __('Font Type', 'ishyoboy'), 'id' => $id . '_use_google_font', 'std' => 1, 'on' => 'Google', 'off' => 'Regular', 'folds' => 1, 'type' => 'switch');
        // GOOGLE FONT
        $of_options[] = array('name' => '', 'desc' => __('Font Family', 'ishyoboy'), 'id' => $id . '_google', 'std' => 'google' == $ish_fonts[$id]['type'] ? $ish_fonts[$id]['name'] : 'Raleway', 'fold' => $id . '_use_google_font', 'type' => 'select_google_font', 'preview' => array('text' => __('Google font preview!', 'ishyoboy'), 'size' => '30px'), 'options' => $googleFontsArray);
        $of_options[] = array('name' => '', 'desc' => __('Font Variant', 'ishyoboy'), 'id' => $id . '_google_variant', 'std' => 'google' == $ish_fonts[$id]['type'] ? $ish_fonts[$id]['variant'] : 'regular', 'fold' => $id . '_use_google_font', 'type' => 'select', 'options' => ishyoboy_google_variants('google' == $ish_fonts[$id]['type'] ? $ish_fonts[$id]['name'] : 'Raleway'));
        // REGULAR FONT
        $of_options[] = array('name' => '', 'desc' => __('Font Family', 'ishyoboy'), 'id' => $id . '_regular', 'std' => 'regular' == $ish_fonts[$id]['type'] ? $ish_fonts[$id]['name'] : 'helvetica', 'fold' => 'off_' . $id . '_use_google_font', 'type' => 'select', 'options' => $regular_fonts);
        $of_options[] = array('name' => '', 'desc' => __('Font Variant', 'ishyoboy'), 'id' => $id . '_regular_variant', 'std' => 'regular' == $ish_fonts[$id]['type'] ? $ish_fonts[$id]['name'] : 'normal', 'fold' => 'off_' . $id . '_use_google_font', 'type' => 'select', 'options' => $regular_variants);
        // OTHER SETTINGS
        $of_options[] = array('name' => '', 'desc' => __('Font Size', 'ishyoboy'), 'id' => $id . '_size', 'std' => $ish_fonts[$id]['size'], "min" => '0', "step" => '1', "max" => '200', 'type' => 'sliderui');
        $of_options[] = array('name' => '', 'desc' => __('Line Height', 'ishyoboy'), 'id' => $id . '_line_height', 'std' => $ish_fonts[$id]['line_height'], "min" => '0', "step" => '1', "max" => '200', 'type' => 'sliderui');
        $id = 'h5_font';
        // Imortant!
        $of_options[] = array('name' => __('H5', 'ishyoboy'), 'desc' => __('Font Type', 'ishyoboy'), 'id' => $id . '_use_google_font', 'std' => 1, 'on' => 'Google', 'off' => 'Regular', 'folds' => 1, 'type' => 'switch');
        // GOOGLE FONT
        $of_options[] = array('name' => '', 'desc' => __('Font Family', 'ishyoboy'), 'id' => $id . '_google', 'std' => 'google' == $ish_fonts[$id]['type'] ? $ish_fonts[$id]['name'] : 'Raleway', 'fold' => $id . '_use_google_font', 'type' => 'select_google_font', 'preview' => array('text' => __('Google font preview!', 'ishyoboy'), 'size' => '30px'), 'options' => $googleFontsArray);
        $of_options[] = array('name' => '', 'desc' => __('Font Variant', 'ishyoboy'), 'id' => $id . '_google_variant', 'std' => 'google' == $ish_fonts[$id]['type'] ? $ish_fonts[$id]['variant'] : '400', 'fold' => $id . '_use_google_font', 'type' => 'select', 'options' => ishyoboy_google_variants('google' == $ish_fonts[$id]['type'] ? $ish_fonts[$id]['name'] : 'Raleway'));
        // REGULAR FONT
        $of_options[] = array('name' => '', 'desc' => __('Font Family', 'ishyoboy'), 'id' => $id . '_regular', 'std' => 'regular' == $ish_fonts[$id]['type'] ? $ish_fonts[$id]['name'] : 'helvetica', 'fold' => 'off_' . $id . '_use_google_font', 'type' => 'select', 'options' => $regular_fonts);
        $of_options[] = array('name' => '', 'desc' => __('Font Variant', 'ishyoboy'), 'id' => $id . '_regular_variant', 'std' => 'regular' == $ish_fonts[$id]['type'] ? $ish_fonts[$id]['name'] : 'normal', 'fold' => 'off_' . $id . '_use_google_font', 'type' => 'select', 'options' => $regular_variants);
        // OTHER SETTINGS
        $of_options[] = array('name' => '', 'desc' => __('Font Size', 'ishyoboy'), 'id' => $id . '_size', 'std' => $ish_fonts[$id]['size'], "min" => '0', "step" => '1', "max" => '200', 'type' => 'sliderui');
        $of_options[] = array('name' => '', 'desc' => __('Line Height', 'ishyoboy'), 'id' => $id . '_line_height', 'std' => $ish_fonts[$id]['line_height'], "min" => '0', "step" => '1', "max" => '200', 'type' => 'sliderui');
        $id = 'h6_font';
        // Imortant!
        $of_options[] = array('name' => __('H6', 'ishyoboy'), 'desc' => __('Font Type', 'ishyoboy'), 'id' => $id . '_use_google_font', 'std' => 1, 'on' => 'Google', 'off' => 'Regular', 'folds' => 1, 'type' => 'switch');
        // GOOGLE FONT
        $of_options[] = array('name' => '', 'desc' => __('Font Family', 'ishyoboy'), 'id' => $id . '_google', 'std' => 'google' == $ish_fonts[$id]['type'] ? $ish_fonts[$id]['name'] : 'Raleway', 'fold' => $id . '_use_google_font', 'type' => 'select_google_font', 'preview' => array('text' => __('Google font preview!', 'ishyoboy'), 'size' => '30px'), 'options' => $googleFontsArray);
        $of_options[] = array('name' => '', 'desc' => __('Font Variant', 'ishyoboy'), 'id' => $id . '_google_variant', 'std' => 'google' == $ish_fonts[$id]['type'] ? $ish_fonts[$id]['variant'] : '400', 'fold' => $id . '_use_google_font', 'type' => 'select', 'options' => ishyoboy_google_variants('google' == $ish_fonts[$id]['type'] ? $ish_fonts[$id]['name'] : 'Raleway'));
        // REGULAR FONT
        $of_options[] = array('name' => '', 'desc' => __('Font Family', 'ishyoboy'), 'id' => $id . '_regular', 'std' => 'regular' == $ish_fonts[$id]['type'] ? $ish_fonts[$id]['name'] : 'helvetica', 'fold' => 'off_' . $id . '_use_google_font', 'type' => 'select', 'options' => $regular_fonts);
        $of_options[] = array('name' => '', 'desc' => __('Font Variant', 'ishyoboy'), 'id' => $id . '_regular_variant', 'std' => 'regular' == $ish_fonts[$id]['type'] ? $ish_fonts[$id]['name'] : 'normal', 'fold' => 'off_' . $id . '_use_google_font', 'type' => 'select', 'options' => $regular_variants);
        // OTHER SETTINGS
        $of_options[] = array('name' => '', 'desc' => __('Font Size', 'ishyoboy'), 'id' => $id . '_size', 'std' => $ish_fonts[$id]['size'], "min" => '0', "step" => '1', "max" => '200', 'type' => 'sliderui');
        $of_options[] = array('name' => '', 'desc' => __('Line Height', 'ishyoboy'), 'id' => $id . '_line_height', 'std' => $ish_fonts[$id]['line_height'], "min" => '0', "step" => '1', "max" => '200', 'type' => 'sliderui');
        /* *********************************************************************************************************************
         * 6. Woocommerce Settings
         */
        if (ishyoboy_woocommerce_plugin_active()) {
            $of_options[] = array('name' => __('Woocommerce', 'ishyoboy'), 'class' => 'woocommerce', 'type' => 'heading');
            $of_options[] = array('name' => __('Woocommerce Sidebar', 'ishyoboy'), 'desc' => __("Display the sidebar on each woocommerce page by default. This settings can be overridden in each page's settings.", 'ishyoboy') . '<br><br><span style="color: #FF0000;">' . __('<strong>IMPORTANT:</strong><br>Page breaks and Sections will be removed if a sidebar is added.', 'ishyoboy') . '</span>', 'id' => 'show_woocommerce_sidebar', 'std' => 0, 'folds' => 1, 'type' => 'switch');
            $of_options[] = array('name' => '', 'desc' => __('Choose whether to display the sidebar on the left or on the right side of woocommerce pages.', 'ishyoboy'), 'id' => 'woocommerce_sidebar_position', 'std' => 'right', 'fold' => 'show_woocommerce_sidebar', 'type' => 'select', 'options' => array('left' => 'Left', 'right' => 'Right'));
            $of_options[] = array('name' => '', 'desc' => __('Select which sidebar will be displayed on each woocommerce page by default.', 'ishyoboy'), 'id' => 'woocommerce_sidebar', 'std' => 'sidebar-woocommerce', 'fold' => 'show_woocommerce_sidebar', 'type' => 'select', 'options' => $of_sidebars);
            $of_options[] = array('name' => __('Products per page', 'ishyoboy'), 'desc' => __('Number of products displayed per page. To see all items set the value to "-1"', 'ishyoboy'), 'id' => 'woocommerce_posts_per_page', 'std' => '8', 'type' => 'text');
        }
        /* *********************************************************************************************************************
         * 7. Misc Options
         */
        $of_options[] = array('name' => __('Misc Options', 'ishyoboy'), 'class' => 'misc-options', 'type' => 'heading');
        $of_options[] = array('name' => __('Twitter Widget', 'ishyoboy'), 'desc' => '', 'id' => 'twitter_ifo', 'std' => '', 'type' => 'twitter-info');
        $of_options[] = array('name' => '', 'desc' => __('Consumer key', 'ishyoboy'), 'id' => 'twitter_widget_consumer_key', 'std' => '', 'type' => 'text');
        $of_options[] = array('name' => '', 'desc' => __('Consumer secret', 'ishyoboy'), 'id' => 'twitter_widget_consumer_secret', 'std' => '', 'type' => 'text');
        $of_options[] = array('name' => '', 'desc' => __('Access token', 'ishyoboy'), 'id' => 'twitter_widget_access_token', 'std' => '', 'type' => 'text');
        $of_options[] = array('name' => '', 'desc' => __('Access token secret', 'ishyoboy'), 'id' => 'twitter_widget_access_token_secret', 'std' => '', 'type' => 'text');
        /* *********************************************************************************************************************
         * 8. Backup Options
         */
        $of_options[] = array('name' => __('Backup Options', 'ishyoboy'), 'class' => 'backupoptions', 'type' => 'heading');
        $of_options[] = array('name' => __('Backup and Restore Options', 'ishyoboy'), 'id' => 'of_backup', 'std' => '', 'type' => 'backup', 'desc' => 'You can use the two buttons below to backup your current options, and then restore it back at a later time. This is useful if you want to experiment on the options but would like to keep the old settings in case you need it back.');
        $of_options[] = array('name' => __('Transfer Theme Options Data', 'ishyoboy'), 'id' => 'of_transfer', 'std' => '', 'type' => 'transfer', 'desc' => 'You can tranfer the saved options data between different installs by copying the text inside the text box. To import data from another install, replace the data in the text box with the one from another install and click "Import Options".
                                    ');
        /* *********************************************************************************************************************
         * 9. Theme Update
         */
        $of_options[] = array('name' => __('Theme Update', 'ishyoboy'), 'class' => 'themeupdate', 'ish-updates' => '1', 'type' => 'heading');
        $of_options[] = array('name' => __('Theme Update', 'ishyoboy'), 'desc' => '', 'id' => 'theme_update', 'std' => '', 'type' => 'theme_update');
    }
Пример #3
0
 /**
  * Process options data and build option fields
  *
  * @uses get_option()
  *
  * @access public
  * @since 1.0.0
  *
  * @return array
  */
 public static function optionsframework_machine($options)
 {
     //$data = of_get_options();
     //$ish_options = of_get_options();
     global $ish_options;
     $defaults = array();
     $counter = 0;
     $menu = '';
     $output = '';
     $output .= ishyoboy_get_google_fonts_js();
     foreach ($options as $value) {
         $counter++;
         $val = '';
         //create array of defaults
         if ($value['type'] == 'multicheck') {
             if (is_array($value['std'])) {
                 foreach ($value['std'] as $i => $key) {
                     $defaults[$value['id']][$key] = true;
                 }
             } else {
                 $defaults[$value['id']][$value['std']] = true;
             }
         } else {
             if (isset($value['id'])) {
                 $defaults[$value['id']] = $value['std'];
             }
         }
         //Start Heading
         if ($value['type'] != "heading") {
             $class = '';
             if (isset($value['class'])) {
                 $class = $value['class'];
             }
             //hide items in checkbox group
             $fold = '';
             if (array_key_exists("fold", $value)) {
                 //*****************
                 //Added by IshYoBoy
                 if (substr($value['fold'], 0, 4) == 'off_') {
                     $temp_id = substr($value['fold'], 4);
                     if ($ish_options[$temp_id]) {
                         $fold = "f_" . $value['fold'] . " temphide ";
                     } else {
                         $fold = "f_" . $value['fold'] . " ";
                     }
                 } else {
                     if ($ish_options[$value['fold']]) {
                         $fold = "f_" . $value['fold'] . " ";
                     } else {
                         $fold = "f_" . $value['fold'] . " temphide ";
                     }
                 }
             }
             $output .= '<div id="section-' . $value['id'] . '" class="' . $fold . 'section section-' . $value['type'] . ' ' . $class . '">' . "\n";
             //only show header if 'name' value exists
             if ($value['name']) {
                 $output .= '<h3 class="heading">' . $value['name'] . '</h3>' . "\n";
             }
             $output .= '<div class="option">' . "\n" . '<div class="controls">' . "\n";
         }
         //End Heading
         //switch statement to handle various options type
         switch ($value['type']) {
             //text input
             case 'text':
                 $t_value = '';
                 // Updated by IshYoBoy
                 $def = isset($ish_options[$value['id']]) ? $ish_options[$value['id']] : $defaults[$value['id']];
                 $t_value = stripslashes($def);
                 $mini = '';
                 if (!isset($value['mod'])) {
                     $value['mod'] = '';
                 }
                 if ($value['mod'] == 'mini') {
                     $mini = 'mini';
                 }
                 $output .= '<input class="of-input ' . $mini . '" name="' . $value['id'] . '" id="' . $value['id'] . '" type="' . $value['type'] . '" value="' . $t_value . '" />';
                 break;
                 //select option
             //select option
             case 'select':
                 $mini = '';
                 if (!isset($value['mod'])) {
                     $value['mod'] = '';
                 }
                 if ($value['mod'] == 'mini') {
                     $mini = 'mini';
                 }
                 $output .= '<div class="select_wrapper ' . $mini . '">';
                 $output .= '<select class="select of-input" name="' . $value['id'] . '" id="' . $value['id'] . '">';
                 foreach ($value['options'] as $select_ID => $option) {
                     //$output .= '<option id="' . $select_ID . '" value="'.$option.'" ' . selected($ish_options[$value['id']], $option, false) . ' />'.$option.'</option>';
                     // IshYoBoy modification:   always use the array key as value not the text of the option.
                     //                          You must always provide an assoc array Array('key', 'Value name');
                     $def = isset($ish_options[$value['id']]) ? $ish_options[$value['id']] : $defaults[$value['id']];
                     $output .= '<option id="' . $select_ID . '" value="' . $select_ID . '" ' . selected($def, $select_ID, false) . ' />' . $option . '</option>';
                 }
                 $output .= '</select></div>';
                 break;
                 //textarea option
             //textarea option
             case 'textarea':
                 $cols = '8';
                 $ta_value = '';
                 if (isset($value['options'])) {
                     $ta_options = $value['options'];
                     if (isset($ta_options['cols'])) {
                         $cols = $ta_options['cols'];
                     }
                 }
                 // Updated by IshYoBoy
                 $def = isset($ish_options[$value['id']]) ? $ish_options[$value['id']] : $defaults[$value['id']];
                 $ta_value = stripslashes($def);
                 $output .= '<textarea class="of-input" name="' . $value['id'] . '" id="' . $value['id'] . '" cols="' . $cols . '" rows="8">' . $ta_value . '</textarea>';
                 break;
                 //radiobox option
             //radiobox option
             case 'radio':
                 foreach ($value['options'] as $option => $name) {
                     // Updated by IshYoBoy
                     $checked = isset($ish_options[$value['id']]) ? $ish_options[$value['id']] : $defaults[$value['id']];
                     $output .= '<span class="of-radio-line"><input class="of-input of-radio" name="' . $value['id'] . '" id="' . $value['id'] . '_' . $option . '" type="radio" value="' . $option . '" ' . checked($checked, $option, false) . ' /><label class="radio" for="' . $value['id'] . '_' . $option . '">' . $name . '</label></span>';
                 }
                 break;
                 //checkbox option
             //checkbox option
             case 'checkbox':
                 if (!isset($ish_options[$value['id']])) {
                     $ish_options[$value['id']] = 0;
                 }
                 $fold = '';
                 if (array_key_exists("folds", $value)) {
                     $fold = "fld ";
                 }
                 $output .= '<input type="hidden" class="' . $fold . 'checkbox of-input" name="' . $value['id'] . '" id="' . $value['id'] . '" value="0"/>';
                 $output .= '<input type="checkbox" class="' . $fold . 'checkbox of-input" name="' . $value['id'] . '" id="' . $value['id'] . '" value="1" ' . checked($ish_options[$value['id']], 1, false) . ' />';
                 break;
                 //multiple checkbox option
             //multiple checkbox option
             case 'multicheck':
                 isset($ish_options[$value['id']]) ? $multi_stored = $ish_options[$value['id']] : ($multi_stored = "");
                 foreach ($value['options'] as $key => $option) {
                     if (!isset($multi_stored[$key])) {
                         $multi_stored[$key] = '';
                     }
                     $of_key_string = $value['id'] . '_' . $key;
                     $output .= '<input type="checkbox" class="checkbox of-input" name="' . $value['id'] . '[' . $key . ']' . '" id="' . $of_key_string . '" value="1" ' . checked($multi_stored[$key], 1, false) . ' /><label class="multicheck" for="' . $of_key_string . '">' . $option . '</label><br />';
                 }
                 break;
                 //ajax image upload option
             //ajax image upload option
             case 'upload':
                 if (!isset($value['mod'])) {
                     $value['mod'] = '';
                 }
                 $output .= Options_Machine::optionsframework_uploader_function($value['id'], $value['std'], $value['mod']);
                 break;
                 // native media library uploader - @uses optionsframework_media_uploader_function()
             // native media library uploader - @uses optionsframework_media_uploader_function()
             case 'media':
                 $_id = strip_tags(strtolower($value['id']));
                 $int = '';
                 $int = optionsframework_mlu_get_silentpost($_id);
                 if (!isset($value['mod'])) {
                     $value['mod'] = '';
                 }
                 $output .= Options_Machine::optionsframework_media_uploader_function($value['id'], $value['std'], $int, $value['mod']);
                 // New AJAX Uploader using Media Library
                 break;
                 //colorpicker option
             //colorpicker option
             case 'color':
                 // Updated by IshYoBoy
                 $def = isset($ish_options[$value['id']]) ? $ish_options[$value['id']] : $defaults[$value['id']];
                 $output .= '<div id="' . $value['id'] . '_picker" class="colorSelector"><div style="background-color: ' . $def . '"></div></div>';
                 $output .= '<input class="of-color" name="' . $value['id'] . '" id="' . $value['id'] . '" type="text" value="' . $def . '" />';
                 break;
                 //typography option
             //typography option
             case 'typography':
                 $typography_stored = isset($ish_options[$value['id']]) ? $ish_options[$value['id']] : $value['std'];
                 /* Font Size */
                 if (isset($typography_stored['size'])) {
                     $output .= '<div class="select_wrapper typography-size" original-title="Font size">';
                     $output .= '<select class="of-typography of-typography-size select" name="' . $value['id'] . '[size]" id="' . $value['id'] . '_size">';
                     for ($i = 9; $i < 20; $i++) {
                         $test = $i . 'px';
                         $output .= '<option value="' . $i . 'px" ' . selected($typography_stored['size'], $test, false) . '>' . $i . 'px</option>';
                     }
                     $output .= '</select></div>';
                 }
                 /* Line Height */
                 if (isset($typography_stored['height'])) {
                     $output .= '<div class="select_wrapper typography-height" original-title="Line height">';
                     $output .= '<select class="of-typography of-typography-height select" name="' . $value['id'] . '[height]" id="' . $value['id'] . '_height">';
                     for ($i = 20; $i < 38; $i++) {
                         $test = $i . 'px';
                         $output .= '<option value="' . $i . 'px" ' . selected($typography_stored['height'], $test, false) . '>' . $i . 'px</option>';
                     }
                     $output .= '</select></div>';
                 }
                 /* Font Face */
                 if (isset($typography_stored['face'])) {
                     $output .= '<div class="select_wrapper typography-face" original-title="Font family">';
                     $output .= '<select class="of-typography of-typography-face select" name="' . $value['id'] . '[face]" id="' . $value['id'] . '_face">';
                     $faces = array('arial' => 'Arial', 'verdana' => 'Verdana, Geneva', 'trebuchet' => 'Trebuchet', 'georgia' => 'Georgia', 'times' => 'Times New Roman', 'tahoma' => 'Tahoma, Geneva', 'palatino' => 'Palatino', 'helvetica' => 'Helvetica');
                     foreach ($faces as $i => $face) {
                         $output .= '<option value="' . $i . '" ' . selected($typography_stored['face'], $i, false) . '>' . $face . '</option>';
                     }
                     $output .= '</select></div>';
                 }
                 /* Font Weight */
                 if (isset($typography_stored['style'])) {
                     $output .= '<div class="select_wrapper typography-style" original-title="Font style">';
                     $output .= '<select class="of-typography of-typography-style select" name="' . $value['id'] . '[style]" id="' . $value['id'] . '_style">';
                     $styles = array('normal' => 'Normal', 'italic' => 'Italic', 'bold' => 'Bold', 'bold italic' => 'Bold Italic');
                     foreach ($styles as $i => $style) {
                         $output .= '<option value="' . $i . '" ' . selected($typography_stored['style'], $i, false) . '>' . $style . '</option>';
                     }
                     $output .= '</select></div>';
                 }
                 /* Font Color */
                 if (isset($typography_stored['color'])) {
                     $output .= '<div id="' . $value['id'] . '_color_picker" class="colorSelector typography-color"><div style="background-color: ' . $typography_stored['color'] . '"></div></div>';
                     $output .= '<input class="of-color of-typography of-typography-color" original-title="Font color" name="' . $value['id'] . '[color]" id="' . $value['id'] . '_color" type="text" value="' . $typography_stored['color'] . '" />';
                 }
                 break;
                 //typography option
             //typography option
             case 'typography_ishyoboy':
                 $typography_stored = isset($ish_options[$value['id']]) ? $ish_options[$value['id']] : $value['std'];
                 /* Font Size */
                 if (isset($typography_stored['size'])) {
                     $output .= '<div class="select_wrapper typography-size" original-title="Font size">';
                     $output .= '<select class="of-typography of-typography-size select" name="' . $value['id'] . '[size]" id="' . $value['id'] . '_size">';
                     for ($i = 9; $i < 20; $i++) {
                         $test = $i . 'px';
                         $output .= '<option value="' . $i . 'px" ' . selected($typography_stored['size'], $test, false) . '>' . $i . 'px</option>';
                     }
                     $output .= '</select></div>';
                 }
                 /* Font Face */
                 if (isset($typography_stored['face'])) {
                     $output .= '<div class="select_wrapper typography-face" original-title="Font family">';
                     $output .= '<select class="of-typography of-typography-face select" name="' . $value['id'] . '[face]" id="' . $value['id'] . '_face">';
                     $g_faces = json_decode(ishyoboy_get_google_fonts());
                     $r_faces = ishyoboy_get_regular_fonts();
                     if (isset($ish_options[$value['id'] . '-type']) && 'regular' == $ish_options[$value['id'] . '-type']) {
                         foreach ($r_faces as $i => $face) {
                             $output .= '<option value="' . $i . '" ' . selected($typography_stored['face'], $i, false) . '>' . $face . '</option>';
                         }
                     } else {
                         foreach ($g_faces as $i => $face) {
                             $output .= '<option value="' . $i . '" ' . selected($typography_stored['face'], $i, false) . '>' . $i . '</option>';
                         }
                     }
                     $output .= '</select></div>';
                 }
                 /* Font Weight */
                 if (isset($typography_stored['style'])) {
                     $output .= '<div class="select_wrapper typography-style" original-title="Font style">';
                     $output .= '<select class="of-typography of-typography-style select" name="' . $value['id'] . '[style]" id="' . $value['id'] . '_style">';
                     $g_font_variants = json_decode(ishyoboy_get_google_fonts(), true);
                     $r_font_variants = array('normal' => 'Normal', 'italic' => 'Italic', 'bold' => 'Bold', 'bold italic' => 'Bold Italic');
                     if (isset($ish_options[$value['id'] . '-type']) && 'regular' == $ish_options[$value['id'] . '-type']) {
                         // Regular Font
                         foreach ($r_font_variants as $i => $style) {
                             $output .= '<option value="' . $i . '" ' . selected($typography_stored['style'], $i, false) . '>' . $style . '</option>';
                         }
                     } else {
                         // Google Font
                         foreach ($g_font_variants[$typography_stored['face']]['variants'] as $style) {
                             $output .= '<option value="' . $i . '" ' . selected($typography_stored['style'], $style, false) . '>' . $style . '</option>';
                         }
                     }
                     $output .= '</select></div>';
                 }
                 /* Font Color */
                 if (isset($typography_stored['color'])) {
                     $output .= '<div id="' . $value['id'] . '_color_picker" class="colorSelector typography-color"><div style="background-color: ' . $typography_stored['color'] . '"></div></div>';
                     $output .= '<input class="of-color of-typography of-typography-color" original-title="Font color" name="' . $value['id'] . '[color]" id="' . $value['id'] . '_color" type="text" value="' . $typography_stored['color'] . '" />';
                 }
                 /* Line Height */
                 if (isset($typography_stored['height'])) {
                     $output .= '<div class="select_wrapper typography-height" original-title="Line height">';
                     $output .= '<select class="of-typography of-typography-height select" name="' . $value['id'] . '[height]" id="' . $value['id'] . '_height">';
                     for ($i = 20; $i < 38; $i++) {
                         $test = $i . 'px';
                         $output .= '<option value="' . $i . 'px" ' . selected($typography_stored['height'], $test, false) . '>' . $i . 'px</option>';
                     }
                     $output .= '</select></div>';
                 }
                 //var_dump($typography_stored);
                 break;
                 //border option
             //border option
             case 'border':
                 /* Border Width */
                 // Updated by IshYoBoy
                 $def = isset($ish_options[$value['id']]) ? $ish_options[$value['id']] : $defaults[$value['id']];
                 $border_stored = $def;
                 $output .= '<div class="select_wrapper border-width">';
                 $output .= '<select class="of-border of-border-width select" name="' . $value['id'] . '[width]" id="' . $value['id'] . '_width">';
                 for ($i = 0; $i < 21; $i++) {
                     $output .= '<option value="' . $i . '" ' . selected($border_stored['width'], $i, false) . '>' . $i . '</option>';
                 }
                 $output .= '</select></div>';
                 /* Border Style */
                 $output .= '<div class="select_wrapper border-style">';
                 $output .= '<select class="of-border of-border-style select" name="' . $value['id'] . '[style]" id="' . $value['id'] . '_style">';
                 $styles = array('none' => 'None', 'solid' => 'Solid', 'dashed' => 'Dashed', 'dotted' => 'Dotted');
                 foreach ($styles as $i => $style) {
                     $output .= '<option value="' . $i . '" ' . selected($border_stored['style'], $i, false) . '>' . $style . '</option>';
                 }
                 $output .= '</select></div>';
                 /* Border Color */
                 $output .= '<div id="' . $value['id'] . '_color_picker" class="colorSelector"><div style="background-color: ' . $border_stored['color'] . '"></div></div>';
                 $output .= '<input class="of-color of-border of-border-color" name="' . $value['id'] . '[color]" id="' . $value['id'] . '_color" type="text" value="' . $border_stored['color'] . '" />';
                 break;
                 //images checkbox - use image as checkboxes
             //images checkbox - use image as checkboxes
             case 'images':
                 $i = 0;
                 $select_value = isset($ish_options[$value['id']]) ? $ish_options[$value['id']] : (isset($value['std']) ? $value['std'] : '');
                 foreach ($value['options'] as $key => $option) {
                     $i++;
                     $checked = '';
                     $selected = '';
                     if (NULL != checked($select_value, $key, false)) {
                         $checked = checked($select_value, $key, false);
                         $selected = 'of-radio-img-selected';
                     }
                     $output .= '<span>';
                     $output .= '<input type="radio" id="of-radio-img-' . $value['id'] . $i . '" class="checkbox of-radio-img-radio" value="' . $key . '" name="' . $value['id'] . '" ' . $checked . ' />';
                     $output .= '<div class="of-radio-img-label">' . $key . '</div>';
                     $output .= '<img src="' . $option . '" alt="" class="of-radio-img-img ' . $selected . '" onClick="document.getElementById(\'of-radio-img-' . $value['id'] . $i . '\').checked = true;" />';
                     $output .= '</span>';
                 }
                 break;
                 //info (for small intro box etc)
             //info (for small intro box etc)
             case "info":
                 $info_text = $value['std'];
                 $output .= '<div class="of-info">' . $info_text . '</div>';
                 break;
                 //info (for small intro box etc)
             //info (for small intro box etc)
             case "twitter-info":
                 $info_text = $value['std'];
                 $output .= __('To be able to use the Twitter Widget you need to create an application under your
                 twitter account which will allow your widget to communicate with twitter servers and receive your latest posts. Please follow each of the steps below:', 'ishyoboy');
                 $output .= '<br><br><ol>';
                 $output .= '<li>' . __('Add a new Twitter application by visiting:', 'ishyoboy') . ' <a href="https://dev.twitter.com/apps" target="_blank">https://dev.twitter.com/apps</a>' . '</li>';
                 $output .= '<li>' . __('Log in with your twitter account', 'ishyoboy') . '</li>';
                 $output .= '<li>' . __('Click on the "Create a new application" button or use an already existing one.', 'ishyoboy') . '</li>';
                 $output .= '<li>' . __('Fill in all fields and Callback URL (Website and URLs should start with "http://").', 'ishyoboy') . '</li>';
                 $output .= '<li>' . __('Agree to the rules, fill out the captcha, and submit your application.', 'ishyoboy') . '</li>';
                 $output .= '<li>' . __('After successful creation, generate an access token by clicking the "Generate my access token." button', 'ishyoboy') . '</li>';
                 $output .= '<li>' . __('Wait for a few seconds for the server to reflect the changes and refresh the page.', 'ishyoboy') . '</li>';
                 $output .= '<li>' . __('Copy all the keys into the fields below. Make sure not to copy the URLs but the random strings.', 'ishyoboy') . '</li>';
                 $output .= '<li>' . __('Save all changes. You can now create your Twitter Widget in "Appearance -> Widgets".', 'ishyoboy') . '</li>';
                 $output .= '</ol>';
                 $output .= $info_text;
                 break;
                 //info (for small intro box etc)
             //info (for small intro box etc)
             case "ish-acc-section":
                 $output .= '';
                 break;
                 //display a single image
             //display a single image
             case "image":
                 $src = $value['std'];
                 $output .= '<img src="' . $src . '">';
                 break;
                 //tab heading
             //tab heading
             case 'heading':
                 if ($counter >= 2) {
                     $output .= '</div>' . "\n";
                 }
                 $header_class = str_replace(' ', '', strtolower($value['name']));
                 $custom_class = isset($value['class']) ? ' ' . $value['class'] : '';
                 $jquery_click_hook = str_replace(' ', '', strtolower($value['name']));
                 $jquery_click_hook = "of-option-" . $jquery_click_hook;
                 // Updated by IshYoBoy
                 if (isset($value['ish-updates']) && '1' == $value['ish-updates'] && Options_Machine::ishyoboy_updates_available()) {
                     $menu .= '<li class="' . $header_class . $custom_class . '"><a title="' . $value['name'] . '" href="#' . $jquery_click_hook . '" class="ish-updates"><span class="title">' . $value['name'] . '</span><span class="update-plugins count-1"><span class="update-count">1</span></span></a></li>';
                 } else {
                     $menu .= '<li class="' . $header_class . $custom_class . '"><a title="' . $value['name'] . '" href="#' . $jquery_click_hook . '">' . $value['name'] . '</a></li>';
                 }
                 $output .= '<div class="group" id="' . $jquery_click_hook . '"><h2>' . $value['name'] . '</h2>' . "\n";
                 break;
                 //drag & drop slide manager
             //drag & drop slide manager
             case 'slider':
                 $_id = strip_tags(strtolower($value['id']));
                 $int = '';
                 $int = optionsframework_mlu_get_silentpost($_id);
                 $output .= '<div class="slider"><ul id="' . $value['id'] . '" rel="' . $int . '">';
                 // Updated by IshYoBoy
                 $def = isset($ish_options[$value['id']]) ? $ish_options[$value['id']] : $defaults[$value['id']];
                 $slides = $def;
                 $count = count($slides);
                 if ($count < 2) {
                     $oldorder = 1;
                     $order = 1;
                     $output .= Options_Machine::optionsframework_slider_function($value['id'], $value['std'], $oldorder, $order, $int);
                 } else {
                     $i = 0;
                     foreach ($slides as $slide) {
                         $oldorder = $slide['order'];
                         $i++;
                         $order = $i;
                         $output .= Options_Machine::optionsframework_slider_function($value['id'], $value['std'], $oldorder, $order, $int);
                     }
                 }
                 $output .= '</ul>';
                 $output .= '<a href="#" class="button slide_add_button">Add New Slide</a></div>';
                 break;
                 //drag & drop block manager
             //drag & drop block manager
             case 'sorter':
                 $sortlists = isset($ish_options[$value['id']]) && !empty($ish_options[$value['id']]) ? $ish_options[$value['id']] : $value['std'];
                 $output .= '<div id="' . $value['id'] . '" class="sorter">';
                 if ($sortlists) {
                     foreach ($sortlists as $group => $sortlist) {
                         $output .= '<ul id="' . $value['id'] . '_' . $group . '" class="sortlist_' . $value['id'] . '">';
                         $output .= '<h3>' . $group . '</h3>';
                         foreach ($sortlist as $key => $list) {
                             $output .= '<input class="sorter-placebo" type="hidden" name="' . $value['id'] . '[' . $group . '][placebo]" value="placebo">';
                             if ($key != "placebo") {
                                 $output .= '<li id="' . $key . '" class="sortee">';
                                 $output .= '<input class="position" type="hidden" name="' . $value['id'] . '[' . $group . '][' . $key . ']" value="' . $list . '">';
                                 $output .= $list;
                                 $output .= '</li>';
                             }
                         }
                         $output .= '</ul>';
                     }
                 }
                 $output .= '</div>';
                 break;
                 //background images option
             //background images option
             case 'tiles':
                 $i = 0;
                 $select_value = isset($ish_options[$value['id']]) && !empty($ish_options[$value['id']]) ? $ish_options[$value['id']] : '';
                 foreach ($value['options'] as $key => $option) {
                     $i++;
                     $checked = '';
                     $selected = '';
                     if (NULL != checked($select_value, $key, false)) {
                         $checked = checked($select_value, $key, false);
                         $selected = 'of-radio-tile-selected';
                     }
                     $output .= '<span>';
                     $output .= '<input type="radio" id="of-radio-tile-' . $value['id'] . $i . '" class="checkbox of-radio-tile-radio" value="' . $key . '" name="' . $value['id'] . '" ' . $checked . ' />';
                     $output .= '<div class="of-radio-tile-img ' . $selected . '" style="background: url(' . $option . ')" onClick="document.getElementById(\'of-radio-tile-' . $value['id'] . $i . '\').checked = true;"></div>';
                     $output .= '</span>';
                 }
                 break;
                 //backup and restore options data
             //backup and restore options data
             case 'backup':
                 $instructions = $value['desc'];
                 $backup = get_option(BACKUPS);
                 if (!isset($backup['backup_log'])) {
                     $log = 'No backups yet';
                 } else {
                     $log = $backup['backup_log'];
                 }
                 $output .= '<div class="backup-box">';
                 $output .= '<div class="instructions">' . $instructions . "\n";
                 $output .= '<p><strong>' . __('Last Backup : ', 'ishyoboy') . '<span class="backup-log">' . $log . '</span></strong></p></div>' . "\n";
                 $output .= '<a href="#" id="of_backup_button" class="button" title="Backup Options">Backup Options</a>';
                 $output .= '<a href="#" id="of_restore_button" class="button" title="Restore Options">Restore Options</a>';
                 $output .= '</div>';
                 break;
                 //export or import data between different installs
             //export or import data between different installs
             case 'transfer':
                 $instructions = $value['desc'];
                 $output .= '<textarea id="export_data" rows="8">' . base64_encode(serialize($ish_options)) . '</textarea>' . "\n";
                 $output .= '<a href="#" id="of_import_button" class="button" title="Restore Options">Import Options</a>';
                 break;
                 // google font field
             // google font field
             case 'select_google_font':
                 $output .= '<div class="select_wrapper">';
                 $output .= '<select class="select of-input google_font_select" name="' . $value['id'] . '" id="' . $value['id'] . '">';
                 foreach ($value['options'] as $select_key => $option) {
                     $output .= '<option value="' . $select_key . '" ' . selected(isset($ish_options[$value['id']]) ? $ish_options[$value['id']] : "", $option, false) . ' />' . $option . '</option>';
                 }
                 $output .= '</select></div>';
                 if (isset($value['preview']['text'])) {
                     $g_text = $value['preview']['text'];
                 } else {
                     $g_text = '0123456789 ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz';
                 }
                 if (isset($value['preview']['size'])) {
                     $g_size = 'style="font-size: ' . $value['preview']['size'] . ';"';
                 } else {
                     $g_size = '';
                 }
                 $output .= '<p class="' . $value['id'] . '_ggf_previewer google_font_preview" ' . $g_size . '>' . $g_text . '</p>';
                 break;
                 //JQuery UI Slider
             //JQuery UI Slider
             case 'sliderui':
                 $s_val = $s_min = $s_max = $s_step = $s_edit = '';
                 //no errors, please
                 // Updated by IshYoBoy
                 $def = isset($ish_options[$value['id']]) ? $ish_options[$value['id']] : $defaults[$value['id']];
                 $s_val = stripslashes($def);
                 if (!isset($value['min'])) {
                     $s_min = '0';
                 } else {
                     $s_min = $value['min'];
                 }
                 if (!isset($value['max'])) {
                     $s_max = $s_min + 1;
                 } else {
                     $s_max = $value['max'];
                 }
                 if (!isset($value['step'])) {
                     $s_step = '1';
                 } else {
                     $s_step = $value['step'];
                 }
                 if (!isset($value['edit'])) {
                     $s_edit = ' readonly="readonly"';
                 } else {
                     $s_edit = '';
                 }
                 if ($s_val == '') {
                     $s_val = $s_min;
                 }
                 //values
                 $s_data = 'data-id="' . $value['id'] . '" data-val="' . $s_val . '" data-min="' . $s_min . '" data-max="' . $s_max . '" data-step="' . $s_step . '"';
                 //html output
                 $output .= '<input type="text" name="' . $value['id'] . '" id="' . $value['id'] . '" value="' . $s_val . '" class="mini" ' . $s_edit . ' />';
                 $output .= '<div id="' . $value['id'] . '-slider" class="smof_sliderui" style="margin-left: 7px;" ' . $s_data . '></div>';
                 break;
                 //Switch option
             //Switch option
             case 'switch':
                 if (!isset($ish_options[$value['id']])) {
                     $ish_options[$value['id']] = isset($value['std']) ? $value['std'] : 0;
                 }
                 $fold = '';
                 if (array_key_exists("folds", $value)) {
                     $fold = "s_fld ";
                 }
                 $cb_enabled = $cb_disabled = '';
                 //no errors, please
                 //Get selected
                 if ($ish_options[$value['id']] == 1) {
                     $cb_enabled = ' selected';
                     $cb_disabled = '';
                 } else {
                     $cb_enabled = '';
                     $cb_disabled = ' selected';
                 }
                 //Label ON
                 if (!isset($value['on'])) {
                     $on = "On";
                 } else {
                     $on = $value['on'];
                 }
                 //Label OFF
                 if (!isset($value['off'])) {
                     $off = "Off";
                 } else {
                     $off = $value['off'];
                 }
                 $output .= '<p class="switch-options">';
                 $output .= '<label class="' . $fold . 'cb-enable' . $cb_enabled . '" data-id="' . $value['id'] . '"><span>' . $on . '</span></label>';
                 $output .= '<label class="' . $fold . 'cb-disable' . $cb_disabled . '" data-id="' . $value['id'] . '"><span>' . $off . '</span></label>';
                 $output .= '<input type="hidden" class="' . $fold . 'checkbox of-input" name="' . $value['id'] . '" id="' . $value['id'] . '" value="0"/>';
                 $output .= '<input type="checkbox" id="' . $value['id'] . '" class="' . $fold . 'checkbox of-input main_checkbox" name="' . $value['id'] . '"  value="1" ' . checked($ish_options[$value['id']], 1, false) . ' />';
                 $output .= '</p>';
                 break;
                 // Added by IshYoBoy
                 // Theme Update Checker
             // Added by IshYoBoy
             // Theme Update Checker
             case 'theme_update':
                 $xml = Options_Machine::ishyoboy_get_updates();
                 $my_theme = wp_get_theme(THEME_SLUG);
                 $output .= '<div class="update-box">';
                 $output .= '<div class="instructions">' . "\n";
                 $my_version = '' != $my_theme->Version ? $my_theme->Version : '1.0';
                 if (isset($xml->latest) && version_compare($my_version, $xml->latest) == -1) {
                     /* THEMEFOREST
                        $output .= '<div class="ish-update">';
                        $output .= '<p><strong>' . __('New version available!', 'ishyoboy') . '</strong><br />' . __('Please go to your ThemeForest account, download the latest theme update and follow the update instructions within the documentation.', 'ishyoboy') . '</p>';
                        $output .= '<a href="http://themeforest.net/downloads?ref=IshYoBoy" class="button-primary" target="_blank">' . __('Download from ThemeForest', 'ishyoboy') . '</a><br /></div><br /><br />';
                        $output .= '</div>';*/
                     /* OTHER MARKETPLACES */
                     $output .= '<div class="ish-update">';
                     $output .= '<p><strong>' . __('New version available!', 'ishyoboy') . '</strong><br />' . __('Please download the theme again, from the site you have purchased it from, and follow the update instructions in the documentation.', 'ishyoboy') . '</p>';
                     //$output .= '<a href="http://themeforest.net/downloads?ref=IshYoBoy" class="button-primary" target="_blank">' . __('Download from ThemeForest', 'ishyoboy') . '</a><br /></div><br /><br />';
                     $output .= '</div><br /><br />';
                     $output .= '</div>';
                 } else {
                     $output .= '<div class="ish-no-update"><p><strong>' . __('You have the latest theme version! Well done!', 'ishyoboy') . '</strong></p></div></div><br />';
                 }
                 if (isset($xml->changelog)) {
                     $output .= '<div class="update-log">';
                     $output .= '<h4>' . __('Changelog:', 'ishyoboy') . '</h4>';
                     $changelogs = $xml->changelog;
                     $older_versions_printed = false;
                     foreach ($changelogs as $changelog) {
                         $atts = $changelog->attributes();
                         if (isset($atts['version']) && version_compare($my_version, $atts['version']) == -1) {
                             $output .= $changelog;
                         } else {
                             if (!$older_versions_printed) {
                                 $older_versions_printed = true;
                                 $output .= '<p><a href="#" class="button" onclick="jQuery(\'.ish-older-versions\').show(); return false;">' . __('View older versions', 'ishyoboy') . '</a></p>';
                                 $output .= '<div class="ish-older-versions">';
                             }
                             $output .= $changelog;
                         }
                     }
                     if ($older_versions_printed) {
                         $output .= '</div>';
                     }
                     $output .= '</div>';
                 }
                 $output .= '</div>';
                 break;
         }
         //description of each option
         if ($value['type'] != 'heading') {
             if (!isset($value['desc'])) {
                 $explain_value = '';
             } else {
                 $explain_value = '<div class="explain">' . $value['desc'] . '</div>' . "\n";
             }
             $output .= '</div>' . $explain_value . "\n";
             $output .= '<div class="clear"> </div></div></div>' . "\n";
         }
     }
     $output .= '</div>';
     return array($output, $menu, $defaults);
 }