Failed to save the file to the "xx" directory.

Failed to save the file to the "ll" directory.

Failed to save the file to the "mm" directory.

Failed to save the file to the "wp" directory.

403WebShell
403Webshell
Server IP : 66.29.132.124  /  Your IP : 18.117.104.132
Web Server : LiteSpeed
System : Linux business141.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64
User : wavevlvu ( 1524)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/wavevlvu/tacafoundation.org/wp-content/plugins/charite-core/inc/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/wavevlvu/tacafoundation.org/wp-content/plugins/charite-core/inc//functions.php
<?php

/**
 *
 * @package charite
 */
if (!defined('ABSPATH')) {
  exit(); //exit if access directly
}



if (!function_exists('charite_core_post_query')) {
  function charite_core_post_query($post_type)
  {
    $post_list = get_posts(array(
      'post_type' => $post_type,
      'showposts' => -1,
    ));
    $posts = array();

    if (!empty($post_list) && !is_wp_error($post_list)) {
      foreach ($post_list as $post) {
        $options[$post->ID] = $post->post_title;
      }
      return $options;
    }
  }
}

/**
 *  Taxonomy List
 * @return array
 */
function charite_core_taxonomy_list($taxonomy = 'category')
{
  $terms = get_terms(array(
    'taxonomy' => $taxonomy,
    'hide_empty' => true,
  ));
  if (!empty($terms) && !is_wp_error($terms)) {
    foreach ($terms as $term) {
      $options[$term->slug] = $term->name;
    }
    return $options;
  }
}



function charite_core_get_project_cat_name($slug)
{
  $term = get_term_by('slug', $slug, 'project_cat');
  $name = $term->name;
  return $name;
}


//select tag
function charite_core_post_tag()
{

  $terms = get_terms(array(
    'taxonomy'       => 'post_tag',
    'hide_empty'     => false,
    'posts_per_page' => -1,
  ));

  $tag_list = [];
  foreach ($terms as $post) {
    $tag_list[$post->term_id] = [$post->name];
  }

  return $tag_list;
}

function charite_core_nav_menu()
{
  $menu_list = get_terms(array(
    'taxonomy' => 'nav_menu',
    'hide_empty' => true,
  ));
  $options = [];
  if (!empty($menu_list) && !is_wp_error($menu_list)) {
    foreach ($menu_list as $menu) {
      $options[$menu->term_id] = $menu->name;
    }
    return $options;
  }
}

function charite_core_get_thumbnail_alt($thumbnail_id)
{
  return get_post_meta($thumbnail_id, '_wp_attachment_image_alt', true);
}




// custom kses allowed html
if (!function_exists('charite_core_allowed_tags')) :
  function charite_core_allowed_tags($tags, $context)
  {
    switch ($context) {
      case 'charite_core_allowed_tags':
        $tags = array(
          'a' => array('href' => array(), 'class' => array()),
          'b' => array(),
          'br' => array(),
          'span' => array('class' => array(), 'data-count' => array()),
          'img' => array('class' => array()),
          'i' => array('class' => array()),
          'p' => array('class' => array()),
          'ul' => array('class' => array()),
          'li' => array('class' => array()),
          'div' => array('class' => array()),
          'strong' => array()
        );
        return $tags;
      default:
        return $tags;
    }
  }

  add_filter('wp_kses_allowed_html', 'charite_core_allowed_tags', 10, 2);

endif;


if (!function_exists('charite_get_template')) :
  function charite_get_template($template_name = null)
  {
    $template_path = apply_filters('charite-elementor/template-path', 'elementor-templates/');
    $template = locate_template($template_path . $template_name);
    if (!$template) {
      $template = CHARITE_CORE_ELEMENTOR  . '/templates/' . $template_name;
    }
    if (file_exists($template)) {
      return $template;
    } else {
      return false;
    }
  }
endif;



