Файловый менеджер - Редактировать - /home/digitalm/yhubita/wp-content/plugins/anti-spam/libs/factory/forms/includes/form-layout.class.php
Назад
<?php /** * The file contains the base class for all form layouts. * * @author Alex Kovalev <alex.kovalevv@gmail.com> * @copyright (c) 2018, Webcraftic Ltd * * @package factory-forms * @since 1.0.0 */ // Exit if accessed directly if( !defined('ABSPATH') ) { exit; } if( !class_exists('Wbcr_FactoryForms463_FormLayout') ) { /** * The base class for all form layouts. */ abstract class Wbcr_FactoryForms463_FormLayout extends Wbcr_FactoryForms463_Holder { /** * A form layout name. * * @since 1.0.0 * @var string */ protected $name = 'default'; /** * A holder type. * * @since 1.0.0 * @var string */ protected $type = 'form-layout'; /** * Creates a new instance of a form layout. * * @since 1.0.0 * @param mixed[] $options A holder options. * @param Wbcr_FactoryForms463_Form $form A parent form. */ public function __construct($options, $form) { $options['name'] = $this->name; $options['items'] = $form->getItems(); parent::__construct($options, $form); $this->addCssClass('factory-forms-463-' . $this->type); $this->addCssClass('factory-forms-463-' . $this->name); } /** * Renders a beginning of a form. * * @since 1.0.0 * @return void */ public function beforeRendering() { echo '<div '; $this->attrs(); echo '>'; } /** * Renders the end of a form. * * @since 1.0.0 * @return void */ public function afterRendering() { echo '</div>'; } /** * Rendering some html before a holder. * * @since 1.0.0 * @return void */ public function beforeHolder($element) { } /** * Rendering some html after a holder. * * @since 1.0.0 * @return void */ public function afterHolder($element) { } /** * Rendering some html before a contol. * * @since 1.0.0 * @return void */ public function beforeControl($element) { } /** * Rendering some html after a contol. * * @since 1.0.0 * @return void */ public function afterControl($element) { } } }
| ver. 1.4 |
Github
|
.
| PHP 8.3.23 | Генерация страницы: 0.05 |
proxy
|
phpinfo
|
Настройка