....................................../////.===Hehe-Here===./////................................................ > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < ------------------------------------------------------------------------------------------------------------------- /////////////////////////////////////////////////////////////////////////////////////////////////////////////////// RIFF¤ WEBPVP8 ˜ ðÑ *ôô>‘HŸK¥¤"§£±¨àð enü¹%½_F‘åè¿2ºQú³íªú`N¿­3ÿƒügµJžaÿ¯ÿ°~¼ÎùnúîÞÖô•òíôÁÉß®Sm¥Ü/ ‡ó˜f£Ùà<˜„xëJ¢Ù€SO3x<ªÔ©4¿+ç¶A`q@Ì“Úñè™ÍÿJÌ´ª-˜ÆtÊÛL]Ïq*‘Ý”ì#ŸÌÏãY]@ê`¿ /ªfkØB4·®£ó z—Üw¥Pxù–ÞLШKÇN¾AkÙTf½è'‰g gÆv›Øuh~ a˜Z— ïj*á¥t d£“uÒ ¨`K˜¹ßþ]b>˜]_ÏÔ6W—è2r4x•íÖ…"ƒÖNîä!¦å Ú}ýxGøÌ —@ ;ÆÚŠ=ɾ1ý8lªË¥ô ^yf®Œ¢u&2©nÙÇ›ñÂñŒ³ aPo['½»øFùà­+4ê“$!lövlüÞ=;N®3ð‚õ›DÉKòÞ>ÄÍ ¥ˆuߤ#ˆ$6ù™¥îЇy’ÍB¼ çxÛ;X"WL£R÷͝*ó-¶Zu}º.s¸sšXqù–DþÿvªhüïwyŸ ¯é³lÀ:KCûÄ£Ëá\…­ ~—ýóî ¼ûûÜTÓüÇy…ŽÆvc»¾×U ñ¸žþоP÷¦ó:Ò¨¨5;Ð#&#ÖúñläÿÁœ GxÉ­/ñ‡áQðìYÉtÒw޼GÔ´zàÒò ð*ëzƒ•4~H]Ø‹f ñÓÈñ`NåWçs'ÆÏW^ø¹!XžµmQ5ÃËoLœÎ: ÞËÍ¥J ù…î èo£ßPÎñ¶ž8.Œ]ʵ~5›ÙË-ù*8ÙÖß±~ ©¹rÓê‚j¶d¸{^Q'˜±Crß ÚH—#¥¥QlÀ×ëã‡DÜ«èî þ&Çæžî;ŽÏºò6ÒLÃXy&ZŒ'j‚¢Ù€IßÚù+–MGi‰*jE€‘JcÜ ÓÌ EÏÚj]o˜ Þr <¾U ûŪæÍ/šÝH¥˜b”¼ ÁñßX GP›ï2›4WŠÏà×£…íÓk†¦H·ÅíMh–*nó÷à]ÁjCº€b7<ب‹¨5車bp2:Á[UªM„QŒçiNMa#<5›áËó¸HýÊ"…×Éw¹¦ì2º–x<›»a±¸3Weü®FÝ⑱ö–î–³|LPÈ~çð~Çå‡|º kD¢µÏàÆAI %1À% ¹Ò – ”ϝS¦‰4&¶£°à Öý”û_Ò Áw°A«Å€?mÇÛgHÉ/8)á¾ÛìáöŽP í¨PŸNÙµº¦‡§Ùš"ÿ«>+ªÕ`Ê÷‡‚ß Õû˜þãÇ-PÍ.¾XV‘€ dÜ"þ4¹ ±Oú‘©t¥¦FªÄÃÄ•b‚znýu½—#cDs˜ÃiÑOˆñ×QO=*IAÊ,¶ŽZƒ;‡wøXè%EÐk:F±Ú” .Ѽ+Áu&Ç`."pÈÉw o&¿dE6‘’EqTuK@Ì¥ã™À(Êk(h‰,H}RÀIXÛš3µ1©_OqÚÒJAñ$ÊÙÜ;D3çŒ[þùœh¬Ã³™ö6ç†NY".Ú‰ï[ªŸŒ '²Ð öø_¨ÂÉ9ué¶³ÒŠõTàîMØ#û¯gN‡bÙ놚X„ö …ÉeüÌ^J ‹€.œ$Æ)βÄeæW#óüßĺŸ€ ÀzwV 9oä»f4V*uB «Ë†¹ì¯žR霓æHXa=&“I4K;¯ç‹h×·"UŠ~<•╪Vêª&ÍSÃÆÅ?ÔqÎ*mTM ˜›µwêd#[C¡©§‘D<©àb†–ÁœøvH/,í:¯( ²£|4-„Æövv„Yͼ™^Á$ˆ„¢Û[6yB.åH*V¨æ?$=˜Ñ€•ñ·­(VlŸ‘ nÀt8W÷´Bûba?q9ú¶Xƒl«ÿ\ù¶’þòUÐj/õ¢Ìµ³g$ƒÎR!¸»|Oߍë’BhîÚÑ¢ñåŒJ„®„£2Ð3•ô02Nt…!£Í]Ïc½Qÿ?ˆ<&ÃA¾Ú,JˆijÌ#5yz„‰Î|ÊŽ5QÏ:‹ÐaóVÔxW—CpeÏzÐïíçôÿÅ_[hãsÐ_/ŽTÝ?BîˆííV$<¿i>²F¬_Eß¿ †bÊŒº­ÿ®Z H“C}”¬,Mp ý/Bá£w>˜YV°aƒúh+cŠ- r/[%|üUMHäQ°X»|û/@|°¥Ð !BÔ Ç¢Ä©š+Õì D«7ìN¶ŽðÔ " ƶ’ÖçtA‰Û×}{tþz­¾GÍ›k¹OEJR$ Â׃ «ëÁ"oÉôž$oUK(Ä)Ãz³Ê-‹êN[Ò3Œñbï8P 4ƒ×q¢bo|?<ÛX¬òÄͰL–±›(™ûG?ýË©ÚÄ–ÂDØÐ_Ç¡ô ¾–ÄÏø ×e8Ë©$ÄF¹Å‹ì[©óìl:F¾f´‹‹Xì²ï®\¬ôùƒ ÿat¥óèÒùHß0äe‚;ü×h:ÆWðHž=Ã8骣"kœ'Y?³}Tûè€>?0l›e1Lòñ„aæKÆw…hÖŠùW…ÈÆÄ0ši·›[pcwËþñiêíY/~-Á5˜!¿†A›™Mÿþ(±“t@â“ö2­´TG5yé]çå僳 .·ÍïçÝ7UÚ±Ð/Nè»,_Ï ùdj7\ï Wì4›„»c¸àešg#ÒÊ⥭áØo5‘?ÌdÝô¯ ¹kzsƒ=´#ëÉK›Ø´±-¥eW?‡çßtòTã…$Ý+qÿ±ƒ÷_3Ô¥í÷:æ–ž<·Ö‡‰Å¢ š‡%Ô—utÌÈìðžgÖÀz²À—ï÷Óîäõ{K'´È÷³yaÏÁjƒô}ž§®æÊydÕÈë5¯èˆõvÕ©ã*çD„ “z„Ó‡^^xÂ3M§A´JG‚öï 3W'ˆ.OvXè¡ÊÕª?5º7†˜(˜Ç¶#çê’¶!ÌdZK§æ 0fãaN]òY³RV ™î$®K2R¨`W!1Ôó\;Ý ýB%qæK•&ÓÈe9È0êI±žeŸß -ú@žQr¦ ö4»M¼Áè¹µmw 9 EÆE_°2ó„ŸXKWÁ×Hóì^´²GѝF©óäR†¦‰ç"V»eØ<3ùd3ÿÚ¤Žú“Gi" —‘_ÙËÎ~Üö¯¥½Î»üŸEÚŽåmÞþí ;ÞólËΦMzA"Âf(´òá;Éï(/7½ûñÌ­cïÕçлþÝz¾-ÍvÑ“pH­–ðÓj$¸Äû¤‚‘ãUBË-n“2åPkS5&‹Â|+g^œ®Ì͆d!OïäîU«c;{Û!ÅŽ«ëZ9Ókóˆ]¯ƒ›né `ÇÒ+tÆš (ØKá¾—=3œ®•vuMñg²\ï Ec€ 05±d™‡×iÇ×›UúvÌ¢£Èþ¡ÕØô¶ßÎA"ß±#Ö²ˆÊŸ¦*Ä~ij|àø.-¼'»Ú¥£h ofº¦‡VsR=N½„Î v˜Z*SÌ{=jÑB‹tê…;’HžH¯8–îDù8ñ¢|Q•bÛçš–‹m³“ê¨ åÏ^m¬Žãþ©ïêO‡½6] µÆ„Ooòü ²x}N¦Ë3ïé¿»€›HA˜m%çÞ/¿í7Fø“‹léUk)É°Œµ8Q8›:ÀŠeT*šõ~ôڝG6 ¢}`ùH­–”¡k ‰P1>š†®9z11!X wKfmÁ¦xÑ,N1Q”–æB¶M…ÒÃv6SMˆhU¬ÊPŽï‘öj=·CŒ¯u¹ƒVIЃsx4’ömÛýcå¡¶7ßŠß 57^\wÒÐÆ k§h,Œý î«q^R½3]J¸ÇðN ‚çU¬ôº^Áì} ³f©Õœ§ˆã:FÄÈ‚é(€™?àýÓüè1Gô£¼éj‚OÅñ  #>×—ßtà 0G¥Åa뀐kßhc™À_ÉñÞ#±)GD" YîäË-ÿÙ̪ ¹™a¯´¢E\ÝÒö‚;™„ë]_ p8‰o¡ñ+^÷ 3‘'dT4œŽ ðVë½° :¬víÑ«£tßÚS-3¶“þ2 †üüʨòrš¹M{É_¤`Û¨0ìjœøJ‡:÷ÃáZ˜†@GP&œÑDGÏs¡þ¦þDGú‘1Yá9Ôþ¼ ûø…§÷8&–ÜÑnÄ_m®^üÆ`;ÉVÁJ£?â€-ßê}suÍ2sõA NÌúA磸‘îÿÚ»ƒìö·á¿±tÑÐ"Tÿü˜[@/äj¬€uüªìù¥Ý˜á8Ý´sõj 8@rˆð äþZÇD®ÿUÏ2ùôõrBzÆÏÞž>Ì™xœ“ wiÎ×7_… ¸ \#€MɁV¶¥üÕÿPÔ9Z‡ø§É8#H:ƒ5ÀÝå9ÍIŒ5åKÙŠ÷qÄ>1AÈøžj"µÂд/ªnÀ qªã}"iŸBå˜ÓÛŽ¦…&ݧ;G@—³b¯“•"´4í¨ôM¨åñC‹ïùÉó¯ÓsSH2Ý@ßáM‡ˆKÀªÛUeø/4\gnm¥‹ŸŒ qÄ b9ÞwÒNÏ_4Ég³ú=܆‚´ •â¥õeíþkjz>éÚyU«Íӝ݃6"8/ø{=Ô¢»G¥ äUw°W«,ô—¿ãㆅү¢³xŠUû™yŒ (øSópÐ 9\åTâ»—*oG$/×ÍT†Y¿1¤Þ¢_‡ ¼ „±ÍçèSaÓ 3ÛMÁBkxs‰’R/¡¤ˆÙçª(*õ„üXÌ´ƒ E§´¬EF"Ù”R/ÐNyÆÂ^°?™6¡œïJ·±$§?º>ÖüœcNÌù¯G ‹ñ2ЁBB„^·úìaz¨k:#¨Æ¨8LÎõލ£^§S&cŒÐU€ü(‡F±Š¼&P>8ÙÁ ‰ p5?0ÊÆƒZl¸aô š¼¡}gÿ¶zÆC²¹¬ÎÖG*HB¡O<º2#ñŒAƒ–¡B˜´É$¥›É:FÀÔx¾u?XÜÏÓvN©RS{2ʈãk9rmP¼Qq̳ è¼ÐFׄ^¡Öì fE“F4A…!ì/…¦Lƒ… … $%´¾yã@CI¬ á—3PþBÏNÿ<ý°4Ü ËÃ#ØÍ~âW«rEñw‹eùMMHß²`¬Öó½íf³:‹k˜¯÷}Z!ã¿<¥,\#öµÀ¯aÒNÆIé,Ћ–lŽ#Àæ9ÀÒS·I’½-Ïp Äz¤Š Â* ­íÄ9­< h>׍3ZkËU¹§˜ŒŠ±f­’¤º³Q ÏB?‹#µíÃ¥®@(Gs«†vI¥Mµ‹Á©e~2ú³ÁP4ìÕi‚²Ê^ö@-DþÓàlÜOÍ]n"µã:žpsŽ¢:! Aõ.ç~ÓBûH÷JCÌ]õVƒd «ú´QÙEA–¯¯Œ!.ˆˆëQ±ù œ·Ì!Õâ )ùL„ÅÀlÚè5@B…o´Æ¸XÓ&Û…O«˜”_#‡ƒ„ûÈt!¤ÁÏ›ÎÝŠ?c9 â\>lÓÁVÄÑ™£eØY]:fÝ–—ù+p{™ðè û³”g±OƒÚSù£áÁÊ„ä,ï7š²G ÕÌBk)~ÑiCµ|h#u¤¶îK¨² #²vݯGãeÖ϶ú…¾múÀ¶þÔñ‚Š9'^($¤§ò “š½{éúp÷J›ušS¹áªCÂubÃH9™D™/ZöØÁ‡¦ÝÙŸ·kð*_”.C‹{áXó€‡c¡c€§/šò/&éš÷,àéJþ‰X›fµ“C¨œ®r¬"kL‰Â_q…Z–.ÉL~O µ›zn‚¹À¦Öª7\àHµšÖ %»ÇníV[¥*Õ;ƒ#½¾HK-ÖIÊdÏEÚ#=o÷Óò³´Š: Ç?{¾+9›–‘OEáU·S€˜j"ÄaÜ ŒÛWt› á–c#a»pÔZÞdŽtWê=9éöÊ¢µ~ ë ;Öe‡Œ®:bî3±ýê¢wà¼îpêñ¹¾4 zc¾ðÖÿzdêŒÑÒŝÀ‰s6¤í³ÎÙB¿OZ”+F¤á‡3@Ñëäg©·Ž ˆèª<ù@É{&S„œÕúÀA)‰h:YÀ5^ÂÓŒ°õäU\ ùËÍû#²?Xe¬tu‰^zÒÔãë¼ÛWtEtû …‚g¶Úüâî*moGè¨7%u!]PhÏd™Ý%Îx: VÒ¦ôÊD3ÀŽKÛËãvÆî…N¯ä>Eró–ð`5 Œ%u5XkñÌ*NU%¶áœÊ:Qÿú»“úzyÏ6å-၇¾ ´ ÒÊ]y žO‘w2Äøæ…H’²f±ÎÇ.ª|¥'gîV•Ü .̘¯€šòü¤U~Ù†*¢!?ò wý,}´°ÔÞnïoKq5µb!áÓ3"vAßH¡³¡·G(ÐÎ0Îò¼MG!/ài®@—¬04*`…«é8ªøøló“ˆÊ”èù¤…ßÊoÿé'ËuÌÖ5×È¡§ˆˆfŽë9}hìâ_!!¯  B&Ëö¶‰ÀAÙNVŸ Wh›¸®XÑJì¨ú“¿÷3uj²˜¨ÍÎìë±aúŠÝå¯ð*Ó¨ôJ“yºØ)m°WýOè68†ŸÏ2—‰Ïüꪫٚ¥‹l1 ø ÏÄFjêµvÌbü¦èÝx:X±¢H=MÐß—,ˆÉÇ´(9ú¾^ÅÚ4¿m‡$âX‘å%(AlZo@½¨UOÌÕ”1ø¸jÎÀÃÃ_ µ‘Ü.œº¦Ut: Æï’!=¯uwû#,“pþÇúŒø(é@?³ü¥‘Mo §—s@Œ#)§ŒùkL}NOÆêA›¸~r½¼ÙA—HJ«eˆÖ´*¡ÓpÌŸö.m<-"³ûÈ$¬_6­åf£ïÚâj1y§ÕJ½@dÞÁr&Í\Z%D£Íñ·AZ Û³øüd/ªAi†/Й~  ‡âĮҮÏh§°b—›Û«mJžòG'[ÈYýŒ¦9psl ýÁ ®±f¦x,‰½tN ‚Xª9 ÙÖH.«Lo0×?͹m¡å†Ѽ+›2ƒF ±Ê8 7Hցϓ²Æ–m9…òŸï]Â1äN†VLâCˆU .ÿ‰Ts +ÅÎx(%¦u]6AF Š ØF鈄‘ |¢¶c±soŒ/t[a¾–û:s·`i햍ê›ËchÈ…8ßÀUÜewŒðNOƒõD%q#éû\9¤x¹&UE×G¥ Í—™$ð E6-‡¼!ýpãÔM˜ Âsìe¯ñµK¢Ç¡ùôléœ4Ö£”À Š®Ðc ^¨À}ÙËŸ§›ºê{ÊuÉC ×Sr€¤’fÉ*j!úÓ’Gsùìoîßîn%ò· àc Wp÷$¨˜)û»H ×8ŽÒ€Zj¤3ÀÙºY'Ql¦py{-6íÔCeiØp‘‡XÊîÆUߢ܂ž£Xé¼Y8þ©ëgñß}é.ÎógÒ„ÃØËø¯»™§Xýy M%@NŠ À(~áÐvu7&•,Ù˜ó€uP‡^^®=_E„jt’ 403WebShell
403Webshell
Server IP : 198.54.125.254  /  Your IP : 216.73.217.14
Web Server : LiteSpeed
System : Linux premium80.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
User : vivegvwr ( 1774)
PHP Version : 8.2.30
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/vivegvwr/public_html/wp-content/themes/betheme/functions/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/vivegvwr/public_html/wp-content/themes/betheme/functions//theme-head.php
<?php
/**
 * Header functions.
 *
 * @package Betheme
 * @author Muffin group
 * @link http://muffingroup.com
 */


