Skip to content

Commit

Permalink
improve rv_gmaps support
Browse files Browse the repository at this point in the history
  • Loading branch information
tkuther committed Oct 26, 2017
1 parent 772b199 commit c09f70c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
16 changes: 14 additions & 2 deletions template/_plugin_fixes_js.tpl
Expand Up @@ -10,8 +10,8 @@ $(document).ready(function() {
{footer_script require='jquery'}{strip}
$(document).ready(function() {
$('.pwg-icon-map').removeClass('pwg-icon').closest('a').html('<i class="fa fa-globe fa-fw" aria-hidden="true"></i>').addClass('nav-link').removeClass('pwg-state-default pwg-button').wrap('<li class="nav-item rvgmaps-button"></li>').find('i').after('<span class="d-lg-none ml-2">'+$('.rvgmaps-button').find('a').attr('title')+'</span>');
$('#map').wrap('<div id="mapContainer" class="container{if $theme_config->fluid_width}-fluid{/if}"></div>');
$('#mapPicture').prependTo('#mapContainer');
$('#map').wrap('<div id="mapContainer" class="container"></div>');
$('#mapPicture').prependTo('#mapContainer').wrap('<div class="row justify-content-center"></div>');
});
{/strip}{/footer_script}
{/if}
Expand All @@ -22,6 +22,18 @@ $(document).ready(function() {
});
{/strip}{/footer_script}
{/if}
{if isset($loaded_plugins['rv_gmaps']) && $BODY_ID == "theMapListPage"}
{footer_script require='jquery'}{strip}
$(document).ready(function() {
$('#theMapListPage #wrapper').addClass('container');
$('#theMapListPage ul.categoryActions').addClass('nav flex-column').find('li').addClass('nav-item').find('a').addClass('nav-link');
$('#theMapListPage .pwg-icon-globe').addClass('fa fa-globe').removeClass('pwg-icon pwg-icon-globe');
$('#theMapListPage .pwg-icon-home').addClass('fa fa-home').removeClass('pwg-icon pwg-icon-home');
$('#theMapListPage #thumbnails').addClass('row').changeElementType('div');
$('#theMapListPage #thumbnails').find('.card-thumbnail').addClass('mb-3');
});
{/strip}{/footer_script}
{/if}

{if isset($loaded_plugins['oAuth'])}
{footer_script require='jquery'}{strip}
Expand Down
2 changes: 1 addition & 1 deletion template/thumbnails.tpl
@@ -1,6 +1,6 @@
{if !empty($thumbnails)}
{footer_script}
var error_icon = "{$ROOT_URL}{$themeconf.icon_dir}/errors_small.png", max_requests = {$maxRequests};
var error_icon = "{$ROOT_URL}{$themeconf.icon_dir}/errors_small.png"{if isset($maxRequests)}, max_requests = {$maxRequests}{/if};
{/footer_script}
{if $derivative_params->type == "thumb"}
{assign var=width value=520}
Expand Down

0 comments on commit c09f70c

Please sign in to comment.