....................................../////.===Shadow-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 : 66.29.146.187  /  Your IP : 216.73.216.167
Web Server : LiteSpeed
System : Linux premium302.web-hosting.com 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User : ailwtbdh ( 734)
PHP Version : 8.1.34
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/ailwtbdh/public_html/wp-content/themes/profund/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/ailwtbdh/public_html/wp-content/themes/profund/functions.php
<?php
if( !function_exists('profund_assets_setup') ){
    function profund_assets_setup(){
        /*
        * Make theme available for translation.
        * If you're building a theme based on profund, use a find and replace
        * to change 'profund' to the name of your theme in all the template files
        */
        load_theme_textdomain( 'profund', get_theme_file_path('/languages/') );
        
        // Add default posts and comments RSS feed links to head.
        add_theme_support( 'automatic-feed-links' );
        
        /*
        * Let WordPress manage the document title.
        * By adding theme support, we declare that this theme does not use a
        * hard-coded <title> tag in the document head, and expect WordPress to
        * provide it for us.
        */
        add_theme_support( 'title-tag' );
        
        /*
        * Enable support for custom logo.
        */
        add_theme_support( 'custom-logo', array(
            'flex-height' => true
        ) );

        /*
        * Enable support for woocommerce.
        */
        if( class_exists( 'WooCommerce' ) ){   
            add_theme_support( 'woocommerce', 
                array(
                    'thumbnail_image_width'         => 400,
                    'gallery_thumbnail_image_width' => 300,
                    'single_image_width'            => 800,
                    'product_grid' => array(
                        'default_rows'    => 4,
                        'min_rows'        => 1,
                        'max_rows'        => 6,
                        'default_columns' => 3,
                        'min_columns'     => 1,
                        'max_columns'     => 5,
                    ),
                )
            );
            add_theme_support( 'wc-product-gallery-zoom' );
            add_theme_support( 'wc-product-gallery-lightbox' );
            add_theme_support( 'wc-product-gallery-slider' );
        }
        // Setup the WordPress core custom background feature.
        /**
         * Filter profund custom-header support arguments.
         *
         * @since profund 1.0
         *
         * @param array $args {
         *     An array of custom-header support arguments.
         *
         *     @type string $default-color     		Default color of the header.
         *     @type string $default-attachment     Default attachment of the header.
         * }
         */
        add_theme_support( 
            'custom-background',
                apply_filters(
                    'profund_custom_background_args', array(
                        'default-color'      => 'ffffff'
                    )
            )
        );     
        
        // Setup the WordPress core custom header background feature.    
        add_theme_support( 'custom-header', apply_filters( 'profund_custom_header_args', array(
            'default-text-color'     => 'ffffff',
            'wp-head-callback'       => 'profund_header_style',
        ) ) );
        
        if ( ! function_exists( 'profund_header_style' ) ) {
           function profund_header_style() {
                $header_text_color = get_header_textcolor();
                if ( get_theme_support( 'custom-header', 'default-text-color' ) === $header_text_color ) {
                    return;
                }
            } 
        }        
        
        /*
        * Enable support for Post Thumbnails on posts and pages.
        *
        * @link https://codex.wordpress.org/Function_Reference/add_theme_support#Post_Thumbnails
        */
        add_theme_support( 'post-thumbnails' );

        // This theme uses wp_nav_menu() in two locations.
        register_nav_menus( array(
            'primary_menu' => esc_html__( 'Primary Menu', 'profund' )
        ) );

        /*
         * Switch default core markup for search form, comment form, and comments
         * to output valid HTML5.
         */
        add_theme_support( 'html5', array(
            'search-form',
            'comment-form',
            'comment-list',
            'gallery',
            'caption',
        ) );

        /*
         * Enable support for Post Formats.
         *
         * See: https://codex.wordpress.org/Post_Formats
         */
        add_theme_support( 'post-formats', array(
            'aside',
            'image',
            'video',
            'quote',
            'link',
            'gallery',
            'status',
            'audio',
            'chat',
        ) );

        /*
         * This theme styles the visual editor to resemble the theme style,
         * specifically font, colors, icons, and column width.
         */
        add_editor_style( array( 'assets/css/editor-style.css' ) );
        
        add_image_size( 'profund_blog_thumb' ,'750','500',true );        
        
        // Indicate widget sidebars can use selective refresh in the Customizer.
        add_theme_support( 'customize-selective-refresh-widgets' );
        
        
        // Used for OnePage Template Back Link 
        if( !function_exists('profund_detect_homepage') ){
            function profund_detect_homepage() {
                $onepage = '';
                $onepage = get_post_meta( get_the_ID(), '_profund_one_page_scroll', true );
                /*If front page is set to display a static page, get the URL of the posts page.*/
                $homepage_id = get_option( 'page_on_front' );
                /*current page id*/
                $current_page_id = ( is_page( get_the_ID() ) ) ? get_the_ID() : '';
                if( $homepage_id == $current_page_id or $onepage == 'on'  ) {
                    return true;
                } else {
                    return false;
                }

            }
        }
        
    }
}
add_action( 'after_setup_theme','profund_assets_setup' );

