uawdijnntqw1x1x1
IP : 216.73.216.109
Hostname : premium160.web-hosting.com
Kernel : Linux premium160.web-hosting.com 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
Disable Function : None :)
OS : Linux
PATH:
/
home
/
batcwwjx
/
old
/
public_html
/
wp-content
/
plugins
/
.
/
clearfy
/
libs
/
factory
/
forms
/
controls
/
textbox.php
/
/
<?php /** * Textbox Control * * Main options: * name => a name of the control * value => a value to show in the control * default => a default value of the control if the "value" option is not specified * maxLength => set the max length of text in the input control * placeholder => a placeholder text for the control when the control value is empty * * Использование datepicker в текстовом поле (необходимо подключить bootstrap.datepicker) * 'htmlAttrs' => array( * 'data-provide' => 'datepicker-inline', * 'data-date-language' => 'ru', * 'data-date-autoclose' => 'true' * ) * * @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_FactoryForms434_TextboxControl') ) { class Wbcr_FactoryForms434_TextboxControl extends Wbcr_FactoryForms434_Control { public $type = 'textbox'; /** * Preparing html attributes before rendering html of the control. * * @since 1.0.0 * @return void */ protected function beforeHtml() { $value = esc_attr($this->getValue()); $name_on_form = $this->getNameOnForm(); if( $this->getOption('maxLength', false) ) { $this->addHtmlAttr('maxlength', intval($this->getOption('maxLength'))); } if( $this->getOption('placeholder', false) ) { $this->addHtmlAttr('placeholder', $this->getOption('placeholder')); } $this->addCssClass('form-control'); $this->addHtmlAttr('type', 'text'); $this->addHtmlAttr('id', $name_on_form); $this->addHtmlAttr('name', $name_on_form); $this->addHtmlAttr('value', $value); } /** * Shows the html markup of the control. * * @since 1.0.0 * @return void */ public function html() { $units = $this->getOption('units', false); ?> <?php if( $units ) { ?><div class="input-group"><?php } ?> <input <?php $this->attrs() ?>/> <?php if( $units ) { ?> <span class="input-group-addon"><?php echo $units; ?></span> <?php } ?> <?php if( $units ) { ?></div><?php } ?> <?php } } }
/home/batcwwjx/old/public_html/wp-content/plugins/./clearfy/libs/factory/forms/controls/textbox.php