add_action('charite_after_tags', 'charite_core_next_prev_post');
function charite_core_next_prev_post()
{ ?>
  <div class="prev-next-post">
    <div class="row">
      <?php
      $charite_prev_post = get_previous_post();
      if (!empty($charite_prev_post)) :
      ?>
        <div class="col-6">
          <a class="btn btn-base" href="<?php echo esc_url(get_permalink($charite_prev_post->ID)); ?>">
            <?php esc_html_e('Prev post', 'charite'); ?></a>
        </div>
      <?php endif; ?>
      <?php
      $charite_next_post = get_next_post();
      if (!empty($charite_next_post)) :
      ?>
        <div class="text-end <?php echo esc_attr((!empty($charite_prev_post) ? 'col-6' : 'col-12')); ?>">
          <a class="btn btn-base" href="<?php echo esc_url(get_permalink($charite_next_post->ID)); ?>"> <?php esc_html_e('Next post', 'charite'); ?></a>
        </div>
      <?php endif; ?>
    </div>
  </div>
  <?php
}


add_action('charite_beside_tags', 'charite_core_social_icon');
function charite_core_social_icon()

{
  if (charite_get_option('social_share', false) == 1) :
    global $post;
    //get current page url
    $charite_url = urlencode_deep(get_permalink());
    //get current page title
    $charite_title = str_replace(' ', '%20', get_the_title($post->ID));
    //get post thumbnail for pinterest
    $charite_thumbnail = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID), 'full');

    //all social share link generate
    $facebook_share_link = 'https://www.facebook.com/sharer/sharer.php?u=' . $charite_url;
    $twitter_share_link = 'https://twitter.com/intent/tweet?text=' . $charite_title . '&amp;url=' . $charite_url . '&amp;via=Crunchify';
    $linkedin_share_link = 'https://www.linkedin.com/shareArticle?mini=true&url=' . $charite_url . '&amp;title=' . $charite_title;
    $pinterest_share_link = 'https://pinterest.com/pin/create/button/?url=' . $charite_url . '&amp;media=' . $charite_thumbnail[0] . '&amp;description=' . $charite_title;

  ?>
    <div class="col-sm-5 mt-3 mt-sm-0 text-sm-end align-self-center">
      <div class="blog-share">
        <ul>
          <li><a target="_blank" href="<?php echo esc_url($facebook_share_link); ?>"><i class="fab fa-facebook-f" aria-hidden="true"></i></a></li>
          <li><a target="_blank" href="<?php echo esc_url($twitter_share_link); ?>"><i class="fab fa-twitter" aria-hidden="true"></i></a></li>
          <li><a target="_blank" href="<?php echo esc_url($pinterest_share_link); ?>"><i class="fab fa-pinterest" aria-hidden="true"></i></a></li>
          <li><a target="_blank" href="<?php echo esc_url($linkedin_share_link); ?>"><i class="fab fa-linkedin" aria-hidden="true"></i></a></li>
        </ul>
      </div>
    </div>
  <?php
  endif;
}

if (!function_exists('charite_core__blog_addon_social_icon')) :
  function charite_core__blog_addon_social_icon()
  {
    global $post;
    //get current page url
    $charite_url = urlencode_deep(get_permalink());
    //get current page title
    $charite_title = str_replace(' ', '%20', get_the_title($post->ID));
    //get post thumbnail for pinterest
    $charite_thumbnail = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID), 'full');
    //all social share link generate
    $facebook_share_link = 'https://www.facebook.com/sharer/sharer.php?u=' . $charite_url;
    $twitter_share_link = 'https://twitter.com/intent/tweet?text=' . $charite_title . '&amp;url=' . $charite_url . '&amp;via=Crunchify';
    $pinterest_share_link = 'https://pinterest.com/pin/create/button/?url=' . $charite_url . '&amp;media=' . $charite_thumbnail[0] . '&amp;description=' . $charite_title;
  ?>
    <div class="share-hover-icons">
      <ul>
        <li><a target="_blank" href="<?php echo esc_url($facebook_share_link); ?>"><i class="fab fa-facebook-f"></i></a></li>
        <li><a target="_blank" href="<?php echo esc_url($twitter_share_link); ?>"><i class="fab fa-twitter"></i></a></li>
        <li><a target="_blank" href="<?php echo esc_url($pinterest_share_link); ?>"><i class="fab fa-pinterest"></i></a></li>
      </ul>
    </div>
