Jump to content

SSL problem with language block - PS 1.5.6.2


Recommended Posts

Hi,

 

I am working on a shop for a customer, which runs SSL. I have a problem with the language block, as it links to http. I have implemented the fix for the file links.php from Github regarding the problems in 1.5.6.2 and images - and that works fine as can be seen below.

 

Can someone help with what needs to be changed to fix the problem in the module?

	<ul id="first-languages" class="dropdown-menu">
	<li><a href="http://mywebsiteurl.dk/en/" title="English (English)">
	<img src="https://mywebsiteurl.dk/img/l/1.jpg" alt="en" width="16" height="11" /> <span>English (English)</span>
	</a></li>
	<li><a href="http://mywebsiteurl.dk/sv/" title="Swedish">
Link to comment
Share on other sites

I have worked that much out ;-) But what to change in the file?

<!-- Block languages module -->
{if count($languages) > 1}
<div id="languages_block_top">
	{* @todo fix display current languages, removing the first foreach loop *}
	{foreach from=$languages key=k item=language name="languages"}
		{if $language.iso_code == $lang_iso}
			<p class="dropdown-toggle" data-toggle="dropdown">
				<label>{l s='Language' mod='blocklanguages'} :</label> <img src="{$img_lang_dir}{$language.id_lang}.jpg" alt="{$language.iso_code}" width="16" height="11" /> <span>{$language.name}</span>
				<span class="caret"></span>
			</p>
		{/if}
	{/foreach}
		<ul id="first-languages" class="dropdown-menu">
		{foreach from=$languages key=k item=language name="languages"}
			{if $language.iso_code != $lang_iso}
				<li>
					{if $language.iso_code != $lang_iso}
						{assign var=indice_lang value=$language.id_lang}
						{if isset($lang_rewrite_urls.$indice_lang)}
							<a href="{$lang_rewrite_urls.$indice_lang|escape:htmlall}" title="{$language.name}">
						{else}
							<a href="{$link->getLanguageLink($language.id_lang)|escape:htmlall}" title="{$language.name}">

						{/if}
					{/if}
							<img src="{$img_lang_dir}{$language.id_lang}.jpg" alt="{$language.iso_code}" width="16" height="11" /> <span>{$language.name}</span>
						</a>
				</li>
			{/if}
		{/foreach}
		</ul>
</div>

{/if}
<!-- /Block languages module -->
Link to comment
Share on other sites

  • 3 years later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...