| 1 |
<?php |
| 2 |
/** |
| 3 |
* View settings |
| 4 |
* |
| 5 |
* @package |
| 6 |
*/ |
| 7 |
|
| 8 |
$pro_url = add_query_arg( 'wpfnl-dashboard', '1', GETWPFUNNEL_HOME_URL ); |
| 9 |
?> |
| 10 |
<div class="wpfnl"> |
| 11 |
|
| 12 |
<div class="wpfnl-dashboard"> |
| 13 |
<nav class="wpfnl-dashboard__nav"> |
| 14 |
<?php require_once WPFNL_DIR . '/admin/partials/dashboard-nav.php'; ?> |
| 15 |
</nav> |
| 16 |
|
| 17 |
<div class="dashboard-nav__content"> |
| 18 |
<div id="templates-library"></div> |
| 19 |
|
| 20 |
<div class="wpfnl-dashboard__header funnel-settings__header"> |
| 21 |
<div class="title"> |
| 22 |
<h1><?php echo __('Settings', 'wpfnl'); ?></h1> |
| 23 |
</div> |
| 24 |
|
| 25 |
<ul class="helper-link"> |
| 26 |
<li><a href="https://getwpfunnels.com/docs/getting-started-with-wpfunnels/" target="_blank"><?php echo __('Need Help?', 'wpfnl'); ?></a></li> |
| 27 |
<li><a href="https://getwpfunnels.com/contact-us/" target="_blank"><?php echo __('Contact Us', 'wpfnl'); ?></a></li> |
| 28 |
<li><a href="?page=wpfunnels-setup"><?php echo __('Run Setup Wizard', 'wpfnl'); ?></a></li> |
| 29 |
</ul> |
| 30 |
</div> |
| 31 |
<!-- /funnel-settings__header --> |
| 32 |
|
| 33 |
<?php do_action('wpfunnels_before_settings'); ?> |
| 34 |
<div class="wpfnl-funnel-settings__inner-content"> |
| 35 |
|
| 36 |
<div class="wpfnl-funnel-settings__wrapper"> |
| 37 |
<nav class="wpfn-settings__nav"> |
| 38 |
<ul> |
| 39 |
<li class="nav-li active" data-id="general-settings"> |
| 40 |
<?php include WPFNL_DIR . '/admin/partials/icons/settings-icon-2x.php'; ?> |
| 41 |
<span><?php echo __('General Settings', 'wpfnl'); ?></span> |
| 42 |
</li> |
| 43 |
|
| 44 |
<li class="nav-li" data-id="permalink-settings"> |
| 45 |
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"> |
| 46 |
<path d="M10 14C10.6583 14.6719 11.5594 15.0505 12.5 15.0505C13.4406 15.0505 14.3417 14.6719 15 14L19 10C19.9175 9.11184 20.2848 7.79798 19.961 6.56274C19.6372 5.32751 18.6725 4.36284 17.4373 4.03901C16.202 3.71519 14.8882 4.08252 14 5.00002L13.5 5.50002" stroke="#7A8B9A" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/> |
| 47 |
<path d="M14 9.99997C13.3417 9.32809 12.4407 8.94946 11.5 8.94946C10.5594 8.94946 9.65836 9.32809 9.00004 9.99997L5.00004 14C3.65732 15.387 3.67524 17.5946 5.04031 18.9597C6.40538 20.3248 8.61299 20.3427 10 19L10.5 18.5" stroke="#7A8B9A" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/> |
| 48 |
</svg> |
| 49 |
|
| 50 |
<span><?php echo __('Permalink', 'wpfnl'); ?></span> |
| 51 |
</li> |
| 52 |
|
| 53 |
<?php if( \WPFunnels\Wpfnl_functions::is_wc_active() && 'lead' !== $global_funnel_type ) { ?> |
| 54 |
<li class="nav-li <?php echo !$is_pro_activated ? ' disabled' : '' ?>" <?php echo $is_pro_activated ? ' data-id="offer-settings" ' : '' ?> > |
| 55 |
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"> |
| 56 |
<rect x="3" y="8" width="18" height="4" rx="1" stroke="#7A8B9A" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/> |
| 57 |
<path d="M12 8V21" stroke="#7A8B9A" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/> |
| 58 |
<path d="M19 12V19C19 20.1046 18.1046 21 17 21H7C5.89543 21 5 20.1046 5 19V12" stroke="#7A8B9A" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/> |
| 59 |
<path d="M7.5 7.99994C6.11929 7.99994 5 6.88065 5 5.49994C5 4.11923 6.11929 2.99994 7.5 2.99994C9.474 2.96594 11.26 4.94894 12 7.99994C12.74 4.94894 14.526 2.96594 16.5 2.99994C17.8807 2.99994 19 4.11923 19 5.49994C19 6.88065 17.8807 7.99994 16.5 7.99994" stroke="#7A8B9A" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/> |
| 60 |
</svg> |
| 61 |
|
| 62 |
<span><?php echo __('Offer Settings', 'wpfnl'); ?></span> |
| 63 |
|
| 64 |
<?php |
| 65 |
if( !$is_pro_activated ){ |
| 66 |
echo '<span class="pro-tag"><a href="'.$pro_url.'" target="_blank">'.__( 'Pro', 'wpfnl' ).'</a></span>'; |
| 67 |
} |
| 68 |
?> |
| 69 |
</li> |
| 70 |
<?php } ?> |
| 71 |
|
| 72 |
<li class="nav-li <?php echo !$is_pro_activated ? ' disabled' : '' ?>" <?php echo $is_pro_activated ? ' data-id="event-tracking-setting" ' : '' ?> > |
| 73 |
<?php require WPFNL_DIR . '/admin/partials/icons/event-tracking-icon.php'; ?> |
| 74 |
<span><?php echo __('Event tracking', 'wpfnl'); ?></span> |
| 75 |
<?php |
| 76 |
if( !$is_pro_activated ){ |
| 77 |
echo '<span class="pro-tag"><a href="'.$pro_url.'" target="_blank">'.__( 'Pro', 'wpfnl' ).'</a></span>'; |
| 78 |
} |
| 79 |
?> |
| 80 |
</li> |
| 81 |
|
| 82 |
<li class="nav-li" data-id="advance-settings"> |
| 83 |
<?php require WPFNL_DIR . '/admin/partials/icons/advanced-settings.php'; ?> |
| 84 |
<span><?php echo __('Advanced Settings', 'wpfnl'); ?></span> |
| 85 |
</li> |
| 86 |
<?php if( \WPFunnels\Wpfnl_functions::maybe_logger_enabled() ) { ?> |
| 87 |
<li class="nav-li" data-id="log-settings"> |
| 88 |
<?php require WPFNL_DIR . '/admin/partials/icons/log-settings.php'; ?> |
| 89 |
<span><?php echo __('Logs', 'wpfnl'); ?></span> |
| 90 |
</li> |
| 91 |
<?php } ?> |
| 92 |
|
| 93 |
</ul> |
| 94 |
</nav> |
| 95 |
|
| 96 |
<div class="wpfnl-funnel__single-settings general" id="general-settings"> |
| 97 |
<h4 class="settings-title"><?php echo __('General Settings', 'wpfnl'); ?></h4> |
| 98 |
<?php do_action('wpfunnels_before_general_settings'); ?> |
| 99 |
<?php require WPFNL_DIR . '/admin/modules/settings/views/general-settings.php'; ?> |
| 100 |
<?php do_action('wpfunnels_after_general_settings'); ?> |
| 101 |
</div> |
| 102 |
<!-- /General Settings --> |
| 103 |
|
| 104 |
<div class="wpfnl-funnel__single-settings offer" id="offer-settings"> |
| 105 |
<?php if( $is_pro_activated ){ ?> |
| 106 |
<?php do_action('wpfunnels_before_offer_settings'); ?> |
| 107 |
<?php require WPFNL_DIR . '/admin/modules/settings/views/offer-settings.php'; ?> |
| 108 |
<?php do_action('wpfunnels_after_offer_settings'); ?> |
| 109 |
|
| 110 |
<?php }else{ ?> |
| 111 |
<a href="<?php echo $pro_url; ?>" target="_blank" title="<?php _e( 'Click to Upgrade Pro', 'wpfnl' ); ?>"> |
| 112 |
<span class="pro-tag"><?php echo __( 'Get Pro', 'wpfnl' ); ?></span> |
| 113 |
</a> |
| 114 |
<?php } ?> |
| 115 |
</div> |
| 116 |
<!-- /Offer Settings --> |
| 117 |
|
| 118 |
<div class="wpfnl-funnel__single-settings permalink" id="permalink-settings"> |
| 119 |
<?php do_action('wpfunnels_before_permalink_settings'); ?> |
| 120 |
<h4 class="settings-title"><?php echo __('Permalink Settings', 'wpfnl'); ?></h4> |
| 121 |
<?php require WPFNL_DIR . '/admin/modules/settings/views/permalink-settings.php'; ?> |
| 122 |
<?php do_action('wpfunnels_after_permalink_settings'); ?> |
| 123 |
</div> |
| 124 |
<!-- /Permalink Settings --> |
| 125 |
|
| 126 |
<div class="wpfnl-funnel__single-settings event-tracking" id="event-tracking-setting"> |
| 127 |
<?php if( $is_pro_activated ){ ?> |
| 128 |
|
| 129 |
<div class="facebook-pixel"> |
| 130 |
<h4 class="settings-title"> |
| 131 |
<?php require WPFNL_DIR . '/admin/partials/icons/facebook-pixel-icon.php'; ?> |
| 132 |
<?php echo __('Facebook Pixel Integration', 'wpfnl'); ?> |
| 133 |
<a href="https://getwpfunnels.com/docs/funnel-integrations/facebook-pixel-integration/" target="_blank" title="Guide On Facebook Pixel Integration"> |
| 134 |
<?php include WPFNL_DIR . '/admin/partials/icons/doc-icon.php'; ?> |
| 135 |
</a> |
| 136 |
</h4> |
| 137 |
<?php do_action('wpfunnels_before_facebook_pixel_settings'); ?> |
| 138 |
<?php require WPFNL_DIR . '/admin/modules/settings/views/facebook-pixel-settings.php'; ?> |
| 139 |
<?php do_action('wpfunnels_after_facebook_pixel_settings'); ?> |
| 140 |
</div> |
| 141 |
<!-- /Facebook Pixel --> |
| 142 |
|
| 143 |
<div class="gtm"> |
| 144 |
<h4 class="settings-title"> |
| 145 |
<?php require WPFNL_DIR . '/admin/partials/icons/gtm-icon.php'; ?> |
| 146 |
<?php echo __('Google Tag Manager (GTM) Integration', 'wpfnl'); ?> |
| 147 |
<a href="https://getwpfunnels.com/docs/funnel-integrations/google-tag-manager-integration/" target="_blank" title="Guide On Google Tag Manager Integration"> |
| 148 |
<?php include WPFNL_DIR . '/admin/partials/icons/doc-icon.php'; ?> |
| 149 |
</a> |
| 150 |
</h4> |
| 151 |
<?php do_action('wpfunnels_before_gtm_settings'); ?> |
| 152 |
<?php require WPFNL_DIR . '/admin/modules/settings/views/gtm-settings.php'; ?> |
| 153 |
<?php do_action('wpfunnels_after_gtm_settings'); ?> |
| 154 |
</div> |
| 155 |
<!-- /GTM Settings --> |
| 156 |
|
| 157 |
<!-- <div class="utm"> |
| 158 |
<h4 class="settings-title"> |
| 159 |
<?php //require WPFNL_DIR . '/admin/partials/icons/utm-icon.php'; ?> |
| 160 |
<?php //echo __('UTM Settings', 'wpfnl'); ?> |
| 161 |
<a href="https://getwpfunnels.com/docs/funnel-integrations/utm-parameters/" target="_blank" title="Guide On UTM Integration"> |
| 162 |
<?php //include WPFNL_DIR . '/admin/partials/icons/doc-icon.php'; ?> |
| 163 |
</a> |
| 164 |
</h4> |
| 165 |
<?php //do_action('wpfunnels_before_utm_settings'); ?> |
| 166 |
<?php //require WPFNL_DIR . '/admin/modules/settings/views/utm-settings.php'; ?> |
| 167 |
<?php //do_action('wpfunnels_after_utm_settings'); ?> |
| 168 |
</div> --> |
| 169 |
<!-- /UTM Settings --> |
| 170 |
|
| 171 |
<?php }else{ ?> |
| 172 |
<a href="<?php echo $pro_url; ?>" target="_blank" title="<?php _e( 'Click to Upgrade Pro', 'wpfnl' ); ?>"> |
| 173 |
<span class="pro-tag"><?php echo __( 'Get Pro', 'wpfnl' ); ?></span> |
| 174 |
</a> |
| 175 |
<?php } ?> |
| 176 |
</div> |
| 177 |
<!-- /event-tracking-setting --> |
| 178 |
|
| 179 |
<div class="wpfnl-funnel__single-settings advance-settings" id="advance-settings"> |
| 180 |
<?php |
| 181 |
$rollback_versions = $this->get_roll_back_versions(); |
| 182 |
?> |
| 183 |
<?php require WPFNL_DIR . '/admin/modules/settings/views/advance-settings.php'; ?> |
| 184 |
</div> |
| 185 |
|
| 186 |
<div class="wpfnl-funnel__single-settings log-settings" id="log-settings"> |
| 187 |
<?php |
| 188 |
$files = \Wpfnl_Logger::get_log_files(); |
| 189 |
?> |
| 190 |
<?php require WPFNL_DIR . '/admin/modules/settings/views/log-settings.php'; ?> |
| 191 |
</div> |
| 192 |
<!-- /advance Settings --> |
| 193 |
|
| 194 |
</div> |
| 195 |
<!-- /funnel-settings__wrapper --> |
| 196 |
|
| 197 |
<div class="wpfnl-funnel-settings__footer"> |
| 198 |
<span class="wpfnl-alert box"></span> |
| 199 |
<button class="btn-default update" id="wpfnl-update-global-settings" > |
| 200 |
<?php echo __('Save', 'wpfnl'); ?> |
| 201 |
<span class="wpfnl-loader"></span> |
| 202 |
</button> |
| 203 |
</div> |
| 204 |
|
| 205 |
</div> |
| 206 |
<!-- /funnel-settings__inner-content --> |
| 207 |
<?php do_action('wpfunnels_after_settings'); ?> |
| 208 |
</div> |
| 209 |
</div> |
| 210 |
|
| 211 |
</div> |
| 212 |
<!-- /.wpfnl --> |
| 213 |
|