Skip to content

Commit

Permalink
4.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
PhocaCz committed Mar 4, 2023
1 parent c5037e1 commit 36105f0
Show file tree
Hide file tree
Showing 9 changed files with 358 additions and 9 deletions.
2 changes: 1 addition & 1 deletion README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ Phoca Maps Plugin is a Joomla! plugin. With Phoca Maps Plugin you can display on

## Version (Joomla! 4.x)

4.0.0Beta2
4.0.1



Expand Down
Binary file modified content-phocamaps-release.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
341 changes: 341 additions & 0 deletions content-phocamaps-release.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 4 additions & 4 deletions manifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,18 @@
<element>phocamaps</element>
<folder>content</folder>
<type>plugin</type>
<version>4.0.0Beta2</version>
<infourl title="Phoca Maps Content Plugin 4.0.0Beta2">https://www.phoca.cz/</infourl>
<version>4.0.1</version>
<infourl title="Phoca Maps Content Plugin 4.0.1">https://www.phoca.cz/</infourl>
<downloads>
<downloadurl type="full" format="zip">https://github.com/PhocaCz/PhocaMapsPlugin/releases/download/4.0.0Beta2/plg_content_phocamaps_v4.0.0Beta2.zip</downloadurl>
<downloadurl type="full" format="zip">https://github.com/PhocaCz/PhocaMapsPlugin/releases/download/4.0.1/plg_content_phocamaps_v4.0.1.zip</downloadurl>
</downloads>
<tags>
<tag>stable</tag>
</tags>
<maintainer><![CDATA[ Phoca.cz ]]></maintainer>
<maintainerurl>https://www.phoca.cz/</maintainerurl>
<section>Updates</section>
<targetplatform name="joomla" version="4.[0]"/>
<targetplatform name="joomla" version="4.[012]"/>
<client>site</client>
</update>
</updates>
Binary file modified phocamaps-48.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified phocamaps-512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 10 additions & 2 deletions phocamaps.php
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,14 @@ public function onContentPrepare($context, &$article, &$params, $page = 0) {
$mapp->zoom = 2;
}

if (is_numeric($mapp->width)) {
$mapp->width = $mapp->width . 'px';
}

if (is_numeric($mapp->height)) {
$mapp->height = $mapp->height . 'px';
}



// Map Langugage
Expand Down Expand Up @@ -448,12 +456,12 @@ public function onContentPrepare($context, &$article, &$params, $page = 0) {
$output .= $map->setTypeControlOpt($mapp->typecontrol, $mapp->typecontrolposition).','."\n";
$output .= $map->setNavigationControlOpt($mapp->zoomcontrol).','."\n";
$output .= $map->setMapOption('scaleControl', $mapp->scalecontrol, TRUE ).','."\n";
//$output .= $map->setMapOption('scrollwheel', $mapp->scrollwheelzoom).','."\n";
//$output .= $map->setMapOption('scrollwheel', $mapp->scrollwheelzoom, TRUE).','."\n";

if ($mapp->gesturehandling != '') {
$output .= $map->setMapOption('gestureHandling', '"' . $mapp->gesturehandling . '"').','."\n";
} else {
$output .= $map->setMapOption('scrollwheel', $mapp->scrollwheelzoom).','."\n";
$output .= $map->setMapOption('scrollwheel', $mapp->scrollwheelzoom, TRUE).','."\n";
}

$output .= $map->setMapOption('disableDoubleClickZoom', $mapp->disabledoubleclickzoom).','."\n";
Expand Down
Binary file modified phocamaps.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions phocamaps.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
<extension type="plugin" group="content" method="upgrade" version="4.0">
<name>plg_content_phocamaps</name>
<author>Jan Pavelka (www.phoca.cz)</author>
<creationDate>26/01/2022</creationDate>
<creationDate>04/03/2023</creationDate>
<authorEmail></authorEmail>
<authorUrl>https://www.phoca.cz</authorUrl>
<copyright>Jan Pavelka</copyright>
<license>GNU/GPL</license>
<version>4.0.0Beta2</version>
<version>4.0.1</version>
<description>PLG_CONTENT_PHOCAMAPS_DESCRIPTION</description>
<projectName>PhocaMapsPlugin</projectName>

Expand Down

0 comments on commit 36105f0

Please sign in to comment.