/* ---------------------------------------------------------------------------
 * Title
 * --------------------------------------------------------------------------- */
if( ! function_exists( 'mfn_title' ) )
{
	function mfn_title( $title )
	{
		if( mfn_opts_get( 'mfn-seo' ) && mfn_ID() ){
			if( trim( get_post_meta( mfn_ID(), 'mfn-meta-seo-title', true ) ) ){
				$title = esc_html( get_post_meta( mfn_ID(), 'mfn-meta-seo-title', true ) );
			}
		}

		return $title;
	}
}
add_filter( 'pre_get_document_title', 'mfn_title' );


/* ---------------------------------------------------------------------------
 * Built-in SEO Fields
 * --------------------------------------------------------------------------- */
if( ! function_exists( 'mfn_seo' ) )
{
	function mfn_seo()
	{
		if( mfn_opts_get( 'mfn-seo' ) ){

			// description
			if( mfn_ID() && get_post_meta( mfn_ID(), 'mfn-meta-seo-description', true ) ){
				echo '<meta name="description" content="'. stripslashes( get_post_meta( mfn_ID(), 'mfn-meta-seo-description', true ) ) .'" />'."\n";
			} elseif( mfn_opts_get( 'meta-description' ) ){
				echo '<meta name="description" content="'. stripslashes( mfn_opts_get( 'meta-description' ) ) .'" />'."\n";
			}

			// keywords
			if( mfn_ID() &&  get_post_meta( mfn_ID(), 'mfn-meta-seo-keywords', true ) ){
				echo '<meta name="keywords" content="'. stripslashes( get_post_meta( mfn_ID(), 'mfn-meta-seo-keywords', true ) ) .'" />'."\n";
			} elseif( mfn_opts_get( 'meta-keywords' ) ){
				echo '<meta name="keywords" content="'. stripslashes( mfn_opts_get( 'meta-keywords' ) ) .'" />'."\n";
			}

			// og:image
			if( mfn_ID() &&  get_post_meta( mfn_ID(), 'mfn-meta-seo-og-image', true ) ){
				echo '<meta property="og:image" content="'. stripslashes( get_post_meta( mfn_ID(), 'mfn-meta-seo-og-image', true ) ) .'" />'."\n";
			} elseif( mfn_opts_get( 'mfn-seo-og-image' ) ){
				echo '<meta property="og:image" content="'. stripslashes( mfn_opts_get( 'mfn-seo-og-image' ) ) .'" />'."\n";
			}

			// hreflang | only if WMPL is not active
			if( ! function_exists( 'icl_object_id' ) ){
				$format_locale = strtolower( str_replace( '_', '-', get_locale() ) );
				echo '<link rel="alternate" hreflang="'. $format_locale .'" href="'. get_permalink() .'" />'."\n";
			}

		}

		// google analytics
		if( mfn_opts_get( 'google-analytics' ) ){
			mfn_opts_show( 'google-analytics' );
		}

		// facebook pixel
		if( mfn_opts_get( 'facebook-pixel' ) ){
			echo "\n";
			mfn_opts_show( 'facebook-pixel' );
		}
	}
}
add_action( 'wp_seo', 'mfn_seo' );


