Server : Apache System : Linux pod-100823:apache2_74:v0.5.7 5.4.0-1138-gcp #147~18.04.1-Ubuntu SMP Mon Oct 7 21:46:26 UTC 2024 x86_64 User : www-data ( 33) PHP Version : 7.4.33.7 Disable Function : apache_child_terminate,apache_get_modules,apache_get_version,apache_getenv,apache_note,apache_setenv,disk_free_space,disk_total_space,diskfreespace,dl,exec,fastcgi_finish_request,link,opcache_compile_file,opcache_get_configuration,opcache_invalidate,opcache_is_script_cached,opcache_reset,passthru,pclose,pcntl_exec,popen,posix_getpid,posix_getppid,posix_getpwuid,posix_kill,posix_mkfifo,posix_setegid,posix_seteuid,posix_setgid,posix_setpgid,posix_setsid,posix_setuid,posix_uname,proc_close,proc_get_status,proc_nice,proc_open,proc_terminate,realpath_cache_get,shell_exec,show_source,symlink,system Directory : /nas/content/live/attorneyexperi/wp-content/plugins/wp-rocket/views/settings/fields/ |
<?php /** * RocketCDN template. * * @since 3.5 */ defined( 'ABSPATH' ) || exit; $rocket_cnames = get_rocket_option( 'cdn_cnames' ); $rocket_cnames_zone = get_rocket_option( 'cdn_zone' ); ?> <div class="wpr-fieldsContainer-fieldset"> <div class="wpr-field"> <div class="wpr-field-description-label"> <?php echo $data['label']; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Dynamic content is properly escaped in the view. ?> </div> <?php if ( ! empty( $data['description'] ) ) : ?> <div class="wpr-field-description"> <?php echo $data['description']; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Dynamic content is properly escaped in the view. ?> </div> <?php endif; ?> <div id="wpr-cnames-list"> <?php if ( $rocket_cnames ) : foreach ( $rocket_cnames as $key => $url ) : // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound ?> <div class="wpr-text"> <label for="cdn_cnames_<?php echo esc_attr( $key ); ?>" class="screen-reader-text"><?php esc_html_e( 'CDN CNAME', 'rocket' ); ?></label> <input type="text" id="cdn_cnames_<?php echo esc_attr( $key ); ?>" name="wp_rocket_settings[cdn_cnames][<?php echo esc_attr( $key ); ?>]" value="<?php echo esc_attr( $url ); ?>" placeholder="cdn.example.com" /> <input type="hidden" name="wp_rocket_settings[cdn_zone][<?php echo esc_attr( $key ); ?>]" value="<?php echo esc_attr( $rocket_cnames_zone[ $key ] ); ?>" /> <?php if ( ! empty( $data['helper'] ) ) : ?> <div class="wpr-field-description wpr-field-description-helper"> <?php echo $data['helper']; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Dynamic content is properly escaped in the view. ?> </div> <?php endif; ?> </div> <?php endforeach; ?> <?php else : ?> <div class="wpr-text"> <label for="cdn_cnames" class="screen-reader-text"><?php esc_html_e( 'CDN CNAME', 'rocket' ); ?></label> <input type="text" id="cdn_cnames" name="wp_rocket_settings[cdn_cnames][]" value="" placeholder="xxxxxx.rocketcdn.me" /> <input type="hidden" name="wp_rocket_settings[cdn_zone][]" value="all" /> <?php if ( ! empty( $data['helper'] ) ) : ?> <div class="wpr-field-description wpr-field-description-helper"> <?php echo $data['helper']; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Dynamic content is properly escaped in the view. ?> </div> <?php endif; ?> </div> <?php endif; ?> </div> </div> </div> <div class="wpr-optionHeader"> <h3 class="wpr-title2"><?php esc_html_e( 'Purge RocketCDN cache', 'rocket' ); ?></h3> </div> <div class="wpr-fieldsContainer"> <div class="wpr-fieldsContainer-description"> <?php printf( // translators: %s is a "Learn more" link. esc_html__( 'Purges RocketCDN cached resources for your website. %s', 'rocket' ), '<a href="' . esc_url( $data['beacon']['url'] ) . '" data-beacon-article="' . esc_attr( $data['beacon']['id'] ) . '" rel="noopener noreferrer" target="_blank">' . esc_html__( 'Learn more', 'rocket' ) . '</a>' ); ?> </div><br> <?php $this->render_action_button( 'link', 'rocket_purge_rocketcdn', [ 'label' => __( 'Clear all RocketCDN cache files', 'rocket' ), 'attributes' => [ 'class' => 'wpr-button wpr-button--icon wpr-button--small wpr-button--purple wpr-icon-trash', ], ] ); ?> </div>