Файловый менеджер - Редактировать - /home/digitalm/invisalign/wp-content/themes/healthy-smiles/kits/traits/var-group-controls/border.php
Назад
<?php namespace HealthySmilesSpace\Kits\Traits\VarGroupControls; use Elementor\Group_Control_Border; if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly } /** * Border trait. * * Allows to use a group control border with css vars. * * @since 1.0.0 */ trait Border { /** * Add border group control with css vars. * * @since 1.0.0 * * @param string $key Control key. * @param array $args Control arguments. */ protected function var_group_control_border( $key = '', $args = array() ) { list( $name, $prefix ) = $this->get_control_parameters( $key, 'border', 'bd' ); $default_args = array( 'name' => $name, 'fields_options' => array( 'border' => array( 'options' => array( '' => _x( 'Default', 'Border Control', 'healthy-smiles' ), 'none' => _x( 'None', 'Border Control', 'healthy-smiles' ), 'solid' => _x( 'Solid', 'Border Control', 'healthy-smiles' ), 'double' => _x( 'Double', 'Border Control', 'healthy-smiles' ), 'dotted' => _x( 'Dotted', 'Border Control', 'healthy-smiles' ), 'dashed' => _x( 'Dashed', 'Border Control', 'healthy-smiles' ), 'groove' => _x( 'Groove', 'Border Control', 'healthy-smiles' ), ), 'selectors' => array( ':root' => "--{$prefix}-style: {{VALUE}};", ), ), 'width' => array( 'selectors' => array( ':root' => "--{$prefix}-width-top: {{TOP}}{{UNIT}};" . "--{$prefix}-width-right: {{RIGHT}}{{UNIT}};" . "--{$prefix}-width-bottom: {{BOTTOM}}{{UNIT}};" . "--{$prefix}-width-left: {{LEFT}}{{UNIT}};", ), 'condition' => array( 'border!' => array( '', 'none', ), ), ), 'color' => array( 'dynamic' => array(), 'selectors' => array( ':root' => "--{$prefix}-color: {{VALUE}};", ), 'condition' => array( 'border!' => 'none', ), ), ), ); $this->add_group_control( Group_Control_Border::get_type(), array_replace_recursive( $default_args, $args ) ); } }
| ver. 1.4 |
Github
|
.
| PHP 8.3.23 | Генерация страницы: 0.05 |
proxy
|
phpinfo
|
Настройка