/** * Function to display userfields in front-end * * @param string $name * @param mixed $fieldValue * @return string */ public function viewField($name, $fieldValue = '') { $method = $this->html; $options = frameCsp::_()->getModule('optionsCsp')->getHelper()->getOptions($this->id); $attrs = ''; if (is_object($this->htmlParams['attr']) && count($this->htmlParams['attr']) > 0) { foreach ($this->htmlParams['attr'] as $attribute => $value) { if ($value != '') { $attrs .= $attribute . '="' . $value . '" '; } } } if ($fieldValue == $this->default_value) { $checked = 1; } else { $checked = 0; } if ($fieldValue == '') { $fieldValue = $this->default_value; } $params = array('optionsCsp' => $options, 'attrs' => $attrs, 'value' => $fieldValue, 'checked' => $checked); $output = ''; if (method_exists('htmlCsp', $method)) { $output .= htmlCsp::$method($name, $params); $output .= htmlCsp::hidden('extra_field[' . $this->name . ']', array('value' => $this->id)); } return $output; }
<form id="cspAdminAccessFormRole"> <table> <tr> <td>Only users at or above this level will be able to log in:</td> <td> <?php $selected = frameCsp::_()->getTable('access')->get('access', array('type_access' => 3)); ?> <?php echo htmlCsp::selectbox('roleCsp', array('attrs' => 'style="float:left; width:120px; margin-right:8px;"', 'options' => $this->selectRole, 'value' => $selected[0]['access'])); ?> <?php echo htmlCsp::hidden('reqType', array('value' => 'ajax')); ?> <?php echo htmlCsp::hidden('page', array('value' => 'access')); ?> <?php echo htmlCsp::hidden('action', array('value' => 'saveRole')); ?> <?php echo htmlCsp::submit('submitRole', array('value' => langCsp::_('Save'), 'attrs' => 'class="button button-primary button-large" style="float:right;"')); ?> </td> </tr> </table> </form>
<p>There are so many features, so we can't post it here. Like:</p> <ul> <li>Works with any WordPress Theme</li> <li>Build with HTML5 & CSS3</li> <li>Responsive. Work on any device</li> <li>Access controls (Restrict By User Role, IP Address)</li> <li>Social integration (Facebook, Tweeter, Google+, YouTube, Instagram)</li> </ul> <p>So check full features list <a target="_blank" href="http://wordpress.org/plugins/coming-soon-maintenance-mode-ready/">here</a>.</p> </div> <div class="clear"></div> <?php echo htmlCsp::hidden('pl', array('value' => CSP_CODE)); ?> <?php echo htmlCsp::hidden('page', array('value' => 'promo_ready')); ?> <?php echo htmlCsp::hidden('action', array('value' => 'welcomePageSaveInfo')); ?> <?php echo htmlCsp::submit('gonext', array('value' => 'Thank for check info. Start using plugin.', 'attrs' => 'class="button button-primary button-hero"')); ?> <?php echo htmlCsp::hidden('original_page', array('value' => reqCsp::getVar('page'))); ?> <span id="toeWelcomePageFindUsMsg"></span> </form> </div>
langCsp::_e($metaOpts['label']); ?> </h3> <div class="inside"> <div><?php echo $metaOpts['adminOptsContent']; ?> </div> </div> </div> <?php } ?> </div> </div> </div> </div> <div style="clear: both;"></div> <?php } ?> <div> <?php echo htmlCsp::hidden('reqType', array('value' => 'ajax')); echo htmlCsp::hidden('page', array('value' => 'options')); echo htmlCsp::hidden('action', array('value' => 'saveGroup')); echo htmlCsp::submit('saveAll', array('value' => langCsp::_('Save All Changes'), 'attrs' => 'class="button button-primary button-large"')); ?> </div> <div id="cspAdminMetaOptionsMsg"></div> </form>
$formData = array(); switch ($this->REQUEST_METHOD) { case 'GET': $formData = $this->GET; break; case 'POST': $formData = $this->POST; break; } foreach ($formData as $key => $val) { if (is_array($val)) { foreach ($val as $subKey => $subVal) { echo htmlCsp::hidden($key . '[' . $subKey . ']', array('value' => $subVal)); } } else { echo htmlCsp::hidden($key, array('value' => $val)); } } ?> <table width="100%"> <tr> <td><?php langCsp::_e('Delete Plugin Data (options, setup data, database tables, etc.)'); ?> :</td> <td><?php echo htmlCsp::radiobuttons('deleteOptions', array('options' => array('No', 'Yes'))); ?> </td> </tr> </table>
</i> </td> </tr> <?php dispatcherCsp::doAction('subscribe_' . $this->code . '_SettingsEnd'); ?> <tr> <td> <?php echo htmlCsp::hidden('page', array('value' => 'options')); ?> <?php echo htmlCsp::hidden('action', array('value' => 'saveGroup')); ?> <?php echo htmlCsp::hidden('reqType', array('value' => 'ajax')); ?> <?php echo htmlCsp::submit('save', array('value' => langCsp::_('Save'))); ?> </td> <td class="cspEngineSubscribeOptionsFormMsg"></td> </tr> </table> </form> </div> </div> <div id="id_<?php echo $this->code; ?>
?> </label> <?php echo htmlCsp::hidden('page', array('value' => 'options')); ?> <?php echo htmlCsp::hidden('action', array('value' => 'activatePlugin')); ?> <?php echo htmlCsp::hidden('reqType', array('value' => 'ajax')); ?> <?php echo htmlCsp::hidden('plugName'); ?> <?php echo htmlCsp::hidden('goto'); ?> <?php echo htmlCsp::submit('activate', array('value' => langCsp::_('Activate'))); ?> <br /> <div id="toeModActivationPopupMsgCsp"></div> </form> </center> <i><?php langCsp::_e('To get your keys - go to'); ?> <a target="_blank" href="http://readyshoppingcart.com/my-account/my-orders/">http://readyshoppingcart.com/my-account/my-orders/</a> <?php langCsp::_e('and copy & paste key from your ordered extension here.'); ?>
: <?php echo htmlCsp::selectbox('shortcodeType', array('optionsCsp' => $this->shortcodesSelectOptions)); ?> </div> <div class="toeInsertShortcodeAtts"></div> </div> <h3><a href="#" title="category"><?php langCsp::_e('Category'); ?> </a></h3> <div> <div class="toeInsertShortcodeAtts"></div> </div> <h3><a href="#" title="product"><?php langCsp::_e('Product'); ?> </a></h3> <div> <div class="toeInsertShortcodeAtts"></div> </div> </div> <div> <?php echo htmlCsp::hidden('newContent'); ?> <?php echo htmlCsp::submit('insert', array('value' => langCsp::_('Insert'))); ?> </div> <?php echo htmlCsp::formEnd();
</td> <td><?php langCsp::_e('Remove'); ?> </td> </tr> <tr class="cspExample cspTblRow" style="display: none;"> <td class="email"></td> <td> <a href="#" onclick="cspSubscrbChangeStatus(this); return false;" class="status cspStatusIndicator" valueTo="class"></a> </td> <td> <a href="#" onclick="cspSubscrbRemove(this); return false;"><?php echo htmlCsp::img('cross.gif'); ?> </a> <?php echo htmlCsp::hidden('id', array('attrs' => 'class="id" valueTo="value"')); ?> </td> </tr> </table> <div id="cspAdminSubersPaging"></div> <div id="cspAdminSubersMsg"></div> </div> </div> </div> </div> </div> </div> <div style="clear: both;"></div>
<label for=""><?php echo $this->enterEmailMsg; ?> </label>: <?php if ($this->sub_name_enable == 1) { echo htmlCsp::text('name', array('attrs' => 'id="cspSubscribeName" placeholder="Your Name" ')); } ?> <?php echo htmlCsp::text('email'); ?> <br /> <div> <?php echo htmlCsp::hidden('reqType', array('value' => 'ajax')); ?> <?php echo htmlCsp::hidden('page', array('value' => 'subscribe')); ?> <?php echo htmlCsp::hidden('action', array('value' => 'create')); ?> <?php echo htmlCsp::submit('create', array('value' => langCsp::_('Subscribe'))); ?> </div> <div id="cspSubscribeCreateMsg"></div> </form>
<table width="100%"> <tr class="cspBodyCells"> <td> <div class="cspLeftCol"> <?php echo htmlCsp::hidden('opt_values[favico]', array('value' => $this->optsModel->get('favico'), 'attrs' => 'id="favico_value_input"')); ?> <?php langCsp::_e('Favico for site'); ?> : <?php echo htmlCsp::ajaxfile('favico', array('url' => uriCsp::_(array('baseUrl' => admin_url('admin-ajax.php'), 'page' => 'options', 'action' => 'saveFavico', 'reqType' => 'ajax')), 'value' => $this->optsModel->get('favico'), 'onSubmit' => 'favicoPreLoading', 'onComplete' => 'favicoUploadComplete')); ?> </div> </td> <td> <a id='removeFavicoImage'>Remove</a> <div class='showUploadedFavico'> <img src='<?php echo frameCsp::_()->getModule('options')->getFavicoFullPath(); ?> '/> <div class='loader'> </div> <div id="cspAdminMetaOptionsMsg" class="cspSuccessMsg"></div> </div> </td>