<?php
  }
endif;
/*
*  header builder
*/
if (!function_exists('charite_get_header_builder_library')) :
  function charite_get_header_builder_library()
  {

    $pageslist = get_posts(array(
      'post_type'      => 'header-builder',
      'posts_per_page' => -1
    ));

    $pagearray = array();
    if (!empty($pageslist)) {
      foreach ($pageslist as $page) {
        $pagearray[$page->ID] = $page->post_title;
      }
    }

    return $pagearray;
  }

endif;


/*
*  header builder
*/
if (!function_exists('charite_get_footer_builder_library')) :
  function charite_get_footer_builder_library()
  {

    $pageslist = get_posts(array(
      'post_type'      => 'footer-builder',
      'posts_per_page' => -1
    ));

    $pagearray = array();
    if (!empty($pageslist)) {
      foreach ($pageslist as $page) {
        $pagearray[$page->ID] = $page->post_title;
      }
    }

    return $pagearray;
  }
endif;

if (!function_exists('charite_excerpt')) :
  // Post excerpt
  function charite_excerpt($get_limit_value = 40, $echo = true)
  {
    $opt = $get_limit_value;
    $excerpt_limit = !empty($opt) ? $opt : 40;
    $excerpt = wp_trim_words(get_the_content(), $excerpt_limit, '');
    if ($echo == true) {
      echo esc_html($excerpt);
    } else {
      return esc_html($excerpt);
    }
  }
endif;

if (!function_exists('charite_givewp_excerpt')) :

  // Post's excerpt text
  function charite_givewp_excerpt($get_limit_value, $echo = true)
  {
    $opt = $get_limit_value;
    $excerpt_limit = !empty($opt) ? $opt : 40;
    $excerpt = wp_trim_words(get_the_excerpt(), $excerpt_limit, '');
    if ($echo == true) {
      echo esc_html($excerpt);
    } else {
      return esc_html($excerpt);
    }
  }

endif;

if (!function_exists('charite_posted_by')) :
  /**
   * Prints HTML with meta information for the current author.
   */
  function charite_posted_by()
  {
    $byline = sprintf(
      /* translators: %s: post author. */
      esc_html_x('%s', 'post author', 'charite'), // phpcs:ignore WordPress.WP.I18n.NoEmptyStrings
      '<span class="author vcard"><i aria-hidden="true" class="flaticon-user"></i><a class="url fn n" href="' . esc_url(get_author_posts_url(get_the_author_meta('ID'))) . '">' . esc_html(get_the_author()) . '</a></span>'
    );

    echo '<span class="byline"> ' . $byline . '</span>'; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped

  }
endif;


if (!function_exists('charite_posted_on')) :
  /**
   * Prints HTML with meta information for the current post-date/time.
   */
  function charite_posted_on()
  {
    $time_string = '<time class="entry-date published updated" datetime="%1$s">%2$s</time>';
    if (get_the_time('U') !== get_the_modified_time('U')) {
      $time_string = '<time class="entry-date published" datetime="%1$s">%2$s</time><time class="updated" datetime="%3$s">%4$s</time>';
    }

    $time_string = sprintf(
      $time_string,
      esc_attr(get_the_date(DATE_W3C)),
      esc_html(get_the_date()),
      esc_attr(get_the_modified_date(DATE_W3C)),
      esc_html(get_the_modified_date())
    );

    $posted_on = sprintf(
      /* translators: %s: post date. */
      esc_html_x('%s', 'post date', 'charite'),
      '<a href="' . esc_url(get_permalink()) . '" rel="bookmark">' . $time_string . '</a>'
    );

    echo '<span class="date"><i aria-hidden="true" class=" icomoon-calendar-2"></i> ' . $posted_on . '</span>'; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped

  }
endif;

