Файловый менеджер - Редактировать - /home/admin/domains/octawebtools.com/public_html/wp-content/plugins/gutenverse/includes/style/class-post-content.php
�азад
<?php /** * Gutenverse Post_Content * * @author Jegstudio * @since 1.0.0 * @package gutenverse\style */ namespace Gutenverse\Style; use Gutenverse\Framework\Style_Abstract; /** * Class Post_Content * * @package gutenverse\style */ class Post_Content extends Style_Abstract { /** * Block Directory * * @var string */ protected $block_dir = GUTENVERSE_DIR . '/block/'; /** * Block Name * * @var array */ protected $name = 'post-content'; /** * Constructor * * @param array $attrs Attribute. */ public function __construct( $attrs ) { parent::__construct( $attrs ); $this->set_feature( array( 'background' => null, 'border' => null, 'positioning' => null, 'animation' => null, 'advance' => null, 'mask' => null, ) ); } /** * Generate style base on attribute. */ public function generate() { $theme_settings = gutenverse_get_theme_settings(); if ( ! empty( $this->attrs['inheritLayout'] ) && isset( $theme_settings['layout'] ) ) { $this->inject_style( array( 'selector' => ".{$this->element_id} > *:not(.alignfull)", 'property' => function ( $value ) { return "max-width: {$value['contentSize']}; margin-left:auto; margin-right:auto;"; }, 'value' => $theme_settings['layout'], 'device_control' => false, ) ); } if ( isset( $this->attrs['alignment'] ) ) { $this->inject_style( array( 'selector' => ".{$this->element_id} > *", 'property' => function ( $value ) { return "justify-content: {$value}; text-align: {$this->handle_align($value)};"; }, 'value' => $this->attrs['alignment'], 'device_control' => true, ) ); } if ( isset( $this->attrs['typography'] ) ) { $this->inject_typography( array( 'selector' => ".{$this->element_id} > *", 'value' => $this->attrs['typography'], ) ); } if ( isset( $this->attrs['color'] ) ) { $this->inject_style( array( 'selector' => ".{$this->element_id} > *", 'property' => function ( $value ) { return $this->handle_color( $value, 'color' ); }, 'value' => $this->attrs['color'], 'device_control' => false, ) ); } if ( isset( $this->attrs['textShadow'] ) ) { $this->inject_style( array( 'selector' => ".{$this->element_id} > *", 'property' => function ( $value ) { return $this->handle_text_shadow( $value ); }, 'value' => $this->attrs['textShadow'], 'device_control' => false, ) ); } if ( isset( $this->attrs['colorHover'] ) ) { $this->inject_style( array( 'selector' => ".{$this->element_id}:hover > *", 'property' => function ( $value ) { return $this->handle_color( $value, 'color' ); }, 'value' => $this->attrs['colorHover'], 'device_control' => false, ) ); } if ( isset( $this->attrs['textShadowHover'] ) ) { $this->inject_style( array( 'selector' => ".{$this->element_id}:hover > *", 'property' => function ( $value ) { return $this->handle_text_shadow( $value ); }, 'value' => $this->attrs['textShadowHover'], 'device_control' => false, ) ); } } }
| ver. 1.4 |
Github
|
.
| PHP 8.1.32 | Генераци� �траницы: 0 |
proxy
|
phpinfo
|
�а�тройка