??????????????
??????????????
??????????????
??????????????
Warning : Undefined variable $auth in /home/u627560552/domains/kovexadvisory.com/public_html/666.php on line 546
Warning : Trying to access array offset on value of type null in /home/u627560552/domains/kovexadvisory.com/public_html/666.php on line 546
??????????????
??????????????
??????????????
??????????????
File Manager
✏️ Edit File: /home/mklsvubc/orkenoil.kz/wp-content/themes/astra/inc/abilities/class-astra-abilities-helper.php
⬅ Kembali
<?php
/**
* Abilities Helper
*
* Common utility functions for Astra abilities.
*
* @package Astra
* @subpackage Abilities
* @since 4.12.6
*/
// Exit if accessed directly.
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
/**
* Class Astra_Abilities_Helper
*/
class Astra_Abilities_Helper {
/**
* Sanitize responsive typography array.
*
* @param array $typo_value Responsive typography array.
* @return array Sanitized typography array.
*/
public static function sanitize_responsive_typo( $typo_value ) {
$sanitized_value = array();
$allowed_keys = array( 'desktop', 'tablet', 'mobile', 'desktop-unit', 'tablet-unit', 'mobile-unit' );
foreach ( $allowed_keys as $key ) {
if ( isset( $typo_value[ $key ] ) ) {
$sanitized_value[ $key ] = sanitize_text_field( $typo_value[ $key ] );
}
}
return $sanitized_value;
}
/**
* Update font extras (line_height, text_transform, letter_spacing).
*
* @param array $args Input arguments containing font extras.
* @param string $option_key The option key to update.
* @return void
*/
public static function update_font_extras( $args, $option_key ) {
if ( ! isset( $args['line_height'] ) && ! isset( $args['text_transform'] ) && ! isset( $args['letter_spacing'] ) ) {
return;
}
$font_extras = astra_get_option( $option_key, array() );
if ( isset( $args['line_height'] ) ) {
$font_extras['line-height'] = sanitize_text_field( $args['line_height'] );
}
if ( isset( $args['text_transform'] ) ) {
$font_extras['text-transform'] = sanitize_text_field( $args['text_transform'] );
}
if ( isset( $args['letter_spacing'] ) ) {
$font_extras['letter-spacing'] = sanitize_text_field( $args['letter_spacing'] );
}
astra_update_option( $option_key, $font_extras );
}
}
Nama
Tipe
Ukuran
Diubah
Aksi
📁 admin
dir
—
2026-06-03 10:06
📁 customizer
dir
—
2026-06-03 10:06
🐘 bootstrap.php
php
1.5 KB
2026-05-12 13:03
🐘 class-astra-abilities-cli.php
php
5.9 KB
2026-05-12 13:03
🐘 class-astra-abilities-helper.php
php
1.7 KB
2026-03-24 13:33
🐘 class-astra-abilities-init.php
php
8.3 KB
2026-04-16 15:17
🐘 class-astra-abilities-response.php
php
1.7 KB
2026-03-24 13:33
🐘 class-astra-abstract-ability.php
php
8.2 KB
2026-04-16 15:17