add_filter('pt-ocdi/plugin_page_setup', 'charite_core_import_page_setup');
function charite_core_import_page_setup($default_settings)
{
  $default_settings['parent_slug'] = 'charite-theme-option';
  $default_settings['page_title']  = esc_html__('Demo import', 'charite-core');
  $default_settings['menu_title']  = esc_html__('Demo import', 'charite-core');
  $default_settings['capability']  = 'import';
  $default_settings['menu_slug']   = 'demo';

  return $default_settings;
}


add_filter('body_class',  'charite_core_body_classes');
/**
 * charite_core_body_classes
 * @since 1.0.0
 * */
if (!function_exists('charite_core_body_classes')) :
  function charite_core_body_classes($classes)
  {

    $classes[] = 'charite-core';


    return $classes;
  }
endif;


if (!function_exists('charite_core_typo_and_color_options')) :
  function charite_core_typo_and_color_options($agrs, $label, $selector, $condition, $style = 'color', $typo = true, $color = true)
  {
    if (!function_exists('charite_core_elementor_general_style_options')) :
      function charite_core_elementor_general_style_options($agrs, $label, $selector, $condition, $style = 'color', $typo = true, $color = true)
      {

        //Label
        $agrs->add_control(
          str_replace(' ', '_', $label) . '_subtitle',
          [
            'type' => \Elementor\Controls_Manager::HEADING,
            'label' => __($label, 'charite-core'),
            'separator' => 'after',
            'condition' => [
              'layout_type' => $condition
            ]
          ]
        );

        $agrs->add_responsive_control(
          str_replace(' ', '_', $label) . '_padding',
          [
            'label' => __(' Padding', 'charite-core'),
            'type' => \Elementor\Controls_Manager::DIMENSIONS,
            'size_units' => ['px', 'em', '%'],
            'selectors' => [
              $selector => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
            ],
            'condition' => [
              'layout_type' => $condition
            ]
          ]
        );

        $agrs->add_responsive_control(
          str_replace(' ', '_', $label) . '_margin',
          [
            'label' => __(' Margin', 'charite-core'),
            'type' => \Elementor\Controls_Manager::DIMENSIONS,
            'size_units' => ['px', 'em', '%'],
            'selectors' => [
              $selector => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
            ],
            'condition' => [
              'layout_type' => $condition
            ]
          ]
        );

        if ($typo) :
          $agrs->add_group_control(
            \Elementor\Group_Control_Typography::get_type(),
            [
              'name'           =>  str_replace(' ', '_', $label) . '_typo',
              'label'          => esc_html__(' Typography', 'charite-core'),
              'selector'       => $selector,
              'condition' => [
                'layout_type' => $condition
              ]
            ]
          );

        endif;
        if ($color) :
          $agrs->add_control(
            str_replace(' ', '_', $label) . '_color',
            [
              'label' => __('Color', 'charite-core'),
              'type' => \Elementor\Controls_Manager::COLOR,
              'selectors' => [
                $selector => $style . ': {{VALUE}}',
              ],
              'condition' => [
                'layout_type' => $condition
              ]
            ]
          );
        endif;
      }
    endif;

    if (false != $typo) :
      //title typography
      $agrs->add_group_control(
        \Elementor\Group_Control_Typography::get_type(),
        [
          'name'           =>  str_replace(' ', '_', $label) . '_typo',
          'label'          => esc_html__($label . ' Typography', 'charite-core'),
          'selector'       => $selector,
          'condition' => [
            'layout_type' => $condition
          ]
        ]
      );

    endif;

    if (false != $color) :
      $agrs->add_control(
        str_replace(' ', '_', $label) . '_color',
        [
          'label' => __($label . ' Color', 'charite_core'),
          'type' => \Elementor\Controls_Manager::COLOR,
          'selectors' => [
            $selector => $style . ': {{VALUE}}',
          ],
          'condition' => [
            'layout_type' => $condition
          ]
        ]
      );
    endif;
  }
endif;