/* ---------------------------------------------------------------------------
 * Google Remarketing Code
 * --------------------------------------------------------------------------- */
if( ! function_exists( 'mfn_google_remarketing' ) )
{
	function mfn_google_remarketing()
	{
		// google remarketing
		if( mfn_opts_get( 'google-remarketing' ) ){
			mfn_opts_show( 'google-remarketing' );
		}
	}
}
add_action( 'wp_footer', 'mfn_google_remarketing', 100 );


/* ---------------------------------------------------------------------------
 * Fonts | Selected in Theme Options
 * --------------------------------------------------------------------------- */
if( ! function_exists( 'mfn_fonts_selected' ) )
{
	function mfn_fonts_selected(){
		$fonts = array();

		$fonts['content'] 		= mfn_opts_get( 'font-content', 		'Roboto' );
		$fonts['menu'] 			= mfn_opts_get( 'font-menu', 			'Roboto' );
		$fonts['title'] 		= mfn_opts_get( 'font-title', 			'Patua One' );
		$fonts['headings'] 		= mfn_opts_get( 'font-headings', 		'Patua One' );
		$fonts['headingsSmall'] = mfn_opts_get( 'font-headings-small', 	'Roboto' );
		$fonts['blockquote'] 	= mfn_opts_get( 'font-blockquote', 		'Patua One' );
		$fonts['decorative'] 	= mfn_opts_get( 'font-decorative', 		'Patua One' );

		return $fonts;
	}
}


/* ---------------------------------------------------------------------------
 * Styles
 * --------------------------------------------------------------------------- */
