Jump to content
Дизайн и модификация IPS Community IPBSkinsBETA
Search In
  • More options...
Find results that contain...
Find results in...
Sign in to follow this  
vinegredz

Как изменить класс для формы регистрации?

Recommended Posts

Здравствуйте!

 

Нужно изменить класс для формы регистрации. Речь идет про эту строку:

 

<form action="https://site.ru/" method="post" accept-charset="utf-8" enctype="multipart/form-data" data-ipsform="" class="ipsForm ipsForm_horizontal" data-controller="core.front.system.register">

 

Нужно изменить ipsForm_horizontal на ipsForm_vertical. В шаблоне эти классы не изменить. Поменял напрямую в двух файлах:

 

applications\core\modules\front\system\register.php
applications\core\data\javascript.xml

 

Но по факту все равно класс не поменялся. Подскажите, где править это дело?

Share this post


Link to post

По умолчанию для всех форм установлен класс ipsForm_horizontal

 

applications\core\modules\front\system\register.php

В этом файле есть

		if ( \IPS\Login::registrationType() == 'full' )
	{
		.....
	}
	else
	{
		$form->class = 'ipsForm_vertical';
	}

Получается, что класс меняется только, если тип регистрации Yes, with quick registration (Recommended)

 

Можете убрать else

Share this post


Link to post

Понял. Помогло, спасибо, за описание логики.

Share this post


Link to post

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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...