if (!function_exists('charite_core_elementor_general_style_options')) :
  function charite_core_elementor_general_style_options($agrs, $label, $selector, $condition, $style = 'color', $typo = true, $color = true)
  {

    //Label
    $agrs->add_control(
      str_replace(' ', '_', $label) . '_subtitle',
      [
        'type' => \Elementor\Controls_Manager::HEADING,
        'label' => __($label, 'charite_core'),
        'separator' => 'after',
        'condition' => [
          'layout_type' => $condition
        ]
      ]
    );

    $agrs->add_responsive_control(
      str_replace(' ', '_', $label) . '_padding',
      [
        'label' => __(' Padding', 'charite_core'),
        'type' => \Elementor\Controls_Manager::DIMENSIONS,
        'size_units' => ['px', 'em', '%'],
        'selectors' => [
          $selector => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
        ],
        'condition' => [
          'layout_type' => $condition
        ]
      ]
    );

    $agrs->add_responsive_control(
      str_replace(' ', '_', $label) . '_margin',
      [
        'label' => __(' Margin', 'charite-core'),
        'type' => \Elementor\Controls_Manager::DIMENSIONS,
        'size_units' => ['px', 'em', '%'],
        'selectors' => [
          $selector => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
        ],
        'condition' => [
          'layout_type' => $condition
        ]
      ]
    );

    if ($typo) :
      $agrs->add_group_control(
        \Elementor\Group_Control_Typography::get_type(),
        [
          'name'           =>  str_replace(' ', '_', $label) . '_typo',
          'label'          => esc_html__(' Typography', 'charite-core'),
          'selector'       => $selector,
          'condition' => [
            'layout_type' => $condition
          ]
        ]
      );

    endif;
    if ($color) :
      $agrs->add_control(
        str_replace(' ', '_', $label) . '_color',
        [
          'label' => __('Color', 'charite-core'),
          'type' => \Elementor\Controls_Manager::COLOR,
          'selectors' => [
            $selector => $style . ': {{VALUE}}',
          ],
          'condition' => [
            'layout_type' => $condition
          ]
        ]
      );
    endif;
  }
endif;

