File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1313$ prpl_privacy_policy_accepted = \progress_planner ()->is_privacy_policy_accepted ();
1414$ prpl_wrapper_class = '' ;
1515
16+ if ( 0 !== (int ) \progress_planner ()->get_ui__branding ()->get_branding_id () ) {
17+ $ prpl_license_key = \progress_planner ()->get_utils__onboard ()->make_remote_onboarding_request ();
18+ if ( '' !== $ prpl_license_key ) {
19+ \update_option ( 'progress_planner_license_key ' , $ prpl_license_key );
20+ $ prpl_privacy_policy_accepted = true ;
21+ }
22+ }
23+
1624if ( ! $ prpl_privacy_policy_accepted ) {
1725 $ prpl_wrapper_class = 'prpl-pp-not-accepted ' ;
1826}
4351</div>
4452<div class="prpl-overlay" style="display: none;" onclick="document.querySelector('[data-tooltip-visible=true]').removeAttribute('data-tooltip-visible')"></div>
4553
46- <?php \progress_planner ()->the_view ( 'js-templates/suggested-task.html ' ); ?>
54+ <?php \progress_planner ()->the_view ( 'js-templates/suggested-task.html ' ); ?>
Original file line number Diff line number Diff line change 1414
1515if ( false !== \get_option ( 'progress_planner_license_key ' , false ) ) {
1616 return ;
17- } elseif ( 0 !== (int ) \progress_planner ()->get_ui__branding ()->get_branding_id () ) {
18- $ prpl_license_key = \progress_planner ()->get_utils__onboard ()->make_remote_onboarding_request ();
19- if ( '' !== $ prpl_license_key ) {
20- \update_option ( 'progress_planner_license_key ' , $ prpl_license_key );
21- }
22- return ;
2317}
2418
2519// Enqueue styles.
You can’t perform that action at this time.
0 commit comments