diff --git a/src/builderFactory.php b/src/builderFactory.php deleted file mode 100644 index 040bf36..0000000 --- a/src/builderFactory.php +++ /dev/null @@ -1,29 +0,0 @@ - \ No newline at end of file diff --git a/src/embedGoogleMapBuilderFactory.php b/src/embedGoogleMapBuilderFactory.php new file mode 100644 index 0000000..0420ce8 --- /dev/null +++ b/src/embedGoogleMapBuilderFactory.php @@ -0,0 +1,29 @@ + \ No newline at end of file diff --git a/src/classicHtmlBuilder.php b/src/embedGoogleMapClassicHtmlBuilder.php similarity index 86% rename from src/classicHtmlBuilder.php rename to src/embedGoogleMapClassicHtmlBuilder.php index 290d140..3c6b2d1 100644 --- a/src/classicHtmlBuilder.php +++ b/src/embedGoogleMapClassicHtmlBuilder.php @@ -1,8 +1,8 @@ - +?> \ No newline at end of file diff --git a/src/embedAPIHtmlBuilder.php b/src/embedGoogleMapEmbedAPIHtmlBuilder.php similarity index 86% rename from src/embedAPIHtmlBuilder.php rename to src/embedGoogleMapEmbedAPIHtmlBuilder.php index 42cdb1b..5931a66 100644 --- a/src/embedAPIHtmlBuilder.php +++ b/src/embedGoogleMapEmbedAPIHtmlBuilder.php @@ -1,8 +1,8 @@ - +?> \ No newline at end of file diff --git a/src/htmlBuilder.php b/src/embedGoogleMapHtmlBuilder.php similarity index 88% rename from src/htmlBuilder.php rename to src/embedGoogleMapHtmlBuilder.php index 80dd014..c48702a 100644 --- a/src/htmlBuilder.php +++ b/src/embedGoogleMapHtmlBuilder.php @@ -1,8 +1,8 @@ - +?> \ No newline at end of file diff --git a/src/newHtmlBuilder.php b/src/embedGoogleMapNewHtmlBuilder.php similarity index 84% rename from src/newHtmlBuilder.php rename to src/embedGoogleMapNewHtmlBuilder.php index ef5ad59..3664740 100644 --- a/src/newHtmlBuilder.php +++ b/src/embedGoogleMapNewHtmlBuilder.php @@ -1,8 +1,8 @@ - +?> \ No newline at end of file diff --git a/src/parameters.php b/src/embedGoogleMapParameters.php similarity index 96% rename from src/parameters.php rename to src/embedGoogleMapParameters.php index cfc07a5..3d3069d 100644 --- a/src/parameters.php +++ b/src/embedGoogleMapParameters.php @@ -1,8 +1,8 @@ +?> \ No newline at end of file diff --git a/src/parser.php b/src/embedGoogleMapParser.php similarity index 96% rename from src/parser.php rename to src/embedGoogleMapParser.php index 73f5259..3feae9c 100644 --- a/src/parser.php +++ b/src/embedGoogleMapParser.php @@ -1,8 +1,8 @@ +?> \ No newline at end of file diff --git a/src/embed_google_map.php b/src/embed_google_map.php index c7852e4..c38587b 100644 --- a/src/embed_google_map.php +++ b/src/embed_google_map.php @@ -1,8 +1,8 @@ setVersion($this->params->def('version', 'new')); $plgParams->setEmbedAPIKey($this->params->def('embed_api_key', '')); @@ -65,7 +65,7 @@ function onContentPrepare($context, &$row, &$params, $limitstart) if( strstr($map, $find) ) { // New Parser object - $parser = new Parser; + $parser = new EmbedGoogleMapParser; // Parse parameters $parser->parse($map, $plgParams); } else { @@ -85,7 +85,7 @@ function onContentPrepare($context, &$row, &$params, $limitstart) $plgParams->setLinkLabel(JText::_($mtcs[1])); } // Create new HTML builder - $builder = BuilderFactory::createBuilder($plgParams->getVersion()); + $builder = EmbedGoogleMapBuilderFactory::createBuilder($plgParams->getVersion()); // Generate HTML code $replacement[$count] = $builder->buildHtml($plgParams); // Increase counter diff --git a/src/embed_google_map.xml b/src/embed_google_map.xml index 88e217c..711bada 100644 --- a/src/embed_google_map.xml +++ b/src/embed_google_map.xml @@ -2,23 +2,23 @@ PLG_EMBED_GOOGLE_MAP Petteri Kivimäki - 5 June 2014 - (C)2012-2014 Petteri Kivimäki + 28 March 2015 + (C)2012-2015 Petteri Kivimäki http://www.gnu.org/copyright/gpl.html GNU/GPL - petteri.kivimaki@helsinki.fi - 2.0.0 + dinky_jackson@hotmail.com + 2.0.1 PLG_EMBED_GOOGLE_MAP_DESC embed_google_map.php - parameters.php + embedGoogleMapParameters.php - parser.php + embedGoogleMapParser.php - builderFactory.php - htmlBuilder.php - classicHtmlBuilder.php - newHtmlBuilder.php - embedAPIHtmlBuilder.php + embedGoogleMapBuilderFactory.php + embedGoogleMapHtmlBuilder.php + embedGoogleMapClassicHtmlBuilder.php + embedGoogleMapNewHtmlBuilder.php + embedGoogleMapEmbedAPIHtmlBuilder.php index.html license-gpl.txt