HEX
Server: Apache
System: Linux webm013.cluster123.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User: lesanew (165608)
PHP: 8.3.31
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/lesanew/www/wp-content/plugins/neobeat-core/inc/title/layouts/standard/standard-title.php
<?php

class NeoBeatCoreStandardTitle extends NeoBeatCoreTitle {
	private static $instance;

	public function __construct() {
		$this->slug       = 'standard';
		$this->parameters = $this->get_parameters();

		// Add title area inline styles
		add_filter( 'neobeat_filter_add_inline_style', array( $this, 'add_inline_styles' ) );
	}

	public static function get_instance() {
		if ( self::$instance == null ) {
			self::$instance = new self();
		}

		return self::$instance;
	}

	function add_inline_styles( $style ) {
		$styles = array();
		
		$color         = neobeat_core_get_post_value_through_levels( 'qodef_page_title_tagline_color' );
		$bottom_margin = neobeat_core_get_post_value_through_levels( 'qodef_page_title_tagline_bottom_margin' );

		if ( ! empty( $color ) ) {
			$styles['color'] = $color;
		}

		if ( $bottom_margin !== '' ) {
			$styles['margin-bottom'] = intval( $bottom_margin ) . 'px';
		}

		if ( ! empty( $styles ) ) {
			$style .= qode_framework_dynamic_style( '.qodef-page-title.qodef-title--standard .qodef-m-tagline', $styles );
		}

		return $style;
	}

	function get_parameters() {
		$parameters = array();

		$parameters = array_merge( $parameters, array( 'title_tag' => neobeat_core_get_post_value_through_levels( 'qodef_page_title_tag' ) ) );

		return $parameters;
	}
}