if (strpos($test, 'Jot::button(\'action\', $speak->update)') === false && strpos($test, 'Jot::button("action", $speak->update)') === false) { echo '<div class="grid-group">'; echo '<span class="grid span-1"></span>'; echo '<span class="grid span-5">'; Weapon::fire('action_before', $hooks); echo Jot::button('action', $speak->update); Weapon::fire('action_after', $hooks); echo '</span>'; echo '</div>'; } echo '</form>'; } else { include $page->configurator; } } else { echo Cell::p(Config::speak('notify_not_available', $speak->config)); } ?> </div> <div class="tab-content hidden" id="tab-content-1-3"> <p class="about-author"> <?php echo Cell::strong($speak->author . ':') . ' ' . $page->author; if (isset($page->url) && $page->url !== '#') { ?> <?php echo Cell::a($page->url, Jot::icon('external-link-square'), true, array('class' => array('about-url', 'help'), 'title' => $speak->link, 'rel' => 'nofollow')); ?> <?php } ?>
$html .= '</span>'; $html .= '</label>'; } else { if ($type === 'e') { $html .= '<label class="grid-group grid-group-editor">'; $html .= '<span class="grid span-2 form-label">' . $title . '</span>'; $html .= '<span class="grid span-4">'; $html .= Form::textarea('fields[' . $key . '][value]', Converter::str(isset($field[$key]) ? $field[$key] : $value['value']), Converter::toText(isset($value['placeholder']) ? $value['placeholder'] : $value['value']), array('class' => array('textarea-block', 'code'))); $html .= '</span>'; $html .= '</label>'; } else { // if($type === 's') { $html .= '<label class="grid-group grid-group-summary">'; $html .= '<span class="grid span-2 form-label">' . $title . '</span>'; $html .= '<span class="grid span-4">'; $html .= Form::textarea('fields[' . $key . '][value]', Converter::str(isset($field[$key]) ? $field[$key] : $value['value']), Converter::toText(isset($value['placeholder']) ? $value['placeholder'] : $value['value']), array('class' => 'textarea-block')); $html .= '</span>'; $html .= '</label>'; } } } } } } } } echo !empty($html) ? $html : Cell::p(Config::speak('notify_empty', strtolower($speak->fields))); } else { echo Cell::p(Config::speak('notify_empty', strtolower($speak->fields))); } Weapon::fire('unit_composer_3_after', array($segment, $fields));