https://t.me/RX1948
Server : Apache/2.4.41 (Ubuntu)
System : Linux wpfpm 5.4.0-1133-kvm #142-Ubuntu SMP Fri May 2 19:51:44 UTC 2025 x86_64
User : wpmodel1 ( 1034)
PHP Version : 7.4.3-4ubuntu2.29
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Directory :  /var/www/html/wpmodel1/wp-content/plugins/contact-1750470811/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /var/www/html/wpmodel1/wp-content/plugins/contact-1750470811/class.drop-down-pages.php
<?php
/**
 * Drop Down Pages
 *
 * Will return a heirarchical list of pages in a key->value pair.
 *
 * @since 2.1.0
 *
 * @param array|string $args Optional. Override default arguments.
 * @return string or HTML content, if not displaying.
 */

// include only file
if (!defined('ABSPATH')) {
  die('Do not open this file directly.');
}

if (!function_exists('eps_dropdown_pages')) {
  function eps_dropdown_pages($args = '')
  {
    $defaults = array(
      'posts_per_page'   => -1,
      'offset'           => 0,
      'category'         => '',
      'orderby'          => 'post_title',
      'order'            => 'DESC',
      'include'          => '',
      'exclude'          => '',
      'meta_key'         => '',
      'meta_value'       => '',
      'post_type'        => 'post',
      'post_mime_type'   => '',
      'post_parent'      => '',
      'post_status'      => 'publish',
      'suppress_filters' => true,
      'depth'            => 5
    );



    $r = wp_parse_args($args, $defaults);
    extract($r, EXTR_SKIP);

    $pages = get_posts($r);

    if (empty($pages)) return array();

    return array_flip(eps_walk_page_dropdown_tree($pages, $depth, $r));
  }

  /**
 * Retrieve HTML dropdown (select) content for page list.
 *
 * @uses Walker_PageDropdown to create HTML dropdown content.
 * @since 2.1.0
 * @see Walker_PageDropdown::walk() for parameters and return description.
 */
  function eps_walk_page_dropdown_tree()
  {
    $args = func_get_args();
    $walker = (empty($args[2]['walker'])) ? new EPS_Walker_PageDropdown : $args[2]['walker'];
    return call_user_func_array(array($walker, 'walk'), $args);
  }

  /**
 * Create an array of pages.
 *
 * @package WordPress
 * @since 2.1.0
 * @uses Walker
 */
  class EPS_Walker_PageDropdown extends Walker
  {
    var $tree_type = 'page';
    var $db_fields = array('parent' => 'post_parent', 'id' => 'ID');

    function start_el(&$output, $object, $depth = 0, $args = array(), $current_object_id = 0)
    {
      if (!is_array($output)) {
        $output = array();
      }

      $pad = str_repeat('&nbsp;', $depth * 3);
      $output[$object->ID] = $pad . esc_html(apply_filters('list_pages', $object->post_title, $object));
    }
  }
}

https://t.me/RX1948 - 2025