<script type="text/javascript"> // <!-- jQuery(document).ready(function(){ jQuery('#toePagesRecreate').click(function(){ jQuery(this).sendForm({ msgElID: 'toePagesOptionsMsg', data: {page: 'pagesCsp', action: 'recreatePages', reqType: 'ajax'} }); return false; }); }); // --> </script> <h1><?php langCsp::_e('Pages Options'); ?> </h1> <table> <tr> <td><?php echo htmlCsp::inputButton(array('value' => langCsp::_('Recreate Pages'), 'attrs' => 'id="toePagesRecreate"')); ?> </td> <td><a href="#" class="toeOptTip" tip="<?php langCsp::_e('If you accidently deleted one of plugin page - Login, or Checkout, or Shopping cart for example, just click on this button - and pages, that you deleted, will be created again. Do not use it without emergency.'); ?> "></a></td> </tr> </table> <div id="toePagesOptionsMsg"></div>
<br /> <div class="cspLeftCol withCspOptTip"> <?php langCsp::_e('Color Scheme'); ?> : <?php echo htmlCsp::selectbox('opt_values[soc_facebook_follow_color_scheme]', array('value' => $this->optsModel->get('soc_facebook_follow_color_scheme'), 'options' => array('light' => 'light', 'dark' => 'dark'))); ?> <br /> <?php langCsp::_e('Width'); ?> : <?php echo htmlCsp::text('opt_values[soc_facebook_follow_width]', array('value' => $this->optsModel->get('soc_facebook_follow_width'))); ?> </div> <div class="cspRightCol withCspOptTip"> <?php langCsp::_e('Font'); ?> : <?php echo htmlCsp::selectbox('opt_values[soc_facebook_follow_font]', array('value' => $this->optsModel->get('soc_facebook_follow_font'), 'options' => array('arial' => 'arial', 'lucida grande' => 'lucida grande', 'segoe ui' => 'segoe ui', 'tahoma' => 'tahoma', 'trebuchet ms' => 'trebuchet ms', 'verdana' => 'verdana'))); ?> </div> </td> </tr> </table>
if (!empty($this->metaTags)) { ?> <div class="wrap"> <div class="metabox-holder"> <div class="postbox-container" style="width: 100%;"> <div class="meta-box-sortables ui-sortable"> <?php foreach ($this->metaTags as $metaKey => $metaOpts) { ?> <div id="metaOpts_<?php echo $metaKey; ?> " class="postbox cspAdminTemplateOptRow cspAvoidJqueryUiStyle" style="display: block"> <div class="handlediv" title="Click to toggle"><br></div> <h3 class="handle"><?php langCsp::_e($metaOpts['label']); ?> </h3> <div class="inside"> <div><?php echo $metaOpts['adminOptsContent']; ?> </div> </div> </div> <?php } ?> </div> </div> </div>
</ul> <?php foreach ($this->logTypes as $type => $tInfo) { ?> <div id="toeLogs<?php echo $type; ?> " class="toeLogTab"> <table width="100%"> <tr class="toe_admin_row_header"> <td><?php langCsp::_e('Log ID'); ?> </td> <td><?php langCsp::_e('Log Date'); ?> </td> </tr> <?php if (!empty($this->logs[$type])) { ?> <?php foreach ($this->logs[$type] as $l) { ?> <tr class="toe_admin_row toeLogRow"> <td><?php echo $l['id']; ?> </td> <td><?php
return false; });*/ }); // --> </script> <div class="container"> <form id="toeWelcomePageFindUsForm" method="GET"> <h1> <?php langCsp::_e('Welcome to'); ?> <?php echo CSP_WP_PLUGIN_NAME; ?> <?php langCsp::_e('Version'); ?> <?php echo CSP_VERSION; ?> ! </h1> <div class="clear"></div> <div class="about-message"> This is first start up of the <?php echo CSP_WP_PLUGIN_NAME; ?> plugin.<br /> If you are newbie - check all features on that page, if you are guru - please correct us. </div> <div class="plug-icon-shell">
<li class="<?php echo $tId; ?> "> <a href="#<?php echo $tId; ?> "><?php langCsp::_e($tData['title']); ?> </a> <?php if (isset($tData['promo']) && $tData['promo']) { ?> <small><?php langCsp::_e('Available In PRO'); ?> </small> <?php } ?> </li> <?php } ?> </ul> <?php foreach ($this->tabsData as $tId => $tData) { ?> <div id="<?php echo $tId;
foreach ($defOptions as $optKey => $optData) { ?> <div class="cspTplDefOptionCheckShell"> <span class="cspDefTplOptCheckbox"><?php echo htmlCsp::checkbox($optKey, array('value' => implode(',', $optData['options']))); ?> </span> - <?php langCsp::_e($optData['label']); ?> <?php if (isset($optData['tip'])) { ?> <br /><i style="font-size: 12px;"><b><?php langCsp::_e($optData['tip']); ?> </b></i> <?php } ?> </div> <?php } ?> </div> </div> <?php } else { ?> <?php langCsp::_e('No template modules were found'); }
<table width="100%"> <tr class="cspBodyCells"> <td> <div class="GAnaliticsLabel"> <?php langCsp::_e('Enter Google Analitics code here'); ?> : <small> <i> <a href='https://support.google.com/analytics/answer/1008080?hl=en' target='_blank'> where to get the code? </a> </i> </small> <?php echo htmlCsp::textarea('opt_values[google_analitics]', array('value' => $this->optsModel->get('google_analitics'), 'rows' => '5', 'cols' => '60')); ?> </div> </td> </tr> </table>
?> :</h4> <?php echo htmlCsp::textarea('opt_values[msg_text]', array('value' => $this->optModel->get('msg_text'))); ?> <div class="cspLeftCol"> <?php langCsp::_e('Select color'); ?> : <?php echo htmlCsp::colorpicker('opt_values[msg_text_color]', array('value' => $this->optModel->get('msg_text_color'))); ?> </div> <div class="cspRightCol"> <?php langCsp::_e('Select font'); ?> : <?php echo htmlCsp::fontsList('opt_values[msg_text_font]', array('value' => $this->optModel->get('msg_text_font'))); ?> </div> <div class="clearfix"></div> <div class="clearfix"> <?php echo htmlCsp::button(array('value' => langCsp::_('Set default'), 'attrs' => 'id="cspMsgTextSetDefault"')); ?> <div id="cspAdminOptMsgTextDefaultMsg"></div> </div> <div class="clearfix"></div>
: <?php echo htmlCsp::text('opt_values[soc_gp_like_width]', array('value' => $this->optsModel->get('soc_gp_like_width'))); ?> </div> <div class="cspRightCol withCspOptTip"> <?php langCsp::_e('Size'); ?> : <?php echo htmlCsp::selectbox('opt_values[soc_gp_like_size]', array('value' => $this->optsModel->get('soc_gp_like_size'), 'options' => array('small' => 'Small (15px)', 'medium' => 'Medium (20px)', 'standard' => 'Standard (40px)', 'tall' => 'Tall (60px)'))); ?> <div class="clearfix"></div> <br /> <br /> <?php langCsp::_e('Annotation'); ?> : <?php echo htmlCsp::selectbox('opt_values[soc_gp_like_annotation]', array('value' => $this->optsModel->get('soc_gp_like_annotation'), 'options' => array('inline' => 'inline', 'bubble' => 'bubble', 'none' => 'none'))); ?> <a href="#" class="cspOptTip" tip="<?php langCsp::_e('Sets the annotation to display next to the button.'); ?> "></a> </div> </td> </tr> </table>
<div class="handlediv" title="Click to toggle"><br></div> <h3 class="hndle"><?php langCsp::_e('Users whitelist'); ?> </h3> <div class="inside"> <?php echo $this->blockList[1]; ?> </div> </div> <div id="MSG_EL_ID_Role"></div> <div id="idCspMainSubOpts" class="postbox cspAdminTemplateOptRow cspAvoidJqueryUiStyle" style="display: block"> <div class="handlediv" title="Click to toggle"><br></div> <h3 class="hndle"><?php langCsp::_e('Restrict By Role'); ?> </h3> <div class="inside"> <?php echo $this->blockList[2]; ?> </div> </div> </div> </div> </div> </div> <div style="clear: both;"></div>
?> " class="button button-large csp-sub-button"><?php langCsp::_e('Followers count display'); ?> </label> <br /> <br /> <?php echo htmlCsp::checkboxHiddenVal('opt_values[soc_tw_follow_show_name]', array('checked' => $this->optsModel->get('soc_tw_follow_show_name'))); ?> <label for="<?php echo 'opt_valuessoc_tw_follow_show_name_check'; ?> " class="button button-large csp-sub-button"><?php langCsp::_e('Show Screen Name'); ?> </label> </div> <div class="cspRightCol withCspOptTip"> <?php langCsp::_e('Button Size'); ?> : <?php echo htmlCsp::selectbox('opt_values[soc_tw_follow_size]', array('value' => $this->optsModel->get('soc_tw_follow_size'), 'options' => array('medium' => langCsp::_('medium'), 'large' => langCsp::_('large')))); ?> <div class="clearfix"></div> </div> </td> </tr> </table>
</table> </form> </div> </div> <div id="id4" class="postbox" style="display: block"> <div class="handlediv" title="Click to toggle"><br></div> <h3 class="hndle"><?php langCsp::_e('News and Info'); ?> </h3> <div class="inside"> <p><?php langCsp::_e('- If you like our plugin, please rate it five stars at'); ?> <a href="http://wordpress.org/extend/plugins/ready-ecommerce/">wordpress.org</a></p> <p><?php langCsp::_e('- If you don\'t, please contact us, showing us our imperfection. We\'ll try to improve our service.'); ?> </p> <p><?php langCsp::_e('- New ' . CSP_VERSION . ' RC-1 version realised!'); ?> </p> </div> </div> </div> </div> </div></div></div>
if (!empty($this->iconsList)) { ?> <div class="wrap"> <div class="metabox-holder"> <div class="postbox-container" style="width: 100%;"> <div class="meta-box-sortables ui-sortable"> <?php foreach ($this->iconsList as $socKey => $socOpts) { ?> <div id="socOpts_<?php echo $socKey; ?> " class="postbox cspAdminTemplateOptRow cspAvoidJqueryUiStyle" style="display: block"> <div class="handlediv" title="Click to toggle"><br></div> <h3 class="hndle"><?php langCsp::_e($socOpts['label']); ?> </h3> <div class="inside"> <div><?php echo $socOpts['adminOptsContent']; ?> </div> </div> </div> <?php } ?> </div> </div> </div>
<?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.'); ?> </i> </div>
<form id="cspAdminAccessFormIp"> <table> <tr> <td width="117"><?php langCsp::_e('IP Address'); ?> :</td> <td> <?php echo htmlCsp::selectlist('selectlistCspIp', array('attrs' => 'style="width:340px;"', 'options' => $this->arrIp)); ?> <div align="left" class="accessDelElement"><a id="delIpCsp" href="javascript: void(0)"><?php langCsp::_e('remove IP Address'); ?> </a></div> </td> </tr> <tr> <td></td> <td><?php echo htmlCsp::text('ipAddressCsp', array('value' => '')); ?> </td> </tr> <tr> <td></td> <td> <?php echo htmlCsp::hidden('reqType', array('value' => 'ajax')); ?> <?php
<?php echo htmlCsp::checkboxHiddenVal('opt_values[soc_im_enable_link]', array('checked' => $this->optsModel->get('soc_im_enable_link'))); ?> <label for="<?php echo 'opt_valuessoc_im_enable_link_check'; ?> " class="button button-large"><?php langCsp::_e('Enable Link to Account'); ?> </label> <table width="100%"> <tr class="cspBodyCells"> <td> <div class="cspLeftCol"> <?php langCsp::_e('Username'); ?> : <?php echo htmlCsp::text('opt_values[soc_im_account]', array('value' => $this->optsModel->get('soc_im_account'))); ?> </div> </td> </tr> </table>
langCsp::_e('Subscribers'); ?> </h3> <div class="inside"> <table id="cspAdminSubersTable" width="100%"> <tr class="cspTblHeader"> <td><?php langCsp::_e('Email'); ?> </td> <td><?php langCsp::_e('Status'); ?> </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"'));
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> <?php echo htmlCsp::submit('toeGo', array('value' => langCsp::_('Done'))); ?> <?php echo htmlCsp::formEnd(); ?> </div>
: <a target="_blank" href="http://wordpress.org/plugins/coming-soon-maintenance-mode-ready/changelog/"><?php echo CSP_VERSION; ?> </a> </div> <div class="cspAdminFooterCell">|</div> <div class="cspAdminFooterCell"> <?php langCsp::_e('Go'); ?> <a target="_blank" href="<?php echo $this->getModule()->preparePromoLink('http://readyshoppingcart.com/product/coming-soon-plugin-pro-version/'); ?> "><?php langCsp::_e('PRO'); ?> </a> </div> <div class="cspAdminFooterCell">|</div> <div class="cspAdminFooterCell"> <a target="_blank" href="http://wordpress.org/support/plugin/coming-soon-maintenance-mode-ready"><?php langCsp::_e('Support'); ?> </a> </div> <div class="cspAdminFooterCell">|</div> <div class="cspAdminFooterCell"> Add your <a target="_blank" href="http://wordpress.org/support/view/plugin-reviews/coming-soon-maintenance-mode-ready?filter=5#postform">★★★★★</a> on wordpress.org. </div> </div>
</tr> <tr> <td><?php langCsp::_e('Import from ' . $this->subMod->getLabel()); ?> :</td> <td> <?php echo htmlCsp::button(array('value' => langCsp::_('Import'), 'attrs' => 'class="cspEngineSubscribeImportButt" code="' . $this->code . '"')); ?> <span class="cspEngineSubscribeSyncMsg"></span> </td> </tr> <tr> <td colspan="2"> <i style="font-size: 12px;"> <?php langCsp::_e('This will import subscribers from your ' . $this->subMod->getLabel() . ' account to site'); ?> </i> </td> </tr> </table> </div> </div> </div> </div> <div style="clear: both;"></div> </div> </div>
echo htmlCsp::$htmltype('opt_values[' . $opt['code'] . ']', $htmlOptions); } ?> <?php if ($opt['code'] == 'template') { ?> <?php echo htmlCsp::inputButton(array('value' => langCsp::_('Set Template'), 'attrs' => 'class="cspGoToTemplateTabOptionButton button button-primary" code="' . $opt['code'] . '"')); ?> <?php $plTemplate = $this->optModel->get('template'); // Current plugin template $tplName = $plTemplate && frameCsp::_()->getModule($plTemplate) ? frameCsp::_()->getModule($plTemplate)->getLabel() : ''; ?> <div class="cspAdminTemplateSelectedName"><?php langCsp::_e($tplName); ?> </div> <?php } ?> </td> </tr> <?php } ?> <tr> <td> <?php echo htmlCsp::hidden('reqType', array('value' => 'ajax')); ?>
<table width="100%"> <tr class="cspBodyCells"> <td> <div class="cspLeftCol"> <?php langCsp::_e('Enter site title here'); ?> : <?php echo htmlCsp::text('opt_values[meta_title]', array('value' => $this->optsModel->get('meta_title'))); ?> </div> </td> </tr> </table>
<table width="100%"> <tr class="cspBodyCells"> <td> <div class="cspLeftCol"> <?php langCsp::_e('Enter site keywords here'); ?> : <?php echo htmlCsp::text('opt_values[meta_keywords]', array('value' => $this->optsModel->get('meta_keywords'))); ?> </div> </td> </tr> </table>
<?php $i = 1; ?> <?php foreach ($this->tplOptsData as $optData) { ?> <div id="id<?php echo $i; ?> " class="postbox cspAdminTemplateOptRow" style="display: block;"> <div class="handlediv" title="<?php langCsp::_e('Click to toggle'); ?> "><br></div> <h3 class="hndle"><?php langCsp::_e($optData['title']); ?> </h3> <div class="inside"> <?php echo $optData['content']; ?> </div> </div> <?php $i++; ?> <?php } ?> <?php
<table width="100%"> <tr class="cspBodyCells"> <td> <div class="cspLeftCol"> <?php langCsp::_e('Enter site description here'); ?> : <?php echo htmlCsp::text('opt_values[meta_description]', array('value' => $this->optsModel->get('meta_description'))); ?> </div> </td> </tr> </table>
<img id="cspOptLogoImgPrev" src="<?php echo $this->optModel->isEmpty('logo_image') ? '' : frameCsp::_()->getModule('options')->getLogoImgFullPath(); ?> " style="max-width: 200px;" /> </div> <div class="cspRightCol"> <div class="cspTip cspTipArrowLeft nomargin"> <?php langCsp::_e('Choose your logo, you can use png, jpg or gif image file.'); ?> <span class="cspTipCorner"></span> </div> <br /> <div class="cspTip cspTipArrowDown nomargin"> <?php langCsp::_e('You can use default logo, your own or disable it. To disable logo on Coming Soon page click "Remove image" button bellow.'); ?> <span class="cspTipCorner"></span> </div> <br /> <?php echo htmlCsp::button(array('value' => langCsp::_('Remove image'), 'attrs' => 'id="cspLogoRemove" class="button button-large" style="width:100%;"')); ?> <?php echo htmlCsp::button(array('value' => langCsp::_('Set default'), 'attrs' => 'id="cspLogoSetDefault" class="button button-large" style="width:100%;"')); ?> <div id="cspAdminOptLogoDefaultMsg"></div> </div> <div class="clearfix"></div>
?> : <?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
?> "><?php langCsp::_e('Twitter Title'); ?> :</label> <?php echo htmlCsp::text($this->widget->get_field_name('title'), array('attrs' => 'id="' . $this->widget->get_field_id('title') . '"', 'value' => $this->data['title'])); ?> <br /> <label for="<?php echo $this->widget->get_field_id('username'); ?> "><?php langCsp::_e('Twitter Username'); ?> :</label> <?php echo htmlCsp::text($this->widget->get_field_name('username'), array('attrs' => 'id="' . $this->widget->get_field_id('username') . '"', 'value' => $this->data['username'])); ?> <br /> <label for="<?php echo $this->widget->get_field_id('count'); ?> "><?php langCsp::_e('Tweets Count'); ?> :</label> <?php echo htmlCsp::text($this->widget->get_field_name('count'), array('attrs' => 'id="' . $this->widget->get_field_id('count') . '"', 'value' => $this->data['count'])); ?> <br />
/** * Check permissions for action in controller by $code and made corresponding action * @param string $code Code of controller that need to be checked * @param string $action Action that need to be checked * @return bool true if ok, else - should exit from application */ public function checkPermissions($code, $action) { if ($this->havePermissions($code, $action)) { return true; } else { exit(langCsp::_e('You have no permissions to view this page')); } }