if( ! function_exists( 'mfn_styles' ) )
{
	function mfn_styles()
	{
		$theme_disable = mfn_opts_get( 'theme-disable' );

		// wp_enqueue_style ------------------------------------------------------
		wp_enqueue_style( 'style',				get_stylesheet_uri(), false, THEME_VERSION );

		wp_enqueue_style( 'mfn-base',			THEME_URI .'/css/base.css', false, THEME_VERSION );
		wp_enqueue_style( 'mfn-layout',			THEME_URI .'/css/layout.css', false, THEME_VERSION );
		wp_enqueue_style( 'mfn-shortcodes',		THEME_URI .'/css/shortcodes.css', false, THEME_VERSION );

		// plugins
		if( ! isset( $theme_disable['entrance-animations'] ) ){
			wp_enqueue_style( 'mfn-animations',	THEME_URI .'/assets/animations/animations.min.css', false, THEME_VERSION );
		}

		wp_enqueue_style( 'mfn-jquery-ui', 		THEME_URI .'/assets/ui/jquery.ui.all.css', false, THEME_VERSION );
		wp_enqueue_style( 'mfn-jplayer',		THEME_URI .'/assets/jplayer/css/jplayer.blue.monday.css', false, THEME_VERSION );

		// rtl | demo -----
		if( $_GET && key_exists( 'mfn-rtl', $_GET ) ) wp_enqueue_style( 'mfn-rtl', THEME_URI .'/rtl.css', false, THEME_VERSION );

		// Responsive -------------------------------------------------------------
		if( mfn_opts_get('responsive') ){
			wp_enqueue_style( 'mfn-responsive', THEME_URI .'/css/responsive.css', false, THEME_VERSION );
		} else {
			wp_enqueue_style( 'mfn-responsive-off', THEME_URI .'/css/responsive-off.css', false, THEME_VERSION );
		}

		// Custom Theme Options styles --------------------------------------------
		if( mfn_opts_get( 'static-css' ) && ( ! ( $_GET && key_exists( 'mfn-c', $_GET ) ) ) ){

			// Static | style-static.css
			if( defined( 'STATIC_IN_CHILD' ) && STATIC_IN_CHILD ){
				wp_enqueue_style( 'mfn-style-static', CHILD_THEME_URI .'/style-static.css', false, THEME_VERSION );
			} else {
				wp_enqueue_style( 'mfn-style-static', THEME_URI .'/style-static.css', false, THEME_VERSION );
			}

		} else {

			// Predefined Skins
			if( $_GET && key_exists( 'mfn-c', $_GET ) ){
				$skin = esc_html( $_GET['mfn-c'] ); // demo
			} elseif( $layoutID = mfn_layout_ID() ) {
				$skin = get_post_meta( $layoutID, 'mfn-post-skin', true );
			} else {
				$skin = mfn_opts_get('skin','custom');
			}

			if( $skin != 'custom' && $skin != 'one' ){

				// Predefined Skins
				wp_enqueue_style( 'mfn-skin-'. $skin, THEME_URI .'/css/skins/'. $skin .'/style.css', false, THEME_VERSION );

			}
		}

		// Google Fonts ----------------------------------------------------------
		$google_fonts 	= mfn_fonts( 'all' );

		// subset
		$subset 		= mfn_opts_get('font-subset');
		if( $subset ) $subset = '&amp;subset='. str_replace(' ', '', $subset);

		// style & weight
		if( $weight = mfn_opts_get('font-weight') ){
			$weight = ':'. implode( ',', $weight );
		}

		$fonts = mfn_fonts_selected();
		foreach( $fonts as $font ){

			if( in_array( $font, $google_fonts ) ){

				// Google Fonts
				$font_slug = str_replace(' ', '+', $font);
				wp_enqueue_style( $font_slug, 'http'. mfn_ssl() .'://fonts.googleapis.com/css?family='. $font_slug . $weight . $subset );

			}
		}
	}
}
add_action( 'wp_enqueue_scripts', 'mfn_styles' );


/* ---------------------------------------------------------------------------
 * Styles | Custom Font
 * --------------------------------------------------------------------------- */
if( ! function_exists( 'mfn_styles_custom_font' ) )
{
	function mfn_styles_custom_font()
	{
		$font_custom = mfn_opts_get( 'font-custom' );
		$font_custom2 = mfn_opts_get( 'font-custom2' );

		if( $font_custom ){
			echo '<!-- style | custom font -->'."\n";
			echo '<style id="mfn-dnmc-font-css">'."\n";
				echo '@font-face {';
					echo 'font-family: "'. $font_custom .'";';
					echo 'src: url("'. mfn_opts_get('font-custom-eot') .'");';
					echo 'src: url("'. mfn_opts_get('font-custom-eot') .'#iefix") format("embedded-opentype"),';
						echo 'url("'. mfn_opts_get('font-custom-woff') .'") format("woff"),';
						echo 'url("'. mfn_opts_get('font-custom-ttf') .'") format("truetype"),';
						echo 'url("'. mfn_opts_get('font-custom-svg') .'#'. $font_custom .'") format("svg");';
					echo 'font-weight: normal;';
					echo 'font-style: normal;';
				echo '}'."\n";
			echo '</style>'."\n";
		}

		if( $font_custom2 ){
			echo '<!-- style | custom font 2 -->'."\n";
			echo '<style id="mfn-dnmc-font2-css">'."\n";
				echo '@font-face {';
					echo 'font-family: "'. $font_custom2 .'";';
					echo 'src: url("'. mfn_opts_get('font-custom2-eot') .'");';
					echo 'src: url("'. mfn_opts_get('font-custom2-eot') .'#iefix") format("embedded-opentype"),';
						echo 'url("'. mfn_opts_get('font-custom2-woff') .'") format("woff"),';
						echo 'url("'. mfn_opts_get('font-custom2-ttf') .'") format("truetype"),';
						echo 'url("'. mfn_opts_get('font-custom2-svg') .'#'. $font_custom2 .'") format("svg");';
					echo 'font-weight: normal;';
					echo 'font-style: normal;';
				echo '}'."\n";
			echo '</style>'."\n";
		}
	}
}
add_action('wp_head', 'mfn_styles_custom_font');


/* ---------------------------------------------------------------------------
 * Styles | Background
 * --------------------------------------------------------------------------- */
if( ! function_exists( 'mfn_styles_background' ) )
{
	function mfn_styles_background()
	{
		$output = '';
		$output_ultrawide = '';


		// HTML ----------------------------

		if( $layoutID = mfn_layout_ID() ){
			$htmlB = get_post_meta( $layoutID, 'mfn-post-bg', true );
			$htmlP = get_post_meta( $layoutID, 'mfn-post-bg-pos', true );
		} else {
			$htmlB = mfn_opts_get( 'img-page-bg' );
			$htmlP = mfn_opts_get( 'position-page-bg' );
		}

		if( $htmlB ){

			$aBg 	= array();
			$aBg[] 	= 'background-image:url('. $htmlB .')';

			if( $htmlP ){
				$background_attr = explode( ';', $htmlP );
				if( $background_attr[0] ) $aBg[] = 'background-repeat:'. $background_attr[0];
				if( $background_attr[1] ) $aBg[] = 'background-position:'. $background_attr[1];
				if( $background_attr[2] ) $aBg[] = 'background-attachment:'. $background_attr[2];
				if( $background_attr[3] ){
					$aBg[] = 'background-size:'. $background_attr[3];
				} elseif( mfn_opts_get( 'size-page-bg' ) ){
					if( in_array( mfn_opts_get( 'size-page-bg' ), array( 'cover', 'contain' ) ) ){
						$aBg[] = 'background-size:'. mfn_opts_get( 'size-page-bg' );
					} elseif( mfn_opts_get( 'size-page-bg' ) == 'cover-ultrawide' ) {
						$output_ultrawide .= 'html{background-size:cover}';
					}
				}
			}
			$background = implode( ';', $aBg );

			$output .= 'html{'. $background. '}'."\n";
		}


		// Header wrapper -----------------------

		$headerB = false;

		if( mfn_opts_get( 'img-subheader-bg' ) ){
			$headerB = mfn_opts_get( 'img-subheader-bg' );
		}

		if( mfn_ID() && ! is_search() ){

			if( ( ( mfn_ID() == get_option( 'page_for_posts' ) ) || ( get_post_type( mfn_ID() ) == 'page' ) ) && has_post_thumbnail( mfn_ID() ) ){

				// Pages & Blog Page ---
				$headerB = wp_get_attachment_image_src( get_post_thumbnail_id( mfn_ID() ), 'full' );
				$headerB = $headerB[0];

			} elseif( get_post_meta( mfn_ID(), 'mfn-post-header-bg', true ) ){

				// Single Post ---
				$headerB = get_post_meta( mfn_ID(), 'mfn-post-header-bg', true );

			}
		}

		$headerP = mfn_opts_get( 'img-subheader-attachment' );

		if( $headerB ){

			$aBg 	= array();
			$aBg[] 	= 'background-image:url('. $headerB .')';

			if( $headerP == "fixed" ){

				$aBg[] = 'background-attachment:fixed';

			} elseif( $headerP == "parallax" ) {

				// do nothing

			} elseif( $headerP ) {
				$background_attr = explode( ';', $headerP );
				if( $background_attr[0] ) $aBg[] = 'background-repeat:'. $background_attr[0];
				if( $background_attr[1] ) $aBg[] = 'background-position:'. $background_attr[1];
				if( $background_attr[2] ) $aBg[] = 'background-attachment:'. $background_attr[2];
				if( $background_attr[3] ){
					$aBg[] = 'background-size:'. $background_attr[3];
				} elseif( mfn_opts_get( 'size-subheader-bg' ) ){
					if( in_array( mfn_opts_get( 'size-subheader-bg' ), array( 'cover', 'contain' ) ) ){
						$aBg[] = 'background-size:'. mfn_opts_get( 'size-subheader-bg' );
					} elseif( mfn_opts_get( 'size-subheader-bg' ) == 'cover-ultrawide' ) {
						$output_ultrawide .= 'body:not(.template-slider) #Header_wrapper{background-size:cover}';
					}
				}

			}

			$background = implode( ';', $aBg );

			$output .= 'body:not(.template-slider) #Header_wrapper{'. $background. '}'."\n";
		}


		// Subheader -----------------------

		if( get_post_meta( mfn_ID(), 'mfn-post-subheader-image', true ) ){
			$subheaderB = get_post_meta( mfn_ID(), 'mfn-post-subheader-image', true );
		} else {
			$subheaderB = mfn_opts_get( 'subheader-image' );
		}

		$subheaderP = mfn_opts_get( 'subheader-position' );

		if( $subheaderB ){

			$aBg 	= array();
			$aBg[] 	= 'background-image:url('. $subheaderB .')';

			if( $subheaderP ){
				$background_attr = explode( ';', $subheaderP );
				if( $background_attr[0] ) $aBg[] = 'background-repeat:'. $background_attr[0];
				if( $background_attr[1] ) $aBg[] = 'background-position:'. $background_attr[1];
				if( $background_attr[2] ) $aBg[] = 'background-attachment:'. $background_attr[2];
				if( $background_attr[3] ){
					$aBg[] = 'background-size:'. $background_attr[3];
				} elseif( mfn_opts_get( 'subheader-size' ) ){
					if( in_array( mfn_opts_get( 'subheader-size' ), array( 'cover', 'contain' ) ) ){
						$aBg[] = 'background-size:'. mfn_opts_get( 'subheader-size' );
					} elseif( mfn_opts_get( 'subheader-size' ) == 'cover-ultrawide' ) {
						$output_ultrawide .= '#Subheader{background-size:cover}';
					}
				}

			}

			$background = implode( ';', $aBg );

			$output .= '#Subheader{'. $background. '}'."\n";
		}


		// Footer --------------------------

		$footerB = mfn_opts_get( 'footer-bg-img' );
		$footerP = mfn_opts_get( 'footer-bg-img-position' );

		if( $footerB ){

			$aBg 	= array();
			$aBg[] 	= 'background-image:url('. $footerB .')';

			if( $footerP ){
				$background_attr = explode( ';', $footerP );
				if( $background_attr[0] ) $aBg[] = 'background-repeat:'. $background_attr[0];
				if( $background_attr[1] ) $aBg[] = 'background-position:'. $background_attr[1];
				if( $background_attr[2] ) $aBg[] = 'background-attachment:'. $background_attr[2];
				if( $background_attr[3] ){
					$aBg[] = 'background-size:'. $background_attr[3];
				} elseif( mfn_opts_get( 'footer-bg-img-size' ) ){
					if( in_array( mfn_opts_get( 'footer-bg-img-size' ), array( 'cover', 'contain' ) ) ){
						$aBg[] = 'background-size:'. mfn_opts_get( 'footer-bg-img-size' );
					} elseif( mfn_opts_get( 'footer-bg-img-size' ) == 'cover-ultrawide' ) {
						$output_ultrawide .= '#Footer{background-size:cover}';
					}
				}
			}

			$background = implode( ';', $aBg );

			$output .= '#Footer{'. $background. '}'."\n";
		}


		// Echo ----------------------------

		if( $output ){
			echo '<!-- style | background -->'."\n";
			echo '<style id="mfn-dnmc-bg-css">'."\n";

				echo $output;

				if( $output_ultrawide ){
					echo '@media only screen and (min-width: 1921px){'. $output_ultrawide. '}'."\n";
				}

			echo '</style>'."\n";
		}

	}
}
add_action('wp_head', 'mfn_styles_background');


