| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349 |
- <?php return array (
- '953f6b6ddd51950efd5d388d77eb9b75' =>
- array (
- 'criteria' =>
- array (
- 'name' => 'formit',
- ),
- 'object' =>
- array (
- 'name' => 'formit',
- 'path' => '{core_path}components/formit/',
- 'assets_path' => '{assets_path}components/formit/',
- ),
- ),
- 'b69690504bae45da58159b70d2f92ad5' =>
- array (
- 'criteria' =>
- array (
- 'key' => 'formit.recaptcha_public_key',
- ),
- 'object' =>
- array (
- 'key' => 'formit.recaptcha_public_key',
- 'value' => '',
- 'xtype' => 'textfield',
- 'namespace' => 'formit',
- 'area' => 'recaptcha',
- 'editedon' => NULL,
- ),
- ),
- '22bc14e9b588fb2d7f1bf83573d6c072' =>
- array (
- 'criteria' =>
- array (
- 'key' => 'formit.recaptcha_private_key',
- ),
- 'object' =>
- array (
- 'key' => 'formit.recaptcha_private_key',
- 'value' => '',
- 'xtype' => 'textfield',
- 'namespace' => 'formit',
- 'area' => 'recaptcha',
- 'editedon' => NULL,
- ),
- ),
- 'cdd985cea073ccf0fe49b3d5f72b9458' =>
- array (
- 'criteria' =>
- array (
- 'key' => 'formit.recaptcha_use_ssl',
- ),
- 'object' =>
- array (
- 'key' => 'formit.recaptcha_use_ssl',
- 'value' => '0',
- 'xtype' => 'combo-boolean',
- 'namespace' => 'formit',
- 'area' => 'recaptcha',
- 'editedon' => NULL,
- ),
- ),
- '5bb5615d3f9741afc5097a651debd6e6' =>
- array (
- 'criteria' =>
- array (
- 'key' => 'formit.exclude_contexts',
- ),
- 'object' =>
- array (
- 'key' => 'formit.exclude_contexts',
- 'value' => 'mgr',
- 'xtype' => 'combo-boolean',
- 'namespace' => 'formit',
- 'area' => 'system',
- 'editedon' => NULL,
- ),
- ),
- '72a8c40fd433a10392bb95112668e7f5' =>
- array (
- 'criteria' =>
- array (
- 'key' => 'formit.form_encryptkey',
- ),
- 'object' =>
- array (
- 'key' => 'formit.form_encryptkey',
- 'value' => 'modx5a09f5d5d6a2e3.05406325',
- 'xtype' => 'textfield',
- 'namespace' => 'formit',
- 'area' => 'system',
- 'editedon' => '2017-11-14 09:06:08',
- ),
- ),
- '7131aac09c140e180fda4dcc040970bb' =>
- array (
- 'criteria' =>
- array (
- 'key' => 'formit.attachment.mediasource',
- ),
- 'object' =>
- array (
- 'key' => 'formit.attachment.mediasource',
- 'value' => '1',
- 'xtype' => 'modx-combo-source',
- 'namespace' => 'formit',
- 'area' => 'system',
- 'editedon' => NULL,
- ),
- ),
- '529c89cddd633d3c151804befc3e3f68' =>
- array (
- 'criteria' =>
- array (
- 'key' => 'formit.attachment.path',
- ),
- 'object' =>
- array (
- 'key' => 'formit.attachment.path',
- 'value' => '',
- 'xtype' => 'textfield',
- 'namespace' => 'formit',
- 'area' => 'system',
- 'editedon' => NULL,
- ),
- ),
- 'ca5c41a8b87dee7c087f044f3ac55b09' =>
- array (
- 'criteria' =>
- array (
- 'key' => 'formit.cleanform.days',
- ),
- 'object' =>
- array (
- 'key' => 'formit.cleanform.days',
- 'value' => '30',
- 'xtype' => 'numberfield',
- 'namespace' => 'formit',
- 'area' => 'system',
- 'editedon' => NULL,
- ),
- ),
- '885975c2b25d331b2033bbb1e8c92746' =>
- array (
- 'criteria' =>
- array (
- 'category' => 'FormIt',
- ),
- 'object' =>
- array (
- 'id' => 8,
- 'parent' => 0,
- 'category' => 'FormIt',
- 'rank' => 0,
- ),
- ),
- '0ddd3d104cf9a53e7f52cec04f3bb06a' =>
- array (
- 'criteria' =>
- array (
- 'name' => 'fiDefaultEmailTpl',
- ),
- 'object' =>
- array (
- 'id' => 34,
- 'source' => 0,
- 'property_preprocess' => 0,
- 'name' => 'fiDefaultEmailTpl',
- 'description' => 'The default chunk used for the email. Please do not edit this chunk, as this will be overwritten when updating FormIt.',
- 'editor_type' => 0,
- 'category' => 8,
- 'cache_type' => 0,
- 'snippet' => '<p>[[+fields]]</p>',
- 'locked' => 0,
- 'properties' => 'a:0:{}',
- 'static' => 0,
- 'static_file' => '',
- 'content' => '<p>[[+fields]]</p>',
- ),
- ),
- 'a6f082dd377ea74369ccc8050ac0b5dd' =>
- array (
- 'criteria' =>
- array (
- 'name' => 'fiDefaultFiarTpl',
- ),
- 'object' =>
- array (
- 'id' => 35,
- 'source' => 0,
- 'property_preprocess' => 0,
- 'name' => 'fiDefaultFiarTpl',
- 'description' => 'The default chunk used for the autoresponder email. Please do not edit this chunk, as this will be overwritten when updating FormIt.',
- 'editor_type' => 0,
- 'category' => 8,
- 'cache_type' => 0,
- 'snippet' => '<p>Hello [[+name]],</p>
- <p>Your message has been received. We will respond as soon as possible. Thank you for contacting us.</p>
- <p>NOTE: This is an automatic response; please do not respond to this message directly.</p>
- <p>Here is your message:<br />
- [[+message:nl2br]]</p>',
- 'locked' => 0,
- 'properties' => 'a:0:{}',
- 'static' => 0,
- 'static_file' => '',
- 'content' => '<p>Hello [[+name]],</p>
- <p>Your message has been received. We will respond as soon as possible. Thank you for contacting us.</p>
- <p>NOTE: This is an automatic response; please do not respond to this message directly.</p>
- <p>Here is your message:<br />
- [[+message:nl2br]]</p>',
- ),
- ),
- '170983ba9c8cf49caf30ec0f4ce288d6' =>
- array (
- 'criteria' =>
- array (
- 'name' => 'fiDefaultOptGroupTpl',
- ),
- 'object' =>
- array (
- 'id' => 36,
- 'source' => 0,
- 'property_preprocess' => 0,
- 'name' => 'fiDefaultOptGroupTpl',
- 'description' => 'The default chunk used by the FormItCountryOptions snippet for the select optgroup. Please do not edit this chunk, as this will be overwritten when updating FormIt.',
- 'editor_type' => 0,
- 'category' => 8,
- 'cache_type' => 0,
- 'snippet' => '<optgroup label="[[+text]]">
- [[+options]]
- </optgroup>',
- 'locked' => 0,
- 'properties' => 'a:0:{}',
- 'static' => 0,
- 'static_file' => '',
- 'content' => '<optgroup label="[[+text]]">
- [[+options]]
- </optgroup>',
- ),
- ),
- '3e3f695aba261d17003dacf18383a22e' =>
- array (
- 'criteria' =>
- array (
- 'name' => 'fiDefaultOptionTpl',
- ),
- 'object' =>
- array (
- 'id' => 37,
- 'source' => 0,
- 'property_preprocess' => 0,
- 'name' => 'fiDefaultOptionTpl',
- 'description' => 'The default chunk used by the FormItCountryOptions snippet for the select option. Please do not edit this chunk, as this will be overwritten when updating FormIt.',
- 'editor_type' => 0,
- 'category' => 8,
- 'cache_type' => 0,
- 'snippet' => '<option value="[[+value]]"[[+selected]]>[[+text]]</option>',
- 'locked' => 0,
- 'properties' => 'a:0:{}',
- 'static' => 0,
- 'static_file' => '',
- 'content' => '<option value="[[+value]]"[[+selected]]>[[+text]]</option>',
- ),
- ),
- '238047d2eb40c9ffa29dcfdf8c3e00b9' =>
- array (
- 'criteria' =>
- array (
- 'name' => 'FormIt',
- ),
- 'object' =>
- array (
- 'id' => 16,
- 'source' => 0,
- 'property_preprocess' => 0,
- 'name' => 'FormIt',
- 'description' => 'A dynamic form processing snippet.',
- 'editor_type' => 0,
- 'category' => 8,
- 'cache_type' => 0,
- 'snippet' => '/**
- * FormIt
- *
- * Copyright 2009-2012 by Shaun McCormick <shaun@modx.com>
- *
- * FormIt is free software; you can redistribute it and/or modify it
- * under the terms of the GNU General Public License as published by the Free
- * Software Foundation; either version 2 of the License, or (at your option) any
- * later version.
- *
- * FormIt is distributed in the hope that it will be useful, but WITHOUT ANY
- * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
- * A PARTICULAR PURPOSE. See the GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License along with
- * FormIt; if not, write to the Free Software Foundation, Inc., 59 Temple Place,
- * Suite 330, Boston, MA 02111-1307 USA
- *
- * @package formit
- */
- /**
- * FormIt
- *
- * A dynamic form processing Snippet for MODx Revolution.
- *
- * @var modX $modx
- * @var array $scriptProperties
- *
- * @package formit
- */
- $modelPath = $modx->getOption(
- \'formit.core_path\',
- null,
- $modx->getOption(\'core_path\', null, MODX_CORE_PATH) . \'components/formit/\'
- ) . \'model/formit/\';
- $modx->loadClass(\'FormIt\', $modelPath, true, true);
- $fi = new FormIt($modx, $scriptProperties);
- $fi->initialize($modx->context->get(\'key\'));
- $fi->loadRequest();
- $fields = $fi->request->prepare();
- return $fi->request->handle($fields);',
- 'locked' => 0,
- 'properties' => 'a:61:{s:5:"hooks";a:7:{s:4:"name";s:5:"hooks";s:4:"desc";s:22:"prop_formit.hooks_desc";s:4:"type";s:9:"textfield";s:7:"options";s:0:"";s:5:"value";s:0:"";s:7:"lexicon";s:17:"formit:properties";s:4:"area";s:0:"";}s:8:"preHooks";a:7:{s:4:"name";s:8:"preHooks";s:4:"desc";s:25:"prop_formit.prehooks_desc";s:4:"type";s:9:"textfield";s:7:"options";s:0:"";s:5:"value";s:0:"";s:7:"lexicon";s:17:"formit:properties";s:4:"area";s:0:"";}s:9:"submitVar";a:7:{s:4:"name";s:9:"submitVar";s:4:"desc";s:26:"prop_formit.submitvar_desc";s:4:"type";s:9:"textfield";s:7:"options";s:0:"";s:5:"value";s:0:"";s:7:"lexicon";s:17:"formit:properties";s:4:"area";s:0:"";}s:8:"validate";a:7:{s:4:"name";s:8:"validate";s:4:"desc";s:25:"prop_formit.validate_desc";s:4:"type";s:9:"textfield";s:7:"options";s:0:"";s:5:"value";s:0:"";s:7:"lexicon";s:17:"formit:properties";s:4:"area";s:0:"";}s:6:"errTpl";a:7:{s:4:"name";s:6:"errTpl";s:4:"desc";s:23:"prop_formit.errtpl_desc";s:4:"type";s:9:"textfield";s:7:"options";s:0:"";s:5:"value";s:37:"<span class="error">[[+error]]</span>";s:7:"lexicon";s:17:"formit:properties";s:4:"area";s:0:"";}s:22:"validationErrorMessage";a:7:{s:4:"name";s:22:"validationErrorMessage";s:4:"desc";s:39:"prop_formit.validationerrormessage_desc";s:4:"type";s:9:"textfield";s:7:"options";s:0:"";s:5:"value";s:96:"<p class="error">A form validation error occurred. Please check the values you have entered.</p>";s:7:"lexicon";s:17:"formit:properties";s:4:"area";s:0:"";}s:22:"validationErrorBulkTpl";a:7:{s:4:"name";s:22:"validationErrorBulkTpl";s:4:"desc";s:39:"prop_formit.validationerrorbulktpl_desc";s:4:"type";s:9:"textfield";s:7:"options";s:0:"";s:5:"value";s:19:"<li>[[+error]]</li>";s:7:"lexicon";s:17:"formit:properties";s:4:"area";s:0:"";}s:26:"trimValuesBeforeValidation";a:7:{s:4:"name";s:26:"trimValuesBeforeValidation";s:4:"desc";s:43:"prop_formit.trimvaluesdeforevalidation_desc";s:4:"type";s:13:"combo-boolean";s:7:"options";s:0:"";s:5:"value";b:1;s:7:"lexicon";s:17:"formit:properties";s:4:"area";s:0:"";}s:16:"customValidators";a:7:{s:4:"name";s:16:"customValidators";s:4:"desc";s:33:"prop_formit.customvalidators_desc";s:4:"type";s:9:"textfield";s:7:"options";s:0:"";s:5:"value";s:0:"";s:7:"lexicon";s:17:"formit:properties";s:4:"area";s:0:"";}s:20:"clearFieldsOnSuccess";a:7:{s:4:"name";s:20:"clearFieldsOnSuccess";s:4:"desc";s:37:"prop_formit.clearfieldsonsuccess_desc";s:4:"type";s:13:"combo-boolean";s:7:"options";s:0:"";s:5:"value";b:1;s:7:"lexicon";s:17:"formit:properties";s:4:"area";s:0:"";}s:14:"successMessage";a:7:{s:4:"name";s:14:"successMessage";s:4:"desc";s:31:"prop_formit.successmessage_desc";s:4:"type";s:9:"textfield";s:7:"options";s:0:"";s:5:"value";s:0:"";s:7:"lexicon";s:17:"formit:properties";s:4:"area";s:0:"";}s:25:"successMessagePlaceholder";a:7:{s:4:"name";s:25:"successMessagePlaceholder";s:4:"desc";s:42:"prop_formit.successmessageplaceholder_desc";s:4:"type";s:9:"textfield";s:7:"options";s:0:"";s:5:"value";s:17:"fi.successMessage";s:7:"lexicon";s:17:"formit:properties";s:4:"area";s:0:"";}s:5:"store";a:7:{s:4:"name";s:5:"store";s:4:"desc";s:22:"prop_formit.store_desc";s:4:"type";s:13:"combo-boolean";s:7:"options";s:0:"";s:5:"value";b:0;s:7:"lexicon";s:17:"formit:properties";s:4:"area";s:0:"";}s:17:"placeholderPrefix";a:7:{s:4:"name";s:17:"placeholderPrefix";s:4:"desc";s:34:"prop_formit.placeholderprefix_desc";s:4:"type";s:9:"textfield";s:7:"options";s:0:"";s:5:"value";s:3:"fi.";s:7:"lexicon";s:17:"formit:properties";s:4:"area";s:0:"";}s:9:"storeTime";a:7:{s:4:"name";s:9:"storeTime";s:4:"desc";s:26:"prop_formit.storetime_desc";s:4:"type";s:9:"textfield";s:7:"options";s:0:"";s:5:"value";s:3:"300";s:7:"lexicon";s:17:"formit:properties";s:4:"area";s:0:"";}s:13:"storeLocation";a:7:{s:4:"name";s:13:"storeLocation";s:4:"desc";s:30:"prop_formit.storelocation_desc";s:4:"type";s:4:"list";s:7:"options";a:2:{i:0;a:2:{s:5:"value";s:5:"cache";s:4:"text";s:16:"formit.opt_cache";}i:1;a:2:{s:5:"value";s:7:"session";s:4:"text";s:18:"formit.opt_session";}}s:5:"value";s:5:"cache";s:7:"lexicon";s:17:"formit:properties";s:4:"area";s:0:"";}s:10:"allowFiles";a:7:{s:4:"name";s:10:"allowFiles";s:4:"desc";s:27:"prop_formit.allowfiles_desc";s:4:"type";s:13:"combo-boolean";s:7:"options";s:0:"";s:5:"value";b:1;s:7:"lexicon";s:17:"formit:properties";s:4:"area";s:0:"";}s:15:"spamEmailFields";a:7:{s:4:"name";s:15:"spamEmailFields";s:4:"desc";s:32:"prop_formit.spamemailfields_desc";s:4:"type";s:9:"textfield";s:7:"options";s:0:"";s:5:"value";s:5:"email";s:7:"lexicon";s:17:"formit:properties";s:4:"area";s:0:"";}s:11:"spamCheckIp";a:7:{s:4:"name";s:11:"spamCheckIp";s:4:"desc";s:28:"prop_formit.spamcheckip_desc";s:4:"type";s:13:"combo-boolean";s:7:"options";s:0:"";s:5:"value";b:0;s:7:"lexicon";s:17:"formit:properties";s:4:"area";s:0:"";}s:11:"recaptchaJs";a:7:{s:4:"name";s:11:"recaptchaJs";s:4:"desc";s:28:"prop_formit.recaptchajs_desc";s:4:"type";s:9:"textfield";s:7:"options";s:0:"";s:5:"value";s:2:"{}";s:7:"lexicon";s:17:"formit:properties";s:4:"area";s:0:"";}s:14:"recaptchaTheme";a:7:{s:4:"name";s:14:"recaptchaTheme";s:4:"desc";s:31:"prop_formit.recaptchatheme_desc";s:4:"type";s:4:"list";s:7:"options";a:4:{i:0;a:2:{s:5:"value";s:3:"red";s:4:"text";s:14:"formit.opt_red";}i:1;a:2:{s:5:"value";s:5:"white";s:4:"text";s:16:"formit.opt_white";}i:2;a:2:{s:5:"value";s:5:"clean";s:4:"text";s:16:"formit.opt_clean";}i:3;a:2:{s:5:"value";s:10:"blackglass";s:4:"text";s:21:"formit.opt_blackglass";}}s:5:"value";s:5:"clean";s:7:"lexicon";s:17:"formit:properties";s:4:"area";s:0:"";}s:10:"redirectTo";a:7:{s:4:"name";s:10:"redirectTo";s:4:"desc";s:27:"prop_formit.redirectto_desc";s:4:"type";s:9:"textfield";s:7:"options";s:0:"";s:5:"value";s:0:"";s:7:"lexicon";s:17:"formit:properties";s:4:"area";s:0:"";}s:14:"redirectParams";a:7:{s:4:"name";s:14:"redirectParams";s:4:"desc";s:31:"prop_formit.redirectparams_desc";s:4:"type";s:9:"textfield";s:7:"options";s:0:"";s:5:"value";s:0:"";s:7:"lexicon";s:17:"formit:properties";s:4:"area";s:0:"";}s:7:"emailTo";a:7:{s:4:"name";s:7:"emailTo";s:4:"desc";s:24:"prop_formit.emailto_desc";s:4:"type";s:9:"textfield";s:7:"options";s:0:"";s:5:"value";s:0:"";s:7:"lexicon";s:17:"formit:properties";s:4:"area";s:0:"";}s:11:"emailToName";a:7:{s:4:"name";s:11:"emailToName";s:4:"desc";s:28:"prop_formit.emailtoname_desc";s:4:"type";s:9:"textfield";s:7:"options";s:0:"";s:5:"value";s:0:"";s:7:"lexicon";s:17:"formit:properties";s:4:"area";s:0:"";}s:9:"emailFrom";a:7:{s:4:"name";s:9:"emailFrom";s:4:"desc";s:26:"prop_formit.emailfrom_desc";s:4:"type";s:9:"textfield";s:7:"options";s:0:"";s:5:"value";s:0:"";s:7:"lexicon";s:17:"formit:properties";s:4:"area";s:0:"";}s:13:"emailFromName";a:7:{s:4:"name";s:13:"emailFromName";s:4:"desc";s:30:"prop_formit.emailfromname_desc";s:4:"type";s:9:"textfield";s:7:"options";s:0:"";s:5:"value";s:0:"";s:7:"lexicon";s:17:"formit:properties";s:4:"area";s:0:"";}s:12:"emailReplyTo";a:7:{s:4:"name";s:12:"emailReplyTo";s:4:"desc";s:29:"prop_formit.emailreplyto_desc";s:4:"type";s:9:"textfield";s:7:"options";s:0:"";s:5:"value";s:0:"";s:7:"lexicon";s:17:"formit:properties";s:4:"area";s:0:"";}s:16:"emailReplyToName";a:7:{s:4:"name";s:16:"emailReplyToName";s:4:"desc";s:33:"prop_formit.emailreplytoname_desc";s:4:"type";s:9:"textfield";s:7:"options";s:0:"";s:5:"value";s:0:"";s:7:"lexicon";s:17:"formit:properties";s:4:"area";s:0:"";}s:7:"emailCC";a:7:{s:4:"name";s:7:"emailCC";s:4:"desc";s:24:"prop_formit.emailcc_desc";s:4:"type";s:9:"textfield";s:7:"options";s:0:"";s:5:"value";s:0:"";s:7:"lexicon";s:17:"formit:properties";s:4:"area";s:0:"";}s:11:"emailCCName";a:7:{s:4:"name";s:11:"emailCCName";s:4:"desc";s:28:"prop_formit.emailccname_desc";s:4:"type";s:9:"textfield";s:7:"options";s:0:"";s:5:"value";s:0:"";s:7:"lexicon";s:17:"formit:properties";s:4:"area";s:0:"";}s:8:"emailBCC";a:7:{s:4:"name";s:8:"emailBCC";s:4:"desc";s:25:"prop_formit.emailbcc_desc";s:4:"type";s:9:"textfield";s:7:"options";s:0:"";s:5:"value";s:0:"";s:7:"lexicon";s:17:"formit:properties";s:4:"area";s:0:"";}s:12:"emailBCCName";a:7:{s:4:"name";s:12:"emailBCCName";s:4:"desc";s:29:"prop_formit.emailbccname_desc";s:4:"type";s:9:"textfield";s:7:"options";s:0:"";s:5:"value";s:0:"";s:7:"lexicon";s:17:"formit:properties";s:4:"area";s:0:"";}s:15:"emailReturnPath";a:7:{s:4:"name";s:15:"emailReturnPath";s:4:"desc";s:32:"prop_formit.emailreturnpath_desc";s:4:"type";s:9:"textfield";s:7:"options";s:0:"";s:5:"value";s:0:"";s:7:"lexicon";s:17:"formit:properties";s:4:"area";s:0:"";}s:12:"emailSubject";a:7:{s:4:"name";s:12:"emailSubject";s:4:"desc";s:29:"prop_formit.emailsubject_desc";s:4:"type";s:9:"textfield";s:7:"options";s:0:"";s:5:"value";s:0:"";s:7:"lexicon";s:17:"formit:properties";s:4:"area";s:0:"";}s:23:"emailUseFieldForSubject";a:7:{s:4:"name";s:23:"emailUseFieldForSubject";s:4:"desc";s:40:"prop_formit.emailusefieldforsubject_desc";s:4:"type";s:9:"textfield";s:7:"options";s:0:"";s:5:"value";s:0:"";s:7:"lexicon";s:17:"formit:properties";s:4:"area";s:0:"";}s:9:"emailHtml";a:7:{s:4:"name";s:9:"emailHtml";s:4:"desc";s:26:"prop_formit.emailhtml_desc";s:4:"type";s:13:"combo-boolean";s:7:"options";s:0:"";s:5:"value";b:1;s:7:"lexicon";s:17:"formit:properties";s:4:"area";s:0:"";}s:20:"emailConvertNewlines";a:7:{s:4:"name";s:20:"emailConvertNewlines";s:4:"desc";s:37:"prop_formit.emailconvertnewlines_desc";s:4:"type";s:13:"combo-boolean";s:7:"options";s:0:"";s:5:"value";b:0;s:7:"lexicon";s:17:"formit:properties";s:4:"area";s:0:"";}s:17:"emailMultiWrapper";a:7:{s:4:"name";s:17:"emailMultiWrapper";s:4:"desc";s:34:"prop_formit.emailmultiwrapper_desc";s:4:"type";s:9:"textfield";s:7:"options";s:0:"";s:5:"value";s:10:"[[+value]]";s:7:"lexicon";s:17:"formit:properties";s:4:"area";s:0:"";}s:19:"emailMultiSeparator";a:7:{s:4:"name";s:19:"emailMultiSeparator";s:4:"desc";s:36:"prop_formit.emailmultiseparator_desc";s:4:"type";s:9:"textfield";s:7:"options";s:0:"";s:5:"value";s:0:"";s:7:"lexicon";s:17:"formit:properties";s:4:"area";s:0:"";}s:7:"fiarTpl";a:7:{s:4:"name";s:7:"fiarTpl";s:4:"desc";s:24:"prop_formit.fiartpl_desc";s:4:"type";s:9:"textfield";s:7:"options";s:0:"";s:5:"value";s:0:"";s:7:"lexicon";s:17:"formit:properties";s:4:"area";s:0:"";}s:11:"fiarToField";a:7:{s:4:"name";s:11:"fiarToField";s:4:"desc";s:28:"prop_formit.fiartofield_desc";s:4:"type";s:9:"textfield";s:7:"options";s:0:"";s:5:"value";s:5:"email";s:7:"lexicon";s:17:"formit:properties";s:4:"area";s:0:"";}s:11:"fiarSubject";a:7:{s:4:"name";s:11:"fiarSubject";s:4:"desc";s:28:"prop_formit.fiarsubject_desc";s:4:"type";s:9:"textfield";s:7:"options";s:0:"";s:5:"value";s:30:"[[++site_name]] Auto-Responder";s:7:"lexicon";s:17:"formit:properties";s:4:"area";s:0:"";}s:8:"fiarFrom";a:7:{s:4:"name";s:8:"fiarFrom";s:4:"desc";s:25:"prop_formit.fiarfrom_desc";s:4:"type";s:9:"textfield";s:7:"options";s:0:"";s:5:"value";s:0:"";s:7:"lexicon";s:17:"formit:properties";s:4:"area";s:0:"";}s:12:"fiarFromName";a:7:{s:4:"name";s:12:"fiarFromName";s:4:"desc";s:29:"prop_formit.fiarfromname_desc";s:4:"type";s:9:"textfield";s:7:"options";s:0:"";s:5:"value";s:0:"";s:7:"lexicon";s:17:"formit:properties";s:4:"area";s:0:"";}s:11:"fiarReplyTo";a:7:{s:4:"name";s:11:"fiarReplyTo";s:4:"desc";s:28:"prop_formit.fiarreplyto_desc";s:4:"type";s:9:"textfield";s:7:"options";s:0:"";s:5:"value";s:0:"";s:7:"lexicon";s:17:"formit:properties";s:4:"area";s:0:"";}s:15:"fiarReplyToName";a:7:{s:4:"name";s:15:"fiarReplyToName";s:4:"desc";s:32:"prop_formit.fiarreplytoname_desc";s:4:"type";s:9:"textfield";s:7:"options";s:0:"";s:5:"value";s:0:"";s:7:"lexicon";s:17:"formit:properties";s:4:"area";s:0:"";}s:6:"fiarCC";a:7:{s:4:"name";s:6:"fiarCC";s:4:"desc";s:23:"prop_formit.fiarcc_desc";s:4:"type";s:9:"textfield";s:7:"options";s:0:"";s:5:"value";s:0:"";s:7:"lexicon";s:17:"formit:properties";s:4:"area";s:0:"";}s:10:"fiarCCName";a:7:{s:4:"name";s:10:"fiarCCName";s:4:"desc";s:25:"prop_fiar.fiarccname_desc";s:4:"type";s:9:"textfield";s:7:"options";s:0:"";s:5:"value";s:0:"";s:7:"lexicon";s:17:"formit:properties";s:4:"area";s:0:"";}s:7:"fiarBCC";a:7:{s:4:"name";s:7:"fiarBCC";s:4:"desc";s:24:"prop_formit.fiarbcc_desc";s:4:"type";s:9:"textfield";s:7:"options";s:0:"";s:5:"value";s:0:"";s:7:"lexicon";s:17:"formit:properties";s:4:"area";s:0:"";}s:11:"fiarBCCName";a:7:{s:4:"name";s:11:"fiarBCCName";s:4:"desc";s:28:"prop_formit.fiarbccname_desc";s:4:"type";s:9:"textfield";s:7:"options";s:0:"";s:5:"value";s:0:"";s:7:"lexicon";s:17:"formit:properties";s:4:"area";s:0:"";}s:8:"fiarHtml";a:7:{s:4:"name";s:8:"fiarHtml";s:4:"desc";s:25:"prop_formit.fiarhtml_desc";s:4:"type";s:13:"combo-boolean";s:7:"options";s:0:"";s:5:"value";b:1;s:7:"lexicon";s:17:"formit:properties";s:4:"area";s:0:"";}s:12:"mathMinRange";a:7:{s:4:"name";s:12:"mathMinRange";s:4:"desc";s:29:"prop_formit.mathminrange_desc";s:4:"type";s:9:"textfield";s:7:"options";s:0:"";s:5:"value";s:2:"10";s:7:"lexicon";s:17:"formit:properties";s:4:"area";s:0:"";}s:12:"mathMaxRange";a:7:{s:4:"name";s:12:"mathMaxRange";s:4:"desc";s:29:"prop_formit.mathmaxrange_desc";s:4:"type";s:9:"textfield";s:7:"options";s:0:"";s:5:"value";s:3:"100";s:7:"lexicon";s:17:"formit:properties";s:4:"area";s:0:"";}s:9:"mathField";a:7:{s:4:"name";s:9:"mathField";s:4:"desc";s:26:"prop_formit.mathfield_desc";s:4:"type";s:9:"textfield";s:7:"options";s:0:"";s:5:"value";s:4:"math";s:7:"lexicon";s:17:"formit:properties";s:4:"area";s:0:"";}s:12:"mathOp1Field";a:7:{s:4:"name";s:12:"mathOp1Field";s:4:"desc";s:29:"prop_formit.mathop1field_desc";s:4:"type";s:9:"textfield";s:7:"options";s:0:"";s:5:"value";s:3:"op1";s:7:"lexicon";s:17:"formit:properties";s:4:"area";s:0:"";}s:12:"mathOp2Field";a:7:{s:4:"name";s:12:"mathOp2Field";s:4:"desc";s:29:"prop_formit.mathop2field_desc";s:4:"type";s:9:"textfield";s:7:"options";s:0:"";s:5:"value";s:3:"op2";s:7:"lexicon";s:17:"formit:properties";s:4:"area";s:0:"";}s:17:"mathOperatorField";a:7:{s:4:"name";s:17:"mathOperatorField";s:4:"desc";s:34:"prop_formit.mathoperatorfield_desc";s:4:"type";s:9:"textfield";s:7:"options";s:0:"";s:5:"value";s:8:"operator";s:7:"lexicon";s:17:"formit:properties";s:4:"area";s:0:"";}s:12:"saveTmpFiles";a:7:{s:4:"name";s:12:"saveTmpFiles";s:4:"desc";s:29:"prop_formit.savetmpfiles_desc";s:4:"type";s:13:"combo-boolean";s:7:"options";s:0:"";s:5:"value";b:0;s:7:"lexicon";s:17:"formit:properties";s:4:"area";s:0:"";}s:18:"attachFilesToEmail";a:7:{s:4:"name";s:18:"attachFilesToEmail";s:4:"desc";s:28:"prop_formit.attachfiles_desc";s:4:"type";s:13:"combo-boolean";s:7:"options";s:0:"";s:5:"value";b:1;s:7:"lexicon";s:17:"formit:properties";s:4:"area";s:0:"";}s:16:"storeAttachments";a:7:{s:4:"name";s:16:"storeAttachments";s:4:"desc";s:34:"prop_formit.store_attachments_desc";s:4:"type";s:13:"combo-boolean";s:7:"options";s:0:"";s:5:"value";b:0;s:7:"lexicon";s:17:"formit:properties";s:4:"area";s:0:"";}}',
- 'moduleguid' => '',
- 'static' => 0,
- 'static_file' => '',
- 'content' => '/**
- * FormIt
- *
- * Copyright 2009-2012 by Shaun McCormick <shaun@modx.com>
- *
- * FormIt is free software; you can redistribute it and/or modify it
- * under the terms of the GNU General Public License as published by the Free
- * Software Foundation; either version 2 of the License, or (at your option) any
- * later version.
- *
- * FormIt is distributed in the hope that it will be useful, but WITHOUT ANY
- * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
- * A PARTICULAR PURPOSE. See the GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License along with
- * FormIt; if not, write to the Free Software Foundation, Inc., 59 Temple Place,
- * Suite 330, Boston, MA 02111-1307 USA
- *
- * @package formit
- */
- /**
- * FormIt
- *
- * A dynamic form processing Snippet for MODx Revolution.
- *
- * @var modX $modx
- * @var array $scriptProperties
- *
- * @package formit
- */
- $modelPath = $modx->getOption(
- \'formit.core_path\',
- null,
- $modx->getOption(\'core_path\', null, MODX_CORE_PATH) . \'components/formit/\'
- ) . \'model/formit/\';
- $modx->loadClass(\'FormIt\', $modelPath, true, true);
- $fi = new FormIt($modx, $scriptProperties);
- $fi->initialize($modx->context->get(\'key\'));
- $fi->loadRequest();
- $fields = $fi->request->prepare();
- return $fi->request->handle($fields);',
- ),
- ),
- 'c692e8571219491ec002595641345810' =>
- array (
- 'criteria' =>
- array (
- 'name' => 'FormItRetriever',
- ),
- 'object' =>
- array (
- 'id' => 18,
- 'source' => 0,
- 'property_preprocess' => 0,
- 'name' => 'FormItRetriever',
- 'description' => 'Fetches a form submission for a user for displaying on a thank you page.',
- 'editor_type' => 0,
- 'category' => 8,
- 'cache_type' => 0,
- 'snippet' => '/**
- * FormIt
- *
- * Copyright 2009-2012 by Shaun McCormick <shaun@modx.com>
- *
- * FormIt is free software; you can redistribute it and/or modify it
- * under the terms of the GNU General Public License as published by the Free
- * Software Foundation; either version 2 of the License, or (at your option) any
- * later version.
- *
- * FormIt is distributed in the hope that it will be useful, but WITHOUT ANY
- * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
- * A PARTICULAR PURPOSE. See the GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License along with
- * FormIt; if not, write to the Free Software Foundation, Inc., 59 Temple Place,
- * Suite 330, Boston, MA 02111-1307 USA
- *
- * @package formit
- */
- /**
- * FormItRetriever
- *
- * Retrieves a prior form submission that was stored with the &store property
- * in a FormIt call.
- *
- * @var modX $modx
- * @var array $scriptProperties
- *
- * @package formit
- */
- $modelPath = $modx->getOption(
- \'formit.core_path\',
- null,
- $modx->getOption(\'core_path\', null, MODX_CORE_PATH) . \'components/formit/\'
- ) . \'model/formit/\';
- $fi = $modx->getService(\'formit\', \'FormIt\', $modelPath, $scriptProperties);
- /* setup properties */
- $placeholderPrefix = $modx->getOption(\'placeholderPrefix\', $scriptProperties, \'fi.\');
- $eraseOnLoad = $modx->getOption(\'eraseOnLoad\', $scriptProperties, false);
- $redirectToOnNotFound = $modx->getOption(\'redirectToOnNotFound\', $scriptProperties, false);
- /* fetch data from cache and set to placeholders */
- $fi->loadRequest();
- $fi->request->loadDictionary();
- $data = $fi->request->dictionary->retrieve();
- if (!empty($data)) {
- /* set data to placeholders */
- foreach ($data as $k => $v) {
- /*checkboxes & other multi-values are stored as arrays, must be imploded*/
- if (is_array($v)) {
- $data[$k] = implode(\',\', $v);
- }
- }
- $modx->toPlaceholders($data, $placeholderPrefix, \'\');
-
- /* if set, erase the data on load, otherwise depend on cache expiry time */
- if ($eraseOnLoad) {
- $fi->request->dictionary->erase();
- }
- /* if the data\'s not found, and we want to redirect somewhere if so, do here */
- } elseif (!empty($redirectToOnNotFound)) {
- $url = $modx->makeUrl($redirectToOnNotFound);
- $modx->sendRedirect($url);
- }
- return \'\';',
- 'locked' => 0,
- 'properties' => 'a:4:{s:17:"placeholderPrefix";a:7:{s:4:"name";s:17:"placeholderPrefix";s:4:"desc";s:31:"prop_fir.placeholderprefix_desc";s:4:"type";s:9:"textfield";s:7:"options";s:0:"";s:5:"value";s:3:"fi.";s:7:"lexicon";s:17:"formit:properties";s:4:"area";s:0:"";}s:20:"redirectToOnNotFound";a:7:{s:4:"name";s:20:"redirectToOnNotFound";s:4:"desc";s:34:"prop_fir.redirecttoonnotfound_desc";s:4:"type";s:9:"textfield";s:7:"options";s:0:"";s:5:"value";s:0:"";s:7:"lexicon";s:17:"formit:properties";s:4:"area";s:0:"";}s:11:"eraseOnLoad";a:7:{s:4:"name";s:11:"eraseOnLoad";s:4:"desc";s:25:"prop_fir.eraseonload_desc";s:4:"type";s:13:"combo-boolean";s:7:"options";s:0:"";s:5:"value";b:0;s:7:"lexicon";s:17:"formit:properties";s:4:"area";s:0:"";}s:13:"storeLocation";a:7:{s:4:"name";s:13:"storeLocation";s:4:"desc";s:27:"prop_fir.storelocation_desc";s:4:"type";s:4:"list";s:7:"options";a:2:{i:0;a:2:{s:5:"value";s:5:"cache";s:4:"text";s:16:"formit.opt_cache";}i:1;a:2:{s:5:"value";s:7:"session";s:4:"text";s:18:"formit.opt_session";}}s:5:"value";s:5:"cache";s:7:"lexicon";s:17:"formit:properties";s:4:"area";s:0:"";}}',
- 'moduleguid' => '',
- 'static' => 0,
- 'static_file' => '',
- 'content' => '/**
- * FormIt
- *
- * Copyright 2009-2012 by Shaun McCormick <shaun@modx.com>
- *
- * FormIt is free software; you can redistribute it and/or modify it
- * under the terms of the GNU General Public License as published by the Free
- * Software Foundation; either version 2 of the License, or (at your option) any
- * later version.
- *
- * FormIt is distributed in the hope that it will be useful, but WITHOUT ANY
- * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
- * A PARTICULAR PURPOSE. See the GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License along with
- * FormIt; if not, write to the Free Software Foundation, Inc., 59 Temple Place,
- * Suite 330, Boston, MA 02111-1307 USA
- *
- * @package formit
- */
- /**
- * FormItRetriever
- *
- * Retrieves a prior form submission that was stored with the &store property
- * in a FormIt call.
- *
- * @var modX $modx
- * @var array $scriptProperties
- *
- * @package formit
- */
- $modelPath = $modx->getOption(
- \'formit.core_path\',
- null,
- $modx->getOption(\'core_path\', null, MODX_CORE_PATH) . \'components/formit/\'
- ) . \'model/formit/\';
- $fi = $modx->getService(\'formit\', \'FormIt\', $modelPath, $scriptProperties);
- /* setup properties */
- $placeholderPrefix = $modx->getOption(\'placeholderPrefix\', $scriptProperties, \'fi.\');
- $eraseOnLoad = $modx->getOption(\'eraseOnLoad\', $scriptProperties, false);
- $redirectToOnNotFound = $modx->getOption(\'redirectToOnNotFound\', $scriptProperties, false);
- /* fetch data from cache and set to placeholders */
- $fi->loadRequest();
- $fi->request->loadDictionary();
- $data = $fi->request->dictionary->retrieve();
- if (!empty($data)) {
- /* set data to placeholders */
- foreach ($data as $k => $v) {
- /*checkboxes & other multi-values are stored as arrays, must be imploded*/
- if (is_array($v)) {
- $data[$k] = implode(\',\', $v);
- }
- }
- $modx->toPlaceholders($data, $placeholderPrefix, \'\');
-
- /* if set, erase the data on load, otherwise depend on cache expiry time */
- if ($eraseOnLoad) {
- $fi->request->dictionary->erase();
- }
- /* if the data\'s not found, and we want to redirect somewhere if so, do here */
- } elseif (!empty($redirectToOnNotFound)) {
- $url = $modx->makeUrl($redirectToOnNotFound);
- $modx->sendRedirect($url);
- }
- return \'\';',
- ),
- ),
- '84f065e8c56c3d6be390ee0b214cb2c4' =>
- array (
- 'criteria' =>
- array (
- 'name' => 'FormItIsChecked',
- ),
- 'object' =>
- array (
- 'id' => 19,
- 'source' => 0,
- 'property_preprocess' => 0,
- 'name' => 'FormItIsChecked',
- 'description' => 'A custom output filter used with checkboxes/radios for checking checked status.',
- 'editor_type' => 0,
- 'category' => 8,
- 'cache_type' => 0,
- 'snippet' => '/**
- * FormIt
- *
- * Copyright 2009-2012 by Shaun McCormick <shaun@modx.com>
- *
- * FormIt is free software; you can redistribute it and/or modify it
- * under the terms of the GNU General Public License as published by the Free
- * Software Foundation; either version 2 of the License, or (at your option) any
- * later version.
- *
- * FormIt is distributed in the hope that it will be useful, but WITHOUT ANY
- * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
- * A PARTICULAR PURPOSE. See the GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License along with
- * FormIt; if not, write to the Free Software Foundation, Inc., 59 Temple Place,
- * Suite 330, Boston, MA 02111-1307 USA
- *
- * @package formit
- */
- /**
- * FormItIsChecked
- *
- * Custom output filter that returns checked="checked" if the value is set
- *
- * @var string $input
- * @var string $options
- * @var modX $modx
- *
- * @package formit
- */
- $output = \' \';
- if ($input == $options) {
- $output = \' checked="checked"\';
- }
- $input = $modx->fromJSON($input);
- if (!empty($input) && is_array($input) && in_array($options,$input)) {
- $output = \' checked="checked"\';
- }
- return $output;',
- 'locked' => 0,
- 'properties' => 'a:0:{}',
- 'moduleguid' => '',
- 'static' => 0,
- 'static_file' => '',
- 'content' => '/**
- * FormIt
- *
- * Copyright 2009-2012 by Shaun McCormick <shaun@modx.com>
- *
- * FormIt is free software; you can redistribute it and/or modify it
- * under the terms of the GNU General Public License as published by the Free
- * Software Foundation; either version 2 of the License, or (at your option) any
- * later version.
- *
- * FormIt is distributed in the hope that it will be useful, but WITHOUT ANY
- * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
- * A PARTICULAR PURPOSE. See the GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License along with
- * FormIt; if not, write to the Free Software Foundation, Inc., 59 Temple Place,
- * Suite 330, Boston, MA 02111-1307 USA
- *
- * @package formit
- */
- /**
- * FormItIsChecked
- *
- * Custom output filter that returns checked="checked" if the value is set
- *
- * @var string $input
- * @var string $options
- * @var modX $modx
- *
- * @package formit
- */
- $output = \' \';
- if ($input == $options) {
- $output = \' checked="checked"\';
- }
- $input = $modx->fromJSON($input);
- if (!empty($input) && is_array($input) && in_array($options,$input)) {
- $output = \' checked="checked"\';
- }
- return $output;',
- ),
- ),
- 'a61d7dc35d61195bac43d8a4482583a9' =>
- array (
- 'criteria' =>
- array (
- 'name' => 'FormItIsSelected',
- ),
- 'object' =>
- array (
- 'id' => 20,
- 'source' => 0,
- 'property_preprocess' => 0,
- 'name' => 'FormItIsSelected',
- 'description' => 'A custom output filter used with dropdowns for checking selected status.',
- 'editor_type' => 0,
- 'category' => 8,
- 'cache_type' => 0,
- 'snippet' => '/**
- * FormIt
- *
- * Copyright 2009-2012 by Shaun McCormick <shaun@modx.com>
- *
- * FormIt is free software; you can redistribute it and/or modify it
- * under the terms of the GNU General Public License as published by the Free
- * Software Foundation; either version 2 of the License, or (at your option) any
- * later version.
- *
- * FormIt is distributed in the hope that it will be useful, but WITHOUT ANY
- * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
- * A PARTICULAR PURPOSE. See the GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License along with
- * FormIt; if not, write to the Free Software Foundation, Inc., 59 Temple Place,
- * Suite 330, Boston, MA 02111-1307 USA
- *
- * @package formit
- */
- /**
- * FormItIsChecked
- *
- * Custom output filter that returns checked="checked" if the value is set
- *
- * @var string $input
- * @var string $options
- * @var modX $modx
- *
- * @package formit
- */
- $output = \' \';
- if ($input == $options) {
- $output = \' selected="selected"\';
- }
- $input = $modx->fromJSON($input);
- if (!empty($input) && is_array($input) && in_array($options,$input)) {
- $output = \' selected="selected"\';
- }
- return $output;',
- 'locked' => 0,
- 'properties' => 'a:0:{}',
- 'moduleguid' => '',
- 'static' => 0,
- 'static_file' => '',
- 'content' => '/**
- * FormIt
- *
- * Copyright 2009-2012 by Shaun McCormick <shaun@modx.com>
- *
- * FormIt is free software; you can redistribute it and/or modify it
- * under the terms of the GNU General Public License as published by the Free
- * Software Foundation; either version 2 of the License, or (at your option) any
- * later version.
- *
- * FormIt is distributed in the hope that it will be useful, but WITHOUT ANY
- * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
- * A PARTICULAR PURPOSE. See the GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License along with
- * FormIt; if not, write to the Free Software Foundation, Inc., 59 Temple Place,
- * Suite 330, Boston, MA 02111-1307 USA
- *
- * @package formit
- */
- /**
- * FormItIsChecked
- *
- * Custom output filter that returns checked="checked" if the value is set
- *
- * @var string $input
- * @var string $options
- * @var modX $modx
- *
- * @package formit
- */
- $output = \' \';
- if ($input == $options) {
- $output = \' selected="selected"\';
- }
- $input = $modx->fromJSON($input);
- if (!empty($input) && is_array($input) && in_array($options,$input)) {
- $output = \' selected="selected"\';
- }
- return $output;',
- ),
- ),
- '6b58a9e2b01a9dd702be2cb97d035394' =>
- array (
- 'criteria' =>
- array (
- 'name' => 'FormItCountryOptions',
- ),
- 'object' =>
- array (
- 'id' => 21,
- 'source' => 0,
- 'property_preprocess' => 0,
- 'name' => 'FormItCountryOptions',
- 'description' => 'A utility snippet for generating a dropdown list of countries.',
- 'editor_type' => 0,
- 'category' => 8,
- 'cache_type' => 0,
- 'snippet' => '/**
- * FormIt
- *
- * Copyright 2009-2012 by Shaun McCormick <shaun@modx.com>
- *
- * FormIt is free software; you can redistribute it and/or modify it
- * under the terms of the GNU General Public License as published by the Free
- * Software Foundation; either version 2 of the License, or (at your option) any
- * later version.
- *
- * FormIt is distributed in the hope that it will be useful, but WITHOUT ANY
- * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
- * A PARTICULAR PURPOSE. See the GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License along with
- * FormIt; if not, write to the Free Software Foundation, Inc., 59 Temple Place,
- * Suite 330, Boston, MA 02111-1307 USA
- *
- * @package formit
- */
- /**
- * FormItCountryOptions
- *
- * Automatically generates and outputs a country list for usage in forms
- *
- * @var modX $modx
- * @var array $scriptProperties
- *
- * @package formit
- */
- $modelPath = $modx->getOption(
- \'formit.core_path\',
- null,
- $modx->getOption(\'core_path\', null, MODX_CORE_PATH) . \'components/formit/\'
- ) . \'model/formit/\';
- $fi = $modx->getService(\'formit\', \'FormIt\', $modelPath, $scriptProperties);
- /** @var fiCountryOptions $co */
- $co = $fi->loadModule(\'fiCountryOptions\', \'countryOptions\', $scriptProperties);
- $co->initialize();
- $co->getData();
- $co->loadPrioritized();
- $co->iterate();
- return $co->output();',
- 'locked' => 0,
- 'properties' => 'a:11:{s:8:"selected";a:7:{s:4:"name";s:8:"selected";s:4:"desc";s:23:"prop_fico.selected_desc";s:4:"type";s:9:"textfield";s:7:"options";s:0:"";s:5:"value";s:0:"";s:7:"lexicon";s:17:"formit:properties";s:4:"area";s:0:"";}s:3:"tpl";a:7:{s:4:"name";s:3:"tpl";s:4:"desc";s:18:"prop_fico.tpl_desc";s:4:"type";s:9:"textfield";s:7:"options";s:0:"";s:5:"value";s:18:"fiDefaultOptionTpl";s:7:"lexicon";s:17:"formit:properties";s:4:"area";s:0:"";}s:10:"useIsoCode";a:7:{s:4:"name";s:10:"useIsoCode";s:4:"desc";s:25:"prop_fico.useisocode_desc";s:4:"type";s:13:"combo-boolean";s:7:"options";s:0:"";s:5:"value";b:1;s:7:"lexicon";s:17:"formit:properties";s:4:"area";s:0:"";}s:11:"prioritized";a:7:{s:4:"name";s:11:"prioritized";s:4:"desc";s:26:"prop_fico.prioritized_desc";s:4:"type";s:9:"textfield";s:7:"options";s:0:"";s:5:"value";s:0:"";s:7:"lexicon";s:17:"formit:properties";s:4:"area";s:0:"";}s:11:"optGroupTpl";a:7:{s:4:"name";s:11:"optGroupTpl";s:4:"desc";s:26:"prop_fico.optgrouptpl_desc";s:4:"type";s:9:"textfield";s:7:"options";s:0:"";s:5:"value";s:20:"fiDefaultOptGroupTpl";s:7:"lexicon";s:17:"formit:properties";s:4:"area";s:0:"";}s:20:"prioritizedGroupText";a:7:{s:4:"name";s:20:"prioritizedGroupText";s:4:"desc";s:35:"prop_fico.prioritizedgrouptext_desc";s:4:"type";s:9:"textfield";s:7:"options";s:0:"";s:5:"value";s:0:"";s:7:"lexicon";s:17:"formit:properties";s:4:"area";s:0:"";}s:12:"allGroupText";a:7:{s:4:"name";s:12:"allGroupText";s:4:"desc";s:27:"prop_fico.allgrouptext_desc";s:4:"type";s:9:"textfield";s:7:"options";s:0:"";s:5:"value";s:0:"";s:7:"lexicon";s:17:"formit:properties";s:4:"area";s:0:"";}s:17:"selectedAttribute";a:7:{s:4:"name";s:17:"selectedAttribute";s:4:"desc";s:32:"prop_fico.selectedattribute_desc";s:4:"type";s:9:"textfield";s:7:"options";s:0:"";s:5:"value";s:20:" selected="selected"";s:7:"lexicon";s:17:"formit:properties";s:4:"area";s:0:"";}s:13:"toPlaceholder";a:7:{s:4:"name";s:13:"toPlaceholder";s:4:"desc";s:28:"prop_fico.toplaceholder_desc";s:4:"type";s:9:"textfield";s:7:"options";s:0:"";s:5:"value";s:0:"";s:7:"lexicon";s:17:"formit:properties";s:4:"area";s:0:"";}s:7:"country";a:7:{s:4:"name";s:7:"country";s:4:"desc";s:22:"prop_fico.country_desc";s:4:"type";s:9:"textfield";s:7:"options";s:0:"";s:5:"value";s:16:"[[++cultureKey]]";s:7:"lexicon";s:17:"formit:properties";s:4:"area";s:0:"";}s:7:"limited";a:7:{s:4:"name";s:7:"limited";s:4:"desc";s:22:"prop_fico.limited_desc";s:4:"type";s:9:"textfield";s:7:"options";s:0:"";s:5:"value";s:0:"";s:7:"lexicon";s:17:"formit:properties";s:4:"area";s:0:"";}}',
- 'moduleguid' => '',
- 'static' => 0,
- 'static_file' => '',
- 'content' => '/**
- * FormIt
- *
- * Copyright 2009-2012 by Shaun McCormick <shaun@modx.com>
- *
- * FormIt is free software; you can redistribute it and/or modify it
- * under the terms of the GNU General Public License as published by the Free
- * Software Foundation; either version 2 of the License, or (at your option) any
- * later version.
- *
- * FormIt is distributed in the hope that it will be useful, but WITHOUT ANY
- * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
- * A PARTICULAR PURPOSE. See the GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License along with
- * FormIt; if not, write to the Free Software Foundation, Inc., 59 Temple Place,
- * Suite 330, Boston, MA 02111-1307 USA
- *
- * @package formit
- */
- /**
- * FormItCountryOptions
- *
- * Automatically generates and outputs a country list for usage in forms
- *
- * @var modX $modx
- * @var array $scriptProperties
- *
- * @package formit
- */
- $modelPath = $modx->getOption(
- \'formit.core_path\',
- null,
- $modx->getOption(\'core_path\', null, MODX_CORE_PATH) . \'components/formit/\'
- ) . \'model/formit/\';
- $fi = $modx->getService(\'formit\', \'FormIt\', $modelPath, $scriptProperties);
- /** @var fiCountryOptions $co */
- $co = $fi->loadModule(\'fiCountryOptions\', \'countryOptions\', $scriptProperties);
- $co->initialize();
- $co->getData();
- $co->loadPrioritized();
- $co->iterate();
- return $co->output();',
- ),
- ),
- '70e1a7746556d7d0754f99b717daaeb4' =>
- array (
- 'criteria' =>
- array (
- 'name' => 'FormItStateOptions',
- ),
- 'object' =>
- array (
- 'id' => 22,
- 'source' => 0,
- 'property_preprocess' => 0,
- 'name' => 'FormItStateOptions',
- 'description' => 'A utility snippet for generating a dropdown list of U.S. states.',
- 'editor_type' => 0,
- 'category' => 8,
- 'cache_type' => 0,
- 'snippet' => '/**
- * FormIt
- *
- * Copyright 2009-2012 by Shaun McCormick <shaun@modx.com>
- *
- * FormIt is free software; you can redistribute it and/or modify it
- * under the terms of the GNU General Public License as published by the Free
- * Software Foundation; either version 2 of the License, or (at your option) any
- * later version.
- *
- * FormIt is distributed in the hope that it will be useful, but WITHOUT ANY
- * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
- * A PARTICULAR PURPOSE. See the GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License along with
- * FormIt; if not, write to the Free Software Foundation, Inc., 59 Temple Place,
- * Suite 330, Boston, MA 02111-1307 USA
- *
- * @package formit
- */
- /**
- * FormItStateOptions
- *
- * Automatically generates and outputs a U.S. state list for usage in forms
- *
- * @var modX $modx
- * @var array $scriptProperties
- *
- * @package formit
- */
- $modelPath = $modx->getOption(
- \'formit.core_path\',
- null,
- $modx->getOption(\'core_path\', null, MODX_CORE_PATH) . \'components/formit/\'
- ) . \'model/formit/\';
- $fi = $modx->getService(\'formit\', \'FormIt\', $modelPath, $scriptProperties);
- /** @var fiStateOptions $so */
- $so = $fi->loadModule(\'fiStateOptions\', \'stateOptions\', $scriptProperties);
- $so->initialize();
- $so->getData();
- $so->iterate();
- return $so->output();',
- 'locked' => 0,
- 'properties' => 'a:6:{s:8:"selected";a:7:{s:4:"name";s:8:"selected";s:4:"desc";s:23:"prop_fiso.selected_desc";s:4:"type";s:9:"textfield";s:7:"options";s:0:"";s:5:"value";s:0:"";s:7:"lexicon";s:17:"formit:properties";s:4:"area";s:0:"";}s:3:"tpl";a:7:{s:4:"name";s:3:"tpl";s:4:"desc";s:18:"prop_fiso.tpl_desc";s:4:"type";s:9:"textfield";s:7:"options";s:0:"";s:5:"value";s:18:"fiDefaultOptionTpl";s:7:"lexicon";s:17:"formit:properties";s:4:"area";s:0:"";}s:7:"useAbbr";a:7:{s:4:"name";s:7:"useAbbr";s:4:"desc";s:22:"prop_fiso.useabbr_desc";s:4:"type";s:13:"combo-boolean";s:7:"options";s:0:"";s:5:"value";b:1;s:7:"lexicon";s:17:"formit:properties";s:4:"area";s:0:"";}s:17:"selectedAttribute";a:7:{s:4:"name";s:17:"selectedAttribute";s:4:"desc";s:32:"prop_fiso.selectedattribute_desc";s:4:"type";s:9:"textfield";s:7:"options";s:0:"";s:5:"value";s:20:" selected="selected"";s:7:"lexicon";s:17:"formit:properties";s:4:"area";s:0:"";}s:13:"toPlaceholder";a:7:{s:4:"name";s:13:"toPlaceholder";s:4:"desc";s:28:"prop_fiso.toplaceholder_desc";s:4:"type";s:9:"textfield";s:7:"options";s:0:"";s:5:"value";s:0:"";s:7:"lexicon";s:17:"formit:properties";s:4:"area";s:0:"";}s:7:"country";a:7:{s:4:"name";s:7:"country";s:4:"desc";s:22:"prop_fiso.country_desc";s:4:"type";s:9:"textfield";s:7:"options";s:0:"";s:5:"value";s:16:"[[++cultureKey]]";s:7:"lexicon";s:17:"formit:properties";s:4:"area";s:0:"";}}',
- 'moduleguid' => '',
- 'static' => 0,
- 'static_file' => '',
- 'content' => '/**
- * FormIt
- *
- * Copyright 2009-2012 by Shaun McCormick <shaun@modx.com>
- *
- * FormIt is free software; you can redistribute it and/or modify it
- * under the terms of the GNU General Public License as published by the Free
- * Software Foundation; either version 2 of the License, or (at your option) any
- * later version.
- *
- * FormIt is distributed in the hope that it will be useful, but WITHOUT ANY
- * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
- * A PARTICULAR PURPOSE. See the GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License along with
- * FormIt; if not, write to the Free Software Foundation, Inc., 59 Temple Place,
- * Suite 330, Boston, MA 02111-1307 USA
- *
- * @package formit
- */
- /**
- * FormItStateOptions
- *
- * Automatically generates and outputs a U.S. state list for usage in forms
- *
- * @var modX $modx
- * @var array $scriptProperties
- *
- * @package formit
- */
- $modelPath = $modx->getOption(
- \'formit.core_path\',
- null,
- $modx->getOption(\'core_path\', null, MODX_CORE_PATH) . \'components/formit/\'
- ) . \'model/formit/\';
- $fi = $modx->getService(\'formit\', \'FormIt\', $modelPath, $scriptProperties);
- /** @var fiStateOptions $so */
- $so = $fi->loadModule(\'fiStateOptions\', \'stateOptions\', $scriptProperties);
- $so->initialize();
- $so->getData();
- $so->iterate();
- return $so->output();',
- ),
- ),
- '744a53007b7b2c46c31c57669c59d5e0' =>
- array (
- 'criteria' =>
- array (
- 'name' => 'FormItLoadSavedForm',
- ),
- 'object' =>
- array (
- 'id' => 24,
- 'source' => 0,
- 'property_preprocess' => 0,
- 'name' => 'FormItLoadSavedForm',
- 'description' => 'Prehook to load previously saved form.',
- 'editor_type' => 0,
- 'category' => 8,
- 'cache_type' => 0,
- 'snippet' => '/**
- * FormIt
- *
- * Copyright 2011-12 by SCHERP Ontwikkeling <info@scherpontwikkeling.nl>
- * Copyright 2015 by Wieger Sloot <modx@sterc.nl>
- * Copyright 2016 by YJ Tso <yj@modx.com>
- *
- * FormIt is free software; you can redistribute it and/or modify it
- * under the terms of the GNU General Public License as published by the Free
- * Software Foundation; either version 2 of the License, or (at your option) any
- * later version.
- *
- * FormIt is distributed in the hope that it will be useful, but WITHOUT ANY
- * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
- * A PARTICULAR PURPOSE. See the GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License along with
- * FormIt; if not, write to the Free Software Foundation, Inc., 59 Temple Place,
- * Suite 330, Boston, MA 02111-1307 USA
- *
- * @package formit
- */
- /**
- * A custom FormIt prehook for fetching saved form data. - Based on FormItSaveForm
- *
- * @var modX $modx
- * @var array $scriptProperties
- * @var FormIt $formit
- * @var fiHooks $hook
- *
- * @package formit
- */
- /* setup default properties */
- // If prehook fails do we continue?
- $return = $modx->getOption(\'returnValueOnFail\', $formit->config, true);
- $formEncrypt = $modx->getOption(\'formEncrypt\', $formit->config, false);
- $formFields = $modx->getOption(\'formFields\', $formit->config, false);
- $fieldNames = $modx->getOption(\'fieldNames\', $formit->config, false);
- $updateSavedForm = $modx->getOption(\'updateSavedForm\', $formit->config, false); // true, false, \'1\', \'0\', or \'values\'
- // If FormIt config says don\'t update, don\'t do it
- if (!$updateSavedForm) return $return;
- // In order to load form values, the user must provide the hash key somehow
- // Usually with a $_GET parameter, but a property in $formit->config will override.
- $formHashKeyField = $modx->getOption(\'savedFormHashKeyField\', $formit->config, \'savedFormHashKey\');
- $formHashKey = \'\';
- if (isset($_GET[$formHashKeyField])) $formHashKey = (string) $_GET[$formHashKeyField];
- if ($hook->getValue($formHashKeyField)) $formHashKey = (string) $hook->getValue($formHashKeyField);
- if (isset($formit->config[$formHashKeyField])) $formHashKey = $formit->config[$formHashKeyField];
- // our hashing methods return 32 chars. if no valid hash key we\'re done here.
- if (strlen($formHashKey) !== 32) return $return;
- // Try to fetch the saved form
- $savedForm = $modx->getObject(\'FormItForm\', array(\'hash\' => $formHashKey));
- if (!$savedForm) return $return;
- if ($formFields) {
- $formFields = explode(\',\', $formFields);
- foreach($formFields as $k => $v) {
- $formFields[$k] = trim($v);
- }
- }
- // Initialize the data array
- // Handle encryption
- if ($formEncrypt) {
- $data = $savedForm->decrypt();
- } else {
- $data = $savedForm->get(\'values\');
- }
- if (is_string($data)) $data = $modx->fromJSON($data);
- if (!is_array($data)) return $return;
- //Change the fieldnames
- if ($fieldNames) {
- $newDataArray = array();
- $fieldLabels = array();
- $formFieldNames = explode(\',\', $fieldNames);
- foreach($formFieldNames as $formFieldName){
- list($name, $label) = explode(\'==\', $formFieldName);
- // reverse order from FormItSaveForm snippet
- $fieldLabels[trim($label)] = trim($name);
- }
- foreach ($data as $key => $value) {
- if ($fieldLabels[$key]) {
- $newDataArray[$fieldLabels[$key]] = $value;
- }else{
- $newDataArray[$key] = $value;
- }
- }
- $data = $newDataArray;
- }
- // Always pass back in the provided hash key
- $data[$formHashKeyField] = $formHashKey;
- $hook->setValues($data);
- return true;',
- 'locked' => 0,
- 'properties' => 'a:0:{}',
- 'moduleguid' => '',
- 'static' => 0,
- 'static_file' => '',
- 'content' => '/**
- * FormIt
- *
- * Copyright 2011-12 by SCHERP Ontwikkeling <info@scherpontwikkeling.nl>
- * Copyright 2015 by Wieger Sloot <modx@sterc.nl>
- * Copyright 2016 by YJ Tso <yj@modx.com>
- *
- * FormIt is free software; you can redistribute it and/or modify it
- * under the terms of the GNU General Public License as published by the Free
- * Software Foundation; either version 2 of the License, or (at your option) any
- * later version.
- *
- * FormIt is distributed in the hope that it will be useful, but WITHOUT ANY
- * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
- * A PARTICULAR PURPOSE. See the GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License along with
- * FormIt; if not, write to the Free Software Foundation, Inc., 59 Temple Place,
- * Suite 330, Boston, MA 02111-1307 USA
- *
- * @package formit
- */
- /**
- * A custom FormIt prehook for fetching saved form data. - Based on FormItSaveForm
- *
- * @var modX $modx
- * @var array $scriptProperties
- * @var FormIt $formit
- * @var fiHooks $hook
- *
- * @package formit
- */
- /* setup default properties */
- // If prehook fails do we continue?
- $return = $modx->getOption(\'returnValueOnFail\', $formit->config, true);
- $formEncrypt = $modx->getOption(\'formEncrypt\', $formit->config, false);
- $formFields = $modx->getOption(\'formFields\', $formit->config, false);
- $fieldNames = $modx->getOption(\'fieldNames\', $formit->config, false);
- $updateSavedForm = $modx->getOption(\'updateSavedForm\', $formit->config, false); // true, false, \'1\', \'0\', or \'values\'
- // If FormIt config says don\'t update, don\'t do it
- if (!$updateSavedForm) return $return;
- // In order to load form values, the user must provide the hash key somehow
- // Usually with a $_GET parameter, but a property in $formit->config will override.
- $formHashKeyField = $modx->getOption(\'savedFormHashKeyField\', $formit->config, \'savedFormHashKey\');
- $formHashKey = \'\';
- if (isset($_GET[$formHashKeyField])) $formHashKey = (string) $_GET[$formHashKeyField];
- if ($hook->getValue($formHashKeyField)) $formHashKey = (string) $hook->getValue($formHashKeyField);
- if (isset($formit->config[$formHashKeyField])) $formHashKey = $formit->config[$formHashKeyField];
- // our hashing methods return 32 chars. if no valid hash key we\'re done here.
- if (strlen($formHashKey) !== 32) return $return;
- // Try to fetch the saved form
- $savedForm = $modx->getObject(\'FormItForm\', array(\'hash\' => $formHashKey));
- if (!$savedForm) return $return;
- if ($formFields) {
- $formFields = explode(\',\', $formFields);
- foreach($formFields as $k => $v) {
- $formFields[$k] = trim($v);
- }
- }
- // Initialize the data array
- // Handle encryption
- if ($formEncrypt) {
- $data = $savedForm->decrypt();
- } else {
- $data = $savedForm->get(\'values\');
- }
- if (is_string($data)) $data = $modx->fromJSON($data);
- if (!is_array($data)) return $return;
- //Change the fieldnames
- if ($fieldNames) {
- $newDataArray = array();
- $fieldLabels = array();
- $formFieldNames = explode(\',\', $fieldNames);
- foreach($formFieldNames as $formFieldName){
- list($name, $label) = explode(\'==\', $formFieldName);
- // reverse order from FormItSaveForm snippet
- $fieldLabels[trim($label)] = trim($name);
- }
- foreach ($data as $key => $value) {
- if ($fieldLabels[$key]) {
- $newDataArray[$fieldLabels[$key]] = $value;
- }else{
- $newDataArray[$key] = $value;
- }
- }
- $data = $newDataArray;
- }
- // Always pass back in the provided hash key
- $data[$formHashKeyField] = $formHashKey;
- $hook->setValues($data);
- return true;',
- ),
- ),
- '5e61bc035adade391a1111de35b3bfac' =>
- array (
- 'criteria' =>
- array (
- 'name' => 'FormIt',
- ),
- 'object' =>
- array (
- 'id' => 4,
- 'source' => 0,
- 'property_preprocess' => 0,
- 'name' => 'FormIt',
- 'description' => '',
- 'editor_type' => 0,
- 'category' => 8,
- 'cache_type' => 0,
- 'plugincode' => '/**
- * FormIt
- *
- * Copyright 2009-2017 by Sterc <modx@sterc.nl>
- *
- * FormIt is free software; you can redistribute it and/or modify it
- * under the terms of the GNU General Public License as published by the Free
- * Software Foundation; either version 2 of the License, or (at your option) any
- * later version.
- *
- * FormIt is distributed in the hope that it will be useful, but WITHOUT ANY
- * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
- * A PARTICULAR PURPOSE. See the GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License along with
- * FormIt; if not, write to the Free Software Foundation, Inc., 59 Temple Place,
- * Suite 330, Boston, MA 02111-1307 USA
- *
- * @package formit
- */
- /**
- * FormIt plugin
- *
- * @package formit
- */
- $formit = $modx->getService(
- \'formit\',
- \'FormIt\',
- $modx->getOption(\'formit.core_path\', null, $modx->getOption(\'core_path\').\'components/formit/\') .\'model/formit/\',
- array()
- );
- if (!($formit instanceof FormIt)) {
- return;
- }
- switch ($modx->event->name) {
- case \'OnManagerPageBeforeRender\':
- // If migration status is false, show migrate alert message bar in manager
- if (method_exists(\'FormIt\',\'encryptionMigrationStatus\')) {
- if (!$formit->encryptionMigrationStatus()) {
- $modx->lexicon->load(\'formit:mgr\');
- $properties = array(\'message\' => $modx->lexicon(\'formit.migrate_alert\'));
- $chunk = $formit->_getTplChunk(\'migrate/alert\');
- if ($chunk) {
- $modx->regClientStartupHTMLBlock($chunk->process($properties));
- $modx->regClientCSS($formit->config[\'cssUrl\'] . \'migrate.css\');
- }
- }
- }
- }',
- 'locked' => 0,
- 'properties' => 'a:0:{}',
- 'disabled' => 0,
- 'moduleguid' => '',
- 'static' => 0,
- 'static_file' => '',
- 'content' => '/**
- * FormIt
- *
- * Copyright 2009-2017 by Sterc <modx@sterc.nl>
- *
- * FormIt is free software; you can redistribute it and/or modify it
- * under the terms of the GNU General Public License as published by the Free
- * Software Foundation; either version 2 of the License, or (at your option) any
- * later version.
- *
- * FormIt is distributed in the hope that it will be useful, but WITHOUT ANY
- * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
- * A PARTICULAR PURPOSE. See the GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License along with
- * FormIt; if not, write to the Free Software Foundation, Inc., 59 Temple Place,
- * Suite 330, Boston, MA 02111-1307 USA
- *
- * @package formit
- */
- /**
- * FormIt plugin
- *
- * @package formit
- */
- $formit = $modx->getService(
- \'formit\',
- \'FormIt\',
- $modx->getOption(\'formit.core_path\', null, $modx->getOption(\'core_path\').\'components/formit/\') .\'model/formit/\',
- array()
- );
- if (!($formit instanceof FormIt)) {
- return;
- }
- switch ($modx->event->name) {
- case \'OnManagerPageBeforeRender\':
- // If migration status is false, show migrate alert message bar in manager
- if (method_exists(\'FormIt\',\'encryptionMigrationStatus\')) {
- if (!$formit->encryptionMigrationStatus()) {
- $modx->lexicon->load(\'formit:mgr\');
- $properties = array(\'message\' => $modx->lexicon(\'formit.migrate_alert\'));
- $chunk = $formit->_getTplChunk(\'migrate/alert\');
- if ($chunk) {
- $modx->regClientStartupHTMLBlock($chunk->process($properties));
- $modx->regClientCSS($formit->config[\'cssUrl\'] . \'migrate.css\');
- }
- }
- }
- }',
- ),
- ),
- 'c881f87f1c0ab41e0cea36f9dbd9db27' =>
- array (
- 'criteria' =>
- array (
- 'pluginid' => 4,
- 'event' => 'OnManagerPageBeforeRender',
- ),
- 'object' =>
- array (
- 'pluginid' => 4,
- 'event' => 'OnManagerPageBeforeRender',
- 'priority' => 0,
- 'propertyset' => 0,
- ),
- ),
- 'e9a66d5a2e6466c764a10f12d04113d8' =>
- array (
- 'criteria' =>
- array (
- 'text' => 'formit',
- ),
- 'object' =>
- array (
- 'text' => 'formit',
- 'parent' => 'components',
- 'action' => '2',
- 'description' => 'formit.menu_desc',
- 'icon' => '',
- 'menuindex' => 0,
- 'params' => '',
- 'handler' => '',
- 'permissions' => '',
- 'namespace' => 'core',
- ),
- ),
- );
|