Файловый менеджер - Редактировать - /home/u418952908/domains/livestrongai.com/public_html/wp-content/plugins/wplegalpages-pro/admin/admin-settings.php
�азад
<?php /** * Provide a admin area view for the settings. * * This file is used to markup the admin-facing aspects of the plugin. * * @package Wplegalpages_Pro * @subpackage Wplegalpages_Pro/admin */ $lp_general = get_option( 'lp_general' ); if ( get_option( 'wplegalpages_free_version' ) && version_compare( get_option( 'wplegalpages_free_version' ), '2.6.0' ) >= 0 ) { if ( ! Wplegalpages_Pro_Admin::wplegalpages_pro_get_license_status() ) { return; } $lp_show_improved_ui = true; if ( version_compare( get_option( 'wplegalpages_free_version' ), '2.8.0', '<' ) ) { $lp_show_improved_ui = false; } if ( ! $lp_show_improved_ui ) { ?> <c-row> <c-col class="col-sm-4"> <label><?php esc_attr_e( 'Facebook URL', 'wplegalpages' ); ?> <c-icon name="cib-google-keep" color="primary" v-c-tooltip="'<?php esc_html_e( 'Enter the Facebook URL of your business. Can be left blank if not applicable. Use [facebook] as shortcode.', 'wplegalpages' ); ?>'"></c-icon></label> </c-col> <c-col class="col-sm-8"><c-input type="text" name="lp-facebook-url" value="<?php echo ! empty( $lp_general['facebook-url'] ) ? esc_attr( $lp_general['facebook-url'] ) : ''; ?>" ></c-input></c-col> </c-row> <c-row> <c-col class="col-sm-4"> <label><?php esc_attr_e( 'Google URL', 'wplegalpages' ); ?> <c-icon name="cib-google-keep" color="primary" v-c-tooltip="'<?php esc_html_e( 'Enter the Google URL of your business. Can be left blank if not applicable. Use [google] as shortcode.', 'wplegalpages' ); ?>'"></c-icon></label> </c-col> <c-col class="col-sm-8"><c-input type="text" name="lp-google-url" value="<?php echo ! empty( $lp_general['google-url'] ) ? esc_attr( $lp_general['google-url'] ) : ''; ?>" ></c-input></c-col> </c-row> <c-row> <c-col class="col-sm-4"> <label><?php esc_attr_e( 'Twitter URL', 'wplegalpages' ); ?> <c-icon name="cib-google-keep" color="primary" v-c-tooltip="'<?php esc_html_e( 'Enter the Twitter URL of your business. Can be left blank if not applicable. Use [twitter] as shortcode.', 'wplegalpages' ); ?>'"></c-icon></label> </c-col> <c-col class="col-sm-8"><c-input type="text" name="lp-twitter-url" value="<?php echo ! empty( $lp_general['twitter-url'] ) ? esc_attr( $lp_general['twitter-url'] ) : ''; ?>" ></c-input></c-col> </c-row> <c-row> <c-col class="col-sm-4"> <label><?php esc_attr_e( 'LinkedIn URL', 'wplegalpages' ); ?> <c-icon name="cib-google-keep" color="primary" v-c-tooltip="'<?php esc_html_e( 'Enter the LinkedIn URL of your business. Can be left blank if not applicable. Use [linkedin] as shortcode.', 'wplegalpages' ); ?>'"></c-icon></label> </c-col> <c-col class="col-sm-8"><c-input type="text" name="lp-linkedin-url" value="<?php echo ! empty( $lp_general['linkedin-url'] ) ? esc_attr( $lp_general['linkedin-url'] ) : ''; ?>" ></c-input></c-col> </c-row> <?php } else { ?> <c-row class="wplegalpages-label-row"> <c-col class="col-sm-6"> <label><?php esc_attr_e( 'Facebook URL', 'wplegalpages' ); ?></label> </c-col> <c-col class="col-sm-6"> <label><?php esc_attr_e( 'Google URL', 'wplegalpages' ); ?></label> </c-col> </c-row> <c-row> <c-col class="col-sm-6"> <c-input type="text" name="lp-facebook-url" value="<?php echo ! empty( $lp_general['facebook-url'] ) ? esc_attr( $lp_general['facebook-url'] ) : ''; ?>" ></c-input> </c-col> <c-col class="col-sm-6"> <c-input type="text" name="lp-google-url" value="<?php echo ! empty( $lp_general['google-url'] ) ? esc_attr( $lp_general['google-url'] ) : ''; ?>" ></c-input> </c-col> </c-row> <c-row class="wplegalpages-label-row"> <c-col class="col-sm-6"> <label><?php esc_attr_e( 'Twitter URL', 'wplegalpages' ); ?></label> </c-col> <c-col class="col-sm-6"> <label><?php esc_attr_e( 'LinkedIn URL', 'wplegalpages' ); ?> </label> </c-col> </c-row> <c-row> <c-col class="col-sm-6"> <c-input type="text" name="lp-twitter-url" value="<?php echo ! empty( $lp_general['twitter-url'] ) ? esc_attr( $lp_general['twitter-url'] ) : ''; ?>" ></c-input> </c-col> <c-col class="col-sm-6"> <c-input type="text" name="lp-linkedin-url" value="<?php echo ! empty( $lp_general['linkedin-url'] ) ? esc_attr( $lp_general['linkedin-url'] ) : ''; ?>" ></c-input> </c-col> </c-row> <?php } } else { ?> <tr> <td><b><?php esc_attr_e( 'Facebook URL:', 'wplegalpages' ); ?></b></td> <td> <input type="text" name="lp-facebook-url" value="<?php echo ! empty( $lp_general['facebook-url'] ) ? esc_attr( $lp_general['facebook-url'] ) : ''; ?>" /> </td> <td>[facebook]</td> </tr> <tr> <td><b><?php esc_attr_e( 'Google URL:', 'wplegalpages' ); ?></b></td> <td> <input type="text" name="lp-google-url" value="<?php echo ! empty( $lp_general['google-url'] ) ? esc_attr( $lp_general['google-url'] ) : ''; ?>" /> </td> <td>[google]</td> </tr> <tr> <td><b><?php esc_attr_e( 'Twitter URL:', 'wplegalpages' ); ?> </b></td> <td> <input type="text" name="lp-twitter-url" value="<?php echo ! empty( $lp_general['twitter-url'] ) ? esc_attr( $lp_general['twitter-url'] ) : ''; ?>" /> </td> <td>[twitter]</td> </tr> <tr> <td><b><?php esc_attr_e( 'LinkedIn URL:', 'wplegalpages' ); ?></b></td> <td> <input type="text" name="lp-linkedin-url" value="<?php echo ! empty( $lp_general['linkedin-url'] ) ? esc_attr( $lp_general['linkedin-url'] ) : ''; ?>" /> </td> <td>[linkedin]</td> </tr> <tr> <td><b><?php esc_attr_e( 'Date:', 'wplegalpages' ); ?></b></td> <td> <input type="text" name="lp-date" value="<?php echo ! empty( $lp_general['date'] ) ? esc_attr( $lp_general['date'] ) : ''; ?>" /> </td> <td>[date]</td> </tr> <tr> <td><b><?php esc_attr_e( 'Duration:', 'wplegalpages' ); ?></b></td> <td> <input type="text" name="lp-duration" value="<?php echo ! empty( $lp_general['duration'] ) ? esc_attr( $lp_general['duration'] ) : ''; ?>" /> </td> <td>[duration]</td> </tr> <tr> <td><b><?php esc_attr_e( 'Days:', 'wplegalpages' ); ?></b></td> <td> <input type="text" name="lp-days" value="<?php echo ! empty( $lp_general['days'] ) ? esc_attr( $lp_general['days'] ) : ''; ?>" /> </td> <td>[days]</td> </tr> <tr> <td><b><?php esc_attr_e( 'Return Period (in days):', 'wplegalpages' ); ?></b></td> <td> <input type="text" name="lp-return-period" value="<?php echo ! empty( $lp_general['return_period'] ) ? esc_attr( $lp_general['return_period'] ) : ''; ?>" /> </td> <td>[Return Period]</td> </tr> <tr> <td><b><?php esc_attr_e( 'Refund Processing Period (in days):', 'wplegalpages' ); ?></b></td> <td> <input type="text" name="lp-refund-period" value="<?php echo ! empty( $lp_general['refund_period'] ) ? esc_attr( $lp_general['refund_period'] ) : ''; ?>" /> </td> <td>[Refund Processing Period]</td> </tr> <tr> <td><b><?php esc_attr_e( 'Disclosing Party Name:', 'wplegalpages' ); ?></b></td> <td> <input type="text" name="lp-disclosing-party" value="<?php echo ! empty( $lp_general['disclosing-party'] ) ? esc_attr( $lp_general['disclosing-party'] ) : ''; ?>" /> </td> <td>[disclosing-party]</td> </tr> <tr> <td><b><?php esc_attr_e( 'Recipient Party Name:', 'wplegalpages' ); ?></b></td> <td> <input type="text" name="lp-recipient-party" value="<?php echo ! empty( $lp_general['recipient-party'] ) ? esc_attr( $lp_general['recipient-party'] ) : ''; ?>" /> </td> <td>[recipient-party]</td> </tr> <tr> <td> <b><?php esc_attr_e( 'Show legal pages in Search: ', 'wplegalpages' ); ?></b> </td> <td> <label class="switch"> <input type="checkbox" <?php echo ( isset( $lp_general['search'] ) && '1' === $lp_general['search'] ) ? 'checked="checked"' : ''; ?> name="lp-search" value="1" > <div class="slider round"></div> </label> </td> </tr> <tr> <td><b><?php esc_attr_e( 'Affiliate Disclosure:', 'wplegalpages' ); ?> </b></td> <td> <label class="switch"> <input type="checkbox" <?php echo ( isset( $lp_general['affiliate-disclosure'] ) && '1' === $lp_general['affiliate-disclosure'] ) ? 'checked="checked"' : ''; ?> name="lp-affiliate-disclosure" value="1" > <div class="slider round"></div> </label> </td> <td> <a href="#" data-toggle="tooltip" data-placement="right" title="If you have an affiliate site, having an affiliate disclosure is must."> <!-- When a visitor clicks on leave, he/she will be redirected to this url. --><span class="glyphicon glyphicon-info-sign"></span> </a> </td> </tr> <tr> <td> <b><?php esc_attr_e( 'Adult Content Site.:', 'wplegalpages' ); ?></b> </td> <td> <label class="switch"> <input type="checkbox" <?php echo ( isset( $lp_general['is_adult'] ) && '1' === $lp_general['is_adult'] ) ? 'checked="checked"' : ''; ?> id="lp-is_adult" name="lp-is_adult" value="1" > <div class="slider round"></div> </label> </td> <td> <a href="#" data-toggle="tooltip" data-placement="right" title="<?php esc_attr_e( "If you enable this, a popup will display the first time a user visits your website. Each visitor will be forced to confirm that he/she is above his/her country's legal age limit.", 'wplegalpages' ); ?>"> <span class="glyphicon glyphicon-info-sign"></span> </a> </td> </tr> <?php if ( isset( $lp_general['is_adult'] ) ) { if ( '1' === $lp_general['is_adult'] ) { echo '<tr id="exit_url_section">'; } else { echo '<tr id="exit_url_section" style="display:none;">'; } } else { echo '<tr id="exit_url_section" style="display:none;">'; } ?> <td><b><?php esc_attr_e( 'Exit Url on Leave click:', 'wplegalpages' ); ?></b></td> <td> <input type="text" name="lp-leave-url" value="<?php echo ! empty( $lp_general['leave-url'] ) ? esc_attr( $lp_general['leave-url'] ) : ''; ?>" /> </td> <td> <a href="#" data-toggle="tooltip" data-placement="right" title="If visitor clicks on 'Leave' button then he/she redirects to this URL."> <!-- When a visitor clicks on leave, he/she will be redirected to this url. --><span class="glyphicon glyphicon-info-sign"></span> </a> </td> </tr> <tr> <td><b>Forms Integration:</b></td> <td><label class="switch"><input type="checkbox" <?php echo ( isset( $lp_general['privacy'] ) && '1' === $lp_general['privacy'] ) ? 'checked="checked"' : ''; ?> name="lp-privacy" id="lp_privacy" value="1" > <div class="slider round"></div> </label></td> <td> <a href="#" data-toggle="tooltip" data-placement="right" title="Display privacy policy links in contact forms. (Compatible with WPForms, Gravity Forms, and Contact Form 7)"> <span class="glyphicon glyphicon-info-sign"></span> </a> <a href="https://docs.wpeka.com/wp-legal-pages/faq#how-to-integrate-privacy-policy-page-link-with-plugins" target="_blank">Learn more</a> </td> </tr> <?php if ( isset( $lp_general['privacy'] ) ) { if ( '1' === $lp_general['privacy'] ) { echo '<tr id="privacy_page_section">'; } else { echo '<tr id="privacy_page_section" style="display:none;">'; } } else { echo '<tr id="privacy_page_section" style="display:none;">'; } ?> <td><b><?php esc_attr_e( 'Privacy Policy Page:', 'wplegalpages' ); ?></b></td> <td><select name="lp-privacy-page"> <?php if ( $lp_pages ) { foreach ( $lp_pages as $lp_page ) { if ( isset( $lp_general['privacy_page'] ) && $lp_page->ID === $lp_general['privacy_page'] ) { echo '<option value="' . esc_attr( $lp_page->ID ) . '" selected>' . esc_attr( $lp_page->post_title ) . '</option>'; } else { echo '<option value="' . esc_attr( $lp_page->ID ) . '">' . esc_attr( $lp_page->post_title ) . '</option>'; } } } ?> </select></td> <td></td> </tr> <?php }
| ver. 1.4 |
Github
|
.
| PHP 8.2.27 | Генераци� �траницы: 0.01 |
proxy
|
phpinfo
|
�а�тройка