-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changed the naming conventions of the plugin files and classes. All the class names and file names now begin with '[Ee]embedGoogleMap' to avoid conflicts with other plugins.
- Loading branch information
Showing
10 changed files
with
75 additions
and
79 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?php | ||
/** | ||
* @version $Id: Embed Google Map v2.0.1 2015-03-28 16:06 $ | ||
* @package Joomla 1.6 | ||
* @copyright Copyright (C) 2014-2015 Petteri Kivimäki. All rights reserved. | ||
* @author Petteri Kivimäki | ||
* Joomla! is free software. This version may have been modified pursuant | ||
* to the GNU General Public License, and as distributed it includes or | ||
* is derivative of works licensed under the GNU General Public License or | ||
* other free or open source software licenses. | ||
*/ | ||
|
||
require_once __DIR__ . '/embedGoogleMapClassicHtmlBuilder.php'; | ||
require_once __DIR__ . '/embedGoogleMapNewHtmlBuilder.php'; | ||
require_once __DIR__ . '/embedGoogleMapEmbedAPIHtmlBuilder.php'; | ||
|
||
class EmbedGoogleMapBuilderFactory { | ||
public static function createBuilder($version) { | ||
if(strcmp($version,'classic') == 0) { | ||
return new EmbedGoogleMapClassicHtmlBuilder; | ||
} else if(strcmp($version,'new') == 0) { | ||
return new EmbedGoogleMapNewHtmlBuilder; | ||
} else if(strcmp($version,'embed') == 0) { | ||
return new EmbedGoogleMapEmbedAPIHtmlBuilder; | ||
} | ||
return new EmbedGoogleMapNewHtmlBuilder; | ||
} | ||
} | ||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,23 +2,23 @@ | |
<extension version="1.6" type="plugin" group="content" method="upgrade"> | ||
<name>PLG_EMBED_GOOGLE_MAP</name> | ||
<author>Petteri Kivimäki</author> | ||
<creationDate>5 June 2014</creationDate> | ||
<copyright>(C)2012-2014 Petteri Kivimäki</copyright> | ||
<creationDate>28 March 2015</creationDate> | ||
<copyright>(C)2012-2015 Petteri Kivimäki</copyright> | ||
<license>http://www.gnu.org/copyright/gpl.html GNU/GPL</license> | ||
<authorEmail>[email protected]</authorEmail> | ||
<version>2.0.0</version> | ||
<authorEmail>[email protected]</authorEmail> | ||
<version>2.0.1</version> | ||
<description>PLG_EMBED_GOOGLE_MAP_DESC</description> | ||
<files> | ||
<filename plugin="embed_google_map">embed_google_map.php</filename> | ||
<filename>parameters.php</filename> | ||
<filename>embedGoogleMapParameters.php</filename> | ||
<!-- Parser --> | ||
<filename>parser.php</filename> | ||
<filename>embedGoogleMapParser.php</filename> | ||
<!-- Builders --> | ||
<filename>builderFactory.php</filename> | ||
<filename>htmlBuilder.php</filename> | ||
<filename>classicHtmlBuilder.php</filename> | ||
<filename>newHtmlBuilder.php</filename> | ||
<filename>embedAPIHtmlBuilder.php</filename> | ||
<filename>embedGoogleMapBuilderFactory.php</filename> | ||
<filename>embedGoogleMapHtmlBuilder.php</filename> | ||
<filename>embedGoogleMapClassicHtmlBuilder.php</filename> | ||
<filename>embedGoogleMapNewHtmlBuilder.php</filename> | ||
<filename>embedGoogleMapEmbedAPIHtmlBuilder.php</filename> | ||
<!-- Other files--> | ||
<filename>index.html</filename> | ||
<filename>license-gpl.txt</filename> | ||
|