Jump to content

Removing Header and sidebars for thickbox


Recommended Posts

I try to build in the "mentions" like the "conditions".

I did now this:

I did id now this way in the authentication.tpl:

{include file=$tpl_dir./thickbox.tpl} (line 2)

{l s=‘Ich habe die Datenschutzbestimmung gelesen.’} {l s=’(Datenschutzbestimmung lesen)’}



and in the mentions.tpl:

{if $thickbox}
{l s=‘Legal’}

{else}
{capture name=path}{l s=‘Legal’}{/capture}
{include file=$tpl_dir./breadcrumb.tpl}

{l s=‘Legal’}

{/if}



and in the mentions.php:

if (Tools::getValue(‘thickbox’))
{ include(dirname(FILE).’/init.php’); $smarty->assign(‘thickbox’, true);
}
else



in the php-files i add this:

$js_files = array(__PS_BASE_URI__.'js/jquery/thickbox-modified.js'); 


$css_files = array(__PS_BASE_URI__.'css/thickbox.css' => 'all'); 



It works nearly fine, but i have the header and the sidebars in the thickbox.

Link to comment
Share on other sites

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...