Skip to content
This repository has been archived by the owner on Jan 13, 2023. It is now read-only.

Commit

Permalink
add vh
Browse files Browse the repository at this point in the history
  • Loading branch information
astridx committed Aug 28, 2019
1 parent 9d73e43 commit 4d0dc78
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 4 deletions.
11 changes: 11 additions & 0 deletions src/modules/mod_agosm/mod_agosm.xml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,17 @@
step="10"
/>

<field
type="list"
name="heightunit"
label="MOD_AGOSM_HEIGHTUNIT"
description="MOD_AGOSM_HEIGHTUNIT_DESC"
default="px"
>
<option value="px">px (Pixel)</option>
<option value="vh">vh (Viewport Height)</option>
</field>

<field
type="list"
name="zoom"
Expand Down
2 changes: 1 addition & 1 deletion src/modules/mod_agosm/tmpl/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

<div style="
width:auto;
height:<?php echo $params->get('height', '400'); ?>px;"
height:<?php echo $params->get('height', '400'); ?><?php echo $params->get('heightunit', 'px'); ?>;"
data-module-id="<?php echo $module->id; ?>"
data-no-world-warp="<?php echo $params->get('noWorldWarp', 0); ?>"
data-detect-retina="<?php echo $params->get('detectRetina', 0); ?>"
Expand Down
2 changes: 1 addition & 1 deletion src/modules/mod_agosms_search/mod_agosms_search.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"search_mode",
"field_id",
"field_type"
);
);

foreach (JFactory::getSession()->get("SaveSearchValues") as $key => $value)
{
Expand Down
24 changes: 24 additions & 0 deletions src/modules/mod_agosms_search/mod_agosms_search.xml
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,30 @@
<option value="1">MOD_AGOSMSSEARCHYES</option>
</field>

<field
type="integer"
name="height"
label="MOD_AGOSM_HEIGHT"
description="MOD_AGOSM_HEIGHT_DESC"
default="400"
first="10"
last="1000"
step="10"
showon="show_map:1"
/>

<field
type="list"
name="heightunit"
label="MOD_AGOSM_HEIGHTUNIT"
description="MOD_AGOSM_HEIGHTUNIT_DESC"
default="px"
showon="show_map:1"
>
<option value="px">px (Pixel)</option>
<option value="vh">vh (Viewport Height)</option>
</field>

<field type="spacer" name="myspacero111o" hr="true" />
<field
type="spacer"
Expand Down
2 changes: 0 additions & 2 deletions src/modules/mod_agosms_search/tmpl/Default/template.php
Original file line number Diff line number Diff line change
Expand Up @@ -291,8 +291,6 @@ function prepareDates<?php echo $module->id; ?>(el) {
<?php if($params->get("Itemid")) { ?>
<input type="hidden" name="Itemid" value="<?php echo $params->get("Itemid"); ?>" />
<?php } ?>

<div style="clear:both;"></div>
</form>

<?php if($params->get("acounter")) { ?>
Expand Down

0 comments on commit 4d0dc78

Please sign in to comment.