File "class-notice.php"
Full Path: /home/aiclgcwq/photonindustriespvt.com/wp-content/themes/woodmart/inc/admin/modules/options/controls/notice/class-notice.php
File size: 679 bytes
MIME-type: text/x-php
Charset: utf-8
<?php
/**
* Notice control.
*
* @package xts
*/
namespace XTS\Admin\Modules\Options\Controls;
if ( ! defined( 'ABSPATH' ) ) {
exit; // Direct access not allowed.
}
use XTS\Admin\Modules\Options\Field;
/**
* Notice control.
*/
class Notice extends Field {
/**
* Displays the field control HTML.
*
* @since 1.0.0
*
* @return void.
*/
public function render_control() {
$content = str_replace( '{{PERMALINK}}', get_permalink( get_option( 'woocommerce_myaccount_page_id' ) ), $this->args['content'] );
?>
<div class="xts-notice xts-<?php echo esc_attr( $this->args['style'] ); ?>">
<?php echo $content; // phpcs:ignore ?>
</div>
<?php
}
}