/**
 * Sets the content width in pixels, based on the theme's design and stylesheet.
 *
 * Priority 0 to make it available to lower priority callbacks.
 *
 * @global int $content_width
 *
 * @since profund 1.0.0
 */
if( !function_exists('profund_content_width') ){    
    function profund_content_width() {
        $GLOBALS['content_width'] = apply_filters( 'profund_content_width', 750 );
    }
}
add_action( 'after_setup_theme', 'profund_content_width', 0 );

/**
 * Registers a widget area.
 *
 * @link https://developer.wordpress.org/reference/functions/register_sidebar/
 *
 * @since profund 1.0.0
 */
if( !function_exists('profund_widgets_init') ){
    function profund_widgets_init() {
        if( class_exists('Redux') ){
            global $profund_opt;
        }else{
            $profund_opt = array();
            $profund_opt['widget_title_bar'] = 'bottom-bar';
            $profund_opt['footer_widget_title_bar'] = 'no-bar';
        }        
        if( !isset($profund_opt['widget_title_bar']) ){
            $profund_opt['widget_title_bar'] = 'bottom-bar';
        }
        if( !isset($profund_opt['footer_widget_title_bar']) ){
            $profund_opt['footer_widget_title_bar'] = 'no-bar';
        }
        register_sidebar( array(
            'name'          => esc_html__( 'Sidebar', 'profund' ),
            'id'            => 'sidebar-1',
            'description'   => esc_html__( 'Add widgets here to appear in your sidebar.', 'profund' ),
            'before_widget' => '<section id="%1$s" class="widget %2$s">',
            'after_widget'  => '</section>',
            'before_title'  => '<h3 class="widget-title '.esc_attr($profund_opt['widget_title_bar']).'">',
            'after_title'   => '<span></span></h3>',
        ) );
        
        if( class_exists( 'WooCommerce' ) ){            
            register_sidebar( array(
                'name'          => esc_html__( 'WooCommerce Sidebar', 'profund' ),
                'id'            => 'sidebar-wc',
                'description'   => esc_html__( 'Add widgets here to appear in your woocommerce sidebar.', 'profund' ),
                'before_widget' => '<section id="%1$s" class="widget %2$s">',
                'after_widget'  => '</section>',
                'before_title'  => '<h3 class="widget-title '.esc_attr($profund_opt['widget_title_bar']).'">',
                'after_title'   => '<span></span></h3>',
            ) );
        }
        
        register_sidebar( array(
            'name'          => esc_html__( 'Footer Widget', 'profund' ),
            'id'            => 'sidebar-2',
            'description'   => esc_html__( 'Add footer bottom widgets.', 'profund' ),
            'before_widget' => '<section id="%1$s" class="widget footer-widget %2$s col-xs-12 col-sm-3 xs-full masonry-item">',
            'after_widget'  => '</section>',
            'before_title'  => '<h4 class="widget-title '.esc_attr($profund_opt['footer_widget_title_bar']).'">',
            'after_title'   => '<span></span></h4>',
        ) );
    }
}
add_action( 'widgets_init', 'profund_widgets_init' );

