403Webshell
Server IP : 172.67.147.195  /  Your IP : 216.73.216.142
Web Server : Apache/2
System : Linux hosting8537.lvs 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User : mienphi ( 1014)
PHP Version : 8.2.14
Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/mienphi/public_html/wp-content/themes/eduma/inc/widgets/google-map/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/mienphi/public_html/wp-content/themes/eduma/inc/widgets/google-map/class-vc-google-map.php
<?php
/**
 * Thim_Builder Visual Composer Google Map shortcode
 *
 * @version     1.0.0
 * @author      ThimPress
 * @package     Thim_Builder/Classes
 * @category    Classes
 * @author      Thimpress, tuanta
 */

/**
 * Prevent loading this file directly
 */
defined( 'ABSPATH' ) || exit;

if ( ! class_exists( 'Thim_Builder_VC_Google_Map' ) ) {
	/**
	 * Class Thim_Builder_VC_Google_Map
	 */
	class Thim_Builder_VC_Google_Map extends Thim_Builder_VC_Shortcode {

		/**
		 * Thim_Builder_VC_Google_Map constructor.
		 */
		public function __construct() {
			// set config class
			$this->config_class = 'Thim_Builder_Config_Google_Map';

			parent::__construct();
		}
		// convert setting
		function thim_convert_setting( $settings ) {
			$settings = array(
				'title'       => $settings['title'],
				'display_by'  => $settings['display_by'],
				'map_options' => $settings['map_options'],
				'location'    => array(
					'lat' => $settings['location_lat'],
					'lng' => $settings['location_lng']
				),
				'map_center'  => $settings['map_center'],
				'api_key'     => $settings['api_key'],
				'settings'    => array(
					'height'      => $settings['settings_height'],
					'zoom'        => isset( $settings['settings_zoom'] ) ? $settings['settings_zoom'] : '12',
					'draggable'   => $settings['settings_draggable'],
					'scroll_zoom' => $settings['settings_scroll_zoom']
				),
				'markers'     => array(
					'marker_at_center' => $settings['marker_at_center'],
					'marker_icon'      => $settings['marker_icon'],
				)
			);

			return $settings;
		}
	}
}

new Thim_Builder_VC_Google_Map();

Youez - 2016 - github.com/yon3zu
LinuXploit