/* ---------------------------------------------------------------------------
 * Styles | Minify
 * --------------------------------------------------------------------------- */
if( ! function_exists( 'mfn_styles_minify' ) )
{
	function mfn_styles_minify( $css ){

		// remove comments
		$css = preg_replace( '!/\*[^*]*\*+([^/][^*]*\*+)*/!', '', $css );

		// remove whitespace
		$css = str_replace( array("\r\n", "\r", "\n", "\t", '  ', '    ', '    '), '', $css );

		return $css;
	}
}


/* ---------------------------------------------------------------------------
 * Styles | Dynamic
 * --------------------------------------------------------------------------- */
if( ! function_exists( 'mfn_styles_dynamic' ) )
{
	function mfn_styles_dynamic()
	{
		echo '<!-- style | dynamic -->'."\n";
		echo '<style id="mfn-dnmc-style-css">'."\n";

			ob_start();

			if( ! mfn_opts_get( 'static-css' ) ){

				// Dynamic | style.php & ( style-responsive.php || style-colors.php || style-one.php || css/skins/.. )

				// Responsive
				if( mfn_opts_get('responsive') ){
					include_once THEME_DIR . '/style-responsive.php';
				}

				// Colors

				if( $_GET && key_exists( 'mfn-c', $_GET ) ){
					$skin = esc_html( $_GET['mfn-c'] ); // demo
				} elseif( $layoutID = mfn_layout_ID() ) {
					$skin = get_post_meta( $layoutID, 'mfn-post-skin', true );
				} else {
					$skin = mfn_opts_get('skin','custom');
				}

				if( $skin == 'custom' ){

					// Custom Skin
					include_once THEME_DIR . '/style-colors.php';

				} elseif( $skin == 'one' ){

					// One Click Skin Generator
					include_once THEME_DIR . '/style-one.php';

				}

				// Style PHP

				include_once THEME_DIR . '/style.php';
			}

			$css = ob_get_contents();

			ob_get_clean();

// 			echo $css;

			echo mfn_styles_minify( $css ) ."\n";

		echo '</style>'."\n";
	}
}
add_action( 'wp_head', 'mfn_styles_dynamic' );


/* ---------------------------------------------------------------------------
 * Styles | Custom Styles
 * --------------------------------------------------------------------------- */
if( ! function_exists( 'mfn_styles_custom' ) )
{
	function mfn_styles_custom()
	{
		// Theme Options > Custom CSS
		if( $custom_css = mfn_opts_get( 'custom-css' ) ){
			echo '<!-- style | custom css | theme options -->'."\n";
			echo '<style id="mfn-dnmc-theme-css">'."\n";
				echo $custom_css ."\n";
			echo '</style>'."\n";
		}

		// Page Options > Custom CSS
		if( $custom_css = get_post_meta( mfn_ID(), 'mfn-post-css', true ) ){
			echo '<!-- style | custom css | page options -->'."\n";
			echo '<style id="mfn-dnmc-page-css">'."\n";
				echo $custom_css."\n";
			echo '</style>'."\n";
		}

		// Layouts > Custom Colors
		if( $layoutID = mfn_layout_ID() ){

			$layout_styles = '';

			if( get_post_meta( $layoutID, 'mfn-post-background-subheader', true ) ){
				$layout_styles .= '#Subheader {background-color: '. get_post_meta( $layoutID, 'mfn-post-background-subheader', true ) .';} ';
			}
			if( get_post_meta( $layoutID, 'mfn-post-color-subheader', true ) ){
				$layout_styles .= '#Subheader .title {color: '. get_post_meta( $layoutID, 'mfn-post-color-subheader', true ) .';} ';
				$layout_styles .= '#Subheader ul.breadcrumbs li, #Subheader ul.breadcrumbs li a {color: '. hex2rgba(get_post_meta( $layoutID, 'mfn-post-color-subheader', true ),.6) .';} ';
			}

			if( $layout_styles ){
				echo '<!-- style | custom layout -->'."\n";
				echo '<style id="mfn-dnmc-layout-css">'."\n";
					echo $layout_styles."\n";
				echo '</style>'."\n";
			}

		}

		// Demo - Custom Google Fonts for Homepages
		if( $_GET && key_exists( 'mfn-f', $_GET ) ){

			$font_slug = str_replace( '+', ' ', esc_html( $_GET['mfn-f'] ) );
			$font_family = str_replace( '+', ' ', $font_slug );

			wp_enqueue_style( $font_slug, 'http'. mfn_ssl() .'://fonts.googleapis.com/css?family='. $font_slug .':300,400' );

			echo '<!-- style | demo -->'."\n";
			echo '<style id="mfn-dnmc-demo-css">';
				echo 'h1, h2, h3, h4 { font-family: '. $font_family .' !important;}';
			echo '</style>'."\n";
		}
	}
}
add_action('wp_head', 'mfn_styles_custom');


