HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux WebLive 5.15.0-79-generic #86-Ubuntu SMP Mon Jul 10 16:07:21 UTC 2023 x86_64
User: ubuntu (1000)
PHP: 7.4.33
Disabled: 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,
Upload Files
File: /var/www/html/wpemobiq/wp-content/plugins/salient-core/includes/global-sections/wpbakery-map.php
<?php
/**
 * Nectar Global Sections WPBakery Element Map
 *
 * @package Salient Core
 */

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

 $global_sections_arr = array();
 

 $global_sections_query = get_posts(
   array(
     'posts_per_page' => -1,
     'post_status'    => 'publish',
     'ignore_sticky_posts' => true,
     'no_found_rows'  => true,
     'post_type'      => 'salient_g_sections'
   )
 );
 
 foreach( $global_sections_query as $section ) {
   if( property_exists( $section, 'post_title') && property_exists( $section, 'ID') ) {
     $global_sections_arr[$section->post_title] = $section->ID;
   }
 }
   
 
 
 return array(
 	"name" => esc_html__("Global Section",'salient-core'),
 	"base" => "nectar_global_section",
 	"icon" => "icon-wpb-global-section",
 	"allowed_container_element" => 'vc_row',
 	"category" => esc_html__('Query', 'salient-core'),
 	"description" => '',
 	"params" => array(
 		array(
 			"type" => "nectar_global_section_select",
 			"class" => "",
 			'save_always' => true,
      'admin_label' => true,
 			"heading" => esc_html__('Global Section', 'salient-core'),
 			"param_name" => "id",
      "value" => $global_sections_arr,
 			'description' => '',
 		)

 	),
  'js_view' => 'SalientGlobalSectionsView'
 );