add wp-rocket
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
/**
|
||||
* Settings fields container template.
|
||||
*
|
||||
* @since 3.0
|
||||
*
|
||||
* @param array $data {
|
||||
* Fields container data.
|
||||
*
|
||||
* @type string $id Section identifier.
|
||||
* @type string $title Section title.
|
||||
* @type string $description Section description.
|
||||
* @type string $page Page section identifier.
|
||||
* }
|
||||
*/
|
||||
|
||||
defined( 'ABSPATH' ) || exit;
|
||||
|
||||
?>
|
||||
|
||||
<div class="wpr-optionHeader">
|
||||
<h3 class="wpr-title2"><?php echo esc_html( $data['title'] ); ?></h3>
|
||||
<?php if ( ! empty( $data['help'] ) ) : ?>
|
||||
<button data-beacon-id="<?php echo esc_attr( $data['help'] ); ?>" class="wpr-infoAction wpr-infoAction--help wpr-icon-help"><?php esc_html_e( 'Need Help?', 'rocket' ); ?></button>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
|
||||
<div class="wpr-fieldsContainer">
|
||||
<div class="wpr-fieldsContainer-description">
|
||||
<?php echo esc_html( $data['description'] ); ?>
|
||||
</div>
|
||||
<?php $this->render_settings_fields( $data['page'], $data['id'] ); ?>
|
||||
</div>
|
@@ -0,0 +1,46 @@
|
||||
<?php
|
||||
/**
|
||||
* Settings fields container template.
|
||||
*
|
||||
* @since 3.0
|
||||
*
|
||||
* @param array $data {
|
||||
* Fields container data.
|
||||
*
|
||||
* @type string $id Section identifier.
|
||||
* @type string $title Section title.
|
||||
* @type string $description Section description.
|
||||
* @type string $class Section classes.
|
||||
* @type string $helper Section helper text.
|
||||
* @type string $help Data to pass to beacon.
|
||||
* @type string $page Page section identifier.
|
||||
* }
|
||||
*/
|
||||
|
||||
defined( 'ABSPATH' ) || exit;
|
||||
|
||||
?>
|
||||
|
||||
|
||||
<div class="wpr-optionHeader <?php echo esc_attr( $data['class'] ); ?>">
|
||||
<h3 class="wpr-title2"><?php echo esc_html( $data['title'] ); ?></h3>
|
||||
<?php if ( ! empty( $data['help'] ) ) : ?>
|
||||
<a href="<?php echo esc_url( $data['help']['url'] ); ?>" data-beacon-id="<?php echo esc_attr( $data['help']['id'] ); ?>" class="wpr-infoAction wpr-infoAction--help wpr-icon-help" target="_blank"><?php esc_html_e( 'Need Help?', 'rocket' ); ?></a>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
|
||||
<div class="wpr-fieldsContainer <?php echo esc_attr( $data['class'] ); ?>">
|
||||
<div class="wpr-fieldsContainer-description">
|
||||
<?php echo $data['description']; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Dynamic content is properly escaped in the view. ?>
|
||||
</div>
|
||||
|
||||
<fieldset class="wpr-fieldsContainer-fieldset">
|
||||
<?php $this->render_settings_fields( $data['page'], $data['id'] ); ?>
|
||||
</fieldset>
|
||||
|
||||
<?php if ( ! empty( $data['helper'] ) ) : ?>
|
||||
<div class="wpr-fieldsContainer-helper wpr-icon-important">
|
||||
<?php echo $data['helper']; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Dynamic content is properly escaped in the view. ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
/**
|
||||
* Settings fields wrapper template.
|
||||
*
|
||||
* @since 3.0
|
||||
*
|
||||
* @param array $data {
|
||||
* Fields container data.
|
||||
*
|
||||
* @type string $id Section identifier.
|
||||
* @type string $title Section title.
|
||||
* @type string $description Section description.
|
||||
* @type string $help Data to pass to beacon.
|
||||
* @type string $page Page section identifier.
|
||||
* }
|
||||
*/
|
||||
|
||||
defined( 'ABSPATH' ) || exit;
|
||||
|
||||
?>
|
||||
<?php echo esc_html( $data['title'] ); ?>
|
||||
<?php
|
||||
$this->render_settings_fields( $data['page'], $data['id'] );
|
Reference in New Issue
Block a user