403Webshell
Server IP : 172.67.158.161  /  Your IP : 18.222.162.252
Web Server : LiteSpeed
System : Linux business53.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64
User : giankuin ( 1871)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/giankuin/bnnagency.com/wp-content/themes/flatsome/inc/builder/core/server/helpers/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/giankuin/bnnagency.com/wp-content/themes/flatsome/inc/builder/core/server/helpers/transformers.php
<?php

/**
 * Transforms a string with shortcodes to an array.
 *
 * @param  string $string
 * @return array
 */
function ux_builder_to_array( $string ) {
  return ux_builder( 'to-array' )->transform( $string );
}

/**
 * Transforms an array of shortcodes into a string.
 *
 * @param  array  $array
 * @return string
 */
function ux_builder_to_string( $array ) {
  return ux_builder( 'to-string' )->transform( $array );
}

/**
 * Walk throug all elements in a transformed array.
 *
 * @param  array    $array
 * @param  callable $callback
 */
function ux_builder_content_array_walk( &$array, $callback ) {
  foreach ( $array as $key => &$item ) {
    call_user_func_array( $callback, array( &$item, $key ) );
    if ( array_key_exists( 'children', $item ) && is_array( $item['children'] ) ) {
      ux_builder_content_array_walk( $item['children'], $callback );
    }
    if ( array_key_exists( 'content', $item ) && is_array( $item['content'] ) ) {
      ux_builder_content_array_walk( $item['content'], $callback );
    }
  }
}

Youez - 2016 - github.com/yon3zu
LinuXploit