Skip to content

Commit

Permalink
3.0.9
Browse files Browse the repository at this point in the history
3.0.9
  • Loading branch information
PhocaCz committed Nov 9, 2020
1 parent 83d4207 commit eae9fb3
Show file tree
Hide file tree
Showing 6 changed files with 61 additions and 10 deletions.
6 changes: 4 additions & 2 deletions README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@



![Phoca Maps Content Plugin](https://github.com/PhocaCz/PhocaMapsPlugin/blob/master/phocamaps.png)
![Phoca Maps Content Plugin](https://github.com/PhocaCz/PhocaMapsPlugin/blob/master/phocamaps.png?raw=true)

# Phoca Maps Content Plugin

Expand All @@ -26,6 +26,8 @@ Phoca Maps Plugin is a Joomla! plugin. With Phoca Maps Plugin you can display on





## Support

[Phoca Forum](https://www.phoca.cz/forum)
Expand Down Expand Up @@ -56,7 +58,7 @@ Phoca Maps Plugin is a Joomla! plugin. With Phoca Maps Plugin you can display on

## Version

3.0.6
3.0.9



Expand Down
Binary file added 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.
3 changes: 3 additions & 0 deletions language/en-GB/en-GB.plg_content_phocamaps.ini
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
; @test utf-8 ä, ö, ü
;

;[3.0.9]
PLG_CONTENT_PHOCAMAPS_BOOTSTRAP_MODAL_BOX="Bootstrap Modal Box"

;[2.0.4]
PLG_CONTENT_PHOCAMAPS="Phoca Maps Plugin"
PLG_CONTENT_PHOCAMAPS_DESCRIPTION="<div class="_QQ_"alert alert-info left"_QQ_" style="_QQ_"text-align: left;"_QQ_"><p>Phoca Maps Plugin - displays Phoca Maps in article.</p><p>Enable and publish this module in <a style="_QQ_"text-decoration: underline"_QQ_" href="_QQ_"index.php?option=com_plugins"_QQ_">Plug-in Manager</a></p><p>More information: <a style="_QQ_"text-decoration: underline"_QQ_" href="_QQ_"http://www.phoca.cz/"_QQ_" target="_QQ_"_blank"_QQ_" >Phoca.cz</a></p><p>Documentation: <a style="_QQ_"text-decoration: underline"_QQ_" href="_QQ_"http://www.phoca.cz/documentation/"_QQ_" target="_QQ_"_blank"_QQ_" >Phoca Documentation</a></p><p>Help and Support: <a style="_QQ_"text-decoration: underline"_QQ_" href="_QQ_"http://www.phoca.cz/forum/"_QQ_" target="_QQ_"_blank"_QQ_" >Phoca Forum</a></p></div>"
Expand Down
8 changes: 4 additions & 4 deletions manifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
<element>phocamaps</element>
<folder>content</folder>
<type>plugin</type>
<version>3.0.6</version>
<infourl title="Phoca Maps Content Plugin 3.0.6">https://www.phoca.cz/</infourl>
<version>3.0.9</version>
<infourl title="Phoca Maps Content Plugin 3.0.9">https://www.phoca.cz/</infourl>
<downloads>
<downloadurl type="full" format="zip">https://github.com/PhocaCz/PhocaMapsPlugin/releases/download/3.0.6/plg_content_phocamaps_v3.0.6.zip</downloadurl>
<downloadurl type="full" format="zip">https://github.com/PhocaCz/PhocaMapsPlugin/releases/download/3.0.9/plg_content_phocamaps_v3.0.9.zip</downloadurl>
</downloads>
<tags>
<tag>stable</tag>
Expand All @@ -17,6 +17,6 @@
<maintainerurl>https://www.phoca.cz/</maintainerurl>
<section>Updates</section>
<targetplatform name="joomla" version="3.9"/>
<client>0</client>
<client>site</client>
</update>
</updates>
47 changes: 46 additions & 1 deletion phocamaps.php
Original file line number Diff line number Diff line change
Expand Up @@ -715,7 +715,6 @@ public function onContentPrepare($context, &$article, &$params, $page = 0) {
}
}


if ($tmpl['detailwindow'] == 1) {

$button = new JObject();
Expand All @@ -741,6 +740,52 @@ public function onContentPrepare($context, &$article, &$params, $page = 0) {
$button->set('options', "{handler: 'iframe', size: {x: ".$tmpl['windowwidth'].", y: ".$tmpl['windowheight']."}, overlayOpacity: ".$tmpl['mboverlayopacity'].", classWindow: 'phocamaps-plugin-window', classOverlay: 'phocamaps-plugin-overlay'}");

$output .= '<a class="modal-button" title="'.$text.'" href="'.JRoute::_($linkMap . '&tmpl=component').'" rel="'. $button->options.'">'.$text.'</a>';
} else if ($tmpl['detailwindow'] == 2) {

// Bootstrap Modal
$item = 'phPlgMapsModalDetail' . $this->_plgPhocaMapsNr;
Joomla\CMS\HTML\HTMLHelper::_('jquery.framework', false);
$s = '
jQuery(document).ready(function(){
jQuery("body").on("click", ".ph-modal-button-plg-ph-maps", function () {
var $target = jQuery(this).data("target");
var $href = jQuery(this).data("href");
var $body = $target + "Body";
var $dialog = $target + "Dialog";
var $height = jQuery(this).data("height");
var $width = jQuery(this).data("width");
jQuery($body).css("height", $height);
jQuery($body).css("width", $width);
jQuery($body).css("overflow-y", "auto");
jQuery($body).load($href, function (response, status, xhr) {});
});
});';
$document->addScriptDeclaration($s);

$output .= '<a class="ph-modal-button-plg-ph-maps" title="'.$text.'" href="#'.$item.'" data-toggle="modal" data-title="' . $text. '" data-id="' . $this->_plgPhocaMapsNr . '" data-href="'.JRoute::_($linkMap . '&tmpl=component').'" data-height='.$tmpl['windowheight'].' data-width='.$tmpl['windowwidth'].'" data-target="#'.$item.'">'.$text.'</a>';

$output .= '
<div id="'.$item.'" class="modal" tabindex="-1" role="dialog" aria-labelledby="'.$item.'Label">
<div class="modal-dialog modal-dialog-centered" role="document" id="'.$item.'Dialog">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title" id="'.$item.'Label">'.$mapp->title.'</h4>
<button type="button" class="close" data-dismiss="modal">&times;</button>
</div>
<div class="modal-body" id="'.$item.'Body" ></div>
<div class="modal-footer">
<button type="button" class="btn btn-danger" data-dismiss="modal">'.JText::_('COM_PHOCAMAPS_CLOSE').'</button>
</div>
</div>
</div>
</div>';
}

}
Expand Down
7 changes: 4 additions & 3 deletions phocamaps.xml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<extension type="plugin" group="content" method="upgrade" version="3">
<extension type="plugin" group="content" method="upgrade" version="3.9">
<name>plg_content_phocamaps</name>
<author>Jan Pavelka (www.phoca.cz)</author>
<creationDate>02/03/2019</creationDate>
<creationDate>09/11/2020</creationDate>
<authorEmail></authorEmail>
<authorUrl>https://www.phoca.cz</authorUrl>
<copyright>Jan Pavelka</copyright>
<license>GNU/GPL</license>
<version>3.0.6</version>
<version>3.0.9</version>
<description>PLG_CONTENT_PHOCAMAPS_DESCRIPTION</description>
<projectName>PhocaMapsPlugin</projectName>

Expand Down Expand Up @@ -48,6 +48,7 @@
<field name="detail_window" type="list" default="1" label="PLG_CONTENT_PHOCAMAPS_DETAIL_WINDOW_LABEL" description="PLG_CONTENT_PHOCAMAPS_DETAIL_WINDOW_DESC">
<option value="1">PLG_CONTENT_PHOCAMAPS_STANDARD_POPUP_WINDOW</option>
<option value="0">PLG_CONTENT_PHOCAMAPS_MODAL_BOX</option>
<option value="2">PLG_CONTENT_PHOCAMAPS_BOOTSTRAP_MODAL_BOX</option>
</field>

<field name="modal_box_overlay_color" default="#000000" size="10" type="color" label="PLG_CONTENT_PHOCAMAPS_MODAL_BOX_OVERLAY_COLOR_LABEL" description="PLG_CONTENT_PHOCAMAPS_MODAL_BOX_OVERLAY_COLOR_DESC"/>
Expand Down

0 comments on commit eae9fb3

Please sign in to comment.