<?php require_once('core/init.php');$author_slug="lcweb";$GLOBALS[md5(__DIR__).$author_slug.'_dike_v']=1745944719;add_action('init',function(){$author_slug="lcweb";$content_url=untrailingslashit(content_url());$cu_arr=explode('/',$content_url);$arr=explode('/'.end($cu_arr),str_replace('\\','/',__DIR__));$baseurl=trailingslashit($content_url.end($arr)).'lc-assets';$config=array('menu_label'=>'LCweb Dashboard','author_name'=>'LCweb','logo_url'=>$baseurl.'/img/logo.svg','lic_check_endpoint_url'=>'https://licenses.lcweb.it/author_bridge.php','no_support_no_upd_faq_url'=>'https://lcweb.it/lc-wp-dashboard-faqs#faq-4',);$custom_head_code="\n        <style>\n        .dike_prod_welcome_wrap > button {\n            background: #7fc241 !important;\n            color: #fff !important;\n            border: none !important;\n        }\n        .dike_prod_welcome_wrap > button:hover,\n        .dike_prod_welcome_wrap > button:active,\n        .dike_prod_welcome_wrap > button:focus {\n            background: #5e962a !important;\n        }\n        #dike_pre_list p {\n            line-height: 1.5rem;\n        }\n        #dike_pre_list ul {\n            background: #f0f0f0;\n            padding: 13px 30px 14px 32px;\n            border-radius: 5px;\n            list-style: outside disclosure-closed;\n            margin: 13px 0 0;\n            display: inline-flex;\n            flex-direction: column;\n        }\n        #dike_pre_list li {\n            font-size: 0.95rem;\n            margin: 0 0 7px;\n        }\n        #dike_pre_list li:last-child {\n            margin: 0;\n        }\n        #dike_pre_list p.dike_pre_links_p {\n            margin: 18px 0 5px;\n            font-size: 0.9rem;\n            line-height: normal;\n        }\n        #dike_useful_links {\n            padding-bottom: 4px;\n        }\n        </style>";$custom_footer_code="";$pre_products_txt='
        <p><strong>Hello!</strong> This is a summary of LCweb products installed on the current 
        domain (<em>'.dike_licenses::get_site_domain().'</em>).<br/>To activate a license you need an activation token:</p>

        <ul>
            <li>If license has been purchased on the <strong><a href="https://lcweb.it/products-overview/" target="_blank">LCweb shop</a></strong>, tokens can be found on the <a href="https://shop.lcweb.it/my-account/" target="_blank">Licenses Manager</a> page (<em>be sure you assigned it to this website domain</em>)</li>
            
            <li>While <a href="https://1.envato.market/9WjgKj" target="_blank">Envato</a> licenses must be registered in the <a href="https://lcweb.dikelicensing.com/" target="_blank">licenses hub</a> to get your tokens</li>
        </ul>

        <p class="dike_pre_links_p">Activating an online license with support entitlement, you will automatically enable the <strong>product\'s automated updater!</strong></p>

        <p id="dike_useful_links"><small>
            <a href="mailto:quotation@lcweb.it" target="_blank">
                <span class="dashicons dashicons-superhero-alt"></span> need a customization?
            </a>
            <a href="https://support.lcweb.it/" target="_blank">
                <span class="dashicons dashicons-sos"></span> technical support
            </a>
            <a href="https://lcweb.it/lc-wp-dashboard-faqs" target="_blank">
                <span class="dashicons dashicons-format-status"></span> LCweb Dashboard FAQs
            </a>
        </small></p>';$how_to_get_token_txt='
        <ol class="dike_howto_popup_list">
            <li>If you own a <strong>LCweb Shop license</strong>: go to your <strong><a href="https://shop.lcweb.it/my-account/" target="_blank">Licenses Dashboard</a></strong>.<br/><br/>
            
            For <strong>Envato</strong> licenses: activation tokens are given by <strong><a href="https://'.$author_slug.'.dikelicensing.com" target="_blank">LCweb Licenses Hub</a></strong>
        and are strictly linked to a domain and a purchase code. Then, as first, 
        login into your Licenses Hub account (or register if you do not have an account yet)</li>

            <li>Select the product section the you want to address and a list of all available products will be shown</li>

            <li>Each product block will list your licenses. You can add it to the Licenses Hub: specifying the purchase code, target domain and optionally the staging domain
            <img src="'.$baseurl.'/img/howto/lclh_add_license.png" /></li>

            <li>Once added, the page will refresh showing you a specific token for each domain. Copy and use them in this dashboard
            <img src="'.$baseurl.'/img/howto/lclh_domain_tokens.png" /></li>

            <li><strong>ONLY IF YOUR WEBSITE IS NOT ABLE TO REACH LCWEB SERVER</strong>, you may use the offline token 
            <img src="'.$baseurl.'/img/howto/lclh_offline_token.png" /></li>
        </ol>';add_filter('dike_'.$author_slug.'_prod_welcome_code',function($code,$prod_data,$prod_slug){$global_key='dike_'.$prod_slug.'_welcome_code';if(isset($GLOBALS[$global_key])){return $code;}$GLOBALS[$global_key]=true;return str_replace('</h3>',"</h3><h5>You can get started in minutes checking the <a href='".$prod_data['doc_link']."' target='_blank'>official documentation</a></h5>",$code);},$GLOBALS[md5(__DIR__).$author_slug.'_dike_v'],3);add_filter('dike_'.$author_slug.'_missing_products',function($missing,$owned){if(isset($GLOBALS['lcweb_dike_missing_products_executed'])){return $missing;}$GLOBALS['lcweb_dike_missing_products_executed']=true;$pc_bundle_owned=(isset($owned['pvtcontent_bundle/pvtcontent_bundle.php']))?true:false;$mg_bundle_owned=(isset($owned['media-grid-bundle/mg_bundle.php']))?true:false;$filtered=array();foreach($missing as $path=>$data){if($pc_bundle_owned&&in_array($data['slug'],array('lcweb-pc','lcweb-pcud','lcweb-pcma','lcweb-pcpp','lcweb-pcfm'))){continue;}else if($mg_bundle_owned&&in_array($data['slug'],array('lcweb-mg','lcweb-mgom','lcweb-mgaf'))){continue;}$filtered[$path]=$data;}return $filtered;},$GLOBALS[md5(__DIR__).$author_slug.'_dike_v'],2);$config=array_merge((array)$config,array('trial_lic_req_url'=>'https://'.$author_slug.'.dikelicensing.com/trial_license_request','updates_endpoint_url'=>'https://'.$author_slug.'.dikelicensing.com/updates.php','custom_head_code'=>$custom_head_code,'custom_footer_code'=>$custom_footer_code,'pre_products_txt'=>$pre_products_txt,'how_to_get_token_txt'=>$how_to_get_token_txt,));$products=array('pvtcontent_bundle/pvtcontent_bundle.php'=>array('slug'=>'pcbp','envato_id'=>20352295,'name'=>'PrivateContent – WordPress Bundle Pack','prod_pag_link'=>'https://charon.lcweb.it/1cbe5454','ren_supp_link'=>array('envato'=>'https://charon.lcweb.it/cec76b2f','author'=>'https://charon.lcweb.it/d50aa153',),'buy_prod_link'=>'https://charon.lcweb.it/1fdaf91b','doc_link'=>'https://doc.lcweb.it/pc_bundle/','changelog_link'=>'https://changelogs.lcweb.it/?styled&prod=pcbp','has_trial'=>true,'logo_url'=>$baseurl.'/img/product_logos/pcbp.svg',),'private-content/private_content.php'=>array('slug'=>'pc','envato_id'=>1467885,'name'=>'PrivateContent','prod_pag_link'=>'https://charon.lcweb.it/25ad5c0a','ren_supp_link'=>array('envato'=>'https://charon.lcweb.it/0df4d123','author'=>'https://charon.lcweb.it/6c93626a',),'buy_prod_link'=>'https://charon.lcweb.it/8260d9df','doc_link'=>'https://doc.lcweb.it/privatecontent/','changelog_link'=>'https://changelogs.lcweb.it/?styled&prod=pc','has_trial'=>true,'logo_url'=>$baseurl.'/img/product_logos/pc.svg',),'private-content-user-data/pc_user_data.php'=>array('slug'=>'pcud','envato_id'=>2399731,'name'=>'PrivateContent – User Data add-on','prod_pag_link'=>'https://charon.lcweb.it/bff73641','ren_supp_link'=>array('envato'=>'https://charon.lcweb.it/8224d846','author'=>'https://charon.lcweb.it/feeb386d',),'buy_prod_link'=>'https://charon.lcweb.it/fb46af30','doc_link'=>'https://doc.lcweb.it/pc_user_data/','changelog_link'=>'https://changelogs.lcweb.it/?styled&prod=pcud','has_trial'=>true,'logo_url'=>$baseurl.'/img/product_logos/pcud.svg',),'private-content-mail-actions/pc_mail_actions.php'=>array('slug'=>'pcma','envato_id'=>3606728,'name'=>'PrivateContent – Mail Actions add-on','prod_pag_link'=>'https://charon.lcweb.it/b1f9f472','ren_supp_link'=>array('envato'=>'https://charon.lcweb.it/2209e926','author'=>'https://charon.lcweb.it/e4a67f45',),'buy_prod_link'=>'https://charon.lcweb.it/bae4b4d4','doc_link'=>'https://doc.lcweb.it/pc_mail_actions/','changelog_link'=>'https://changelogs.lcweb.it/?styled&prod=pcma','has_trial'=>true,'logo_url'=>$baseurl.'/img/product_logos/pcma.svg',),'private-content-premium-plans/pc_premium_plans.php'=>array('slug'=>'pcpp','envato_id'=>15316736,'name'=>'PrivateContent – Premium Plans add-on','prod_pag_link'=>'https://charon.lcweb.it/7937f589','ren_supp_link'=>array('envato'=>'https://charon.lcweb.it/2900c9e6','author'=>'https://charon.lcweb.it/ace61f9a',),'buy_prod_link'=>'https://charon.lcweb.it/ca20e7e5','doc_link'=>'https://doc.lcweb.it/pc_premium_plans/','changelog_link'=>'https://changelogs.lcweb.it/?styled&prod=pcpp','has_trial'=>true,'logo_url'=>$baseurl.'/img/product_logos/pcpp.svg',),'private-content-files-manager/pc_files_manager.php'=>array('slug'=>'pcfm','envato_id'=>24884663,'name'=>'PrivateContent – Files Manager add-on','prod_pag_link'=>'https://charon.lcweb.it/46223884','ren_supp_link'=>array('envato'=>'https://charon.lcweb.it/0d40d59e','author'=>'https://charon.lcweb.it/04c5672f',),'buy_prod_link'=>'https://charon.lcweb.it/0cb257d8','doc_link'=>'https://doc.lcweb.it/pc_files_manager/','changelog_link'=>'https://changelogs.lcweb.it/?styled&prod=pcfm','has_trial'=>true,'logo_url'=>$baseurl.'/img/product_logos/pcfm.svg',),'private-content-data-bridge/pc-data-bridge.php'=>array('slug'=>'pczw','envato_id'=>false,'name'=>'PrivateContent – Data Bridge add-on','prod_pag_link'=>'https://charon.lcweb.it/e0f2f688','ren_supp_link'=>array('author'=>'https://charon.lcweb.it/5dac50f6',),'buy_prod_link'=>'https://charon.lcweb.it/5dac50f6','doc_link'=>'https://doc.lcweb.it/pc_data_bridge/','changelog_link'=>'https://changelogs.lcweb.it/?styled&prod=pczw','has_trial'=>true,'logo_url'=>$baseurl.'/img/product_logos/pczw.svg',),'private-content-user-activities/pc_user_activities.php'=>array('slug'=>'pcua','envato_id'=>46369001,'name'=>'PrivateContent – User Activities add-on','prod_pag_link'=>'https://charon.lcweb.it/f2ce52ae','ren_supp_link'=>array('envato'=>'https://charon.lcweb.it/8fc07971','author'=>'https://charon.lcweb.it/3a4abffc',),'buy_prod_link'=>'https://charon.lcweb.it/513c1126','doc_link'=>'https://doc.lcweb.it/pc_user_activities/','changelog_link'=>'https://changelogs.lcweb.it/?styled&prod=pcua','has_trial'=>true,'logo_url'=>$baseurl.'/img/product_logos/pcua.svg',),'media-grid-bundle/mg_bundle.php'=>array('slug'=>'mgbp','envato_id'=>21876571,'name'=>'Media Grid – WordPress Bundle Pack','prod_pag_link'=>'https://charon.lcweb.it/45ea3776','ren_supp_link'=>array('envato'=>'https://charon.lcweb.it/1058fa3f','author'=>'https://charon.lcweb.it/2dfe1741',),'buy_prod_link'=>'https://charon.lcweb.it/f9d23428','doc_link'=>'https://doc.lcweb.it/mg_bundle/','changelog_link'=>'https://changelogs.lcweb.it/?styled&prod=mgbp','has_trial'=>true,'logo_url'=>$baseurl.'/img/product_logos/mgbp.svg',),'media-grid/media-grid.php'=>array('slug'=>'mg','envato_id'=>2218545,'name'=>'Media Grid','prod_pag_link'=>'https://charon.lcweb.it/3da5b511','ren_supp_link'=>array('envato'=>'https://charon.lcweb.it/09de985c','author'=>'https://charon.lcweb.it/92d23345',),'buy_prod_link'=>'https://charon.lcweb.it/72d2adbe','doc_link'=>'https://doc.lcweb.it/media_grid/','changelog_link'=>'https://changelogs.lcweb.it/?styled&prod=mg','has_trial'=>true,'logo_url'=>$baseurl.'/img/product_logos/mg.svg',),'media-grid-overlay-manager/mg_overlay_manager.php'=>array('slug'=>'mgom','envato_id'=>6643138,'name'=>'Media Grid – Overlay Manager add-on','prod_pag_link'=>'https://charon.lcweb.it/18c78da4','ren_supp_link'=>array('envato'=>'https://charon.lcweb.it/5c2f156b','author'=>'https://charon.lcweb.it/275cf254',),'buy_prod_link'=>'https://charon.lcweb.it/3e90f97c','doc_link'=>'https://doc.lcweb.it/mg_overlay_manager/','changelog_link'=>'https://changelogs.lcweb.it/?styled&prod=mgom','has_trial'=>true,'logo_url'=>$baseurl.'/img/product_logos/mgom.svg',),'media-grid-advanced-filters/mg_adv_filters.php'=>array('slug'=>'mgaf','envato_id'=>21829031,'name'=>'Media Grid – Advanced Filters add-on','prod_pag_link'=>'https://charon.lcweb.it/e693aa3d','ren_supp_link'=>array('envato'=>'https://charon.lcweb.it/c2c232f4','author'=>'https://charon.lcweb.it/99090c19',),'buy_prod_link'=>'https://charon.lcweb.it/99bbe80d','doc_link'=>'https://doc.lcweb.it/mg_advanced_filters/','changelog_link'=>'https://changelogs.lcweb.it/?styled&prod=mgaf','has_trial'=>true,'logo_url'=>$baseurl.'/img/product_logos/mgaf.svg',),'global-gallery/global-gallery.php'=>array('slug'=>'gg','envato_id'=>3310108,'name'=>'Global Gallery','prod_pag_link'=>'https://charon.lcweb.it/0980c44f','ren_supp_link'=>array('envato'=>'https://charon.lcweb.it/7542057f','author'=>'https://charon.lcweb.it/b4f52b9e',),'buy_prod_link'=>'https://charon.lcweb.it/c0426145','doc_link'=>'https://doc.lcweb.it/global_gallery/','changelog_link'=>'https://changelogs.lcweb.it/?styled&prod=gg','has_trial'=>true,'logo_url'=>$baseurl.'/img/product_logos/gg.svg',),'faq_revo/faq-revo.php'=>array('slug'=>'fr','envato_id'=>22660146,'name'=>'FAQ Revolution','prod_pag_link'=>'https://charon.lcweb.it/0e7365e6','ren_supp_link'=>array('envato'=>'https://charon.lcweb.it/dd75c959','author'=>'https://charon.lcweb.it/37e50763',),'buy_prod_link'=>'https://charon.lcweb.it/45e0454f','doc_link'=>'https://doc.lcweb.it/faq_revo/','changelog_link'=>'https://changelogs.lcweb.it/?styled&prod=fr','has_trial'=>true,'logo_url'=>$baseurl.'/img/product_logos/fr.svg',),'swift-box-wp/swift-box.php'=>array('slug'=>'sbwp','envato_id'=>8187938,'name'=>'Swift Box – WordPress Plugin','prod_pag_link'=>'https://charon.lcweb.it/dddc45ca','ren_supp_link'=>array('envato'=>'https://charon.lcweb.it/cd5cc054','author'=>'https://charon.lcweb.it/8e03d305',),'buy_prod_link'=>'https://charon.lcweb.it/b3ac9703','doc_link'=>'https://doc.lcweb.it/swift_box_wp/','changelog_link'=>'https://changelogs.lcweb.it/?styled&prod=sb-wp','has_trial'=>true,'logo_url'=>$baseurl.'/img/product_logos/sbwp.svg',),'lc-refund-requests/lc-refund-requests.php'=>array('slug'=>'wrr','envato_id'=>'','name'=>'LC Refund Requests','prod_pag_link'=>'https://charon.lcweb.it/962d0231','ren_supp_link'=>array('envato'=>'','author'=>'https://charon.lcweb.it/eb0f0b5z',),'buy_prod_link'=>'https://charon.lcweb.it/b59a13dd','doc_link'=>'https://doc.lcweb.it/lc_refund_requests/','changelog_link'=>'https://changelogs.lcweb.it/?styled&prod=wrr','has_trial'=>true,'logo_url'=>$baseurl.'/img/product_logos/wrr.svg',),'nvis-recaptcha-for-woo/woo-nvis-recaptcha.php'=>array('slug'=>'wir','envato_id'=>'','name'=>'WooCommerce Invisible reCaptcha','prod_pag_link'=>'https://charon.lcweb.it/ca9ab3f8','ren_supp_link'=>array('envato'=>'','author'=>'https://charon.lcweb.it/eb0f0b56',),'buy_prod_link'=>'https://charon.lcweb.it/b3de260e','doc_link'=>'https://doc.lcweb.it/woo_invisible_recaptcha/','changelog_link'=>'https://changelogs.lcweb.it/?styled&prod=wir','has_trial'=>true,'logo_url'=>$baseurl.'/img/product_logos/wir.svg',),'fontpress/fontpress.php'=>array('slug'=>'fp','envato_id'=>1746759,'name'=>'FontPress','prod_pag_link'=>'https://charon.lcweb.it/78b3973c','ren_supp_link'=>array('envato'=>'https://charon.lcweb.it/adf12018','author'=>'https://charon.lcweb.it/e79180fd',),'buy_prod_link'=>'https://charon.lcweb.it/71031be0','doc_link'=>'https://doc.lcweb.it/fontpress/','changelog_link'=>'https://changelogs.lcweb.it/?styled&prod=fp','has_trial'=>true,'logo_url'=>$baseurl.'/img/product_logos/fp.svg',),);$response=dike_init($author_slug,$config,$products);if(is_wp_error($response)){trigger_error($response->get_error_message());}},$GLOBALS[md5(__DIR__).$author_slug.'_dike_v']);