PATH:
home
/
lab2454c
/
igpma.com
/
wp-content
/
plugins
/
wp-webhooks
/
core
/
includes
/
partials
/
tabs
<?php /* * Settings Template */ $settings = WPWHPRO()->settings->get_settings(); $settings_nonce_data = WPWHPRO()->settings->get_settings_nonce(); if( did_action( 'wpwh/admin/settings/settings_saved' ) ){ echo WPWHPRO()->helpers->create_admin_notice( 'The settings have been successfully updated. Please refresh the page.', 'success', true ); } ?> <style> .integration-pro { background-color: #ff8e6b; background: linear-gradient( 180deg ,#ff8e6b 0,#f1592a 100%); color: #fff; padding: 2px 10px; border-radius: 50px; margin-left:10px; } .wpwh-go-pro{ background-color: rgba(42,157,143,0.1); padding: 1.5rem 1.875rem; border-radius: 8px; } </style> <div class="wpwh-container"> <form id="wpwh-main-settings-form" method="post" action=""> <div class="wpwh-title-area mb-4"> <h2><?php echo WPWHPRO()->helpers->translate( 'Global Settings', 'wpwhpro-page-settings' ); ?></h2> <p class="wpwh-text-small"><?php echo sprintf( WPWHPRO()->helpers->translate( 'Here you can configure the global settings for our plugin, enable certain features to extend the possibilities for your site, and activate your available webhook actions and triggers.', 'wpwhpro-page-settings' ), WPWH_NAME ); ?></p> </div> <div class="wpwh-settings"> <?php foreach( $settings as $setting_name => $setting ) : if( isset( $setting['dangerzone'] ) && $setting['dangerzone'] ){ continue; } $is_premium = isset( $setting['premium'] ) && $setting['premium'] ? true : false; $is_checked = ( $setting['type'] == 'checkbox' && $setting['value'] == 'yes' ) ? 'checked' : ''; $value = ( $setting['type'] != 'checkbox' ) ? $setting['value'] : '1'; $is_checkbox = ( $setting['type'] == 'checkbox' ) ? true : false; ?> <div class="wpwh-setting"> <div class="wpwh-setting__title"> <label for="<?php echo $setting['id']; ?>"><?php echo $setting['label']; ?><?php echo ($is_premium) ? '<span class="integration-pro">Pro</span>' : ''; ?></label> </div> <div class="wpwh-setting__desc"> <?php echo wpautop( $setting['description'] ); ?> </div> <div class="wpwh-setting__action"> <?php if( $is_checkbox ) : ?> <div class="wpwh-toggle wpwh-toggle--on-off"> <input type="<?php echo $setting['type']; ?>" id="<?php echo $setting['id']; ?>" name="<?php echo $setting_name; ?>" class="wpwh-toggle__input" <?php echo $is_checked; ?>> <label class="wpwh-toggle__btn" for="<?php echo $setting['id']; ?>"></label> </div> <?php else : ?> <input id="<?php echo $setting['id']; ?>" name="<?php echo $setting_name; ?>" type="<?php echo $setting['type']; ?>" class="regular-text" value="<?php echo $value; ?>" <?php echo $is_checked; ?> /> <?php endif; ?> </div> </div> <?php endforeach; ?> </div> <div class="wpwh-text-center mt-4 pt-3"> <button class="wpwh-btn wpwh-btn--secondary active" type="submit" name="wpwh_settings_submit"> <span><?php echo WPWHPRO()->helpers->translate( 'Save All Settings', 'admin-settings' ); ?></span> </button> </div> <div class="wpwh-title-area mb-4 mt-4"> <h2 class="wpwh-text-danger"><?php echo WPWHPRO()->helpers->translate( 'Danger Zone', 'wpwhpro-page-settings' ); ?></h2> <p class="wpwh-text-small"><?php echo sprintf( WPWHPRO()->helpers->translate( 'The settings down below are very powerful and have a huge impact to the functionality of the plugin. Please use them with caution.', 'wpwhpro-page-settings' ), WPWH_NAME ); ?></p> </div> <div class="wpwh-settings"> <?php foreach( $settings as $setting_name => $setting ) : if( isset( $setting['dangerzone'] ) && ! $setting['dangerzone'] ){ continue; } $is_checked = ( $setting['type'] == 'checkbox' && $setting['value'] == 'yes' ) ? 'checked' : ''; $value = ( $setting['type'] != 'checkbox' ) ? $setting['value'] : '1'; $is_checkbox = ( $setting['type'] == 'checkbox' ) ? true : false; ?> <div class="wpwh-setting"> <div class="wpwh-setting__title"> <label for="<?php echo $setting['id']; ?>"><?php echo $setting['label']; ?></label> </div> <div class="wpwh-setting__desc"> <?php echo wpautop( $setting['description'] ); ?> </div> <div class="wpwh-setting__action"> <?php if( $is_checkbox ) : ?> <div class="wpwh-toggle wpwh-toggle--on-off"> <input type="<?php echo $setting['type']; ?>" id="<?php echo $setting['id']; ?>" name="<?php echo $setting_name; ?>" class="wpwh-toggle__input" <?php echo $is_checked; ?>> <label class="wpwh-toggle__btn" for="<?php echo $setting['id']; ?>"></label> </div> <?php else : ?> <input id="<?php echo $setting['id']; ?>" name="<?php echo $setting_name; ?>" type="<?php echo $setting['type']; ?>" class="regular-text" value="<?php echo $value; ?>" <?php echo $is_checked; ?> /> <?php endif; ?> </div> </div> <?php endforeach; ?> </div> <div class="wpwh-text-center mt-4 pt-3"> <button class="wpwh-btn wpwh-btn--secondary active" type="submit" name="wpwh_settings_submit"> <span><?php echo WPWHPRO()->helpers->translate( 'Save All Settings', 'admin-settings' ); ?></span> </button> </div> <?php echo WPWHPRO()->helpers->get_nonce_field( $settings_nonce_data ); ?> </form> </div>
[-] home.php
[edit]
[-] index.php
[edit]
[-] authentication.php
[edit]
[+]
..
[-] receive-data.php
[edit]
[-] settings.php
[edit]
[-] extensions.php
[edit]
[-] pro.php
[edit]
[-] send-data.php
[edit]