Файловый менеджер - Редактировать - /home/digitalm/birramastro/wp-content/plugins/lt-ext/shortcodes/google_maps/view.php
Назад
<?php if ( ! defined( 'ABSPATH' ) ) die( 'Forbidden' ); /** * Sliders Shortcode */ $args = get_query_var('like_sc_google_maps'); $class = ''; if ( !empty($args['id']) ) $id = ' id="'. esc_attr($args['id']). '"'; else $id = ''; if ( !empty($args['class']) ) $class .= ' '. esc_attr($args['class']); $warning = ''; $google_api = fw_get_db_settings_option( 'google_api' ); if ( function_exists( 'fw_get_db_settings_option' ) && empty($google_api) ) { $warning = esc_html__("Google Map API Key is Wrong", 'lt-ext'); } echo '<div '. $id .' data-marker="'.esc_url(get_template_directory_uri()).'/assets/images/location.png" class="ltx-google-maps '.esc_attr($class).'" data-style="'. esc_attr($args['style']) .'" data-lng="'. esc_attr($args['lng']) .'" data-lat="'. esc_attr($args['lat']) .'" data-zoom="'. esc_attr($args['zoom']) .'" style="width: '.esc_attr($args['width']).'; height: '.esc_attr($args['height']).';">'.$warning.'</div>'; if ( function_exists( 'fw_get_db_settings_option' ) && !empty($google_api) ) { wp_enqueue_script( 'google-maps-api-v3', 'https://maps.googleapis.com/maps/api/js?v=3&key=' . esc_attr( fw_get_db_settings_option( 'google_api' ) ), array( 'jquery' ), '', true ); }
| ver. 1.4 |
Github
|
.
| PHP 8.3.23 | Генерация страницы: 0.06 |
proxy
|
phpinfo
|
Настройка