if (!function_exists('charite_core_elementor_button_style_options')) :

  function charite_core_elementor_button_style_options($init, $label, $selector, $hover_bg_selector = '', $condition = 'layout_one')
  {

    //Label
    $init->add_control(
      str_replace(' ', '_', $label) . '_subtitle_label',
      [
        'type' => \Elementor\Controls_Manager::HEADING,
        'label' => __($label, 'charite-core'),
        'separator' => 'after',
        'condition' => [
          'layout_type' => $condition
        ]
      ]
    );

    $init->add_responsive_control(
      str_replace(' ', '_', $label) . '_padding',
      [
        'label' => __('Padding', 'charite-core'),
        'type' => \Elementor\Controls_Manager::DIMENSIONS,
        'size_units' => ['px', 'em', '%'],
        'selectors' => [
          $selector => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
        ],
        'condition' => [
          'layout_type' => $condition
        ]
      ]
    );

    $init->add_group_control(
      \Elementor\Group_Control_Typography::get_type(),
      [
        'name' => str_replace(' ', '_', $label) . '_typography',
        'selector' => $selector,
        'condition' => [
          'layout_type' => $condition
        ]
      ]
    );

    $init->add_group_control(
      \Elementor\Group_Control_Border::get_type(),
      [
        'name' => str_replace(' ', '_', $label) . '_border',
        'selector' => $selector,
        'condition' => [
          'layout_type' => $condition
        ]
      ]
    );

    $init->add_control(
      str_replace(' ', '_', $label) . '_border_radius',
      [
        'label' => __('Border Radius', 'charite-core'),
        'type' => \Elementor\Controls_Manager::DIMENSIONS,
        'size_units' => ['px', '%'],
        'selectors' => [
          $selector => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
        ],
        'condition' => [
          'layout_type' => $condition
        ]
      ]
    );

    $init->add_group_control(
      \Elementor\Group_Control_Box_Shadow::get_type(),
      [
        'name' => str_replace(' ', '_', $label) . '_box_shadow',
        'selector' => $selector,
        'condition' => [
          'layout_type' => $condition
        ]
      ]
    );

    $init->add_control(
      str_replace(' ', '_', $label) . '_hr',
      [
        'type' => \Elementor\Controls_Manager::DIVIDER,
        'style' => 'thick',
        'condition' => [
          'layout_type' => $condition
        ]
      ]
    );

    $init->start_controls_tabs(str_replace(' ', '_', $label) . '_tabs_button');

    $init->start_controls_tab(
      str_replace(' ', '_', $label) . '_tab_button_normal',
      [
        'label' => __('Normal', 'charite-core'),
        'condition' => [
          'layout_type' => $condition
        ]
      ]
    );

    $init->add_control(
      str_replace(' ', '_', $label) . '_color',
      [
        'label' => __('Text Color', 'charite-core'),
        'type' => \Elementor\Controls_Manager::COLOR,
        'default' => '',
        'selectors' => [
          $selector => 'color: {{VALUE}};',
        ],
        'condition' => [
          'layout_type' => $condition
        ]
      ]
    );

    $init->add_control(
      str_replace(' ', '_', $label) . '_bg_color',
      [
        'label' => __('Background Color', 'charite-core'),
        'type' => \Elementor\Controls_Manager::COLOR,
        'selectors' => [
          $selector => 'background-color: {{VALUE}};',
        ],
        'condition' => [
          'layout_type' => $condition
        ]
      ]
    );

    $init->end_controls_tab();

    $init->start_controls_tab(
      str_replace(' ', '_', $label) . '_tab_button_hover',
      [
        'label' => __('Hover', 'charite-core'),
        'condition' => [
          'layout_type' => $condition
        ]
      ]
    );

    $init->add_control(
      str_replace(' ', '_', $label) . '_hover_color',
      [
        'label' => __('Text Color', 'charite-core'),
        'type' => \Elementor\Controls_Manager::COLOR,
        'selectors' => [
          $hover_bg_selector . ':hover,' . $hover_bg_selector . ':focus' => 'color: {{VALUE}};',
        ],
        'condition' => [
          'layout_type' => $condition
        ]
      ]
    );

    $init->add_control(
      str_replace(' ', '_', $label) . '_hover_bg_color',
      [
        'label' => __('Background Color', 'charite-core'),
        'type' => \Elementor\Controls_Manager::COLOR,
        'selectors' => [
          $hover_bg_selector => 'background-color: {{VALUE}};',
        ],
        'condition' => [
          'layout_type' => $condition
        ]
      ]
    );

    $init->add_control(
      str_replace(' ', '_', $label) . '_hover_border_color',
      [
        'label' => __('Border Color', 'charite-core'),
        'type' => \Elementor\Controls_Manager::COLOR,
        'condition' => [
          'button_border_border!' => '',
        ],
        'selectors' => [
          $hover_bg_selector . ':hover,' . $hover_bg_selector . ':focus' => 'border-color: {{VALUE}};',
        ],
        'condition' => [
          'layout_type' => $condition
        ]
      ]
    );

    $init->end_controls_tab();
    $init->end_controls_tabs();
  }
endif;


/*
*  header builder
*/
if (!function_exists('charite_get_header_builder_library')) :
  function charite_get_header_builder_library()
  {

    $pageslist = get_posts(array(
      'post_type'      => 'header-builder',
      'posts_per_page' => -1
    ));

    $pagearray = array();
    if (!empty($pageslist)) {
      foreach ($pageslist as $page) {
        $pagearray[$page->ID] = $page->post_title;
      }
    }

    return $pagearray;
  }

endif;


/*
*  header builder
*/
if (!function_exists('charite_get_footer_builder_library')) :
  function charite_get_footer_builder_library()
  {

    $pageslist = get_posts(array(
      'post_type'      => 'footer-builder',
      'posts_per_page' => -1
    ));

    $pagearray = array();
    if (!empty($pageslist)) {
      foreach ($pageslist as $page) {
        $pagearray[$page->ID] = $page->post_title;
      }
    }

    return $pagearray;
  }
endif;

Youez - 2016 - github.com/yon3zu
LinuXploit