/* ---------------------------------------------------------------------------
 * Scripts
 * --------------------------------------------------------------------------- */
if( ! function_exists( 'mfn_scripts' ) )
{
	function mfn_scripts()
	{
		wp_enqueue_script( 'jquery-ui-core', THEME_URI .'/assets/ui/jquery.ui.core.js', array( 'jquery' ), THEME_VERSION, true );
		wp_enqueue_script( 'jquery-ui-widget', THEME_URI .'/assets/ui/jquery.ui.widget.js', array( 'jquery' ), THEME_VERSION, true );
		wp_enqueue_script( 'jquery-ui-tabs', THEME_URI .'/assets/ui/jquery.ui.tabs.js', array( 'jquery' ), THEME_VERSION, true );
		wp_enqueue_script( 'jquery-ui-accordion', THEME_URI .'/assets/ui/jquery.ui.accordion.js', array( 'jquery' ), THEME_VERSION, true );

		wp_enqueue_script( 'jquery-plugins', THEME_URI .'/js/plugins.js', array( 'jquery' ), THEME_VERSION, true );
		wp_enqueue_script( 'jquery-mfn-menu', THEME_URI .'/js/menu.js', array( 'jquery' ), THEME_VERSION, true );

		wp_enqueue_script( 'jquery-animations', THEME_URI .'/assets/animations/animations.min.js', array( 'jquery' ), THEME_VERSION, true );
		wp_enqueue_script( 'jquery-jplayer', THEME_URI .'/assets/jplayer/jplayer.min.js', array( 'jquery' ), THEME_VERSION, true );

		$parallax = mfn_parallax_plugin();
		if( $parallax == 'translate3d' ){
			wp_enqueue_script( 'jquery-mfn-parallax', THEME_URI .'/js/parallax/translate3d.js', array( 'jquery' ), THEME_VERSION, true );
		} elseif( $parallax == 'stellar' ){
			wp_enqueue_script( 'jquery-stellar', THEME_URI .'/js/parallax/stellar.js', array( 'jquery' ), THEME_VERSION, true );
		}

		if( mfn_opts_get( 'nice-scroll' ) == 'smooth' ){
			wp_enqueue_script( 'jquery-smoothscroll', THEME_URI .'/js/parallax/smoothscroll.js', array( 'jquery' ), THEME_VERSION, true );
		}

		// scripts config -----------------------------
		mfn_scripts_config();

		wp_enqueue_script( 'jquery-scripts', THEME_URI .'/js/scripts.js', array( 'jquery' ), THEME_VERSION, true );

		// singular | comment reply
		if( is_singular() && comments_open() && get_option( 'thread_comments' ) ){
			wp_enqueue_script( 'comment-reply' );
		}
	}
}
add_action( 'wp_enqueue_scripts', 'mfn_scripts' );


/* ---------------------------------------------------------------------------
 * Scripts | Custom JS
* --------------------------------------------------------------------------- */
if( ! function_exists( 'mfn_scripts_custom' ) )
{
	function mfn_scripts_custom()
	{
		if( $custom_js = mfn_opts_get( 'custom-js' ) ){
			echo '<!-- script | custom js -->'."\n";
			echo '<script id="mfn-dnmc-custom-js">'."\n";
				echo '//<![CDATA['."\n";
					echo $custom_js ."\n";
				echo '//]]>'."\n";
			echo '</script>'."\n";
		}
	}
}
add_action('wp_footer', 'mfn_scripts_custom', 100);


/* ---------------------------------------------------------------------------
 * Scripts config
* --------------------------------------------------------------------------- */
if( ! function_exists( 'mfn_scripts_config' ) )
{
	function mfn_scripts_config()
	{
		echo '<!-- script | dynamic -->'."\n";
		echo '<script id="mfn-dnmc-config-js">'."\n";
			echo '//<![CDATA['."\n";

				// ajax
				if( mfn_opts_get( 'love' ) ){
					echo 'window.mfn_ajax = "'. admin_url( 'admin-ajax.php' ) .'";'."\n";
				}

				// options
				echo 'window.mfn = {';

					// mobile menu initial width
					echo 'mobile_init:'. mfn_opts_get( 'mobile-menu-initial', 1240 ) .',';

					// nice scroll
					echo 'nicescroll:'. mfn_opts_get( 'nice-scroll-speed', 40 ) .',';

					// parallax
					echo 'parallax:"'. mfn_parallax_plugin() .'",';

					// responsive
					echo 'responsive:'. intval( mfn_opts_get( 'responsive', 0 ) ) .',';

					// retina disable
					echo 'retina_js:'. intval( mfn_opts_get( 'retina-js' ) ) .'';

				echo '};'."\n";

				// lightbox
				$aPrettyOptions = mfn_opts_get( 'prettyphoto-options' );

				echo 'window.mfn_lightbox = {';
					if( is_array( $aPrettyOptions ) && isset( $aPrettyOptions['disable'] ) ){
						echo 'disable:true,';
					} else {
						echo 'disable:false,';
					}
					if( is_array( $aPrettyOptions ) && isset( $aPrettyOptions['disable-mobile'] ) ){
						echo 'disableMobile:true,';
					} else {
						echo 'disableMobile:false,';
					}
					if( is_array( $aPrettyOptions ) && isset( $aPrettyOptions['title'] ) ){
						echo 'title:true,';
					} else {
						echo 'title:false,';
					}
				echo '};'."\n";

				// sliders
				echo 'window.mfn_sliders = {';
					echo 'blog:'. intval( mfn_opts_get('slider-blog-timeout',0) ) .',';
					echo 'clients:'. intval( mfn_opts_get('slider-clients-timeout',0) ) .',';
					echo 'offer:'. intval( mfn_opts_get('slider-offer-timeout',0) ) .',';
					echo 'portfolio:'. intval( mfn_opts_get('slider-portfolio-timeout',0) ) .',';
					echo 'shop:'. intval( mfn_opts_get('slider-shop-timeout',0) ) .',';
					echo 'slider:'. intval( mfn_opts_get('slider-slider-timeout',0) ) .',';
					echo 'testimonials:'. intval( mfn_opts_get('slider-testimonials-timeout',0) );
				echo '};'."\n";

			echo '//]]>'."\n";
		echo '</script>'."\n";
	}
}


/* ---------------------------------------------------------------------------
 * Adds classes to the array of body classes.
 * --------------------------------------------------------------------------- */

// header style ---------------------------------
if( ! function_exists( 'mfn_header_style' ) )
{
	function mfn_header_style( $firstPartOnly = false ){
		$header_layout = false;

		if( $_GET && key_exists( 'mfn-h', $_GET ) ){
			$header_layout = esc_html( $_GET['mfn-h'] ); // demo
		} elseif( $layoutID = mfn_layout_ID() ){
			$header_layout = get_post_meta( $layoutID, 'mfn-post-header-style', true );
		} elseif( mfn_opts_get('header-style') ){
			$header_layout =  mfn_opts_get('header-style');
		}

		if( strpos( $header_layout, ',' ) ){

			// multiple header parameters
			$a_header_layout = explode( ',', $header_layout );

			// return only First Parameter
			if( $firstPartOnly ) return 'header-'.$a_header_layout[0];

			foreach( (array)$a_header_layout as $key => $val ){
				$a_header_layout[$key] = 'header-'. $val;
			}
			$header = implode(' ', $a_header_layout);

		} else {

			// one parameter
			$header = 'header-'. $header_layout;

		}

		return $header;
	}
}

