GRAYBYTE WORDPRESS FILE MANAGER2845

Server IP : 198.54.121.189 / Your IP : 216.73.216.112
System : Linux premium69.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
PHP Version : 7.4.33
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Directory : /home/giriqfky/trustyourlawyer.com/wp-content/themes/astra/inc/core/
Upload Files :
Current_dir [ Writeable ] Document_root [ Writeable ]

Command :


Current File : /home/giriqfky/trustyourlawyer.com/wp-content/themes/astra/inc/core//class-astra-attr.php
<?php
/**
 * Astra Attributes Class.
 *
 * @package     Astra
 * @link        https://wpastra.com/
 * @since       Astra 1.6.2
 */

if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly.
}

if ( ! class_exists( 'Astra_Attr' ) ) {

	/**
	 * Class Astra_Attr
	 */
	class Astra_Attr {
		/**
		 * Store Instance on Current Class.
		 *
		 * @var object instance
		 */
		private static $instance;

		/**
		 * Initiator
		 */
		public static function get_instance() {
			if ( ! isset( self::$instance ) ) {
				self::$instance = new self();
			}
			return self::$instance;
		}

		/**
		 * Initialuze the Class.
		 *
		 * @since 1.6.2
		 */
		private function __construct() {
		}

		/**
		 * Build list of attributes into a string and apply contextual filter on string.
		 *
		 * The contextual filter is of the form `astra_attr_{context}_output`.
		 *
		 * @since 1.6.2
		 *
		 * @param string $context    The context, to build filter name.
		 * @param array  $attributes Optional. Extra attributes to merge with defaults.
		 * @param array  $args       Optional. Custom data to pass to filter.
		 * @return string String of HTML attributes and values.
		 */
		public function astra_attr( $context, $attributes = array(), $args = array() ) {

			$attributes = $this->astra_parse_attr( $context, $attributes, $args );

			$output = '';

			// Cycle through attributes, build tag attribute string.
			foreach ( $attributes as $key => $value ) {

				if ( ! $value ) {
					continue;
				}

				if ( true === $value ) {
					$output .= esc_html( $key ) . ' ';
				} else {
					$output .= sprintf( '%s="%s" ', esc_html( $key ), esc_attr( $value ) );
				}
			}

			$output = apply_filters( "astra_attr_{$context}_output", $output, $attributes, $context, $args );

			return trim( $output );
		}

		/**
		 * Merge array of attributes with defaults, and apply contextual filter on array.
		 *
		 * The contextual filter is of the form `astra_attr_{context}`.
		 *
		 * @since 1.6.2
		 *
		 * @param string $context    The context, to build filter name.
		 * @param array  $attributes Optional. Extra attributes to merge with defaults.
		 * @param array  $args       Optional. Custom data to pass to filter.
		 * @return array Merged and filtered attributes.
		 */
		public function astra_parse_attr( $context, $attributes = array(), $args = array() ) {

			$defaults = array(
				'class' => sanitize_html_class( $context ),
			);

			$attributes = wp_parse_args( $attributes, $defaults );

			// Contextual filter.
			return apply_filters( "astra_attr_{$context}", $attributes, $context, $args );
		}

	}

}

/**
 * Kicking this off by calling 'get_instance()' method
 */
Astra_Attr::get_instance();

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
July 10 2025 04:32:37
giriqfky / giriqfky
0755
builder
--
July 10 2025 04:32:37
giriqfky / giriqfky
0755
deprecated
--
July 10 2025 04:32:37
giriqfky / giriqfky
0755
markup
--
July 10 2025 04:32:37
giriqfky / giriqfky
0755
.htaccess
0.41 KB
July 10 2025 04:32:37
giriqfky / giriqfky
0644
class-astra-admin-helper.php
2.065 KB
April 02 2025 11:04:24
giriqfky / giriqfky
0644
class-astra-admin-settings.php
24.703 KB
April 24 2025 09:51:30
giriqfky / giriqfky
0644
class-astra-attr.php
2.639 KB
April 02 2025 11:04:24
giriqfky / giriqfky
0644
class-astra-enqueue-scripts.php
25.265 KB
April 15 2025 10:44:56
giriqfky / giriqfky
0644
class-astra-icons.php
12.078 KB
April 24 2025 09:51:30
giriqfky / giriqfky
0644
class-astra-theme-options.php
34.496 KB
April 15 2025 10:44:56
giriqfky / giriqfky
0644
class-astra-walker-page.php
4.51 KB
April 02 2025 11:04:24
giriqfky / giriqfky
0644
class-astra-wp-editor-css.php
63.695 KB
June 17 2025 10:38:26
giriqfky / giriqfky
0644
class-gutenberg-editor-css.php
78.8 KB
May 20 2025 09:12:30
giriqfky / giriqfky
0644
class-theme-strings.php
5.08 KB
April 02 2025 11:04:24
giriqfky / giriqfky
0644
common-functions.php
64.325 KB
June 05 2025 15:23:18
giriqfky / giriqfky
0644
index.php
0.108 KB
November 11 2024 15:51:54
giriqfky / giriqfky
0644
sidebar-manager.php
2.195 KB
April 02 2025 11:04:24
giriqfky / giriqfky
0644
theme-hooks.php
8.941 KB
November 11 2024 15:51:54
giriqfky / giriqfky
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF