Current Path : /storage/v11800/athomenoha/public_html/wp-content/plugins/salon-booking-system/views/shortcode/ |
Linux v11800 5.3.0-1023-aws #25~18.04.1-Ubuntu SMP Fri Jun 5 15:19:18 UTC 2020 aarch64
|
Current File : /storage/v11800/athomenoha/public_html/wp-content/plugins/salon-booking-system/views/shortcode/salon_attendant.php |
<?php
/**
* @var SLN_Plugin $plugin
* @var string $formAction
* @var string $submitName
* @var SLN_Shortcode_Salon_AttendantStep $step
* @var bool $isMultipleAttSelection
*/
$bb = $plugin->getBookingBuilder();
$attendants = $step->getAttendants();
$style = $step->getShortcode()->getStyleShortcode();
$size = SLN_Enum_ShortcodeStyle::getSize($style);
$isMultipleAttSelection = $plugin->getSettings()->isMultipleAttendantsEnabled();
$includeName = $isMultipleAttSelection ? '_m_attendants.php' : '_attendants.php';
$wrapperClass = $isMultipleAttSelection ? 'sln-attendants-wrapper sln-attendants-wrapper--multi' : 'sln-attendants-wrapper';
$additional_errors = !empty($additional_errors)? $additional_errors : $step->getAddtitionalErrors();
$errors = !empty($errors) ? $errors : $step->getErrors();
?>
<form id="salon-step-attendant" method="post" action="<?php echo $formAction ?>" role="form">
<?php
include '_errors.php';
include '_additional_errors.php';
?>
<?php if ($size == '900'): ?>
<div class="row sln-box--main sln-attendants-wrapper">
<div class="col-xs-12 col-md-8">
<div class="sln-box--fixed_height"><?php include $includeName; ?></div>
</div> <!-- The row closed inside _form_actions.php -->
<?php else: ?>
<div class="row sln-box--main <?php echo $wrapperClass; ?> sln-box--fixed_height">
<div class="col-xs-12"><?php include $includeName; ?></div>
</div>
<?php endif ?>
<?php include "_form_actions.php" ?>
</form>