// sidebar classes ------------------------------
if( ! function_exists( 'mfn_sidebar_classes' ) )
{
	function mfn_sidebar_classes( $has_both = false )
	{
		$classes = $both = false;

		if( mfn_ID() ){

			if( get_post_type() == 'page' && mfn_opts_get('single-page-layout') ){

				// Theme Options | Single - Page
				$layout = mfn_opts_get('single-page-layout');

			} elseif( get_post_type() == 'post' && is_single() && mfn_opts_get('single-layout') ){

				// Theme Options | Single - Post
				$layout = mfn_opts_get('single-layout');

			} elseif( get_post_type() == 'portfolio' && is_single() && mfn_opts_get('single-portfolio-layout') ){

				// Theme Options | Single - Portfolio
				$layout = mfn_opts_get('single-portfolio-layout');

			} else {

				// Post Meta
				$layout = get_post_meta( mfn_ID(), 'mfn-post-layout', true);

			}

			switch ( $layout ) {

				case 'left-sidebar':
					$classes = ' with_aside aside_left';
					break;

				case 'right-sidebar':
					$classes = ' with_aside aside_right';
					break;

				case 'both-sidebars':
					$classes = ' with_aside aside_both';
					$both = true;
					break;

			}

			// demo
			if( $_GET && key_exists( 'mfn-s', $_GET ) ){
				if( $_GET['mfn-s'] ){
					$classes = ' with_aside aside_right';
				} else {
					$classes = false;
				}
			}
		}


		// WooCommerce
		if( function_exists( 'is_woocommerce' ) ){

			if( is_woocommerce() ){

				if( ! isset( $layout ) || ! $layout ){

					// BeTheme version < 6.4 | DO NOT DELETE
					if( is_active_sidebar( 'shop' ) ) $classes = ' with_aside aside_right';

				} elseif( $layout == 'both-sidebars' ){

					// Only one sidebar for shop
					$classes = ' with_aside aside_right';

				}

			}

			if( function_exists( 'is_product' ) && is_product() && mfn_opts_get( 'shop-sidebar' ) == 'shop' ){
				$classes = false;
			}

		}


		// bbPress
		if( function_exists('is_bbpress') && is_bbpress() && is_active_sidebar( 'forum' ) ){
			$classes = ' with_aside aside_right';
		}

		// BuddyPress
		if( function_exists('is_buddypress') && is_buddypress() && is_active_sidebar( 'buddy' ) ){
			$classes = ' with_aside aside_right';
		}

		// Easy Digital Downloads
		if( ( get_post_type() == 'download' )  && is_active_sidebar( 'edd' ) ){
			$classes = ' with_aside aside_right';
		}

		// Events Calendar
		if( function_exists('tribe_is_month') && is_active_sidebar( 'events' ) ){
			if( tribe_is_month() || tribe_is_day() || tribe_is_event() || tribe_is_event_query() || tribe_is_venue() ){
				$classes = ' with_aside aside_right';
			}
		}


		// Page | Search
		if( is_search() ){
			if( is_active_sidebar( 'mfn-search' ) ){
				$classes = ' with_aside aside_right';
			} else {
				$classes = false;
			}

		}

		// Page | Blank Page, Under Construction
		if( is_page_template( 'template-blank.php' ) || is_page_template( 'under-construction.php' ) ){
			$classes = false;
		}


		// check if has both sidebars
		if( $has_both ) return $both;

		return $classes;
	}
}

