assign('culture', $sf_user->getCulture());?> assign('privacy_only', $privacy_only); ?> assign('new_window', isset($new_window) ? $new_window : null); ?> getCulture())) && $compatibility_config->get('terms_privacy_show')==1){ $smarty->assign("terms_privacy_show", 1); $terms_privacy_text = $compatibility_config->get('terms_privacy_text', null, true); if(stTheme::is_responsive()): $terms_text = $terms_privacy_text; $terms_text = preg_replace('/{LINK_TO_PRIVACY}/', '$', $terms_text); $terms_text = preg_replace('/{\/LINK_TO_PRIVACY}/', '$', $terms_text); $terms_text = preg_replace('/{LINK_TO_TERMS}/', '%', $terms_text); $terms_text = preg_replace('/{\/LINK_TO_TERMS}/', '%', $terms_text); $tmp_string_terms_privacy = explode("$",$terms_text); $tmp_string_terms_shop = explode("%",$terms_text); $terms_privacy = $tmp_string_terms_privacy[1]; $terms_shop = isset($tmp_string_terms_shop[1]) ? $tmp_string_terms_shop[1] : null; $terms_text = $terms_privacy_text; $terms_text = preg_replace('/{LINK_TO_PRIVACY}/', '%', $terms_text); $terms_text = preg_replace('/{\/LINK_TO_PRIVACY}/', '%', $terms_text); $terms_text = preg_replace('/{LINK_TO_TERMS}/', '%', $terms_text); $terms_text = preg_replace('/{\/LINK_TO_TERMS}/', '%', $terms_text); $tmp_string = explode("%",$terms_text); $string = ''; foreach ($tmp_string as $value) { if($value==$terms_privacy){ $string .= st_get_component('stWebpageFrontend', 'link', array('state'=>'PRIVACY', 'label'=>$terms_privacy)); }elseif($value==$terms_shop){ $string .= st_get_component('stWebpageFrontend', 'link', array('state'=>'TERMS', 'label'=>$terms_shop)); }else{ $string .= $value; } } $smarty->assign("terms_privacy_text", $string); else: $terms_right_2_cancel_text = preg_replace('/{RIGHT_TO_CANCEL}/', '', $terms_right_2_cancel_text); $terms_right_2_cancel_text = preg_replace('/{\/RIGHT_TO_CANCEL}/', '', $terms_right_2_cancel_text); $terms_right_2_cancel_text = preg_replace('/{TERMS_AND_CONDITIONS}/', '', $terms_right_2_cancel_text); $terms_right_2_cancel_text = preg_replace('/{\/TERMS_AND_CONDITIONS}/', '', $terms_right_2_cancel_text); $smarty->assign("terms_right_2_cancel_text", $terms_right_2_cancel_text); endif; //} ?> assign('privacy_url', st_url_for('stWebpageFrontend/index?url='.$webpage->getFriendlyUrl())); }else{ $smarty->assign('privacy_url', "/"); } ?> display('user_privacy.html') ?>