From 5582a7e4529b0a7481fd0b50950c330c964b83e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Loguercio?= Date: Wed, 7 Dec 2016 12:01:15 -0500 Subject: [PATCH] WIP - Google Maps plugin - Refs BT#11371 --- plugin/google_maps/ajax/save.ajax.php | 23 ------- plugin/google_maps/ajax/steps.ajax.php | 37 ----------- plugin/google_maps/config.php | 6 -- plugin/google_maps/index.php | 37 +---------- plugin/google_maps/install.php | 6 +- plugin/google_maps/lang/english.php | 63 +------------------ plugin/google_maps/lang/french.php | 63 +------------------ plugin/google_maps/lang/spanish.php | 63 +------------------ plugin/google_maps/plugin.php | 8 +-- ...n.class.php => GoogleMapsPluginPlugin.php} | 46 +++++--------- plugin/google_maps/uninstall.php | 6 +- 11 files changed, 31 insertions(+), 327 deletions(-) delete mode 100644 plugin/google_maps/ajax/save.ajax.php delete mode 100644 plugin/google_maps/ajax/steps.ajax.php rename plugin/google_maps/src/{google_maps_plugin.class.php => GoogleMapsPluginPlugin.php} (52%) diff --git a/plugin/google_maps/ajax/save.ajax.php b/plugin/google_maps/ajax/save.ajax.php deleted file mode 100644 index fcee058159..0000000000 --- a/plugin/google_maps/ajax/save.ajax.php +++ /dev/null @@ -1,23 +0,0 @@ - - * @package chamilo.plugin.tour - */ -/** - * Init - */ -require_once __DIR__ . '/../../../main/inc/global.inc.php'; -require_once __DIR__ . '/../config.php'; - -if (!api_is_anonymous()) { - $currentPageClass = isset($_POST['page_class']) ? $_POST['page_class'] : ''; - - if (!empty($currentPageClass)) { - $userId = api_get_user_id(); - - $tourPlugin = Tour::create(); - $tourPlugin->saveCompletedTour($currentPageClass, $userId); - } -} diff --git a/plugin/google_maps/ajax/steps.ajax.php b/plugin/google_maps/ajax/steps.ajax.php deleted file mode 100644 index 28a2f29f5a..0000000000 --- a/plugin/google_maps/ajax/steps.ajax.php +++ /dev/null @@ -1,37 +0,0 @@ - - * @package chamilo.plugin.tour - */ -require_once __DIR__.'/../../../main/inc/global.inc.php'; -require_once api_get_path(LIBRARY_PATH) . 'plugin.class.php'; -require_once api_get_path(SYS_PLUGIN_PATH) . 'tour/src/tour_plugin.class.php'; - -if (!api_is_anonymous()) { - $currentPageClass = isset($_GET['page_class']) ? $_GET['page_class'] : ''; - - $tourPlugin = Tour::create(); - - $json = $tourPlugin->getTourConfig(); - - $currentPageSteps = array(); - - foreach ($json as $pageContent) { - if ($pageContent['pageClass'] == $currentPageClass) { - foreach ($pageContent['steps'] as $step) { - $currentPageSteps[] = array( - 'element' => $step['elementSelector'], - 'intro' => $tourPlugin->get_lang($step['message']) - ); - } - - break; - } - } - - if (!empty($currentPageSteps)) { - echo json_encode($currentPageSteps); - } -} diff --git a/plugin/google_maps/config.php b/plugin/google_maps/config.php index ff03b9a04c..4d6ea40a48 100644 --- a/plugin/google_maps/config.php +++ b/plugin/google_maps/config.php @@ -5,11 +5,5 @@ * @author José Loguercio Silva * @package chamilo.plugin.google_maps */ -//require_once '../../main/inc/global.inc.php'; define('TABLE_GOOGLE_MAPS', 'plugin_google_maps'); - -require_once api_get_path(SYS_PATH) . 'main/inc/global.inc.php'; -require_once api_get_path(LIBRARY_PATH) . 'plugin.class.php'; -require_once api_get_path(SYS_PLUGIN_PATH) . 'google_maps/src/google_maps_plugin.class.php'; -// Edit the config/tour.json file to add more pages or more elements to the guide diff --git a/plugin/google_maps/index.php b/plugin/google_maps/index.php index 55454459c9..09c1afe56d 100644 --- a/plugin/google_maps/index.php +++ b/plugin/google_maps/index.php @@ -7,40 +7,5 @@ */ require_once __DIR__ . '/config.php'; -$pluginPath = api_get_path(SYS_PLUGIN_PATH) . 'google_maps/'; -$pluginWebPath = api_get_path(WEB_PLUGIN_PATH) . 'google_maps/'; +$googleMapsPlugin = GoogleMapsPlugin::create(); -$userId = api_get_user_id(); - -$tourPlugin = Tour::create(); -$config = $tourPlugin->getTourConfig(); -$showTour = $tourPlugin->get('show_tour') === 'true'; - -if ($showTour) { - $pages = array(); - - foreach ($config as $pageContent) { - $pages[] = array( - 'pageClass' => $pageContent['pageClass'], - 'show' => $tourPlugin->checkTourForUser($pageContent['pageClass'], $userId) - ); - } - - $theme = $tourPlugin->get('theme'); - - $_template['show_tour'] = $showTour; - - $_template['pages'] = json_encode($pages); - - $_template['web_path'] = array( - 'intro_css' => "{$pluginWebPath}intro.js/introjs.min.css", - 'intro_theme_css' => null, - 'intro_js' => "{$pluginWebPath}intro.js/intro.min.js", - 'steps_ajax' => "{$pluginWebPath}ajax/steps.ajax.php", - 'save_ajax' => "{$pluginWebPath}ajax/save.ajax.php" - ); - - if (file_exists("{$pluginPath}intro.js/introjs-$theme.css")) { - $_template['web_path']['intro_theme_css'] = "{$pluginWebPath}intro.js/introjs-$theme.css"; - } -} diff --git a/plugin/google_maps/install.php b/plugin/google_maps/install.php index 31ef15b6da..32c603c6a1 100644 --- a/plugin/google_maps/install.php +++ b/plugin/google_maps/install.php @@ -2,9 +2,9 @@ /* For licensing terms, see /license.txt */ /** * Initialization install - * @author Angel Fernando Quiroz Campos - * @package chamilo.plugin.tour + * @author José Loguercio Silva + * @package chamilo.plugin.google_maps */ require_once __DIR__ . '/config.php'; -Tour::create()->install(); +GoogleMapsPlugin::create()->install(); diff --git a/plugin/google_maps/lang/english.php b/plugin/google_maps/lang/english.php index 09becf3164..686a68a821 100644 --- a/plugin/google_maps/lang/english.php +++ b/plugin/google_maps/lang/english.php @@ -1,63 +1,4 @@ - * @package chamilo.plugin.tour - */ -$strings['plugin_title'] = 'Tour'; -$strings['plugin_comment'] = 'This plugin shows people how to use your Chamilo LMS. You must activar one region (e.g. "header-right") to show the button that allows the tour to start.'; -/* Strings for settings */ -$strings['show_tour'] = 'Show the tour'; - -$showTourHelpLine01 = 'The necessary configuration to show the help blocks, in JSON format, is located in the %splugin/tour/config/tour.json%s file.'; -$showTourHelpLine02 = 'See README file for more information.'; - -$strings['show_tour_help'] = sprintf("$showTourHelpLine01 %s $showTourHelpLine02", "", "", "
"); - -$strings['theme'] = 'Theme'; -$strings['theme_help'] = 'Chose nassim, nazanin, royal. Empty to use the default theme.'; - -/* Strings for plugin UI */ -$strings['Skip'] = 'Skip'; -$strings['Next'] = 'Next'; -$strings['Prev'] = 'Prev'; -$strings['Done'] = 'Done'; -$strings['StartButtonText'] = 'Start the tour'; - -/* String for the steps */ -// if body class = section-mycampus -$strings['TheLogoStep'] = 'Welcome to Chamilo LMS 1.9.x'; -$strings['TheNavbarStep'] = 'Menu bar with links to the main sections of the portal'; -$strings['TheRightPanelStep'] = 'Sidebar panel'; -$strings['TheUserImageBlock'] = 'Your profile photo'; -$strings['TheProfileBlock'] = 'Your profile tools: Inbox, message composer, pending invitations, profile edition.'; -$strings['TheHomePageStep'] = 'This is the initial homepage where you will find the portal announcements, links and any information the administration team has configured.'; - -// if body class = section-mycourses -$strings['YourCoursesList'] = 'This area shows the different courses (or sessions) to which you are subscribed. If no course shows, go to the course catalogue (see menu) or discuss it with your portal administrator'; - -// if body class = section-myagenda -$strings['AgendaAllowsYouToSeeWhatsHappening'] = 'The agenda tool allows you to see what events are scheduled for the upcoming days, weeks or months.'; -$strings['AgendaTheActionBar'] = 'You can decide to show the events as a list, rather than in a calendar view, using the action icons provided'; -$strings['AgendaTodayButton'] = 'Click the "today" button to see only today\'s schedule'; -$strings['AgendaTheMonthIsAlwaysInEvidence'] = 'The current month is always shown in evidence in the calendar view'; -$strings['AgendaButtonsAllowYouToChangePeriod'] = 'You can switch the view to daily, weekly or monthly by clicking one of these buttons'; - -// if body class = section-session_my_space -$strings['MySpaceAllowsYouToKeepTrackOfProgress'] = 'This area allows you to check your progress if you\'re a student, or the progress of your students if you are a teacher'; -$strings['MySpaceSectionsGiveYouImportantInsight'] = 'The reports provided on this screen are extensible and can provide you very valuable insight on your learning or teaching'; - -// if body class = section-social-network -$strings['SocialAllowsYouToGetInTouchWithOtherUsersOfThePlatform'] = 'The social area allows you to get in touch with other users on the platform'; -$strings['SocialMenuGivesAccessToDifferentToolsToGetInTouchOrPublishStuff'] = 'The menu gives you access to a series of screens allowing you to participate in private messaging, chat, interest groups, etc'; - -// if body class = section-dashboard -$strings['DashboardAllowsYouToGetVerySpecificInformationInAnIllustratedCondensedFormat'] = 'The dashboard allows you to get very specific information in an illustrated and condensed format. Only administrators have access to this feature at this time'; -$strings['DashboardMustBeConfiguredFirstFromTheAdminSectionPluginsThenHereToEnableDesiredBlocks'] = 'To enable dashboard panels, you must first activate the possible panels in the admin section for plugins, then come back here and choose which panels *you* want to see on your dashboard'; - -// if body class = section-platform_admin -$strings['AdministrationAllowsYouToManageYourPortal'] = 'The administration panel allows you to manage all resources in your Chamilo portal'; -$strings['AdminUsersBlockAllowsYouToManageUsers'] = 'The users block allows you to manage all things related to users.'; -$strings['AdminCoursesBlockAllowsYouToManageCourses'] = 'The courses block gives you access to course creation, edition, etc. Other blocks are dedicated to specific uses as well.'; +$strings['plugin_title'] = "Google Maps"; +$strings['plugin_comment'] = "Active la fonctionnalité pour afficher Google Maps"; \ No newline at end of file diff --git a/plugin/google_maps/lang/french.php b/plugin/google_maps/lang/french.php index 60fe7d045f..686a68a821 100644 --- a/plugin/google_maps/lang/french.php +++ b/plugin/google_maps/lang/french.php @@ -1,63 +1,4 @@ - * @package chamilo.plugin.tour - */ -$strings['plugin_title'] = 'Tour guidé'; -$strings['plugin_comment'] = 'Ce plugin montre aux utilisateurs comment utiliser votre portail Chamilo. Vous devez activer une région (p.ex. "header-right") afin d\'afficher le bouton qui permet de démarrer le processus.'; -/* Strings for settings */ -$strings['show_tour'] = 'Activer le tour guidé'; - -$showTourHelpLine01 = 'La configuration nécessaire à l\'affichage du bloc d\'aide, au format JSON, se situe dans le fichier %splugin/tour/config/tour.json%s.'; -$showTourHelpLine02 = 'Voir fichier README pour plus d\'info.'; - -$strings['show_tour_help'] = sprintf("$showTourHelpLine01 %s $showTourHelpLine02", "", "", "
"); - -$strings['theme'] = 'Thème'; -$strings['theme_help'] = 'Choisissez entre nassim, nazanin et royal. Vide pour utiliser le thème par défaut.'; - -/* Strings for plugin UI */ -$strings['Skip'] = 'Passer'; -$strings['Next'] = 'Suivant'; -$strings['Prev'] = 'Précédent'; -$strings['Done'] = 'Terminé'; -$strings['StartButtonText'] = 'Tour guidé'; - -/* String for the steps */ -// if body class = section-mycampus -$strings['TheLogoStep'] = 'Bienvenu(e) dans Chamilo LMS'; -$strings['TheNavbarStep'] = 'Barre de menu, reprenant les sections principales.'; -$strings['TheRightPanelStep'] = 'Panneau latéral de menus'; -$strings['TheUserImageBlock'] = 'Votre photo de profil utilisateur'; -$strings['TheProfileBlock'] = 'Vos outils perso: Boîte de messages, Composer des messages, Invitations en attente, Édition du profil.'; -$strings['TheHomePageStep'] = 'Ceci est la page d\'accueil du portail. On y retrouve les annonces du portail, une section d\'introduction, des liens, etc, selon ce que l\'équipe d\'administration a préparé'; - -// if body class = section-mycourses -$strings['YourCoursesList'] = 'Cette zone affiche les différents cours (ou sessions) auxquels vous avez accès. Si aucun cours ne s\'affiche, rendez-vous sur le catalogue de cours (voir menu) ou parlez-en à votre administrateur de portail'; - -// if body class = section-myagenda -$strings['AgendaAllowsYouToSeeWhatsHappening'] = 'L\'outil d\'agenda vous permet de voir les événements qui sont programmés pour les prochains jours, semaines ou mois.'; -$strings['AgendaTheActionBar'] = 'Vous pouvez décider de montrer les événements sous forme de liste, plutôt qu\'en vue calendrier, en utilisant les icônes d\'action fournis'; -$strings['AgendaTodayButton'] = 'Cliquez sur le bouton "Aujourd\'hui pour voir seulement le programme d\'aujourd\'hui'; -$strings['AgendaTheMonthIsAlwaysInEvidence'] = 'Le mois actuel est toujours mis en évidence dans la vue calendrier'; -$strings['AgendaButtonsAllowYouToChangePeriod'] = 'Vous pouvez changer la vue à quotidien, semanal ou mensuel en cliquant sur l\'un de ces boutons'; - -// if body class = section-session_my_space -$strings['MySpaceAllowsYouToKeepTrackOfProgress'] = 'Cette zone vous permet de vérifier votre progrès si vous êtes étudiant, ou le progrès de vos étudiants si vous êtes enseignant'; -$strings['MySpaceSectionsGiveYouImportantInsight'] = 'Les rapports fournis sur cet écran sont extensibles et peuvent vous fournir un détail intéressant sur votre apprentissage ou la façon dont vous enseignez.'; - -// if body class = section-social-network -$strings['SocialAllowsYouToGetInTouchWithOtherUsersOfThePlatform'] = 'La zone sociale vous permet de vous maintenir au courant de ce que font les autres utilisateurs de la plateforme'; -$strings['SocialMenuGivesAccessToDifferentToolsToGetInTouchOrPublishStuff'] = 'Le menu vous donne accès à une série d\'écrans vous permettant de participer à de la messagerie privée, du chat, des groupes d\'intérêt, etc'; - -// if body class = section-dashboard -$strings['DashboardAllowsYouToGetVerySpecificInformationInAnIllustratedCondensedFormat'] = 'The dashboard allows you to get very specific information in an illustrated and condensed format. Only administrators have access to this feature at this time'; -$strings['DashboardMustBeConfiguredFirstFromTheAdminSectionPluginsThenHereToEnableDesiredBlocks'] = 'To enable dashboard panels, you must first activate the possible panels in the admin section for plugins, then come back here and choose which panels *you* want to see on your dashboard'; - -// if body class = section-platform_admin -$strings['AdministrationAllowsYouToManageYourPortal'] = 'The administration panel allows you to manage all resources in your Chamilo portal'; -$strings['AdminUsersBlockAllowsYouToManageUsers'] = 'The users block allows you to manage all things related to users.'; -$strings['AdminCoursesBlockAllowsYouToManageCourses'] = 'The courses block gives you access to course creation, edition, etc. Other blocks are dedicated to specific uses as well.'; +$strings['plugin_title'] = "Google Maps"; +$strings['plugin_comment'] = "Active la fonctionnalité pour afficher Google Maps"; \ No newline at end of file diff --git a/plugin/google_maps/lang/spanish.php b/plugin/google_maps/lang/spanish.php index cb78868287..0090ef0ca3 100644 --- a/plugin/google_maps/lang/spanish.php +++ b/plugin/google_maps/lang/spanish.php @@ -1,63 +1,4 @@ - * @package chamilo.plugin.tour - */ -$strings['plugin_title'] = 'Tour'; -$strings['plugin_comment'] = 'Este plugin muestra a la gente cómo usar tu LMS. Es necesario activar una región (ej. header-right) para que aparezca el botón que le da inicio.'; -/* Strings for settings */ -$strings['show_tour'] = 'Mostrar el tour'; - -$showTourHelpLine01 = 'La configuración necesaria para mostrar los bloques de ayuda, en formato JSON, están localizadas en el archivo %splugin/tour/config/tour.json%s.'; -$showTourHelpLine02 = 'Ver el archivo README para más información.'; - -$strings['show_tour_help'] = sprintf("$showTourHelpLine01 %s $showTourHelpLine02", "", "", "
"); - -$strings['theme'] = 'Tema'; -$strings['theme_help'] = 'Elegir entre nassim, nazanin, royal. Vacío para usar el tema por defecto.'; - -/* Strings for plugin UI */ -$strings['Skip'] = 'Saltar'; -$strings['Next'] = 'Siguiente'; -$strings['Prev'] = 'Anterior'; -$strings['Done'] = 'Hecho'; -$strings['StartButtonText'] = 'Empezar el recorrido'; - -/* String for the steps */ -// if body class = section-mycampus -$strings['TheLogoStep'] = 'Bienvenido/a en Chamilo LMS.'; -$strings['TheNavbarStep'] = 'Barra de herramientas con enlaces a las principales secciones'; -$strings['TheRightPanelStep'] = 'Pane lateral'; -$strings['TheUserImageBlock'] = 'Tu foto de perfil.'; -$strings['TheProfileBlock'] = 'Herramientas de perfil: Bandeja de entrada, Nuevo mensaje, Invitaciones pendientes, Editar perfil.'; -$strings['TheHomePageStep'] = 'Esta es la página de inicio en la cual se encuentran los anuncios del portal, una zona de introducción, enlaces, etc, según lo que el equipo de administración ha configurado.'; - -// if body class = section-mycourses -$strings['YourCoursesList'] = 'Esta zona muestra los distintos cursos (o sesiones) a los cuales tiene acceso. Si ningun curso aparece, puede dar una vuelta en el catálogo de cursos (ver menú) o conversarlo con su administrador de portal'; - -// if body class = section-myagenda -$strings['AgendaAllowsYouToSeeWhatsHappening'] = 'The agenda tool allows you to see what events are scheduled for the upcoming days, weeks or months.'; -$strings['AgendaTheActionBar'] = 'You can decide to show the events as a list, rather than in a calendar view, using the action icons provided'; -$strings['AgendaTodayButton'] = 'Click the "today" button to see only today\'s schedule'; -$strings['AgendaTheMonthIsAlwaysInEvidence'] = 'The current month is always shown in evidence in the calendar view'; -$strings['AgendaButtonsAllowYouToChangePeriod'] = 'You can switch the view to daily, weekly or monthly by clicking one of these buttons'; - -// if body class = section-session_my_space -$strings['MySpaceAllowsYouToKeepTrackOfProgress'] = 'This area allows you to check your progress if you\'re a student, or the progress of your students if you are a teacher'; -$strings['MySpaceSectionsGiveYouImportantInsight'] = 'The reports provided on this screen are extensible and can provide you very valuable insight on your learning or teaching'; - -// if body class = section-social-network -$strings['SocialAllowsYouToGetInTouchWithOtherUsersOfThePlatform'] = 'The social area allows you to get in touch with other users on the platform'; -$strings['SocialMenuGivesAccessToDifferentToolsToGetInTouchOrPublishStuff'] = 'The menu gives you access to a series of screens allowing you to participate in private messaging, chat, interest groups, etc'; - -// if body class = section-dashboard -$strings['DashboardAllowsYouToGetVerySpecificInformationInAnIllustratedCondensedFormat'] = 'The dashboard allows you to get very specific information in an illustrated and condensed format. Only administrators have access to this feature at this time'; -$strings['DashboardMustBeConfiguredFirstFromTheAdminSectionPluginsThenHereToEnableDesiredBlocks'] = 'To enable dashboard panels, you must first activate the possible panels in the admin section for plugins, then come back here and choose which panels *you* want to see on your dashboard'; - -// if body class = section-platform_admin -$strings['AdministrationAllowsYouToManageYourPortal'] = 'The administration panel allows you to manage all resources in your Chamilo portal'; -$strings['AdminUsersBlockAllowsYouToManageUsers'] = 'The users block allows you to manage all things related to users.'; -$strings['AdminCoursesBlockAllowsYouToManageCourses'] = 'The courses block gives you access to course creation, edition, etc. Other blocks are dedicated to specific uses as well.'; +$strings['plugin_title'] = "Google Maps"; +$strings['plugin_comment'] = "Enable the functionality to show google maps"; diff --git a/plugin/google_maps/plugin.php b/plugin/google_maps/plugin.php index 049df22417..444adec151 100644 --- a/plugin/google_maps/plugin.php +++ b/plugin/google_maps/plugin.php @@ -1,10 +1,10 @@ - * @package chamilo.plugin.tour + * Show google maps + * @author José Loguercio Silva + * @package chamilo.plugin.google_maps */ require_once __DIR__.'/config.php'; -$plugin_info = GoogleMaps::create()->get_info(); +$plugin_info = GoogleMapsPlugin::create()->get_info(); diff --git a/plugin/google_maps/src/google_maps_plugin.class.php b/plugin/google_maps/src/GoogleMapsPluginPlugin.php similarity index 52% rename from plugin/google_maps/src/google_maps_plugin.class.php rename to plugin/google_maps/src/GoogleMapsPluginPlugin.php index 15f34086f8..dd2bbad831 100644 --- a/plugin/google_maps/src/google_maps_plugin.class.php +++ b/plugin/google_maps/src/GoogleMapsPluginPlugin.php @@ -5,7 +5,7 @@ * @author José Loguercio Silva * @package chamilo.plugin.google_maps */ -class GoogleMaps extends Plugin +class GoogleMapsPlugin extends Plugin { /** * Class constructor @@ -13,17 +13,26 @@ class GoogleMaps extends Plugin protected function __construct() { $parameters = array( - 'enable_api' => 'boolean', 'api_key' => 'text' ); parent::__construct('1.0', 'José Loguercio Silva', $parameters); } + /** + * Get the plugin Name + * + * @return string + */ + public function get_name() + { + return "google_maps"; + } + /** * Instance the plugin * @staticvar null $result - * @return GoogleMaps + * @return GoogleMapsPlugin */ static function create() { @@ -38,7 +47,7 @@ class GoogleMaps extends Plugin */ public function install() { - $this->installDatabase(); + return true; } /** @@ -47,33 +56,6 @@ class GoogleMaps extends Plugin */ public function uninstall() { - $this->unistallDatabase(); - } - - /** - * Create the database tables for the plugin - * @return void - */ - private function installDatabase() - { - $pluginGoogleMapsLogTable = Database::get_main_table(TABLE_GOOGLE_MAPS); - - $sql = "CREATE TABLE IF NOT EXISTS $pluginGoogleMapsLogTable (" - . "api_key varchar(255)"; - - Database::query($sql); - } - - /** - * Drop the database tables for the plugin - * @return void - */ - private function unistallDatabase() - { - $pluginGoogleMapsLogTable = Database::get_main_table(TABLE_TOUR_LOG); - - $sql = "DROP TABLE IF EXISTS $pluginGoogleMapsLogTable"; - - Database::query($sql); + return true; } } diff --git a/plugin/google_maps/uninstall.php b/plugin/google_maps/uninstall.php index 0806c2cf6a..05a9566d1b 100644 --- a/plugin/google_maps/uninstall.php +++ b/plugin/google_maps/uninstall.php @@ -2,9 +2,9 @@ /* For licensing terms, see /license.txt */ /** * Initialization uninstall - * @author Angel Fernando Quiroz Campos - * @package chamilo.plugin.tour + * @author José Loguercio Silva + * @package chamilo.plugin.google_maps */ require_once __DIR__ . '/config.php'; -Tour::create()->uninstall(); +GoogleMapsPlugin::create()->uninstall();