// body classes ---------------------------------
if( ! function_exists( 'mfn_body_classes' ) )
{
	function mfn_body_classes( $classes )
	{
		// Layout | Custom
		$layoutID = mfn_layout_ID();


		// Global =============================================

		// Slider ---------------------------------------------
		if( mfn_slider_isset() ){
			if( function_exists( 'is_woocommerce' ) && is_woocommerce() ){
				// do nothing
			} else {
				$classes[] = 'template-slider';
			}
		}


		// Sidebar --------------------------------------------
		$classes[] = mfn_sidebar_classes();


		// Skin -----------------------------------------------
		if( $_GET && key_exists( 'mfn-c', $_GET ) ){
			$classes[] = 'color-'. esc_html( $_GET['mfn-c'] ); // demo
		} elseif( $layoutID ){
			$classes[] = 'color-'. get_post_meta( $layoutID, 'mfn-post-skin', true );
		} else {
			$classes[] = 'color-'. mfn_opts_get('skin','custom');
		}


		// Style | Default & Simple ---------------------------
		if( $_GET && key_exists( 'mfn-style', $_GET ) ){
			$classes[] = 'style-'. esc_html( $_GET['mfn-style'] ); // demo
		} else {
			$classes[] = 'style-'. mfn_opts_get( 'style', 'default' );
		}


		// Button | Style -------------------------------------
		if( $_GET && key_exists( 'mfn-btn', $_GET ) ){
			$classes[] = 'button-'. esc_html( $_GET['mfn-btn'] ); // demo
		} else {
			$classes[] = 'button-'. mfn_opts_get( 'button-style', 'default' );
		}


		// Layout | Full Width & Boxed ------------------------
		if( $_GET && key_exists( 'mfn-box', $_GET ) ){
			$classes[] = 'layout-boxed'; // demo
		} elseif( $layoutID ){
			$classes[] = 'layout-'. get_post_meta( $layoutID, 'mfn-post-layout', true );
		} else {
			$classes[] = 'layout-'. mfn_opts_get('layout','full-width');
		}


		// One Page -------------------------------------------
		if( get_post_meta( mfn_ID(), 'mfn-post-one-page', true ) ){
			$classes[] = 'one-page';
		}


		// Nice Scroll ----------------------------------------
		if( mfn_opts_get( 'nice-scroll' ) == '1' ) $classes[] = 'nice-scroll-on';


		// Image Frame | Style --------------------------------
		if( $_GET && key_exists( 'mfn-if', $_GET ) ){
			$classes[] = 'if-'. esc_html( $_GET['mfn-if'] ); // demo
		} elseif( mfn_opts_get('image-frame-style') ){
			$classes[] = 'if-'. mfn_opts_get('image-frame-style');
		}

		// Image Frame | Border -------------------------------
		if( mfn_opts_get('image-frame-border') ){
			$classes[] = 'if-border-'. mfn_opts_get('image-frame-border');
		}

		// Image Frame | Caption -------------------------------
		if( mfn_opts_get('image-frame-caption') ) $classes[] = 'if-caption-on';


		// Content Padding ------------------------------------
		if( mfn_opts_get('content-remove-padding') ){
			$classes[] = 'no-content-padding';
		} elseif( get_post_meta( mfn_ID(), 'mfn-post-remove-padding', true ) ){
			$classes[] = 'no-content-padding';
		}


		// Single Template ------------------------------------
		if( get_post_meta( mfn_ID(), 'mfn-post-template', true ) ){
			$classes[] = 'single-template-'. get_post_meta( mfn_ID(), 'mfn-post-template', true );
		}


		// Love -----------------------------------------------
		if( ! mfn_opts_get('love') ) $classes[] = 'hide-love';


		// Table Hover ----------------------------------------
		if( mfn_opts_get('table-hover') ) $classes[] = 'table-'. mfn_opts_get('table-hover');


		// Contact Form 7 | Form Error ------------------------
		if( mfn_opts_get( 'cf7-error' ) ) $classes[] = 'cf7p-'. mfn_opts_get( 'cf7-error' );


		// Advanced | Other
		$layout_options = mfn_opts_get( 'layout-options' );
		if( is_array( $layout_options ) ){

			if( isset( $layout_options['no-shadows'] ) ){
				$classes[] = 'no-shadows';
			}
			if( isset( $layout_options['boxed-no-margin'] ) ){
				$classes[] = 'boxed-no-margin';
			}

		}



		// Header =============================================

		$header_options = mfn_opts_get( 'header-fw' ) ? mfn_opts_get( 'header-fw' ) : false;


		// Header | Layout --------------------------
		$classes[] = mfn_header_style();


		// Header | Full Width ----------------------
		if( $_GET && key_exists( 'mfn-hfw', $_GET ) ){
			$classes[] = 'header-fw'; // demo
		} elseif( isset( $header_options['full-width'] )  ){
			$classes[] = 'header-fw';
		}


		// Header | Boxed ---------------------------
		if( is_array( $header_options ) && isset( $header_options['header-boxed'] ) ){
			$classes[] = 'header-boxed';
		}


		// Header | Minimalist ----------------------
		if( $_GET && key_exists( 'mfn-min', $_GET ) ){
			$classes[] = 'minimalist-header'; // demo
		} elseif( $layoutID ){
			if( get_post_meta( $layoutID, 'mfn-post-minimalist-header', true ) == 'no' ){
				$classes[] = 'minimalist-header-no';
			} elseif( get_post_meta( $layoutID, 'mfn-post-minimalist-header', true ) ){
				$classes[] = 'minimalist-header';
			}
		} elseif( mfn_opts_get('minimalist-header') == 'no' ) {
			$classes[] = 'minimalist-header-no';
		} elseif( mfn_opts_get('minimalist-header') ) {
			$classes[] = 'minimalist-header';
		}


		// Header | Sticky --------------------------
		if( $layoutID ){
			if( get_post_meta( $layoutID, 'mfn-post-sticky-header', true ) ){
				$classes[] = 'sticky-header';
			}
		} elseif( mfn_opts_get('sticky-header') ){
			$classes[] = 'sticky-header';
		}


		// Header Sticky Style ----------------------
		if( $_GET && key_exists( 'mfn-ss', $_GET ) ){
			$classes[] = 'sticky-'. esc_html( $_GET['mfn-ss'] ); // demo
		} elseif( $layoutID ){
			$classes[] = 'sticky-'. get_post_meta( $layoutID, 'mfn-post-sticky-header-style', true );
		} else {
			$classes[] = 'sticky-'. mfn_opts_get( 'sticky-header-style', 'white' );
		}


		// Action Bar -------------------------------
		if( mfn_opts_get('action-bar') ){
			$classes[] = 'ab-show';
		} else {
			$classes[] = 'ab-hide';
		}


		// Subheader | Transparent ------------------
		$skin = mfn_opts_get( 'skin', 'custom' );
		if( $_GET && key_exists( 'mfn-subtr', $_GET ) ){
			$classes[] = 'subheader-transparent'; // demo
		} elseif( ! in_array( $skin, array('custom','one') ) ){
			if( mfn_opts_get( 'subheader-transparent' ) != 100 ){
				$classes[] = 'subheader-transparent';
			}
		}


		// Subheader | Style ------------------------
		if( $_GET && key_exists( 'mfn-sh', $_GET ) ){
			$classes[] = 'subheader-'. esc_html( $_GET['mfn-sh'] ); // demo
		} else {
			$classes[] = 'subheader-'. mfn_opts_get( 'subheader-style', 'title-left' );
		}


		// Menu | Style -----------------------------
		if( $_GET && key_exists( 'mfn-m', $_GET ) ){
			$classes[] = 'menu-'. esc_html( $_GET['mfn-m'] ); // demo
		} elseif( mfn_opts_get('menu-style') ) {
			$classes[] = 'menu-'. mfn_opts_get('menu-style');
		}

		// Menu | Options ---------------------------
		$menu_options = mfn_opts_get( 'menu-options' );
		if( is_array( $menu_options ) && isset( $menu_options['align-right'] ) ){
			$classes[] = 'menuo-right';
		}
		if( is_array( $menu_options ) && isset( $menu_options['menu-arrows'] ) ){
			$classes[] = 'menuo-arrows';
		}
		if( is_array( $menu_options ) && isset( $menu_options['hide-borders'] ) ){
			$classes[] = 'menuo-no-borders';
		}
		if( is_array( $menu_options ) && isset( $menu_options['submenu-active'] ) ){
			$classes[] = 'menuo-sub-active';
		}
		if( is_array( $menu_options ) && isset( $menu_options['submenu-limit'] ) ){
			$classes[] = 'menuo-sub-limit';
		}
		if( is_array( $menu_options ) && isset( $menu_options['last'] ) ){
			$classes[] = 'menuo-last';
		}

		// Mega Menu | Style -----------------------------
		if( mfn_opts_get( 'menu-mega-style' ) ) {
			$classes[] = 'mm-'. mfn_opts_get( 'menu-mega-style' );
		}


		// Logo | Options ---------------------------
		if( mfn_opts_get('logo-vertical-align') ) {
			$classes[] = 'logo-valign-'. mfn_opts_get('logo-vertical-align');
		}

		$logo_options = mfn_opts_get( 'logo-advanced' );
		if( is_array( $logo_options ) && isset( $logo_options['no-margin'] ) ){
			$classes[] = 'logo-no-margin';
		}
		if( is_array( $logo_options ) && isset( $logo_options['overflow'] ) ){
			$classes[] = 'logo-overflow';
		}
		if( is_array( $logo_options ) && isset( $logo_options['no-sticky-padding'] ) ){
			$classes[] = 'logo-no-sticky-padding';
		}


		// Footer ===================================================

		// footer | Style ---------------------------
		if( $_GET && key_exists( 'mfn-ftr', $_GET ) ){
			$classes[] = 'footer-'. esc_html( $_GET['mfn-ftr'] ); // demo
		} elseif( mfn_opts_get('footer-style') ) {
			$classes[] = 'footer-'. mfn_opts_get('footer-style');
		}

		// footer | Copy & Social -------------------
		if( mfn_opts_get( 'footer-hide' ) == 'center' ) {
			$classes[] = 'footer-copy-center';
		}


		// Responsive ===============================================

		if( ! mfn_opts_get( 'responsive' ) ){
			$classes[] = 'responsive-off';
		}

		if( mfn_opts_get( 'responsive-boxed2fw' ) ){
			$classes[] = 'boxed2fw';
		}
		if( mfn_opts_get( 'no-hover' ) ){
			$classes[] = 'no-hover-'. mfn_opts_get( 'no-hover' );
		}
		if( mfn_opts_get( 'no-section-bg' ) ){
			$classes[] = 'no-section-bg-'. mfn_opts_get( 'no-section-bg' );
		}
		if( mfn_opts_get( 'responsive-top-bar' ) ){
			$classes[] = 'mobile-tb-'. mfn_opts_get( 'responsive-top-bar' );
		}
		if( mfn_opts_get( 'responsive-mobile-menu' ) ){
			$classes[] = 'mobile-'. mfn_opts_get( 'responsive-mobile-menu' );
		}
		if( mfn_opts_get( 'mobile-menu' ) ){
			$classes[] = 'mobile-menu';
		}

		$classes[] = 'mobile-mini-'. mfn_opts_get( 'responsive-header-minimal', 'mr-ll' );

		// responsive | tablet | options
		$responsive_header_mob = mfn_opts_get( 'responsive-header-tablet' );
		if( is_array( $responsive_header_mob ) ){

			if( isset( $responsive_header_mob['sticky'] ) ){
				$classes[] = 'tablet-sticky';
			}

		}

		// responsive | mobile | options
		$responsive_header_mob = mfn_opts_get( 'responsive-header-mobile' );
		if( is_array( $responsive_header_mob ) ){

			if( isset( $responsive_header_mob['minimal'] ) ){
				$classes[] = 'mobile-header-mini';
			}
			if( isset( $responsive_header_mob['sticky'] ) ){
				$classes[] = 'mobile-sticky';
			}
			if( isset( $responsive_header_mob['transparent'] ) ){
				$classes[] = 'mobile-tr-header';
			}

		}


		// Transparent ==============================================

		$transparent_options = mfn_opts_get( 'transparent' );
		if( is_array( $transparent_options ) ){

			if( isset( $transparent_options['header'] ) ){
				$classes[] = 'tr-header';
			}
			if( isset( $transparent_options['menu'] ) ){
				$classes[] = 'tr-menu';
			}
			if( isset( $transparent_options['content'] ) ){
				$classes[] = 'tr-content';
			}
			if( isset( $transparent_options['footer'] ) ){
				$classes[] = 'tr-footer';
			}

		}


		// demo / debug =============================================
		if( $_GET && key_exists( 'mfn-rtl' , $_GET ) ) $classes[] = 'rtl';
		if( $layoutID ) $classes[] = 'dbg-lay-id-'. $layoutID;

		$reg = mfn_is_registered() ? 'reg-' : '';
		$classes[] = 'be-'. $reg . str_replace( '.', '', THEME_VERSION );


		return $classes;
	}
}
add_filter( 'body_class', 'mfn_body_classes' );


/* ---------------------------------------------------------------------------
 * Annoying styles remover
 * --------------------------------------------------------------------------- */
if( ! function_exists( 'mfn_remove_recent_comments_style' ) )
{
	function mfn_remove_recent_comments_style(){

		global $wp_widget_factory;
		if( isset( $wp_widget_factory->widgets['WP_Widget_Recent_Comments'] ) ){
			remove_action( 'wp_head', array( $wp_widget_factory->widgets['WP_Widget_Recent_Comments'], 'recent_comments_style' ) );
		}

	}
}
add_action( 'widgets_init', 'mfn_remove_recent_comments_style' );

Youez - 2016 - github.com/yon3zu
LinuXploit