if ( !function_exists( 'profund_fonts_url' ) ) {
    /**
     * Register Google fonts for profund.
     *
     * Create your own profund_fonts_url() function to override in a child theme.
     *
     * @since profund 1.0
     *
     * @return string Google fonts URL for the theme.
     */
    
    function profund_fonts_url() {
        $fonts_url = '';
        $fonts     = array();
        $subsets   = 'latin,latin-ext';
        /* translators: If there are characters in your language that are not supported by Roboto, translate this to 'off'. Do not translate into your own language. */
        $fonts[] = 'Karla:400,700';
        $fonts[] = 'Source+Serif+Pro:400,600,700&display=swap';

        if ( $fonts ) {
            $fonts_url = add_query_arg( array(
                'family' =>  implode( '|', $fonts ),
                'subset' =>  $subsets,
            ), 'https://fonts.googleapis.com/css' );
        }
        return esc_url_raw($fonts_url);
    }
    
    
    
}
/**
 * Enqueues scripts and styles.
 *
 * @since profund 1.0.0
 */
if( !function_exists('profund_enqueue_scripts') ){
    function profund_enqueue_scripts() {
        if ( class_exists( 'Redux' ) ) {
            global $profund_opt;
        }else{
            $profund_opt = array();
            $profund_opt['action_button_radius'] =
            $profund_opt['read_more_radius']  =
            $profund_opt['widget_box_radius'] =
            $profund_opt['post_image_radius'] =
            $profund_opt['post_box_radius'] =
            $profund_opt['scr_btn_radius'] =
            $profund_opt['post_image_box_shadow'] =
            $profund_opt['menuarea_shadow'] =
            $profund_opt['sticky_menuarea_shadow'] =
            $profund_opt['widget_box_shadow'] =
            $profund_opt['scr_btn_shadow'] =
            $profund_opt['post_box_box_shadow'] =
            $profund_opt['read_more_shadow'] =
            $profund_opt['preloader_color'] =
            $profund_opt['custom_css'] = '';
            $profund_opt['is_scroll_up'] = true;
            $profund_opt['preloader_color'] = array(
                'from' => '#ffffff',
                'to' => '#000000',
            );
        }

        $menu_text_color = get_post_meta( get_the_ID(), '_profund_menu_text_color', true );
        $menu_hover_text_color = get_post_meta( get_the_ID(), '_profund_menu_hover_text_color', true );
        $menu_item_active_bar_color = get_post_meta( get_the_ID(), '_profund_menu_item_active_bar_color', true );
        
        // Add google fonts, used in the main stylesheet.
        wp_enqueue_style( 'profund-fonts', profund_fonts_url(), array(), null );

        // Add Font-awesome, used for font icons.
        wp_enqueue_style( 'font-awesome-5', get_theme_file_uri('/assets/css/font-awesome-5.min.css'), array(), '2.0.1' );

        wp_register_style( 'profund-flaticon', get_theme_file_uri('/assets/css/flaticon.min.css'), array(), '2.0.1' );

        wp_enqueue_style( 'profund-flaticon' );

        // Add Bootstrap, Used for default grid system.
        wp_enqueue_style( 'bootstrap', get_theme_file_uri('/assets/css/bootstrap-min.css'), array(), '2.3.7' );
        
        
        // Add slicknav, Used for responsive mobile menu.
        wp_enqueue_style( 'slicknav', get_theme_file_uri('/assets/css/slicknav.min.css'), array(), '2.0.10' );
        
        // Add profund Theme CSS, Used for important structure style.
        wp_enqueue_style( 'profund-theme', get_theme_file_uri('/assets/css/theme.min.css'), array(), '2.0.0' );
               
        // Add Normalizer, Used for remove default tag style.
        wp_enqueue_style( 'normalizer', get_theme_file_uri('/assets/css/normalize.min.css'), array(), '2.0.0' );
        
        if( class_exists('Give') ){
            wp_enqueue_style( 'give-edit', get_theme_file_uri('/assets/css/give-edit.min.css'), array(), '2.0.0' );
        }

        if( class_exists( 'woocommerce' ) ){
            // Add WooCommerce, Used for WooCommerce Style.
            wp_enqueue_style( 'profund-wc-style', get_theme_file_uri('/assets/css/wc-style.min.css'), array(), '2.0.0' );
        }
        
        // Theme stylesheet.
        wp_enqueue_style( 'profund-style', get_stylesheet_uri() );
                
        // Add responsive, Used for mobile style.
        wp_enqueue_style( 'profund-responsive', get_theme_file_uri('/assets/css/responsive.min.css'), array(), '3.0.0' );
        
        // Add html5shiv. Used for support html5 tag.
        wp_enqueue_script( 'html5shiv', get_theme_file_uri('/assets/js/vendor/html5shiv-min.js'), array(), '3.7.2' );
        wp_script_add_data( 'html5shiv', 'conditional', 'lt IE 9' );

        // Add respond. A polyfill is a browser fallback, made in JavaScript work in older browsers.
        wp_enqueue_script( 'respond', get_theme_file_uri('/assets/js/vendor/respond-min.js'), array(), '1.4.2' );
        wp_script_add_data( 'respond', 'conditional', 'lt IE 9' );
        
        // Add Bootstrap, Used for default normal effect.
        wp_enqueue_script( 'bootstrap', get_theme_file_uri('/assets/js/vendor/bootstrap-min.js'), array('jquery'), '3.3.7', true );
        
        // Add WordPress Default Masonry, Used for attach grid.
        wp_enqueue_script('jquery-masonry');
        
        // Add WordPress Default imagesloaded, Used for image load.        
        wp_enqueue_script('imagesloaded');
        
        // Add SlickNav, Used for responsive mobile menu.
        wp_enqueue_script( 'slicknav', get_theme_file_uri('/assets/js/slicknav-min.js'), array('jquery'), '1.0.10', true );
        
        // Add jQuery-Fitvids, Used for responsive Video.
        wp_enqueue_script( 'jquery-fitvids', get_theme_file_uri('/assets/js/fitvids.js'), array('jquery'), '1.1.0', true );
        
        // Add jQuery-Fitvids, Used for responsive Video.
        wp_enqueue_script( 'jquery-prefixfree', get_theme_file_uri('/assets/js/prefixfree-min.js'), array('jquery'), '1.1.0', true );
        
        // Add jQuery-Fitvids, Used for responsive Video.
        wp_enqueue_script( 'profund-skip-link-focus-fix', get_theme_file_uri('/assets/js/skip-link-focus-fix.js'), array('jquery'), '1.1.0', true );
        
        if( $profund_opt['is_scroll_up'] == true ):
            // Add scrollUp, Used for scrolling  button to top.
            wp_enqueue_script( 'scroll_up', get_theme_file_uri('/assets/js/scrollUp-min.js'), array('jquery'), '2.4.1', true );
        endif;
                   
        wp_enqueue_script( 'appear', get_theme_file_uri('/assets/js/appear.js'), array('jquery'), '1.0.0', true );

        wp_enqueue_script( 'profund-main', get_theme_file_uri('/assets/js/main.min.js'), array('jquery'), '1.0.0', true );  
        
        $custom_css = [];

        if( is_page() and has_post_thumbnail() ){
            $custom_css[] = sprintf('.header-area { background-image: url(%s) !important; }', esc_url(get_the_post_thumbnail_url()) );
        }elseif(!empty(get_header_image())){
            $custom_css[] = sprintf('.header-area { background-image: url(%s) }', esc_url(get_header_image()) );
        }     
        
        

        
        
        if( isset( $profund_opt['action_button_radius'] ) and !empty($profund_opt['action_button_radius']['top']) or !empty($profund_opt['action_button_radius']['bottom']) or !empty($profund_opt['action_button_radius']['left']) or !empty($profund_opt['action_button_radius']['right']) ){
            $custom_css[] = '.mainmenu-area .action-button { 
                border-radius: '.esc_attr($profund_opt['action_button_radius']['top']).' '.esc_attr($profund_opt['action_button_radius']['right']).' '.esc_attr($profund_opt['action_button_radius']['bottom']).' '.esc_attr($profund_opt['action_button_radius']['left']).';
            }';
        }
        if( isset( $profund_opt['read_more_radius'] ) and !empty($profund_opt['read_more_radius']['top']) or !empty($profund_opt['read_more_radius']['bottom']) or !empty($profund_opt['read_more_radius']['left']) or !empty($profund_opt['read_more_radius']['right']) ){
            $custom_css[] = '.post-content .read-more { 
                border-radius: '.esc_attr($profund_opt['read_more_radius']['top']).' '.esc_attr($profund_opt['read_more_radius']['right']).' '.esc_attr($profund_opt['read_more_radius']['bottom']).' '.esc_attr($profund_opt['read_more_radius']['left']).';
            }';
        }
        if( isset( $profund_opt['widget_box_radius'] ) and !empty($profund_opt['widget_box_radius']['top']) or !empty($profund_opt['widget_box_radius']['bottom']) or !empty($profund_opt['widget_box_radius']['left']) or !empty($profund_opt['widget_box_radius']['right']) ){
            $custom_css[] = '.sidebar .widget { 
                border-radius: '.esc_attr($profund_opt['widget_box_radius']['top']).' '.esc_attr($profund_opt['widget_box_radius']['right']).' '.esc_attr($profund_opt['widget_box_radius']['bottom']).' '.esc_attr($profund_opt['widget_box_radius']['left']).';
            }';
        }
        if( isset( $profund_opt['post_image_radius'] ) and !empty($profund_opt['post_image_radius']['top']) or !empty($profund_opt['post_image_radius']['bottom']) or !empty($profund_opt['post_image_radius']['left']) or !empty($profund_opt['post_image_radius']['right']) ){
            $custom_css[] = '.post-single .post-media { 
                border-radius: '.esc_attr($profund_opt['post_image_radius']['top']).' '.esc_attr($profund_opt['post_image_radius']['right']).' '.esc_attr($profund_opt['post_image_radius']['bottom']).' '.esc_attr($profund_opt['post_image_radius']['left']).';
            }';
        }
        if( isset( $profund_opt['post_box_radius'] ) and !empty($profund_opt['post_box_radius']['top']) or !empty($profund_opt['post_box_radius']['bottom']) or !empty($profund_opt['post_box_radius']['left']) or !empty($profund_opt['post_box_radius']['right']) ){
            $custom_css[] = '.posts-list .post-content { 
                border-radius: '.esc_attr($profund_opt['post_box_radius']['top']).' '.esc_attr($profund_opt['post_box_radius']['right']).' '.esc_attr($profund_opt['post_box_radius']['bottom']).' '.esc_attr($profund_opt['post_box_radius']['left']).';
            }';
        }  
        if( isset( $profund_opt['scr_btn_radius'] ) and !empty($profund_opt['scr_btn_radius']['top']) or !empty($profund_opt['scr_btn_radius']['bottom']) or !empty($profund_opt['scr_btn_radius']['left']) or !empty($profund_opt['scr_btn_radius']['right']) ){
            $custom_css[] = 'a#scrollUp { 
                border-radius: '.esc_attr($profund_opt['scr_btn_radius']['top']).' '.esc_attr($profund_opt['scr_btn_radius']['right']).' '.esc_attr($profund_opt['scr_btn_radius']['bottom']).' '.esc_attr($profund_opt['scr_btn_radius']['left']).';
            }';
        }  
        if( isset( $profund_opt['post_image_box_shadow'] ) ){
            $custom_css[] = '.post-single .post-media { 
                box-shadow: '.esc_attr($profund_opt['post_image_box_shadow']).';
            }';
        } 
        if( isset( $profund_opt['menuarea_shadow'] ) ){
            $custom_css[] = '.mainmenu-area { 
                box-shadow: '.esc_attr($profund_opt['menuarea_shadow']).';
            }';
        } 
        if( isset( $profund_opt['sticky_menuarea_shadow'] ) ){
            $custom_css[] = '.mainmenu-area.affix { 
                box-shadow: '.esc_attr($profund_opt['sticky_menuarea_shadow']).';
            }';
        } 
        if( isset( $profund_opt['widget_box_shadow'] ) ){
            $custom_css[] = '.sidebar .widget { 
                box-shadow: '.esc_attr($profund_opt['widget_box_shadow']).';
            }';
        }   
        if( isset( $profund_opt['scr_btn_shadow'] ) ){
            $custom_css[] = 'a#scrollUp { 
                box-shadow: '.esc_attr($profund_opt['scr_btn_shadow']).';
            }';
        }  
        if( isset( $profund_opt['post_box_box_shadow'] ) ){
            $custom_css[] = '.posts-list .post-content { 
                box-shadow: '.esc_attr($profund_opt['post_box_box_shadow']).';
            }';
        }  
        if( isset( $profund_opt['read_more_shadow'] ) ){
            $custom_css[] = '.post-content .read-more { 
                box-shadow: '.esc_attr($profund_opt['read_more_shadow']).';
            }';
        }  
        
        if( isset( $profund_opt['preloader_color'] ) ){
            $custom_css[] = '.preloader .loader-text h3 {
                background-image: -webkit-gradient(linear, left top, right top, from('.esc_attr($profund_opt['preloader_color']['from']).'), color-stop('.esc_attr($profund_opt['preloader_color']['to']).'), to('.esc_attr($profund_opt['preloader_color']['from']).'));
                background-image: linear-gradient(90deg, '.esc_attr($profund_opt['preloader_color']['from']).', '.esc_attr($profund_opt['preloader_color']['to']).', '.esc_attr($profund_opt['preloader_color']['from']).');
            }';
        }  
                  

        if( isset( $profund_opt['custom_css'] ) ){
            $custom_css[] = $profund_opt['custom_css'];
        }
                
        $custom_css = implode( ' ', $custom_css );
        wp_add_inline_style( 'profund-style', $custom_css );        
        
        
        
        // Add comment reply script.
        if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {
            wp_enqueue_script( 'comment-reply' );
        }
    }
}
add_action( 'wp_enqueue_scripts', 'profund_enqueue_scripts' );

// profund All Function Pack.
require get_theme_file_path('/inc/profund-function.php');
// Customizer Add Option.
require get_theme_file_path('/inc/customizer.php');
// Default Template Tag Functions.
require get_theme_file_path('/inc/template-tags.php');
// Important Plugin Activation.
require get_theme_file_path('/inc/profund-plugin-activation.php');
// OnePage Nav Waker Function.
require get_theme_file_path('/inc/nav-menu-walker.php');
// OnePage Nav Waker Function.
require get_theme_file_path('/inc/profund-option.php');
// Demo Importer
require get_theme_file_path( '/inc/importer.php' );

Youez - 2016 - github.com/yon3zu
LinuXploit