| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483 | 
							- <?php
 
- /**
 
-  *
 
-  * PHP Pro Bid $Id$ d90lcIU5wVn0pAMag2dlSA81RrCAAvGLWVBalJTM790=
 
-  *
 
-  * @link        http://www.phpprobid.com
 
-  * @copyright   Copyright (c) 2017 Online Ventures Software & CodeCube SRL
 
-  * @license     http://www.phpprobid.com/license Commercial License
 
-  *
 
-  * @version     7.10 [rev.7.10.03]
 
-  */
 
- /**
 
-  * admin form elements collection
 
-  */
 
- namespace Ppb\Model\Elements;
 
- use Cube\Controller\Front,
 
-     Cube\Db\Select,
 
-     Cube\Db\Expr,
 
-     Cube\Cache\Adapter as CacheAdapter,
 
-     Ppb\Service\Table\Currencies as CurrenciesService,
 
-     Ppb\Service\Timezones as TimezonesService,
 
-     Ppb\Service\Listings as ListingsService,
 
-     Ppb\Service\Fees;
 
- class AdminSettings extends AbstractElements
 
- {
 
-     /**
 
-      *
 
-      * form id
 
-      *
 
-      * @var string
 
-      */
 
-     protected $_formId;
 
-     /**
 
-      *
 
-      * timezones table service
 
-      *
 
-      * @var \Ppb\Service\Timezones
 
-      */
 
-     protected $_timezones;
 
-     /**
 
-      *
 
-      * currencies table service
 
-      *
 
-      * @var \Ppb\Service\Table\Currencies
 
-      */
 
-     protected $_currencies;
 
-     /**
 
-      *
 
-      * class constructor
 
-      *
 
-      * @param string $formId
 
-      */
 
-     public function __construct($formId = null)
 
-     {
 
-         parent::__construct();
 
-         $this->_formId = $formId;
 
-     }
 
-     /**
 
-      *
 
-      * get timezones table service
 
-      *
 
-      * @return \Ppb\Service\Timezones
 
-      */
 
-     public function getTimezones()
 
-     {
 
-         if (!$this->_timezones instanceof TimezonesService) {
 
-             $this->setTimezones(
 
-                 new TimezonesService());
 
-         }
 
-         return $this->_timezones;
 
-     }
 
-     /**
 
-      *
 
-      * set timezones table service
 
-      *
 
-      * @param \Ppb\Service\Timezones $timezones
 
-      *
 
-      * @return \Ppb\Model\Elements\AdminSettings
 
-      */
 
-     public function setTimezones(TimezonesService $timezones)
 
-     {
 
-         $this->_timezones = $timezones;
 
-         return $this;
 
-     }
 
-     /**
 
-      *
 
-      * get currencies table service
 
-      *
 
-      * @return \Ppb\Service\Table\Currencies
 
-      */
 
-     public function getCurrencies()
 
-     {
 
-         if (!$this->_currencies instanceof CurrenciesService) {
 
-             $this->setCurrencies(
 
-                 new CurrenciesService());
 
-         }
 
-         return $this->_currencies;
 
-     }
 
-     /**
 
-      *
 
-      * set currencies service
 
-      *
 
-      * @param \Ppb\Service\Table\Currencies $currencies
 
-      *
 
-      * @return \Ppb\Model\Elements\AdminSettings
 
-      */
 
-     public function setCurrencies(CurrenciesService $currencies)
 
-     {
 
-         $this->_currencies = $currencies;
 
-         return $this;
 
-     }
 
-     /**
 
-      *
 
-      * get model elements
 
-      *
 
-      * @return array
 
-      */
 
-     public function getElements()
 
-     {
 
-         $settings = $this->getSettings();
 
-         $translate = $this->getTranslate();
 
-         $basePath = Front::getInstance()->getRequest()->getBasePath();
 
-         $totalListings = 0;
 
-         if ($this->_formId == 'listings_counters') {
 
-             $listingsService = new ListingsService();
 
-             $select = $listingsService->select(ListingsService::SELECT_LISTINGS);
 
-             $select->reset(Select::COLUMNS);
 
-             $select->columns(array('nb_rows' => new Expr('count(*)')));
 
-             $stmt = $select->query();
 
-             $totalListings = (integer)$stmt->fetchColumn('nb_rows');
 
-         }
 
-         $maximumFileUploadSize = \Ppb\Utility::getMaximumFileUploadSize('M')
 
-             . ' ' . $translate->_('MB');
 
-         return array(
 
-             /**
 
-              * --------------
 
-              * SITE SETUP
 
-              * --------------
 
-              */
 
-             array(
 
-                 'form_id'     => 'site_setup',
 
-                 'id'          => 'sitename',
 
-                 'element'     => 'text',
 
-                 'label'       => $this->_('Site Name'),
 
-                 'description' => $this->_('Enter your site\'s name. The name will be used for generating dynamic meta titles, and it will appear in all the emails sent by and through the site.'),
 
-                 'attributes'  => array(
 
-                     'class' => 'form-control input-medium',
 
-                 ),
 
-                 'required'    => true,
 
-                 'validators'  => array(
 
-                     'NoHtml'
 
-                 ),
 
-             ),
 
-             array(
 
-                 'form_id'     => 'site_setup',
 
-                 'id'          => 'site_path',
 
-                 'element'     => 'text',
 
-                 'label'       => $this->_('Site URL'),
 
-                 'description' => $this->_('Enter your site\'s URL. <br>'
 
-                     . 'The URL must have the following format: http://www.yoursite.com<br>'
 
-                     . 'If you have SSL available you can set your URL using https:// rather than http:// (Optional)'),
 
-                 'attributes'  => array(
 
-                     'class' => 'form-control input-medium',
 
-                 ),
 
-                 'required'    => true,
 
-                 'validators'  => array(
 
-                     'Url',
 
-                 ),
 
-             ),
 
-             array(
 
-                 'form_id'     => 'site_setup',
 
-                 'id'          => 'site_logo_path',
 
-                 'element'     => '\\Ppb\\Form\\Element\\MultiUpload',
 
-                 'label'       => $this->_('Site Logo'),
 
-                 'description' => $this->_('Upload a logo for your website.'),
 
-                 'required'    => true,
 
-                 'customData'  => array(
 
-                     'buttonText'      => 'Select Logo',
 
-                     'acceptFileTypes' => '/(\.|\/)(gif|jpe?g|png)$/i',
 
-                     'formData'        => array(
 
-                         'fileSizeLimit' => 10000000, // approx 10MB
 
-                         'uploadLimit'   => 1,
 
-                     ),
 
-                 ),
 
-             ),
 
-             array(
 
-                 'form_id'      => 'site_setup',
 
-                 'id'           => 'default_theme',
 
-                 'element'      => 'select',
 
-                 'label'        => $this->_('Site Theme'),
 
-                 'multiOptions' => \Ppb\Utility::getThemes(),
 
-                 'description'  => $this->_('Select a theme for your website.'),
 
-                 'attributes'   => array(
 
-                     'class' => 'form-control input-medium',
 
-                 ),
 
-                 'required'     => true,
 
-             ),
 
-             array(
 
-                 'form_id'      => 'site_setup',
 
-                 'id'           => 'site_lang',
 
-                 'element'      => 'select',
 
-                 'label'        => $this->_('Site Language'),
 
-                 'multiOptions' => \Ppb\Utility::getLanguages(),
 
-                 'description'  => $this->_('Select a default language for your website.'),
 
-                 'attributes'   => array(
 
-                     'class' => 'form-control input-medium',
 
-                 ),
 
-                 'required'     => true,
 
-             ),
 
-             array(
 
-                 'form_id'     => 'site_setup',
 
-                 'id'          => 'admin_security_key',
 
-                 'element'     => 'text',
 
-                 'label'       => $this->_('Admin Area Security Key'),
 
-                 'description' => $this->_('(Optional) You can add a security key that will be required to be added to the admin path in order to be able to access it. <br>'
 
-                         . 'Current Admin Path:')
 
-                     . '<div class="text-info"><strong>'
 
-                     . $this->getView()->url(array('skey' => $this->getData('admin_security_key')), 'admin-index-index') . '</strong></div>',
 
-                 'attributes'  => array(
 
-                     'class'        => 'form-control input-medium alert-box',
 
-                     'data-message' => $translate->_('Warning! If adding a security key, please save the admin path in a safe place because you will '
 
-                         . 'not be able to access the admin area without adding the security key to the url.'),
 
-                 ),
 
-             ),
 
-             array(
 
-                 'form_id'     => 'site_setup',
 
-                 'id'          => 'admin_email',
 
-                 'element'     => 'text',
 
-                 'label'       => $this->_('Admin Email Address'),
 
-                 'description' => $this->_('Enter your admin email address. This address will be used in the "From" field by all system emails.'),
 
-                 'attributes'  => array(
 
-                     'class' => 'form-control input-medium',
 
-                 ),
 
-                 'required'    => true,
 
-                 'validators'  => array(
 
-                     'Email'
 
-                 ),
 
-             ),
 
-             array(
 
-                 'form_id'     => 'site_setup',
 
-                 'id'          => 'email_admin_title',
 
-                 'element'     => 'text',
 
-                 'label'       => $this->_('Admin Email From Name'),
 
-                 'description' => $this->_('Enter the from name which will appear on all emails sent by the site on behalf of the administrator.'),
 
-                 'attributes'  => array(
 
-                     'class' => 'form-control input-medium',
 
-                 ),
 
-                 'required'    => true,
 
-                 'validators'  => array(
 
-                     'NoHtml'
 
-                 ),
 
-             ),
 
-             array(
 
-                 'form_id'      => 'site_setup',
 
-                 'id'           => 'mailer',
 
-                 'element'      => 'select',
 
-                 'label'        => $this->_('Choose Mailer'),
 
-                 'multiOptions' => array(
 
-                     'mail'     => 'PHP mail()',
 
-                     'sendmail' => 'Sendmail',
 
-                     'smtp'     => 'SMTP',
 
-                 ),
 
-                 'description'  => $this->_('Available methods: php mail() function, unix sendmail app, SMTP protocol.<br>'
 
-                     . 'SMTP recommended (if available on your server)'),
 
-                 'required'     => true,
 
-                 'attributes'   => array(
 
-                     'id'       => 'mailer',
 
-                     'class'    => 'form-control input-medium',
 
-                     'onchange' => 'javascript:checkMailFields()',
 
-                 ),
 
-                 'bodyCode'     => "
 
-                     <script type=\"text/javascript\">
 
-                         function checkMailFields() {
 
-                             var mailerSendmail = $('.mailer-sendmail');
 
-                             var mailerSmtp = $('.mailer-smtp');
 
-                             switch ($('#mailer').val()) {
 
-                                 case 'sendmail':
 
-                                     mailerSendmail.closest('.form-group').show();
 
-                                     mailerSmtp.closest('.form-group').hide();
 
-                                     break;
 
-                                 case 'smtp':
 
-                                     mailerSendmail.closest('.form-group').hide();
 
-                                     mailerSmtp.closest('.form-group').show();
 
-                                     break;
 
-                                 default:
 
-                                     mailerSendmail.closest('.form-group').hide();
 
-                                     mailerSmtp.closest('.form-group').hide();
 
-                                     break;                    
 
-                             }
 
-                         }
 
-                         $(document).ready(function() {             
 
-                             checkMailFields();
 
-                         });
 
-                     </script>",
 
-             ),
 
-             /* site setup => sendmail path */
 
-             array(
 
-                 'form_id'     => 'site_setup',
 
-                 'id'          => 'sendmail_path',
 
-                 'element'     => 'text',
 
-                 'label'       => $this->_('Sendmail Path'),
 
-                 'description' => $this->_('Enter the unix path for the sendmail app (available in phpinfo())'),
 
-                 'required'    => array('mailer', 'sendmail', true),
 
-                 'attributes'  => array(
 
-                     'class' => 'mailer-sendmail form-control input-medium',
 
-                 ),
 
-             ),
 
-             /* site setup => smtp related fields */
 
-             array(
 
-                 'form_id'    => 'site_setup',
 
-                 'id'         => 'smtp_host',
 
-                 'element'    => 'text',
 
-                 'label'      => $this->_('SMTP Host'),
 
-                 'attributes' => array(
 
-                     'class' => 'mailer-smtp form-control input-medium',
 
-                 ),
 
-             ),
 
-             array(
 
-                 'form_id'    => 'site_setup',
 
-                 'id'         => 'smtp_port',
 
-                 'element'    => 'text',
 
-                 'label'      => $this->_('SMTP Port'),
 
-                 'attributes' => array(
 
-                     'class' => 'mailer-smtp form-control input-medium',
 
-                 ),
 
-             ),
 
-             array(
 
-                 'form_id'    => 'site_setup',
 
-                 'id'         => 'smtp_username',
 
-                 'element'    => 'text',
 
-                 'label'      => $this->_('SMTP Username'),
 
-                 'attributes' => array(
 
-                     'class' => 'mailer-smtp form-control input-medium',
 
-                 ),
 
-             ),
 
-             array(
 
-                 'form_id'     => 'site_setup',
 
-                 'id'          => 'smtp_password',
 
-                 'element'     => 'text',
 
-                 'label'       => $this->_('SMTP Password'),
 
-                 'description' => $this->_('Enter your SMTP login details in case you choose to use SMTP as the system emails handler.<br>'
 
-                     . '<b>Important</b>: you only need enter a username and a password if you SMTP server requires authentication.'
 
-                     . 'If the server doesn\'t require authentication, please leave these fields empty because otherwise the SMTP server can return an error and no emails will be sent.<br>'
 
-                     . 'If you are unsure of your SMTP server\'s host name and port, please leave the Host and Port fields empty and the software will try to retrieve them for you.'),
 
-                 'attributes'  => array(
 
-                     'class' => 'mailer-smtp form-control input-medium',
 
-                 ),
 
-             ),
 
-             array(
 
-                 'form_id'      => 'site_setup',
 
-                 'id'           => 'maintenance_mode',
 
-                 'element'      => 'checkbox',
 
-                 'label'        => $this->_('Maintenance Mode'),
 
-                 'multiOptions' => array(
 
-                     1 => null,
 
-                 ),
 
-                 'description'  => $this->_('Check the above checkbox to enable maintenance mode. With maintenance mode enabled, '
 
-                     . 'only logged in administrators will be able to access the front end of the site.'),
 
-             ),
 
-             array(
 
-                 'form_id'      => 'site_setup',
 
-                 'id'           => 'disable_installer',
 
-                 'element'      => 'checkbox',
 
-                 'label'        => $this->_('Disable Installer'),
 
-                 'multiOptions' => array(
 
-                     1 => null,
 
-                 ),
 
-                 'description'  => $this->_('Check the above checkbox to disable the install module. The installer module should only be enabled when '
 
-                     . 'you need to upgrade the software.'),
 
-             ),
 
-             /**
 
-              * --------------
 
-              * USER SETTINGS
 
-              * --------------
 
-              */
 
-             /**
 
-              * ++++++++++++++
 
-              * REGISTRATION & VERIFICATION
 
-              * ++++++++++++++
 
-              */
 
-             array(
 
-                 'form_id'      => 'registration_verification',
 
-                 'subtitle'     => $this->_('User Registration'),
 
-                 'id'           => 'registration_type',
 
-                 'element'      => 'radio',
 
-                 'label'        => $this->_('Select Registration Type'),
 
-                 'multiOptions' => array(
 
-                     'quick' => array(
 
-                         $translate->_('Quick'),
 
-                         $translate->_('Only the username, email address and password fields will appear on the registration page.'),
 
-                     ),
 
-                     'full'  => array(
 
-                         $translate->_('Full'),
 
-                         $translate->_('This form will include all registration fields, address, date of birth, phone number and any available custom fields.'),
 
-                     ),
 
-                 ),
 
-                 'attributes'   => array(
 
-                     'class' => 'field-changeable',
 
-                 ),
 
-                 'bodyCode'     => "
 
-                     <script type=\"text/javascript\">
 
-                         function checkFormFields()
 
-                         {
 
-                             if ($('input:radio[name=\"registration_type\"]:checked').val() === 'full') {
 
-                                 $('.full-registration-field').closest('.form-group').show();
 
-                             }
 
-                             else {
 
-                                 $('input[name=\"min_reg_age\"]').val('');
 
-                                 $('.full-registration-field').closest('.form-group').hide();
 
-                             }
 
-                         }
 
-                         $(document).ready(function() {
 
-                             checkFormFields();
 
-                         });
 
-                         $(document).on('change', '.field-changeable', function() {
 
-                             checkFormFields();
 
-                         });
 
-                     </script>"
 
-             ),
 
-             array(
 
-                 'form_id'     => 'registration_verification',
 
-                 'id'          => 'min_reg_age',
 
-                 'element'     => 'text',
 
-                 'label'       => $this->_('Minimum Registration Age'),
 
-                 'suffix'      => $this->_('years'),
 
-                 'description' => $this->_('Enter the minimum age required for users to be able to register to your site, or leave empty to disable this functionality.'),
 
-                 'attributes'  => array(
 
-                     'class' => 'form-control input-mini full-registration-field',
 
-                 ),
 
-                 'validators'  => array(
 
-                     'Digits',
 
-                 ),
 
-             ),
 
-             array(
 
-                 'form_id'      => 'registration_verification',
 
-                 'id'           => 'payment_methods_registration',
 
-                 'element'      => 'checkbox',
 
-                 'label'        => $this->_('Direct Payment Gateways Fields'),
 
-                 'multiOptions' => array(
 
-                     1 => null,
 
-                 ),
 
-                 'description'  => $this->_('Check the above checkbox if you wish to display the setup fields for your enabled direct payment gateways on the registration page.'),
 
-             ),
 
-             /**
 
-              * ++++++++++++++
 
-              * USER VERIFICATION - UNIFIED SELLER/BUYER VERIFICATION
 
-              * ++++++++++++++
 
-              */
 
-             array(
 
-                 'form_id'      => 'registration_verification',
 
-                 'subtitle'     => $this->_('User Verification'),
 
-                 'id'           => 'user_verification',
 
-                 'element'      => 'checkbox',
 
-                 'label'        => $this->_('Enable User Verification'),
 
-                 'multiOptions' => array(
 
-                     1 => null,
 
-                 ),
 
-                 'description'  => $this->_('Check the above checkbox to enable the user verification feature.<br>'
 
-                     . '<b>Note</b>: Even if you disable user verification, you will still be able to set the status of your '
 
-                     . 'users to verified from the Users Management page. Users will however not be able to verify their '
 
-                     . 'accounts themselves.'),
 
-                 'attributes'   => array(
 
-                     'class' => 'field-changeable',
 
-                 ),
 
-                 'bodyCode'     => "
 
-                     <script type=\"text/javascript\">
 
-                         function checkVerificationFields()
 
-                         {
 
-                             if ($('input:checkbox[name=\"user_verification\"]').is(':checked')) {
 
-                                 $('[name=\"seller_verification_mandatory\"]').closest('.form-group').show();
 
-                                 $('[name=\"buyer_verification_mandatory\"]').closest('.form-group').show();
 
-                                 $('[name=\"user_verification_refund\"]').closest('.form-group').show();
 
-                                 $('input:text[name=\"user_verification_fee\"]').closest('.form-group').show();
 
-                                 $('input:text[name=\"user_verification_recurring\"]').closest('.form-group').show();
 
-                             }
 
-                             else {
 
-                                 $('[name=\"seller_verification_mandatory\"]').prop('checked', false).closest('.form-group').hide();
 
-                                 $('[name=\"buyer_verification_mandatory\"]').prop('checked', false).closest('.form-group').hide();
 
-                                 $('[name=\"user_verification_refund\"]').prop('checked', false).closest('.form-group').hide();
 
-                                 $('input:text[name=\"user_verification_fee\"]').val('').closest('.form-group').hide();
 
-                                 $('input:text[name=\"user_verification_recurring\"]').val('').closest('.form-group').hide();
 
-                             }
 
-                         }
 
-                         $(document).ready(function() {
 
-                             checkVerificationFields();
 
-                         });
 
-                         $(document).on('change', '.field-changeable', function() {
 
-                             checkVerificationFields();
 
-                         });
 
-                     </script>"
 
-             ),
 
-             array(
 
-                 'form_id'      => 'registration_verification',
 
-                 'id'           => 'seller_verification_mandatory',
 
-                 'element'      => 'checkbox',
 
-                 'label'        => $this->_('Mandatory For Selling'),
 
-                 'multiOptions' => array(
 
-                     1 => null,
 
-                 ),
 
-                 'description'  => $this->_('If mandatory seller verification is enabled, users will need to get verified in order to be able to list items on your website.'),
 
-             ),
 
-             array(
 
-                 'form_id'      => 'registration_verification',
 
-                 'id'           => 'buyer_verification_mandatory',
 
-                 'element'      => 'checkbox',
 
-                 'label'        => $this->_('Mandatory for Buying'),
 
-                 'multiOptions' => array(
 
-                     1 => null,
 
-                 ),
 
-                 'description'  => $this->_('If mandatory buyer verification is enabled, users will need to get verified in order to be able to bid on/purchase items on your website.'),
 
-             ),
 
-             array(
 
-                 'form_id'    => 'registration_verification',
 
-                 'table'      => 'fees',
 
-                 'id'         => 'user_verification_fee',
 
-                 'element'    => '\\Ppb\\Form\\Element\\LocalizedNumeric',
 
-                 'label'      => $this->_('Verification Fee'),
 
-                 'prefix'     => $settings['currency'],
 
-                 'attributes' => array(
 
-                     'class' => 'form-control input-mini',
 
-                 ),
 
-                 'required'   => ($this->getData('user_verification')) ? true : false,
 
-                 'validators' => array(
 
-                     'Numeric',
 
-                     array('GreaterThan', array(0, true)),
 
-                 ),
 
-                 'filters'    => array(
 
-                     '\\Ppb\\Filter\\LocalizedNumeric',
 
-                 ),
 
-             ),
 
-             array(
 
-                 'form_id'     => 'registration_verification',
 
-                 'id'          => 'user_verification_recurring',
 
-                 'element'     => 'text',
 
-                 'prefix'      => $this->_('recurring every'),
 
-                 'suffix'      => $this->_('days'),
 
-                 'description' => $this->_('You can set up a one time or recurring verification fee. If you wish the verification fee to be a one time fee enter 0 in the recurring field.'),
 
-                 'attributes'  => array(
 
-                     'class' => 'form-control input-mini',
 
-                 ),
 
-                 'validators'  => array(
 
-                     'Digits',
 
-                 ),
 
-             ),
 
-             array(
 
-                 'form_id'      => 'registration_verification',
 
-                 'id'           => 'user_verification_refund',
 
-                 'element'      => 'checkbox',
 
-                 'label'        => $this->_('Refund Verification Fee'),
 
-                 'multiOptions' => array(
 
-                     1 => null,
 
-                 ),
 
-                 'description'  => $this->_('If the checkbox above is checked, the verification fee will be credited to the user\'s account after payment.<br>'
 
-                     . 'The user\'s account will need to run in account mode for this feature to apply.'),
 
-             ),
 
-             /**
 
-              * ++++++++++++++
 
-              * REGISTRATION TERMS & CONDITIONS LINK
 
-              * ++++++++++++++
 
-              */
 
-             array(
 
-                 'form_id'      => 'registration_verification',
 
-                 'subtitle'     => $this->_('Terms and Conditions / Privacy Policy Link'),
 
-                 'id'           => 'enable_registration_terms',
 
-                 'element'      => 'checkbox',
 
-                 'label'        => $this->_('Show Registration Terms & Conditions Link'),
 
-                 'multiOptions' => array(
 
-                     1 => null,
 
-                 ),
 
-                 'description'  => $this->_('Check the above checkbox to require users to agree to the site\'s terms and/or privacy when registering.'),
 
-             ),
 
-             array(
 
-                 'form_id'     => 'registration_verification',
 
-                 'id'          => 'registration_terms_link',
 
-                 'element'     => 'text',
 
-                 'label'       => $this->_('Terms and Conditions Link'),
 
-                 'description' => $this->_('Enter the url of the terms and conditions page (relative url).'),
 
-                 'attributes'  => array(
 
-                     'class' => 'form-control input-large',
 
-                 ),
 
-                 'required'    => $this->getData('enable_registration_terms') ? true : false,
 
-                 'validators'  => array(
 
-                     'NoHtml',
 
-                 ),
 
-             ),
 
-             array(
 
-                 'form_id'     => 'registration_verification',
 
-                 'id'          => 'registration_privacy_link',
 
-                 'element'     => 'text',
 
-                 'label'       => $this->_('Privacy Policy Link'),
 
-                 'description' => $this->_('Enter the url of the privacy policy page (relative url).'),
 
-                 'attributes'  => array(
 
-                     'class' => 'form-control input-large',
 
-                 ),
 
-                 'required'    => $this->getData('enable_registration_terms') ? true : false,
 
-                 'validators'  => array(
 
-                     'NoHtml',
 
-                 ),
 
-             ),
 
-             /**
 
-              * ++++++++++++++
 
-              * USER ACCOUNT SETTINGS
 
-              * ++++++++++++++
 
-              */
 
-             array(
 
-                 'form_id'      => 'account_settings',
 
-                 'id'           => 'payment_mode',
 
-                 'element'      => 'radio',
 
-                 'label'        => $this->_('Choose Payment Option'),
 
-                 'multiOptions' => array(
 
-                     'live'    => array(
 
-                         $translate->_('Live (Pay as You Go)'),
 
-                         $translate->_('Choose this option if you want your users to pay for site fees immediately.'),
 
-                     ),
 
-                     'account' => array(
 
-                         $translate->_('Account Mode'),
 
-                         $translate->_('Choose this option in order for your site\'s users to pay for site fees periodically. '
 
-                             . 'All fees they owe will be added in their account balance.'),
 
-                     ),
 
-                 ),
 
-                 'attributes'   => array(
 
-                     'class' => 'field-changeable',
 
-                 ),
 
-                 'bodyCode'     => "
 
-                     <script type=\"text/javascript\">
 
-                         function checkAccountSettingsFormFields()
 
-                         {
 
-                             if ($('input:radio[name=\"payment_mode\"]:checked').val() === 'live' &&
 
-                                 $('input:radio[name=\"user_account_type\"]:checked').val() === 'global') {
 
-                                 $('.account-mode-field').closest('.form-group').hide();
 
-                             }
 
-                             else {
 
-                                 $('input[name=\"min_reg_age\"]').val('');
 
-                                 $('.account-mode-field').closest('.form-group').show();
 
-                             }
 
-                         }
 
-                         $(document).ready(function() {
 
-                             checkAccountSettingsFormFields();
 
-                         });
 
-                         $(document).on('change', '.field-changeable', function() {
 
-                             checkAccountSettingsFormFields();
 
-                         });
 
-                     </script>"
 
-             ),
 
-             array(
 
-                 'form_id'      => 'account_settings',
 
-                 'id'           => 'user_account_type',
 
-                 'element'      => 'radio',
 
-                 'label'        => $this->_('User Account Type'),
 
-                 'multiOptions' => array(
 
-                     'global'   => array(
 
-                         $translate->_('Global'),
 
-                         $translate->_('Choose this option if you want all accounts to run using the default payment option.'),
 
-                     ),
 
-                     'personal' => array(
 
-                         $translate->_('Personal'),
 
-                         $translate->_('Choose this option if you want to be able to choose the payment option for each user account, from the users management page.'),
 
-                     ),
 
-                 ),
 
-                 'attributes'   => array(
 
-                     'class' => 'field-changeable',
 
-                 ),
 
-             ),
 
-             array(
 
-                 'form_id'    => 'account_settings',
 
-                 'subtitle'   => $this->_('Account Mode Settings'),
 
-                 'id'         => 'signup_credit',
 
-                 'element'    => '\\Ppb\\Form\\Element\\LocalizedNumeric',
 
-                 'label'      => $this->_('Signup Credit'),
 
-                 'prefix'     => $settings['currency'],
 
-                 'attributes' => array(
 
-                     'class' => 'form-control input-mini account-mode-field',
 
-                 ),
 
-                 'validators' => array(
 
-                     'Numeric',
 
-                 ),
 
-                 'filters'    => array(
 
-                     '\\Ppb\\Filter\\LocalizedNumeric',
 
-                 ),
 
-             ),
 
-             array(
 
-                 'form_id'     => 'account_settings',
 
-                 'id'          => 'maximum_debit',
 
-                 'element'     => '\\Ppb\\Form\\Element\\LocalizedNumeric',
 
-                 'label'       => $this->_('Maximum Debit'),
 
-                 'prefix'      => $settings['currency'],
 
-                 'description' => $this->_('Enter the maximum debit an account is allowed to have before being suspended.'),
 
-                 'attributes'  => array(
 
-                     'class' => 'form-control input-mini account-mode-field',
 
-                 ),
 
-                 'validators'  => array(
 
-                     'Numeric',
 
-                 ),
 
-                 'filters'     => array(
 
-                     '\\Ppb\\Filter\\LocalizedNumeric',
 
-                 ),
 
-             ),
 
-             array(
 
-                 'form_id'     => 'account_settings',
 
-                 'id'          => 'min_invoice_value',
 
-                 'element'     => '\\Ppb\\Form\\Element\\LocalizedNumeric',
 
-                 'label'       => $this->_('Minimum Credit Amount'),
 
-                 'prefix'      => $settings['currency'],
 
-                 'attributes'  => array(
 
-                     'class' => 'form-control input-mini account-mode-field',
 
-                 ),
 
-                 'description' => $this->_('Enter the minimum payment amount that a user can credit his account balance with.'),
 
-                 'validators'  => array(
 
-                     'Numeric',
 
-                 ),
 
-                 'filters'     => array(
 
-                     '\\Ppb\\Filter\\LocalizedNumeric',
 
-                 ),
 
-             ),
 
-             array(
 
-                 'form_id'      => 'account_settings',
 
-                 'id'           => 'payment_reminder_email',
 
-                 'element'      => 'checkbox',
 
-                 'label'        => $this->_('Payment Notification Emails'),
 
-                 'multiOptions' => array(
 
-                     1 => null,
 
-                 ),
 
-                 'attributes'   => array(
 
-                     'class' => 'account-mode-field',
 
-                 ),
 
-                 'description'  => $this->_('Check the above checkbox if you wish to send automatic notification emails to accounts that have exceeded their debit limit.'),
 
-             ),
 
-             array(
 
-                 'form_id'      => 'account_settings',
 
-                 'id'           => 'suspend_over_limit_accounts',
 
-                 'element'      => 'checkbox',
 
-                 'label'        => $this->_('Suspend Accounts over Limit'),
 
-                 'multiOptions' => array(
 
-                     1 => null,
 
-                 ),
 
-                 'attributes'   => array(
 
-                     'class' => 'account-mode-field',
 
-                 ),
 
-                 'description'  => $this->_('Check the above checkbox if you wish to suspend accounts that have the balance over the maximum debit limit.'),
 
-             ),
 
-             array(
 
-                 'form_id'     => 'account_settings',
 
-                 'id'          => 'suspension_days',
 
-                 'element'     => 'text',
 
-                 'label'       => $this->_('Cron Invoice Suspension'),
 
-                 'suffix'      => $this->_('days'),
 
-                 'attributes'  => array(
 
-                     'class' => 'form-control input-mini account-mode-field',
 
-                 ),
 
-                 'description' => $this->_('(Optional) enter the number of days after which an account that has been sent an automatic payment notification email will be suspended. '
 
-                     . 'This setting will only apply if you have selected not to suspend accounts that have exceeded their debit limit.'),
 
-                 'validators'  => array(
 
-                     'Digits',
 
-                 ),
 
-             ),
 
-             array(
 
-                 'form_id'      => 'account_settings',
 
-                 'id'           => 'rebill_expired_subscriptions',
 
-                 'element'      => 'checkbox',
 
-                 'label'        => $this->_('Re-bill Expired Subscriptions'),
 
-                 'multiOptions' => array(
 
-                     1 => null,
 
-                 ),
 
-                 'attributes'   => array(
 
-                     'class' => 'account-mode-field',
 
-                 ),
 
-                 'description'  => $this->_('Check the above checkbox if you wish to bill expired subscriptions automatically from the users\' balances (works only when in account mode).'),
 
-             ),
 
-             /**
 
-              * ++++++++++++++
 
-              * USER SIGNUP CONFIRMATION
 
-              * ++++++++++++++
 
-              */
 
-             array(
 
-                 'form_id'      => 'signup_settings',
 
-                 'id'           => 'signup_settings',
 
-                 'element'      => 'radio',
 
-                 'label'        => $this->_('User Signup Confirmation'),
 
-                 'multiOptions' => array(
 
-                     0 => array(
 
-                         $translate->_('No Confirmation Required'),
 
-                         $translate->_('Check the above box if user accounts should be activated immediately, with no confirmation required.'),
 
-                     ),
 
-                     1 => array(
 
-                         $translate->_('Email Address Verification'),
 
-                         $translate->_('Check the above box if you wish to enable email address confirmation. In this case, users will '
 
-                             . 'need to click the link from the registration confirmation email they receive when registering in order to activate their account.'),
 
-                     ),
 
-                     2 => array(
 
-                         $translate->_('Admin Approval'),
 
-                         $translate->_('Check the above box if you wish for the admin to manually activate each user from the users management page.<br>'
 
-                             . 'Users will also need to confirm their email address like on the "email address confirmation" option.'),
 
-                     ),
 
-                 ),
 
-                 'description'  => $this->_('Select the signup confirmation settings which should apply on your website.'),
 
-             ),
 
- //            /**
 
- //             * ++++++++++++++
 
- //             * ABOUT ME/PROFILE PAGE
 
- //             * ++++++++++++++
 
- //             */
 
- //            array(
 
- //                'form_id'      => 'profile_page',
 
- //                'id'           => 'profile_page',
 
- //                'element'      => 'checkbox',
 
- //                'label'        => $this->_('Enable About Me/Profile Page'),
 
- //                'multiOptions' => array(
 
- //                    1 => null,
 
- //                ),
 
- //                'description'  => $this->_('Check the above checkbox to enable users to create an about me/profile page on the website.'),
 
- //            ),
 
-             /**
 
-              * ++++++++++++++
 
-              * ENABLE PRIVATE REPUTATION COMMENTS
 
-              * ++++++++++++++
 
-              */
 
-             array(
 
-                 'form_id'      => 'private_reputation_comments',
 
-                 'id'           => 'private_reputation',
 
-                 'element'      => 'checkbox',
 
-                 'label'        => $this->_('Enable Private Reputation Comments'),
 
-                 'multiOptions' => array(
 
-                     1 => null,
 
-                 ),
 
-                 'description'  => $this->_('Check the above checkbox in order to make the reputation comments private/not available for other users to read.<br>'
 
-                     . 'In this case, only the reputation score will be viewable publicly.'),
 
-             ),
 
-             /**
 
-              * DISABLE REPUTATION
 
-              */
 
-             array(
 
-                 'form_id'      => 'users_reputation',
 
-                 'id'           => 'enable_reputation',
 
-                 'element'      => 'checkbox',
 
-                 'label'        => $this->_('Enable Reputation'),
 
-                 'multiOptions' => array(
 
-                     1 => null,
 
-                 ),
 
-                 'description'  => $this->_('Check the above checkbox in order to enable the reputation module.'),
 
-             ),
 
-             /**
 
-              * ++++++++++++++
 
-              * TIME AND DATE SETTINGS
 
-              * ++++++++++++++
 
-              */
 
-             array(
 
-                 'form_id'      => 'time_date',
 
-                 'id'           => 'timezone',
 
-                 'element'      => 'select',
 
-                 'label'        => $this->_('Time Zone'),
 
-                 'multiOptions' => $this->getTimezones()->getMultiOptions(),
 
-                 'description'  => $this->_('Select your site\'s time zone.'),
 
-                 'attributes'   => array(
 
-                     'class' => 'form-control input-medium',
 
-                 ),
 
-                 'required'     => true,
 
-             ),
 
-             array(
 
-                 'form_id'      => 'time_date',
 
-                 'id'           => 'date_format',
 
-                 'element'      => 'radio',
 
-                 'label'        => $this->_('Date Format'),
 
-                 'multiOptions' => array(
 
-                     '%m/%d/%Y %H:%M:%S' => array(
 
-                         'mm/dd/yyyy h:m:s',
 
-                         $translate->_('Example:') . ' ' . $this->getView()->date(time(), false, '%m/%d/%Y %H:%M:%S'),
 
-                     ),
 
-                     '%d.%m.%Y %H:%M:%S' => array(
 
-                         'dd.mm.yyyy h:m:s',
 
-                         $translate->_('Example:') . ' ' . $this->getView()->date(time(), false, '%d.%m.%Y %H:%M:%S'),
 
-                     ),
 
-                 ),
 
-                 'description'  => $this->_('Select a format for displaying dates and date/time combinations on your website.'),
 
-                 'required'     => true,
 
-             ),
 
-             /**
 
-              * ++++++++++++++
 
-              * USER DEFINED LANGUAGES
 
-              * ++++++++++++++
 
-              */
 
-             array(
 
-                 'form_id'      => 'user_languages',
 
-                 'id'           => 'user_languages',
 
-                 'element'      => 'checkbox',
 
-                 'label'        => $this->_('Multi Language Support'),
 
-                 'multiOptions' => array(
 
-                     1 => null,
 
-                 ),
 
-                 'description'  => $this->_('If this setting is enabled, visitors browsing your site will be able to select a language in which the site will be displayed.<br>'
 
-                     . 'This setting will only apply if your site is available in multiple languages (not available by default).'),
 
-             ),
 
-             /**
 
-              * ++++++++++++++
 
-              * SEO SETTINGS
 
-              * ++++++++++++++
 
-              */
 
-             array(
 
-                 'form_id'     => 'seo_settings',
 
-                 'id'          => 'meta_title',
 
-                 'element'     => 'text',
 
-                 'label'       => $this->_('Meta Title'),
 
-                 'description' => $this->_('(Highly Recommended) Add a meta title for your home page.'),
 
-                 'attributes'  => array(
 
-                     'class' => 'form-control input-xlarge',
 
-                 ),
 
-                 'validators'  => array(
 
-                     'NoHtml',
 
-                 ),
 
-             ),
 
-             array(
 
-                 'form_id'     => 'seo_settings',
 
-                 'id'          => 'meta_description',
 
-                 'element'     => 'textarea',
 
-                 'label'       => $this->_('Meta Description'),
 
-                 'description' => $this->_('(Highly Recommended) This meta description tells the search engines what your site is about. '
 
-                     . 'Your description should have between 70 and 155 characters (including spaces).'),
 
-                 'validators'  => array(
 
-                     'NoHtml',
 
-                 ),
 
-                 'attributes'  => array(
 
-                     'rows'  => '4',
 
-                     'class' => 'form-control',
 
-                 ),
 
-             ),
 
-             array(
 
-                 'form_id'     => 'seo_settings',
 
-                 'id'          => 'meta_data',
 
-                 'element'     => '\\Ppb\\Form\\Element\\MultiKeyValue',
 
-                 'label'       => $this->_('Other Tags'),
 
-                 'description' => $this->_('(Optional) Enter any additional meta tags that you might want to add to your site.<br>'
 
-                     . 'Format: name (keywords, robots, etc) - content (string)'),
 
-                 'attributes'  => array(
 
-                     'class' => 'form-control input-medium',
 
-                 ),
 
-             ),
 
-             array(
 
-                 'form_id'      => 'seo_settings',
 
-                 'id'           => 'mod_rewrite_urls',
 
-                 'element'      => 'checkbox',
 
-                 'label'        => $this->_('Enable Search Engine Friendly URLs'),
 
-                 'description'  => sprintf(
 
-                     $this->_('The mod_rewrite apache extension should be loaded in order for search engine friendly URLs to work. '
 
-                         . 'There are alternatives to this extension if running '
 
-                         . '<a target="_blank" href="http://blog.martinfjordvald.com/2011/02/nginx-primer-2-from-apache-to-nginx/">ngnix</a> or '
 
-                         . '<a target="_blank" href="http://www.micronovae.com/ModRewrite/ModRewrite.html">Microsoft IIS</a>.<br>'
 
-                         . '<em>mod_rewrite extension status:</em> %s'),
 
-                     ((\Ppb\Utility::checkModRewrite()) ?
 
-                         '<span class="label label-success">' . $this->_('Enabled') . '</span>' :
 
-                         '<span class="label label-warning">' . $this->_('Disabled / Check Failed') . '</span>')),
 
-                 'multiOptions' => array(
 
-                     1 => null
 
-                 ),
 
-             ),
 
-             array(
 
-                 'form_id'     => 'seo_settings',
 
-                 'id'          => 'home_page_html',
 
-                 'element'     => 'textarea',
 
-                 'label'       => $this->_('Home Page Custom HTML'),
 
-                 'description' => $this->_('(Recommended for SEO) Add custom html to your home page. '
 
-                     . 'You should add one <strong>h1</strong> tag that best describes your website and at least one <strong>h2</strong> tag with secondary descriptions.'),
 
-                 'attributes'  => array(
 
-                     'class' => 'form-control textarea-code',
 
-                     'rows'  => 12,
 
-                 ),
 
-             ),
 
- //            array(
 
- //                'form_id' => 'seo_settings',
 
- //                'id' => 'enable_sitemap',
 
- //                'element' => 'checkbox',
 
- //                'label'        => $this->_('Enable XML Sitemap'),
 
- //                'multiOptions' => array(
 
- //                    1 => null,
 
- //                ),
 
- //                'description'  => $this->_('If this setting is enabled, visitors browsing your site will be able to select a language in which the site will be displayed.<br>'
 
- //                        . 'This setting will only apply if your site is available in multiple languages (not available by default).'),
 
- //            ),
 
-             /**
 
-              * ++++++++++++++
 
-              * CRON JOBS
 
-              * ++++++++++++++
 
-              */
 
-             array(
 
-                 'form_id'      => 'cron_jobs',
 
-                 'id'           => 'cron_job_type',
 
-                 'element'      => 'radio',
 
-                 'label'        => $this->_('Cron Jobs Setup'),
 
-                 'multiOptions' => array(
 
-                     'server'      => array(
 
-                         $translate->_('Run cron jobs from your server\'s control panel'),
 
-                         sprintf($translate->_('Please add ONE of the following lines and set it to run every minute:<br>'
 
-                             . '<code>curl -s %1$s/cron.php</code>' . ' or<br>'
 
-                             . '<code>wget -q %1$s/cron.php</code>' . '<br><br>'
 
-                             . 'Purge unused images - run once per hour:<br>'
 
-                             . '<code>curl -s %1$s/cron.php?command=purge-unused-uploaded-files 2>&1</code> or' . '<br>'
 
-                             . '<code>wget -q %1$s/cron.php?command=purge-unused-uploaded-files</code>' . '<br><br>'
 
-                             . 'Purge cache data - run daily:<br>'
 
-                             . '<code>curl -s %1$s/cron.php?command=purge-cache-data 2>&1</code> or' . '<br>'
 
-                             . '<code>wget -q %1$s/cron.php?command=purge-cache-data</code>' . '<br><br>'
 
-                             . 'Update currency exchange rates - run daily:<br>'
 
-                             . '<code>curl -s %1$s/cron.php?command=update-currency-exchange-rates 2>&1</code> or' . '<br>'
 
-                             . '<code>wget -q %1$s/cron.php?command=update-currency-exchange-rates</code>'
 
-                         ), $settings['site_path']),
 
-                     ),
 
-                     'application' => array(
 
-                         $translate->_('Run cron jobs from within the application'),
 
-                         $translate->_('Cron jobs will be run automatically each time the site is accessed. Use only if you dont '
 
-                             . 'have access to the cron tab application on your server.'),
 
-                     )
 
-                 ),
 
-             ),
 
-             /**
 
-              * ++++++++++++++
 
-              * CACHING ENGINE
 
-              * ++++++++++++++
 
-              */
 
-             array(
 
-                 'form_id'      => 'caching',
 
-                 'id'           => 'caching_engine',
 
-                 'element'      => 'radio',
 
-                 'label'        => 'Caching Engine',
 
-                 'multiOptions' => $this->_cachingEngineMultiOptions(),
 
-             ),
 
-             /**
 
-              * ++++++++++++++
 
-              * PRIVATE SITE/SINGLE SELLER
 
-              * ++++++++++++++
 
-              */
 
-             array(
 
-                 'form_id'      => 'private_site',
 
-                 'id'           => 'private_site',
 
-                 'element'      => 'checkbox',
 
-                 'label'        => $this->_('Private Site/Single Seller'),
 
-                 'multiOptions' => array(
 
-                     1 => null
 
-                 ),
 
-                 'description'  => $this->_('Enable this feature if you want to be able to select which users are allowed to list on your site.<br>'
 
-                     . 'You can select which users will have selling privileges from the Users Management page.'),
 
-             ),
 
-             /**
 
-              * ++++++++++++++
 
-              * PREFERRED SELLERS FEATURE
 
-              * ++++++++++++++
 
-              */
 
-             array(
 
-                 'form_id'      => 'preferred_sellers',
 
-                 'id'           => 'preferred_sellers',
 
-                 'element'      => 'checkbox',
 
-                 'label'        => $this->_('Preferred Sellers Feature'),
 
-                 'multiOptions' => array(
 
-                     1 => null
 
-                 ),
 
-                 'description'  => $this->_('Enable this feature if you want to give certain users listing/sale fee reductions.'),
 
-             ),
 
-             array(
 
-                 'form_id'     => 'preferred_sellers',
 
-                 'id'          => 'preferred_sellers_expiration',
 
-                 'element'     => 'text',
 
-                 'label'       => $this->_('Expires after'),
 
-                 'description' => $this->_('(Optional) Enter the number of days after which the preferred seller status will expire.'),
 
-                 'suffix'      => $this->_('days'),
 
-                 'attributes'  => array(
 
-                     'class' => 'form-control input-mini',
 
-                 ),
 
-                 'validators'  => array(
 
-                     'Digits',
 
-                 ),
 
-             ),
 
-             array(
 
-                 'form_id'     => 'preferred_sellers',
 
-                 'id'          => 'preferred_sellers_reduction',
 
-                 'element'     => '\\Ppb\\Form\\Element\\LocalizedNumeric',
 
-                 'label'       => $this->_('Reduction'),
 
-                 'description' => $this->_('Enter the reduction percentage that will be applied.'),
 
-                 'suffix'      => '%',
 
-                 'attributes'  => array(
 
-                     'class' => 'form-control input-mini',
 
-                 ),
 
-                 'validators'  => array(
 
-                     'Numeric',
 
-                 ),
 
-                 'filters'     => array(
 
-                     '\\Ppb\\Filter\\LocalizedNumeric',
 
-                 ),
 
-             ),
 
-             array(
 
-                 'form_id'      => 'preferred_sellers',
 
-                 'id'           => 'preferred_sellers_apply_sale',
 
-                 'element'      => 'checkbox',
 
-                 'label'        => $this->_('Apply To Sale Fees'),
 
-                 'multiOptions' => array(
 
-                     1 => null
 
-                 ),
 
-                 'description'  => $this->_('Check the above checkbox if you wish to apply the preferred seller reduction to sale fees.'),
 
-             ),
 
-             /**
 
-              * SITE INVOICES SETTINGS [ Header - Footer ]
 
-              */
 
-             array(
 
-                 'form_id'     => 'site_invoices',
 
-                 'id'          => 'invoice_address',
 
-                 'element'     => 'textarea',
 
-                 'label'       => $this->_('Invoice Address'),
 
-                 'description' => $this->_('Enter the address that will appear on site invoices.'),
 
-                 'attributes'  => array(
 
-                     'rows'  => '8',
 
-                     'class' => 'form-control textarea-code',
 
-                 ),
 
-                 'validators'  => array(
 
-                     'NoHtml',
 
-                 ),
 
-             ),
 
-             array(
 
-                 'form_id'     => 'site_invoices',
 
-                 'id'          => 'invoice_header',
 
-                 'element'     => 'textarea',
 
-                 'label'       => $this->_('Invoice Header'),
 
-                 'description' => $this->_('Add a custom html header for site invoices, or leave empty if you wish for the site logo will be displayed.'),
 
-                 'attributes'  => array(
 
-                     'rows'  => '12',
 
-                     'class' => 'form-control textarea-code',
 
-                 ),
 
-             ),
 
-             array(
 
-                 'form_id'     => 'site_invoices',
 
-                 'id'          => 'invoice_footer',
 
-                 'element'     => 'textarea',
 
-                 'label'       => $this->_('Invoice Footer'),
 
-                 'description' => $this->_('Add a custom html footer for site invoices.'),
 
-                 'attributes'  => array(
 
-                     'rows'  => '12',
 
-                     'class' => 'form-control textarea-code',
 
-                 ),
 
-             ),
 
-             /**
 
-              * ++++++++++++++
 
-              * ADDRESS DISPLAY FORMAT
 
-              * ++++++++++++++
 
-              */
 
-             array(
 
-                 'form_id'      => 'address_display_format',
 
-                 'id'           => 'address_display_format',
 
-                 'element'      => 'radio',
 
-                 'label'        => $this->_('Address Display Format'),
 
-                 'multiOptions' => array(
 
-                     'default'   => array(
 
-                         $translate->_('Default'),
 
-                         $translate->_('Address, City, Post/Zip Code, County/State, Country'),
 
-                     ),
 
-                     'alternate' => array(
 
-                         $translate->_('Alternate'),
 
-                         $translate->_('Address, City, County/State, Post/Zip Code, Country'),
 
-                     ),
 
-                 ),
 
-                 'description'  => $this->_('Choose how addresses should be displayed on the website (on sales, invoices, etc.).'),
 
-             ),
 
-             /**
 
-              * ++++++++++++++
 
-              * GOOGLE ANALYTICS
 
-              * ++++++++++++++
 
-              */
 
-             array(
 
-                 'form_id'     => 'google_analytics',
 
-                 'id'          => 'google_analytics_code',
 
-                 'element'     => 'textarea',
 
-                 'label'       => $this->_('Google Analytics Code'),
 
-                 'description' => $this->_('If you have a Google Analytics account that you want to use for your site, you can add the tracking code that '
 
-                     . 'Google provides in the field above.'),
 
-                 'attributes'  => array(
 
-                     'rows'  => '16',
 
-                     'class' => 'form-control textarea-code',
 
-                 ),
 
-             ),
 
-             /**
 
-              * ++++++++++++++
 
-              * ALLOW BUYER TO COMBINE PURCHASES
 
-              * ++++++++++++++
 
-              */
 
-             array(
 
-                 'form_id'      => 'combine_purchases',
 
-                 'id'           => 'buyer_create_invoices',
 
-                 'element'      => 'checkbox',
 
-                 'label'        => $this->_('Buyer can Combine Purchases'),
 
-                 'multiOptions' => array(
 
-                     1 => null
 
-                 ),
 
-                 'description'  => $this->_('If this setting is enabled, buyers can combine purchased items from the same seller into a single invoice.<br>'
 
-                     . '<b>Important</b>: Only non-invoiced items can be combined.'),
 
-             ),
 
-             /**
 
-              * ++++++++++++++
 
-              * FEATURED LISTINGS BOXES
 
-              * ++++++++++++++
 
-              */
 
-             array(
 
-                 'form_id'     => 'home_page_appearance',
 
-                 'id'          => 'hp_listings_imgsize',
 
-                 'element'     => 'text',
 
-                 'label'       => $this->_('Image Size'),
 
-                 'description' => $this->_('Enter the size of the listings images.'),
 
-                 'required'    => true,
 
-                 'suffix'      => $this->_('pixels'),
 
-                 'validators'  => array(
 
-                     'Digits',
 
-                     array('GreaterThan', array(30, true)),
 
-                 ),
 
-                 'attributes'  => array(
 
-                     'class' => 'form-control input-mini',
 
-                 ),
 
-             ),
 
-             /**
 
-              * DISPLAY SECTIONS SETTINGS
 
-              */
 
-             /* HOME PAGE FEATURED */
 
-             array(
 
-                 'form_id'     => 'home_page_appearance',
 
-                 'subtitle'    => $this->_('Home Page Featured'),
 
-                 'id'          => 'hpfeat_nb',
 
-                 'element'     => 'text',
 
-                 'label'       => $this->_('Listings'),
 
-                 'description' => $this->_('Enter the maximum number of home page featured listings that will be displayed or leave empty to disable.'),
 
-                 'required'    => false,
 
-                 'validators'  => array(
 
-                     'Digits',
 
-                     array('LessThan', array(24, true)),
 
-                 ),
 
-                 'attributes'  => array(
 
-                     'class' => 'form-control input-mini',
 
-                 ),
 
-             ),
 
-             array(
 
-                 'form_id'      => 'home_page_appearance',
 
-                 'id'           => 'hpfeat_tabbed',
 
-                 'element'      => 'checkbox',
 
-                 'label'        => $this->_('Tabbed Display'),
 
-                 'required'     => false,
 
-                 'multiOptions' => array(
 
-                     1 => null,
 
-                 ),
 
-             ),
 
-             array(
 
-                 'form_id'      => 'home_page_appearance',
 
-                 'id'           => 'hpfeat_carousel',
 
-                 'element'      => 'checkbox',
 
-                 'label'        => $this->_('Carousel'),
 
-                 'required'     => false,
 
-                 'multiOptions' => array(
 
-                     1 => null,
 
-                 ),
 
-             ),
 
-             array(
 
-                 'form_id'      => 'home_page_appearance',
 
-                 'id'           => 'hpfeat_box',
 
-                 'element'      => 'radio',
 
-                 'label'        => $this->_('Box Type'),
 
-                 'required'     => false,
 
-                 'multiOptions' => array(
 
-                     'list' => 'List',
 
-                     'grid' => 'Grid',
 
-                 ),
 
-             ),
 
-             /* RECENTLY LISTED */
 
-             array(
 
-                 'form_id'    => 'home_page_appearance',
 
-                 'subtitle'   => $this->_('Recently Listed'),
 
-                 'id'         => 'recent_nb',
 
-                 'element'    => 'text',
 
-                 'label'      => $this->_('Listings'),
 
-                 'required'   => false,
 
-                 'validators' => array(
 
-                     'Digits',
 
-                     array('LessThan', array(32, true)),
 
-                 ),
 
-                 'attributes' => array(
 
-                     'class' => 'form-control input-mini',
 
-                 ),
 
-             ),
 
-             array(
 
-                 'form_id'      => 'home_page_appearance',
 
-                 'id'           => 'recent_tabbed',
 
-                 'element'      => 'checkbox',
 
-                 'label'        => $this->_('Tabbed Display'),
 
-                 'required'     => false,
 
-                 'multiOptions' => array(
 
-                     1 => null,
 
-                 ),
 
-             ),
 
-             array(
 
-                 'form_id'      => 'home_page_appearance',
 
-                 'id'           => 'recent_carousel',
 
-                 'element'      => 'checkbox',
 
-                 'label'        => $this->_('Carousel'),
 
-                 'required'     => false,
 
-                 'multiOptions' => array(
 
-                     1 => null,
 
-                 ),
 
-             ),
 
-             array(
 
-                 'form_id'      => 'home_page_appearance',
 
-                 'id'           => 'recent_box',
 
-                 'element'      => 'radio',
 
-                 'label'        => $this->_('Box Type'),
 
-                 'required'     => false,
 
-                 'multiOptions' => array(
 
-                     'list' => 'List',
 
-                     'grid' => 'Grid',
 
-                 ),
 
-             ),
 
-             /* ENDING SOON */
 
-             array(
 
-                 'form_id'    => 'home_page_appearance',
 
-                 'subtitle'   => $this->_('Ending Soon'),
 
-                 'id'         => 'ending_nb',
 
-                 'element'    => 'text',
 
-                 'label'      => $this->_('Listings'),
 
-                 'required'   => false,
 
-                 'validators' => array(
 
-                     'Digits',
 
-                     array('LessThan', array(32, true)),
 
-                 ),
 
-                 'attributes' => array(
 
-                     'class' => 'form-control input-mini',
 
-                 ),
 
-             ),
 
-             array(
 
-                 'form_id'      => 'home_page_appearance',
 
-                 'id'           => 'ending_tabbed',
 
-                 'element'      => 'checkbox',
 
-                 'label'        => $this->_('Tabbed Display'),
 
-                 'required'     => false,
 
-                 'multiOptions' => array(
 
-                     1 => null,
 
-                 ),
 
-             ),
 
-             array(
 
-                 'form_id'      => 'home_page_appearance',
 
-                 'id'           => 'ending_carousel',
 
-                 'element'      => 'checkbox',
 
-                 'label'        => $this->_('Carousel'),
 
-                 'required'     => false,
 
-                 'multiOptions' => array(
 
-                     1 => null,
 
-                 ),
 
-             ),
 
-             array(
 
-                 'form_id'      => 'home_page_appearance',
 
-                 'id'           => 'ending_box',
 
-                 'element'      => 'radio',
 
-                 'label'        => $this->_('Box Type'),
 
-                 'required'     => false,
 
-                 'multiOptions' => array(
 
-                     'list' => 'List',
 
-                     'grid' => 'Grid',
 
-                 ),
 
-             ),
 
-             /* POPULAR */
 
-             array(
 
-                 'form_id'    => 'home_page_appearance',
 
-                 'subtitle'   => $this->_('Popular'),
 
-                 'id'         => 'popular_nb',
 
-                 'element'    => 'text',
 
-                 'label'      => $this->_('Listings'),
 
-                 'required'   => false,
 
-                 'validators' => array(
 
-                     'Digits',
 
-                     array('LessThan', array(32, true)),
 
-                 ),
 
-                 'attributes' => array(
 
-                     'class' => 'form-control input-mini',
 
-                 ),
 
-             ),
 
-             array(
 
-                 'form_id'      => 'home_page_appearance',
 
-                 'id'           => 'popular_tabbed',
 
-                 'element'      => 'checkbox',
 
-                 'label'        => $this->_('Tabbed Display'),
 
-                 'required'     => false,
 
-                 'multiOptions' => array(
 
-                     1 => null,
 
-                 ),
 
-             ),
 
-             array(
 
-                 'form_id'      => 'home_page_appearance',
 
-                 'id'           => 'popular_carousel',
 
-                 'element'      => 'checkbox',
 
-                 'label'        => $this->_('Carousel'),
 
-                 'required'     => false,
 
-                 'multiOptions' => array(
 
-                     1 => null,
 
-                 ),
 
-             ),
 
-             array(
 
-                 'form_id'      => 'home_page_appearance',
 
-                 'id'           => 'popular_box',
 
-                 'element'      => 'radio',
 
-                 'label'        => $this->_('Box Type'),
 
-                 'required'     => false,
 
-                 'multiOptions' => array(
 
-                     'list' => 'List',
 
-                     'grid' => 'Grid',
 
-                 ),
 
-             ),
 
-             /**
 
-              * ++++++++++++++
 
-              * CATEGORY PAGES FEATURED LISTINGS
 
-              * ++++++++++++++
 
-              */
 
-             array(
 
-                 'form_id'     => 'category_featured',
 
-                 'id'          => 'catfeat_nb',
 
-                 'element'     => 'text',
 
-                 'label'       => $this->_('Number of Featured Items'),
 
-                 'description' => $this->_('Leave empty or enter 0 to disable (applies to all the fields below as well).'),
 
-                 'required'    => false,
 
-                 'validators'  => array(
 
-                     'Digits',
 
-                     array('LessThan', array(24, true)),
 
-                 ),
 
-                 'attributes'  => array(
 
-                     'class' => 'form-control input-mini',
 
-                 ),
 
-             ),
 
-             /**
 
-              * ++++++++++++++
 
-              * DISPLAY FREE FEES ON FRONT END
 
-              * ++++++++++++++
 
-              */
 
-             array(
 
-                 'form_id'      => 'display_free_fees',
 
-                 'id'           => 'display_free_fees',
 
-                 'element'      => 'checkbox',
 
-                 'label'        => $this->_('Display Free Fees on User End'),
 
-                 'multiOptions' => array(
 
-                     1 => null,
 
-                 ),
 
-                 'description'  => $this->_('Check the above checkbox if you wish for free fees to be displayed on the front end.'),
 
-             ),
 
-             /**
 
-              * ++++++++++++++
 
-              * CUSTOM START/END TIME OPTIONS
 
-              * ++++++++++++++
 
-              */
 
-             array(
 
-                 'form_id'      => 'custom_start_end_times',
 
-                 'id'           => 'enable_custom_start_time',
 
-                 'element'      => 'checkbox',
 
-                 'label'        => $this->_('Enable Custom Start Time'),
 
-                 'multiOptions' => array(
 
-                     1 => null,
 
-                 ),
 
-                 'description'  => $this->_('Check the above checkbox to enable the custom start time option for listings.'),
 
-             ),
 
-             array(
 
-                 'form_id'      => 'custom_start_end_times',
 
-                 'id'           => 'enable_custom_end_time',
 
-                 'element'      => 'checkbox',
 
-                 'label'        => $this->_('Enable Custom End Time'),
 
-                 'multiOptions' => array(
 
-                     1 => null,
 
-                 ),
 
-                 'description'  => $this->_('Check the above checkbox to enable the custom end time option for listings.'),
 
-             ),
 
-             /**
 
-              * ++++++++++++++
 
-              * LISTINGS SEARCH SETTINGS
 
-              * ++++++++++++++
 
-              */
 
-             array(
 
-                 'form_id'      => 'listings_search_settings',
 
-                 'id'           => 'search_title',
 
-                 'element'      => 'checkbox',
 
-                 'label'        => $this->_('By Title'),
 
-                 'multiOptions' => array(
 
-                     1 => null,
 
-                 ),
 
-                 'description'  => $this->_('This setting cannot be disabled, searching by listing titles is mandatory.'),
 
-                 'attributes'   => array(
 
-                     'checked'  => true,
 
-                     'disabled' => true,
 
-                 ),
 
-             ),
 
-             array(
 
-                 'form_id'      => 'listings_search_settings',
 
-                 'id'           => 'search_subtitle',
 
-                 'element'      => 'checkbox',
 
-                 'label'        => $this->_('By Subtitle'),
 
-                 'multiOptions' => array(
 
-                     1 => null,
 
-                 ),
 
-                 'description'  => $this->_('Check the above checkbox to allow searching for keywords in listing subtitles.'),
 
-             ),
 
-             array(
 
-                 'form_id'      => 'listings_search_settings',
 
-                 'id'           => 'search_description',
 
-                 'element'      => 'checkbox',
 
-                 'label'        => $this->_('By Description'),
 
-                 'multiOptions' => array(
 
-                     1 => null,
 
-                 ),
 
-                 'description'  => $this->_('Check the above checkbox to allow searching for keywords in listing descriptions.'),
 
-             ),
 
-             array(
 
-                 'form_id'      => 'listings_search_settings',
 
-                 'id'           => 'search_category_name',
 
-                 'element'      => 'checkbox',
 
-                 'label'        => $this->_('By Category Names'),
 
-                 'multiOptions' => array(
 
-                     1 => null,
 
-                 ),
 
-                 'description'  => $this->_('Check the above checkbox to allow searching for keywords in category names.'),
 
-             ),
 
-             /**
 
-              * ++++++++++++++
 
-              * LISTING SETUP PROCESS
 
-              * ++++++++++++++
 
-              */
 
-             array(
 
-                 'form_id'      => 'listing_setup',
 
-                 'id'           => 'listing_setup_process',
 
-                 'element'      => 'radio',
 
-                 'label'        => $this->_('Listing Setup Process'),
 
-                 'multiOptions' => array(
 
-                     'full'  => array(
 
-                         $translate->_('Full'),
 
-                         $translate->_('Use the standard 4 steps form - details, settings, shipping and preview.'),
 
-                     ),
 
-                     'quick' => array(
 
-                         $translate->_('Quick'),
 
-                         $translate->_('Use the quick 2 steps form - setup and preview.'),
 
-                     ),
 
-                 ),
 
-                 'description'  => $this->_('Choose the type of listing creation form to use in the front end.'),
 
-             ),
 
-             /**
 
-              * ++++++++++++++
 
-              * CURRENCY SETTINGS
 
-              * ++++++++++++++
 
-              */
 
-             array(
 
-                 'subtitle'     => $translate->_('Current Display Format:') . ' <b>' . $this->getView()->amount(3999) . '</b>',
 
-                 'form_id'      => 'currency_settings',
 
-                 'id'           => 'currency',
 
-                 'element'      => 'select',
 
-                 'label'        => $this->_('Default Currency'),
 
-                 'multiOptions' => $this->getCurrencies()->getMultiOptions(),
 
-                 'description'  => sprintf(
 
-                     $translate->_('Select the site\'s default currency.<br>'
 
-                         . '<b>Important</b>: Please <a href="%s">click here</a> to define which currencies will be available on the site.'),
 
-                     $this->_view->url(array('module' => 'admin', 'controller' => 'tables', 'action' => 'index', 'table' => 'currencies'))),
 
-                 'required'     => true,
 
-                 'attributes'   => array(
 
-                     'class' => 'form-control input-large',
 
-                 ),
 
-             ),
 
-             array(
 
-                 'form_id'      => 'currency_settings',
 
-                 'id'           => 'currency_format',
 
-                 'element'      => 'radio',
 
-                 'label'        => $this->_('Amount Display Format'),
 
-                 'multiOptions' => array(
 
-                     1 => array(
 
-                         $translate->_('US Format: 9,999.95'),
 
-                     ),
 
-                     2 => array(
 
-                         $translate->_('EU Format: 9.999,95'),
 
-                     ),
 
-                 ),
 
-                 'description'  => $this->_('Select the amount display format that will be applied for when displaying currency amounts on your website.'),
 
-                 'required'     => true,
 
-             ),
 
-             array(
 
-                 'form_id'     => 'currency_settings',
 
-                 'id'          => 'currency_decimals',
 
-                 'element'     => 'text',
 
-                 'label'       => $this->_('Decimal Digits'),
 
-                 'description' => $this->_('Enter the number of decimal digits that will be shown when displaying a currency amount.'),
 
-                 'required'    => true,
 
-                 'validators'  => array(
 
-                     'Digits',
 
-                 ),
 
-                 'attributes'  => array(
 
-                     'class' => 'form-control input-mini',
 
-                 ),
 
-             ),
 
-             array(
 
-                 'form_id'      => 'currency_settings',
 
-                 'id'           => 'currency_position',
 
-                 'element'      => 'radio',
 
-                 'label'        => $this->_('Symbol Position'),
 
-                 'multiOptions' => array(
 
-                     1 => array(
 
-                         $translate->_('Symbol before amount:') . ' ' . $this->getCurrencies()->getSymbol($settings['currency']) . ' 199',
 
-                     ),
 
-                     2 => array(
 
-                         $translate->_('Amount before symbol:') . ' 199 ' . $this->getCurrencies()->getSymbol($settings['currency']),
 
-                     ),
 
-                 ),
 
-                 'description'  => $this->_('Select the amount display format that will be applied for when displaying currency amounts on your website.'),
 
-                 'required'     => true,
 
-             ),
 
-             /**
 
-              * ++++++++++++++
 
-              * TITLE CHARACTER LENGTH
 
-              * ++++++++++++++
 
-              */
 
-             array(
 
-                 'form_id'     => 'character_length',
 
-                 'id'          => 'character_length',
 
-                 'element'     => 'text',
 
-                 'label'       => $this->_('Title Character Length'),
 
-                 'description' => $this->_('Enter the maximum character length allowed for the listing title field.'),
 
-                 'validators'  => array(
 
-                     'Digits',
 
-                 ),
 
-                 'attributes'  => array(
 
-                     'class' => 'form-control input-mini',
 
-                 ),
 
-             ),
 
-             /**
 
-              * ++++++++++++++
 
-              * LISTINGS APPROVAL
 
-              * ++++++++++++++
 
-              */
 
-             array(
 
-                 'form_id'      => 'listings_approval',
 
-                 'id'           => 'enable_listings_approval',
 
-                 'element'      => 'checkbox',
 
-                 'label'        => $this->_('Enable Listings Approval'),
 
-                 'multiOptions' => array(
 
-                     1 => null,
 
-                 ),
 
-                 'description'  => $this->_('Check the above checkbox if you wish for listings to require admin approval before they are displayed '
 
-                     . 'on your website. Listings will require approval after being edited as well.'),
 
-             ),
 
-             /**
 
-              * ++++++++++++++
 
-              * SUBTITLE
 
-              * ++++++++++++++
 
-              */
 
-             array(
 
-                 'form_id'      => 'listing_subtitle',
 
-                 'id'           => 'enable_subtitle',
 
-                 'element'      => 'checkbox',
 
-                 'label'        => $this->_('Enable Listing Subtitle'),
 
-                 'multiOptions' => array(
 
-                     1 => null,
 
-                 ),
 
-                 'description'  => $this->_('Check the above checkbox if you wish to allow sellers to add subtitles to their listings.'),
 
-             ),
 
-             /**
 
-              * ++++++++++++++
 
-              * IMAGES SETTINGS
 
-              * ++++++++++++++
 
-              */
 
-             array(
 
-                 'form_id'     => 'images_settings',
 
-                 'id'          => 'images_max',
 
-                 'element'     => 'text',
 
-                 'label'       => $this->_('Number of Images'),
 
-                 'description' => $this->_('Enter the maximum number of images that can be added to a listing.'),
 
-                 'required'    => true,
 
-                 'validators'  => array(
 
-                     'Digits',
 
-                 ),
 
-                 'attributes'  => array(
 
-                     'class' => 'form-control input-mini',
 
-                 ),
 
-             ),
 
-             array(
 
-                 'form_id'      => 'images_settings',
 
-                 'id'           => 'mandatory_images',
 
-                 'element'      => 'checkbox',
 
-                 'label'        => $this->_('Mandatory Images'),
 
-                 'multiOptions' => array(
 
-                     1 => null,
 
-                 ),
 
-                 'description'  => $this->_('Check the above checkbox to require for at least one image to be added when a listing is created.'),
 
-             ),
 
-             array(
 
-                 'form_id'     => 'images_settings',
 
-                 'id'          => 'images_size',
 
-                 'element'     => 'text',
 
-                 'label'       => $this->_('Maximum Size Allowed'),
 
-                 'suffix'      => $this->_('KB'),
 
-                 'description' => sprintf($this->_('Enter the maximum size an uploaded image can have.<br>'
 
-                     . '<strong>Note</strong>: The maximum allowed size of a file that can be uploaded on your server is <strong>%s</strong>. <br>'
 
-                     . 'If needing to have the limit increased, please contact your hosting provider.'), $maximumFileUploadSize),
 
-                 'validators'  => array(
 
-                     'Digits',
 
-                 ),
 
-                 'attributes'  => array(
 
-                     'class' => 'form-control input-mini',
 
-                 ),
 
-             ),
 
-             array(
 
-                 'form_id'      => 'images_settings',
 
-                 'id'           => 'crop_images',
 
-                 'element'      => 'checkbox',
 
-                 'label'        => $this->_('Crop to Aspect Ratio'),
 
-                 'multiOptions' => array(
 
-                     1 => null,
 
-                 ),
 
-                 'description'  => $this->_('Check the above checkbox if you wish for uploaded images to be cropped when thumbnails are generated.'),
 
-             ),
 
-             array(
 
-                 'form_id'      => 'images_settings',
 
-                 'id'           => 'lazy_load_images',
 
-                 'element'      => 'checkbox',
 
-                 'label'        => $this->_('Lazy Load'),
 
-                 'multiOptions' => array(
 
-                     1 => null,
 
-                 ),
 
-                 'description'  => $this->_('Check the above checkbox to enable the lazy load javascript for listing images (improves website loading speed).'),
 
-             ),
 
-             array(
 
-                 'form_id'      => 'images_settings',
 
-                 'id'           => 'remote_uploads',
 
-                 'element'      => 'checkbox',
 
-                 'label'        => $this->_('Allow Remote Images'),
 
-                 'multiOptions' => array(
 
-                     1 => null,
 
-                 ),
 
-                 'description'  => $this->_('Check the above checkbox to allow adding images from remote locations by entering the direct link.'),
 
-             ),
 
-             array(
 
-                 'form_id'     => 'images_settings',
 
-                 'id'          => 'images_watermark',
 
-                 'element'     => 'text',
 
-                 'label'       => $this->_('Watermark Text'),
 
-                 'description' => $this->_('Enter a watermark text that will be applied to uploaded images, or leave empty for no watermark.'),
 
-                 'attributes'  => array(
 
-                     'class' => 'form-control input-medium',
 
-                 ),
 
-                 'required'    => false,
 
-             ),
 
-             /**
 
-              * ++++++++++++++
 
-              * MEDIA UPLOAD SETTINGS
 
-              * ++++++++++++++
 
-              */
 
-             array(
 
-                 'form_id'     => 'media_upload',
 
-                 'id'          => 'videos_max',
 
-                 'element'     => 'text',
 
-                 'label'       => $this->_('Number of Videos'),
 
-                 'description' => $this->_('Enter the maximum number of videos that can be added to a listing. <br>'
 
-                     . '<b>Important</b>: To disable this feature, enter 0 in the above field.'),
 
-                 'required'    => true,
 
-                 'validators'  => array(
 
-                     'Digits',
 
-                 ),
 
-                 'attributes'  => array(
 
-                     'class' => 'form-control input-mini',
 
-                 ),
 
-             ),
 
-             array(
 
-                 'form_id'     => 'media_upload',
 
-                 'id'          => 'videos_size',
 
-                 'element'     => 'text',
 
-                 'label'       => $this->_('Maximum Size Allowed'),
 
-                 'suffix'      => $this->_('KB'),
 
-                 'description' => sprintf($this->_('Enter the maximum size an uploaded video can have.<br>'
 
-                     . '<strong>Note</strong>: The maximum allowed size of a file that can be uploaded on your server is <strong>%s</strong>. <br>'
 
-                     . 'If needing to have the limit increased, please contact your hosting provider.'), $maximumFileUploadSize),
 
-                 'validators'  => array(
 
-                     'Digits',
 
-                 ),
 
-                 'attributes'  => array(
 
-                     'class' => 'form-control input-mini',
 
-                 ),
 
-             ),
 
-             array(
 
-                 'form_id'      => 'media_upload',
 
-                 'id'           => 'embedded_code',
 
-                 'element'      => 'checkbox',
 
-                 'label'        => $this->_('Allow Embedded Code'),
 
-                 'multiOptions' => array(
 
-                     1 => null,
 
-                 ),
 
-                 'description'  => $this->_('Check the above checkbox to allow adding remote videos using embedded code. <br>'
 
-                     . '<b>Eg</b>: For YouTube use the code provided by accessing "share" -> "embed" on any youtube video.'),
 
-             ),
 
-             /**
 
-              * ++++++++++++++
 
-              * DIGITAL DOWNLOADS SETTINGS
 
-              * ++++++++++++++
 
-              */
 
-             array(
 
-                 'form_id'     => 'digital_downloads',
 
-                 'id'          => 'digital_downloads_max',
 
-                 'element'     => 'text',
 
-                 'label'       => $this->_('Digital Downloads'),
 
-                 'description' => $this->_('Enter the maximum number of downloadable files that can be added to a listing. <br>'
 
-                     . '<b>Important</b>: To disable this feature, enter 0 in the above field.'),
 
-                 'required'    => true,
 
-                 'validators'  => array(
 
-                     'Digits',
 
-                 ),
 
-                 'attributes'  => array(
 
-                     'class' => 'form-control input-mini',
 
-                 ),
 
-             ),
 
-             array(
 
-                 'form_id'     => 'digital_downloads',
 
-                 'id'          => 'digital_downloads_folder',
 
-                 'element'     => 'text',
 
-                 'label'       => $this->_('Digital Downloads Folder'),
 
-                 'description' => $translate->_('Please enter a folder relative to your document root, where the files will be stored.<br>'
 
-                         . 'Your document root path is:') . ' ' . $basePath,
 
-                 'attributes'  => array(
 
-                     'class' => 'form-control input-medium',
 
-                 ),
 
-             ),
 
-             array(
 
-                 'form_id'     => 'digital_downloads',
 
-                 'id'          => 'digital_downloads_size',
 
-                 'element'     => 'text',
 
-                 'label'       => $this->_('Maximum Size Allowed'),
 
-                 'suffix'      => $this->_('KB'),
 
-                 'description' => sprintf($this->_('Enter the maximum size an uploaded file can have.<br>'
 
-                     . '<strong>Note</strong>: The maximum allowed size of a file that can be uploaded on your server is <strong>%s</strong>. <br>'
 
-                     . 'If needing to have the limit increased, please contact your hosting provider.'), $maximumFileUploadSize),
 
-                 'validators'  => array(
 
-                     'Digits',
 
-                 ),
 
-                 'attributes'  => array(
 
-                     'class' => 'form-control input-small',
 
-                 ),
 
-             ),
 
-             array(
 
-                 'form_id'     => 'digital_downloads',
 
-                 'id'          => 'digital_downloads_disclaimer',
 
-                 'element'     => 'textarea',
 
-                 'label'       => $this->_('Downloads Disclaimer'),
 
-                 'description' => $this->_('Enter a disclaimer paragraph which will be shown to users that will be downloading files from the website before proceeding with the download.'),
 
-                 'validators'  => array(
 
-                     'NoHtml',
 
-                 ),
 
-                 'attributes'  => array(
 
-                     'rows'  => '6',
 
-                     'class' => 'form-control',
 
-                 ),
 
-             ),
 
-             /**
 
-              * ++++++++++++++
 
-              * SALE TRANSACTION FEE REFUNDS
 
-              * ++++++++++++++
 
-              */
 
-             array(
 
-                 'form_id'      => 'sale_fee_refunds',
 
-                 'id'           => 'enable_sale_fee_refunds',
 
-                 'element'      => 'checkbox',
 
-                 'label'        => $this->_('Enable Sale Transaction Fee Refunds'),
 
-                 'multiOptions' => array(
 
-                     1 => null,
 
-                 ),
 
-                 'description'  => $this->_('Check the above checkbox if you wish to allow your users to request refunds for sale transaction fees.<br>'
 
-                     . 'The refunded amounts will be credited to the site account balances of the users.'),
 
-             ),
 
-             array(
 
-                 'form_id'     => 'sale_fee_refunds',
 
-                 'id'          => 'sale_fee_refunds_range',
 
-                 'element'     => '\Ppb\Form\Element\Range',
 
-                 'label'       => $this->_('Interval'),
 
-                 'description' => $this->_('Enter the interval when the payer is able to request a refund for a sale transaction fee, or leave both fields empty if you don\'t want to set an interval.'),
 
-                 'suffix'      => $this->_('days'),
 
-                 'attributes'  => array(
 
-                     'class' => 'form-control input-mini',
 
-                 ),
 
-             ),
 
-             /**
 
-              * ++++++++++++++
 
-              * SOCIAL NETWORK LINKS
 
-              * ++++++++++++++
 
-              */
 
-             array(
 
-                 'form_id'      => 'social_network_links',
 
-                 'id'           => 'enable_social_network_links',
 
-                 'element'      => 'checkbox',
 
-                 'label'        => $this->_('Enable Social Network Links'),
 
-                 'multiOptions' => array(
 
-                     1 => null,
 
-                 ),
 
-                 'description'  => $this->_('Check the above checkbox if you wish for social network links to be enabled throughout your website.'),
 
-             ),
 
-             /**
 
-              * ++++++++++++++
 
-              * COOKIE USAGE CONFIRMATION
 
-              * ++++++++++++++
 
-              */
 
-             array(
 
-                 'form_id'      => 'cookie_usage',
 
-                 'id'           => 'enable_cookie_usage_confirmation',
 
-                 'element'      => 'checkbox',
 
-                 'label'        => $this->_('Enable Cookie Usage Confirmation'),
 
-                 'multiOptions' => array(
 
-                     1 => null,
 
-                 ),
 
-                 'description'  => $this->_('Check the above checkbox to enable the cookie usage confirmation option.<br>'
 
-                     . 'If this feature is enabled, users will be notified that the site uses cookies and will need to agree in order to hide the message.'),
 
-             ),
 
-             array(
 
-                 'form_id'     => 'cookie_usage',
 
-                 'id'          => 'cookie_usage_message',
 
-                 'element'     => 'textarea',
 
-                 'label'       => $this->_('Cookie Usage Confirmation Message'),
 
-                 'description' => $this->_('Enter the cookie confirmation message that will be displayed.'),
 
-                 'required'    => ($this->getData('enable_cookie_usage_confirmation')) ? true : false,
 
-                 'attributes'  => array(
 
-                     'rows'  => '3',
 
-                     'class' => 'form-control',
 
-                 ),
 
-             ),
 
-             /**
 
-              * ++++++++++++++
 
-              * GOOGLE RECAPTCHA
 
-              * ++++++++++++++
 
-              */
 
-             array(
 
-                 'form_id'      => 'google_recaptcha',
 
-                 'id'           => 'enable_recaptcha',
 
-                 'element'      => 'checkbox',
 
-                 'label'        => $this->_('Enable reCAPTCHA'),
 
-                 'multiOptions' => array(
 
-                     1 => null,
 
-                 ),
 
-                 'description'  => $this->_('Check the above checkbox to enable the Google reCAPTCHA plugin. <br>'
 
-                     . 'To enable the plugin for your site, you will need to create an account '
 
-                     . '<a href="https://www.google.com/recaptcha/intro/index.html" target="_blank">here</a>.'),
 
-             ),
 
-             array(
 
-                 'form_id'    => 'google_recaptcha',
 
-                 'id'         => 'recaptcha_public_key',
 
-                 'element'    => 'text',
 
-                 'label'      => $this->_('reCAPTCHA Public Key'),
 
-                 'required'   => ($this->getData('enable_recaptcha')) ? true : false,
 
-                 'validators' => array(
 
-                     'NoHtml',
 
-                 ),
 
-                 'attributes' => array(
 
-                     'class' => 'form-control input-xlarge',
 
-                 ),
 
-             ),
 
-             array(
 
-                 'form_id'    => 'google_recaptcha',
 
-                 'id'         => 'recaptcha_private_key',
 
-                 'element'    => 'text',
 
-                 'label'      => $this->_('reCAPTCHA Private Key'),
 
-                 'required'   => ($this->getData('enable_recaptcha')) ? true : false,
 
-                 'validators' => array(
 
-                     'NoHtml',
 
-                 ),
 
-                 'attributes' => array(
 
-                     'class' => 'form-control input-xlarge',
 
-                 ),
 
-             ),
 
-             array(
 
-                 'form_id'      => 'google_recaptcha',
 
-                 'subtitle'     => $this->_('reCAPTCHA Usage'),
 
-                 'id'           => 'recaptcha_registration',
 
-                 'element'      => 'checkbox',
 
-                 'label'        => $this->_('Registration Process'),
 
-                 'multiOptions' => array(
 
-                     1 => null,
 
-                 ),
 
-                 'description'  => $this->_('Check the above checkbox to enable reCAPTCHA for the registration process.'),
 
-             ),
 
-             array(
 
-                 'form_id'      => 'google_recaptcha',
 
-                 'id'           => 'recaptcha_contact_us',
 
-                 'element'      => 'checkbox',
 
-                 'label'        => $this->_('Contact Us Page'),
 
-                 'multiOptions' => array(
 
-                     1 => null,
 
-                 ),
 
-                 'description'  => $this->_('Check the above checkbox to enable reCAPTCHA for the contact us page.'),
 
-             ),
 
-             array(
 
-                 'form_id'      => 'google_recaptcha',
 
-                 'id'           => 'recaptcha_email_friend',
 
-                 'element'      => 'checkbox',
 
-                 'label'        => $this->_('Email Listing to Friend Page'),
 
-                 'multiOptions' => array(
 
-                     1 => null,
 
-                 ),
 
-                 'description'  => $this->_('Check the above checkbox to enable reCAPTCHA for the email listing to friend page.'),
 
-             ),
 
-             /**
 
-              * ++++++++++++++
 
-              * BCC EMAILS TO ADMIN
 
-              * ++++++++++++++
 
-              */
 
-             array(
 
-                 'form_id'      => 'bcc_emails',
 
-                 'id'           => 'bcc_emails',
 
-                 'element'      => 'checkbox',
 
-                 'label'        => $this->_('Enable BCC Emails to Admin'),
 
-                 'multiOptions' => array(
 
-                     1 => null,
 
-                 ),
 
-                 'description'  => sprintf(
 
-                     $this->_('Check the above checkbox in order for emails sent between site users, together with sale notification emails to be sent '
 
-                         . 'to the main admin email address as well (%s).'), $settings['admin_email']),
 
-             ),
 
-             /**
 
-              * ++++++++++++++
 
-              * RECENTLY VIEWED LISTINGS BOX
 
-              * ++++++++++++++
 
-              */
 
-             array(
 
-                 'form_id'      => 'recently_viewed_listings',
 
-                 'id'           => 'enable_recently_viewed_listings',
 
-                 'element'      => 'checkbox',
 
-                 'label'        => $this->_('Enable Recently Viewed Listings Box'),
 
-                 'multiOptions' => array(
 
-                     1 => null,
 
-                 ),
 
-                 'description'  => $this->_('Check the above checkbox to enable the recently viewed listings box, which will appear for users '
 
-                     . 'by default in the footer of your website.'),
 
-             ),
 
-             array(
 
-                 'form_id'     => 'recently_viewed_listings',
 
-                 'id'          => 'enable_recently_viewed_listings_expiration',
 
-                 'element'     => 'text',
 
-                 'label'       => $this->_('Expiration Time'),
 
-                 'suffix'      => $this->_('hours'),
 
-                 'description' => $this->_('Enter the number of hours after a listing will be removed from the recently viewed table.'),
 
-                 'required'    => $this->getData('enable_recently_viewed_listings') ? true : false,
 
-                 'validators'  => array(
 
-                     'Digits',
 
-                 ),
 
-                 'attributes'  => array(
 
-                     'class' => 'form-control input-mini',
 
-                 ),
 
-             ),
 
-             /**
 
-              * ++++++++++++++
 
-              * BULK LISTER
 
-              * ++++++++++++++
 
-              */
 
-             array(
 
-                 'form_id'      => 'bulk_lister',
 
-                 'id'           => 'enable_bulk_lister',
 
-                 'element'      => 'checkbox',
 
-                 'label'        => $this->_('Enable Bulk Lister'),
 
-                 'multiOptions' => array(
 
-                     1 => null,
 
-                 ),
 
-                 'description'  => $this->_('Check the above checkbox to enable the bulk lister tool. The bulk lister will parse CSV files.'),
 
-             ),
 
-             /**
 
-              * ++++++++++++++
 
-              * NEWSLETTER SUBSCRIPTION BOX
 
-              * ++++++++++++++
 
-              */
 
-             array(
 
-                 'form_id'      => 'newsletter_subscription_box',
 
-                 'id'           => 'newsletter_subscription_box',
 
-                 'element'      => 'checkbox',
 
-                 'label'        => $this->_('Enable Newsletter Subscription Box'),
 
-                 'multiOptions' => array(
 
-                     1 => null,
 
-                 ),
 
-                 'description'  => $this->_('Check the above checkbox to enable the newsletter subscription box from the footer.'),
 
-             ),
 
-             /**
 
-              * ++++++++++++++
 
-              * ADULT CATEGORIES
 
-              * ++++++++++++++
 
-              */
 
-             array(
 
-                 'form_id'      => 'adult_categories',
 
-                 'id'           => 'enable_adult_categories',
 
-                 'element'      => 'checkbox',
 
-                 'label'        => $this->_('Enable Adult Categories'),
 
-                 'multiOptions' => array(
 
-                     1 => null,
 
-                 ),
 
-                 'description'  => $this->_('Check the above checkbox to enable the adult categories module.'),
 
-             ),
 
-             array(
 
-                 'form_id'      => 'adult_categories',
 
-                 'id'           => 'adult_categories_splash_page',
 
-                 'element'      => 'checkbox',
 
-                 'label'        => $this->_('Splash Page Custom Content'),
 
-                 'multiOptions' => array(
 
-                     1 => null,
 
-                 ),
 
-                 'description'  => $this->_('Check the above checkbox if you wish to use custom content for the adult categories splash page.'),
 
-                 'attributes'   => array(
 
-                     'class' => 'field-changeable',
 
-                 ),
 
-                 'bodyCode'     => "
 
-                     <script type=\"text/javascript\">
 
-                         function checkAdultCategoriesFields()
 
-                         {
 
-                             if ($('input:checkbox[name=\"adult_categories_splash_page\"]').is(':checked')) {
 
-                                 $('[name=\"adult_categories_splash_page_content\"]').closest('.form-group').show();
 
-                             }
 
-                             else {
 
-                                 $('[name=\"adult_categories_splash_page_content\"]').closest('.form-group').hide();
 
-                             }
 
-                         }
 
-                         $(document).ready(function() {
 
-                             checkAdultCategoriesFields();
 
-                         });
 
-                         $(document).on('change', '.field-changeable', function() {
 
-                             checkAdultCategoriesFields();
 
-                         });
 
-                     </script>"
 
-             ),
 
-             array(
 
-                 'form_id'     => 'adult_categories',
 
-                 'id'          => 'adult_categories_splash_page_content',
 
-                 'element'     => '\\Ppb\\Form\\Element\\Wysiwyg',
 
-                 'label'       => $this->_('Custom Content'),
 
-                 'description' => $this->_('Enter the custom content that will be displayed on the adult categories splash page.'),
 
-                 'required'    => ($this->getData('adult_categories_splash_page')) ? true : false,
 
-                 'attributes'  => array(
 
-                     'rows'  => '12',
 
-                     'class' => 'form-control',
 
-                 ),
 
-             ),
 
-             /**
 
-              * ++++++++++++++
 
-              * AUCTIONS SETTINGS
 
-              * ++++++++++++++
 
-              */
 
-             array(
 
-                 'form_id'      => 'auctions_settings',
 
-                 'id'           => 'enable_auctions',
 
-                 'element'      => 'checkbox',
 
-                 'label'        => $this->_('Enable Auctions'),
 
-                 'multiOptions' => array(
 
-                     1 => null,
 
-                 ),
 
-                 'description'  => $this->_('Check the above checkbox to enable the listing of auctions on your website.'),
 
-                 'required'     => (!$settings['enable_products']) ? true : false,
 
-             ),
 
-             array(
 
-                 'form_id'     => 'auctions_settings',
 
-                 'subtitle'    => $this->_('Auctions Editing Time Limit'),
 
-                 'id'          => 'auctions_editing_hours',
 
-                 'element'     => 'text',
 
-                 'label'       => $this->_('Time Limit'),
 
-                 'suffix'      => $this->_('hours'),
 
-                 'description' => $this->_('If the remaining duration of an auction will be less than the above set time limit, the seller will not be allowed to edit it.'),
 
-                 'validators'  => array(
 
-                     'Digits',
 
-                 ),
 
-                 'attributes'  => array(
 
-                     'class' => 'form-control input-mini',
 
-                 ),
 
-             ),
 
-             array(
 
-                 'form_id'      => 'auctions_settings',
 
-                 'subtitle'     => $this->_('Auctions Sniping Feature'),
 
-                 'id'           => 'enable_auctions_sniping',
 
-                 'element'      => 'checkbox',
 
-                 'label'        => $this->_('Enable Feature'),
 
-                 'multiOptions' => array(
 
-                     1 => null,
 
-                 ),
 
-                 'description'  => $this->_('If this feature is enabled, the duration of an auction will be extended if a bid is placed when the auction is about to close. '),
 
-             ),
 
-             array(
 
-                 'form_id'     => 'auctions_settings',
 
-                 'id'          => 'auctions_sniping_minutes',
 
-                 'element'     => 'text',
 
-                 'label'       => $this->_('Sniping Duration'),
 
-                 'suffix'      => $this->_('minutes'),
 
-                 'description' => $this->_('If the remaining duration of an auction will be less than the above set duration, the time will be extended to the above setting.'),
 
-                 'required'    => $this->getData('enable_auctions_sniping') ? true : false,
 
-                 'validators'  => array(
 
-                     'Digits',
 
-                 ),
 
-                 'attributes'  => array(
 
-                     'class' => 'form-control input-mini',
 
-                 ),
 
-             ),
 
-             array(
 
-                 'form_id'      => 'auctions_settings',
 
-                 'subtitle'     => $this->_('Bid Retraction'),
 
-                 'id'           => 'enable_bid_retraction',
 
-                 'element'      => 'checkbox',
 
-                 'label'        => $this->_('Enable Feature'),
 
-                 'multiOptions' => array(
 
-                     1 => null,
 
-                 ),
 
-                 'description'  => $this->_('Check the above checkbox in order to allow bidders to retract their bids from auctions.'),
 
-             ),
 
-             array(
 
-                 'form_id'     => 'auctions_settings',
 
-                 'id'          => 'bid_retraction_hours',
 
-                 'element'     => 'text',
 
-                 'label'       => $this->_('Bid Retraction Limit'),
 
-                 'suffix'      => $this->_('hours'),
 
-                 'description' => $this->_('Enter the minimum required time left on an auction for the bid retraction feature to be allowed.'),
 
-                 'required'    => $this->getData('enable_auctions_sniping') ? true : false,
 
-                 'validators'  => array(
 
-                     'Digits',
 
-                 ),
 
-                 'attributes'  => array(
 
-                     'class' => 'form-control input-mini',
 
-                 ),
 
-             ),
 
-             array(
 
-                 'form_id'      => 'auctions_settings',
 
-                 'subtitle'     => $this->_('Change Auction Duration when a Bid is Placed'),
 
-                 'id'           => 'enable_change_duration',
 
-                 'element'      => 'checkbox',
 
-                 'label'        => $this->_('Enable Feature'),
 
-                 'multiOptions' => array(
 
-                     1 => null,
 
-                 ),
 
-                 'description'  => $this->_('Check the above checkbox if you want for the auction duration to be changed after the first bid has been placed.'),
 
-             ),
 
-             array(
 
-                 'form_id'     => 'auctions_settings',
 
-                 'id'          => 'change_duration_days',
 
-                 'element'     => 'text',
 
-                 'label'       => $this->_('New Duration'),
 
-                 'suffix'      => $this->_('days'),
 
-                 'description' => $this->_('If the duration left on the auction is over the value above, then it will be automatically reset to the value above.'),
 
-                 'required'    => $this->getData('enable_change_duration') ? true : false,
 
-                 'validators'  => array(
 
-                     'Digits',
 
-                 ),
 
-                 'attributes'  => array(
 
-                     'class' => 'form-control input-mini',
 
-                 ),
 
-             ),
 
- //            array(
 
- //                'form_id'      => 'auctions_settings',
 
- //                'subtitle'     => $this->_('Second Chance Purchasing'),
 
- //                'id'           => 'second_chance_purchasing',
 
- //                'element'      => 'checkbox',
 
- //                'label'        => $this->_('Enable Feature'),
 
- //                'multiOptions' => array(
 
- //                    1 => null,
 
- //                ),
 
- //                'description'  => $this->_('With second chance purchasing, sellers will be able to manually select a winner if the '
 
- //                        . 'automatically appointed winner didn\'t complete the purchase.<br>'
 
- //                        . '<b>Important</b>: This feature will be available for standard auctions not marked as paid only.'),
 
- //            ),
 
- //            array(
 
- //                'form_id'     => 'auctions_settings',
 
- //                'id'          => 'second_chance_purchasing_days',
 
- //                'element'     => 'text',
 
- //                'label'       => $this->_('Enter Interval'),
 
- //                'suffix'      => 'days',
 
- //                'description' => $this->_('You can set a number of days after which the "Second Chance" feature will become available '
 
- //                        . 'for sold items, or enter 0 if you wish for this feature to be available right away.'),
 
- //                'validators'  => array(
 
- //                    'Digits',
 
- //                ),
 
- //                'attributes'  => array(
 
- //                    'class' => 'form-control input-mini',
 
- //                ),
 
- //            ),
 
-             array(
 
-                 'form_id'      => 'auctions_settings',
 
-                 'subtitle'     => $this->_('Close Auctions Before End Time'),
 
-                 'id'           => 'close_auctions_end_time',
 
-                 'element'      => 'checkbox',
 
-                 'label'        => $this->_('Enable Feature'),
 
-                 'multiOptions' => array(
 
-                     1 => null,
 
-                 ),
 
-                 'description'  => $this->_('If this setting is enabled, sellers will be able to close their auctions early even if there is a high bid placed. <br>'
 
-                     . 'By default, auctions can be closed ahead of the closing date only if there are no bids or if the high bid is '
 
-                     . 'lower than the reserve price.'),
 
-             ),
 
-             array(
 
-                 'form_id'      => 'auctions_settings',
 
-                 'subtitle'     => $this->_('Proxy Bidding'),
 
-                 'id'           => 'proxy_bidding',
 
-                 'element'      => 'checkbox',
 
-                 'label'        => $this->_('Enable Feature'),
 
-                 'multiOptions' => array(
 
-                     1 => null,
 
-                 ),
 
-                 'description'  => $this->_('If this setting is enabled, bidders will be able to place a maximum bid on an auction, but the active bid set will be the '
 
-                     . 'minimum amount required for them to be high bidders.<br>'
 
-                     . '<a href="http://en.wikipedia.org/wiki/Proxy_bid" target="_blank">Click here</a> for more information on this feature.'),
 
-             ),
 
-             array(
 
-                 'form_id'      => 'auctions_settings',
 
-                 'subtitle'     => $this->_('Limit Number of Bids / Offers per User'),
 
-                 'id'           => 'enable_limit_bids',
 
-                 'element'      => 'checkbox',
 
-                 'label'        => $this->_('Enable Feature'),
 
-                 'multiOptions' => array(
 
-                     1 => null,
 
-                 ),
 
-                 'description'  => $this->_('If you enable this feature, your sellers will be able to limit the number of bids and/or offers a bidder can '
 
-                     . 'place on an auction (proxy bids are not taken into consideration).'),
 
-             ),
 
-             /**
 
-              * ++++++++++++++
 
-              * PRODUCTS SETTINGS
 
-              * ++++++++++++++
 
-              */
 
-             array(
 
-                 'form_id'      => 'products_settings',
 
-                 'id'           => 'enable_products',
 
-                 'element'      => 'checkbox',
 
-                 'label'        => $this->_('Enable Products'),
 
-                 'multiOptions' => array(
 
-                     1 => null,
 
-                 ),
 
-                 'description'  => $this->_('Check the above checkbox to enable the listing of products (items with fixed price) on your website.'),
 
-                 'required'     => (!$settings['enable_auctions']) ? true : false,
 
-             ),
 
-             array(
 
-                 'form_id'      => 'products_settings',
 
-                 'subtitle'     => $this->_('Unlimited Duration'),
 
-                 'id'           => 'enable_unlimited_duration',
 
-                 'element'      => 'checkbox',
 
-                 'label'        => $this->_('Enable Unlimited Duration'),
 
-                 'multiOptions' => array(
 
-                     1 => null,
 
-                 ),
 
-                 'description'  => $this->_('If unlimited duration is enabled, sellers will be able to list products without a closing date.'),
 
-             ),
 
-             array(
 
-                 'form_id'      => 'products_settings',
 
-                 'id'           => 'force_unlimited_duration',
 
-                 'element'      => 'checkbox',
 
-                 'label'        => $this->_('Force Unlimited Duration'),
 
-                 'multiOptions' => array(
 
-                     1 => null,
 
-                 ),
 
-                 'description'  => $this->_('With this option enabled, sellers will only be able to list products with no closing date.'),
 
-             ),
 
-             array(
 
-                 'form_id'      => 'products_settings',
 
-                 'subtitle'     => $this->_('Shopping Cart'),
 
-                 'id'           => 'enable_shopping_cart',
 
-                 'element'      => 'checkbox',
 
-                 'label'        => $this->_('Enable Shopping Cart'),
 
-                 'multiOptions' => array(
 
-                     1 => null,
 
-                 ),
 
-                 'description'  => $this->_('Check the above checkbox to enable the shopping cart feature.'),
 
-             ),
 
-             array(
 
-                 'form_id'      => 'products_settings',
 
-                 'id'           => 'shopping_cart_applies',
 
-                 'element'      => 'radio',
 
-                 'label'        => $this->_('Shopping Cart Applies'),
 
-                 'multiOptions' => array(
 
-                     'global'         => array(
 
-                         $translate->_('Globally'),
 
-                         $translate->_('The shopping cart will be used for all products listed on the site.'),
 
-                     ),
 
-                     'store_owners'   => array(
 
-                         $translate->_('Store Owners'),
 
-                         $translate->_('The shopping cart will be used for products listed by store owners only.')
 
-                     ),
 
-                     'store_listings' => array(
 
-                         $translate->_('Store Listings'),
 
-                         $translate->_('The shopping cart will be used only for products listed in stores.'),
 
-                     ),
 
-                 ),
 
-                 'description'  => $this->_('Select when the shopping cart module will be used.'),
 
-             ),
 
-             array(
 
-                 'form_id'     => 'products_settings',
 
-                 'id'          => 'pending_sales_listings_expire_hours',
 
-                 'element'     => 'text',
 
-                 'label'       => $this->_('Reserve Stock'),
 
- //                'prefix'      => $this->_('after'),
 
-                 'suffix'      => $this->_('minutes'),
 
-                 'description' => $this->_('Enter the duration for which products added in a shopping cart have their stock reserved, or leave empty to disable this feature.'),
 
-                 'validators'  => array(
 
-                     'Digits',
 
-                 ),
 
-                 'attributes'  => array(
 
-                     'class' => 'form-control input-mini',
 
-                 ),
 
-             ),
 
-             array(
 
-                 'form_id'      => 'products_settings',
 
-                 'subtitle'     => $this->_('Force Payment'),
 
-                 'id'           => ($settings['enable_products']) ? 'enable_force_payment' : false,
 
-                 'element'      => 'checkbox',
 
-                 'label'        => $this->_('Enable Force Payment'),
 
-                 'multiOptions' => array(
 
-                     1 => null,
 
-                 ),
 
-                 'description'  => $this->_('If enabled, a sale will be completed only when the sale is marked as paid.'),
 
-             ),
 
-             array(
 
-                 'form_id'     => 'products_settings',
 
-                 'id'          => 'force_payment_limit',
 
-                 'element'     => 'text',
 
-                 'label'       => $this->_('Force Payment Time Limit'),
 
-                 'suffix'      => $this->_('minutes'),
 
-                 'description' => $this->_('Enter the time limit after which unpaid sales are reverted.'),
 
-                 'required'    => true,
 
-                 'validators'  => array(
 
-                     'Digits',
 
-                 ),
 
-                 'attributes'  => array(
 
-                     'class' => 'form-control input-mini',
 
-                 ),
 
-             ),
 
-             /**
 
-              * ++++++++++++++
 
-              * BUY OUT FEATURE
 
-              * ++++++++++++++
 
-              */
 
-             array(
 
-                 'form_id'      => 'buy_out',
 
-                 'id'           => 'enable_buyout',
 
-                 'element'      => 'checkbox',
 
-                 'label'        => $this->_('Enable Buy Out'),
 
-                 'multiOptions' => array(
 
-                     1 => null,
 
-                 ),
 
-                 'description'  => $this->_('Check the above checkbox to enable buy out feature for auctions.'),
 
-                 'required'     => (!$settings['enable_auctions'] && !$settings['enable_make_offer']) ? true : false,
 
-             ),
 
-             array(
 
-                 'form_id'      => 'buy_out',
 
-                 'id'           => 'always_show_buyout',
 
-                 'element'      => 'checkbox',
 
-                 'label'        => $this->_('Always Show Buy Out Button'),
 
-                 'multiOptions' => array(
 
-                     1 => null,
 
-                 ),
 
-                 'description'  => $this->_('If this setting is enabled, when listing an auction with buy out enabled, the option will remain active even if there are bids above the reserve price posted.'),
 
-             ),
 
-             /**
 
-              * ++++++++++++++
 
-              * MAKE OFFER FEATURE
 
-              * ++++++++++++++
 
-              */
 
-             array(
 
-                 'form_id'      => 'make_offer',
 
-                 'id'           => 'enable_make_offer',
 
-                 'element'      => 'checkbox',
 
-                 'label'        => $this->_('Enable Make Offer'),
 
-                 'multiOptions' => array(
 
-                     1 => null,
 
-                 ),
 
-                 'description'  => $this->_('Check the above checkbox to enable the make offer feature for auctions and products.'),
 
-             ),
 
-             array(
 
-                 'form_id'      => 'make_offer',
 
-                 'id'           => 'show_make_offer_ranges',
 
-                 'element'      => 'checkbox',
 
-                 'label'        => $this->_('Show Offer Ranges'),
 
-                 'multiOptions' => array(
 
-                     1 => null,
 
-                 ),
 
-                 'description'  => $this->_('With this option enabled, the allowed offer ranges set by the seller will be displayed on the listing details page.'),
 
-             ),
 
-             /**
 
-              * ++++++++++++++
 
-              * ITEMS SWAPPING FEATURE
 
-              * ++++++++++++++
 
-              */
 
-             array(
 
-                 'form_id'      => 'items_swapping',
 
-                 'id'           => 'enable_swap',
 
-                 'element'      => 'checkbox',
 
-                 'label'        => $this->_('Enable Items Swapping Feature'),
 
-                 'multiOptions' => array(
 
-                     1 => null,
 
-                 ),
 
-                 'description'  => $this->_('Check the above checkbox to enable the items swapping feature for auctions and products.'),
 
-             ),
 
-             /**
 
-              * ++++++++++++++
 
-              * SHIPPING SETTINGS
 
-              * ++++++++++++++
 
-              */
 
-             array(
 
-                 'form_id'      => 'shipping_settings',
 
-                 'id'           => 'enable_shipping',
 
-                 'element'      => 'checkbox',
 
-                 'label'        => $this->_('Enable Shipping Module'),
 
-                 'multiOptions' => array(
 
-                     1 => null,
 
-                 ),
 
-                 'description'  => $this->_('Check the above checkbox to enable the shipping module on the site.'),
 
-                 'attributes'   => array(
 
-                     'id'      => 'enable_shipping',
 
-                     'onclick' => 'javascript:checkShippingFields();',
 
-                 ),
 
-                 'bodyCode'     => "
 
-                     <script type=\"text/javascript\">
 
-                         function checkShippingFields() {
 
-                             if ($('#enable_shipping').is(':checked')) {  
 
-                                 $('.shipping-options').closest('.form-group').show();
 
-                             }
 
-                             else {
 
-                                 $('.shipping-options').prop('checked', false).closest('.form-group').hide();
 
-                             }
 
-                         }
 
-                         $(document).ready(function() {             
 
-                             checkShippingFields();
 
-                         });
 
-                     </script>",
 
-             ),
 
-             array(
 
-                 'form_id'      => 'shipping_settings',
 
-                 'id'           => 'enable_pickups',
 
-                 'element'      => 'checkbox',
 
-                 'label'        => $this->_('Enable Pick-ups Option'),
 
-                 'multiOptions' => array(
 
-                     1 => null,
 
-                 ),
 
-                 'description'  => $this->_('Check the above checkbox to allow sellers to enable the pick-up option for their items.'),
 
-                 'attributes'   => array(
 
-                     'class' => 'shipping-options',
 
-                 ),
 
-             ),
 
-             array(
 
-                 'form_id'      => 'shipping_settings',
 
-                 'id'           => 'enable_returns',
 
-                 'element'      => 'checkbox',
 
-                 'label'        => $this->_('Enable Returns Option'),
 
-                 'multiOptions' => array(
 
-                     1 => null,
 
-                 ),
 
-                 'description'  => $this->_('Check the above checkbox to allow sellers to specify a returns policy for their items.'),
 
-                 'attributes'   => array(
 
-                     'class' => 'shipping-options',
 
-                 ),
 
-             ),
 
-             /**
 
-              * ++++++++++++++
 
-              * AUTO RELISTS SETTINGS
 
-              * ++++++++++++++
 
-              */
 
-             array(
 
-                 'form_id'      => 'auto_relists',
 
-                 'id'           => 'auto_relist',
 
-                 'element'      => 'checkbox',
 
-                 'label'        => $this->_('Enable Auto Relists'),
 
-                 'multiOptions' => array(
 
-                     1 => null,
 
-                 ),
 
-                 'description'  => $this->_('Check the above checkbox to enable the auto relists feature.'),
 
-             ),
 
-             array(
 
-                 'form_id'     => 'auto_relists',
 
-                 'id'          => 'max_auto_relists',
 
-                 'element'     => 'text',
 
-                 'label'       => $this->_('Maximum Auto Relists Allowed'),
 
-                 'description' => $this->_('Enter the maximum number of auto relists that can be entered when a listing is created.'),
 
-                 'validators'  => array(
 
-                     'Digits',
 
-                 ),
 
-                 'attributes'  => array(
 
-                     'class' => 'form-control input-mini',
 
-                 ),
 
-             ),
 
-             array(
 
-                 'form_id'      => 'auto_relists',
 
-                 'id'           => 'relist_method',
 
-                 'element'      => 'select',
 
-                 'label'        => $this->_('Relist Method'),
 
-                 'description'  => $this->_('Select the method of relisting that will be applied for your listings:<br>'
 
-                     . '- New: a new record will be created, and the old listing will be marked deleted<br>'
 
-                     . '- Same: the same listing will be re-opened, and any sales, bids etc will be removed'),
 
-                 'multiOptions' => array(
 
-                     'new'  => 'New',
 
-                     'same' => 'Same',
 
-                 ),
 
-                 'attributes'   => array(
 
-                     'class' => 'form-control input-small',
 
-                 ),
 
-             ),
 
-             /**
 
-              * ++++++++++++++
 
-              * MARKED DELETED LISTINGS REMOVAL
 
-              * ++++++++++++++
 
-              */
 
-             array(
 
-                 'form_id'      => 'marked_deleted',
 
-                 'id'           => 'marked_deleted_listings_removal',
 
-                 'element'      => 'checkbox',
 
-                 'label'        => $this->_('Automatic Marked Deleted Listings Removal'),
 
-                 'multiOptions' => array(
 
-                     1 => null,
 
-                 ),
 
-                 'description'  => $this->_('Check the above checkbox to enable the automatic removal of marked deleted listings.<br>'
 
-                     . '<b>Note</b>: The process will be run using the cron service.'),
 
-             ),
 
-             /**
 
-              * ++++++++++++++
 
-              * CLOSED LISTINGS DELETION
 
-              * ++++++++++++++
 
-              */
 
-             array(
 
-                 'form_id'     => 'closed_listings_deletion',
 
-                 'id'          => 'closed_listings_deletion_days',
 
-                 'element'     => 'text',
 
-                 'label'       => $this->_('Closed Listings Deletion'),
 
-                 'suffix'      => $this->_('days'),
 
-                 'description' => $this->_('Enter a duration in days after which closed listings should be automatically marked deleted, or leave empty to disable this feature.'),
 
-                 'attributes'  => array(
 
-                     'class' => 'form-control input-mini',
 
-                 ),
 
-                 'validators'  => array(
 
-                     'Digits',
 
-                 ),
 
-             ),
 
-             /**
 
-              * ++++++++++++++
 
-              * USERS MESSAGING
 
-              * ++++++++++++++
 
-              */
 
-             array(
 
-                 'form_id'      => 'users_messaging',
 
-                 'id'           => 'enable_messaging',
 
-                 'element'      => 'checkbox',
 
-                 'label'        => $this->_('Enable Messaging'),
 
-                 'multiOptions' => array(
 
-                     1 => null,
 
-                 ),
 
-                 'description'  => $this->_('Check the above checkbox to enable the users messaging module.<br>'
 
-                     . '<b>Note</b>: All messages sent through the site can be read/managed by the administrator from the Tools -> Messages page.'),
 
-             ),
 
-             array(
 
-                 'form_id'      => 'users_messaging',
 
-                 'id'           => 'enable_public_questions',
 
-                 'element'      => 'checkbox',
 
-                 'label'        => $this->_('Enable Public Questions'),
 
-                 'multiOptions' => array(
 
-                     1 => null,
 
-                 ),
 
-                 'description'  => $this->_('To enable the posting of public questions on listings, you can check the checkbox above.<br>'
 
-                     . 'By default, only private questions on listings will be allowed.'),
 
-             ),
 
-             /**
 
-              * ++++++++++++++
 
-              * ADDITIONAL CATEGORY LISTING
 
-              * ++++++++++++++
 
-              */
 
-             array(
 
-                 'form_id'      => 'additional_category_listing',
 
-                 'id'           => 'addl_category_listing',
 
-                 'element'      => 'checkbox',
 
-                 'label'        => $this->_('Enable Feature'),
 
-                 'multiOptions' => array(
 
-                     1 => null,
 
-                 ),
 
-                 'description'  => $this->_('Check the above checkbox to enable the listing of items in an additional category.'),
 
-             ),
 
-             /**
 
-              * ++++++++++++++
 
-              * LISTINGS COUNTERS
 
-              * ++++++++++++++
 
-              */
 
-             array(
 
-                 'form_id'      => 'listings_counters',
 
-                 'id'           => 'category_counters',
 
-                 'element'      => 'checkbox',
 
-                 'label'        => $this->_('Category Counters'),
 
-                 'multiOptions' => array(
 
-                     1 => null,
 
-                 ),
 
-                 'description'  => $this->_('Check the above checkbox to enable the display of category counters on selected pages. <br>'
 
-                     . 'Counters are updated only using the cron job. If they are out of sync, please use the initialization tool below.'),
 
-             ),
 
- //            array(
 
- //                'form_id'      => 'listings_counters',
 
- //                'id'           => 'search_counters',
 
- //                'element'      => 'checkbox',
 
- //                'label'        => $this->_('Search Filter Counters'),
 
- //                'multiOptions' => array(
 
- //                    1 => null,
 
- //                ),
 
- //                'description'  => $this->_('Check the above checkbox to enable the display of listings counters on the search browse pages. The counters will '
 
- //                        . 'display for categories and any custom fields for which this setting can be applied.<br>'
 
- //                        . '<b>Important</b>: This functionality may increase your server load on larger sites, VPS or dedicated hosting is highly recommended.'),
 
- //            ),
 
-             array(
 
-                 'form_id'      => 'listings_counters',
 
-                 'id'           => 'hide_empty_categories',
 
-                 'element'      => 'checkbox',
 
-                 'label'        => $this->_('Hide Empty Categories/Options'),
 
-                 'multiOptions' => array(
 
-                     1 => null,
 
-                 ),
 
-                 'description'  => $this->_('Check the above checkbox to hide categories or filtering options that do not contain any listings.'),
 
-             ),
 
-             array(
 
-                 'form_id'     => 'listings_counters',
 
-                 'id'          => 'init_category_counters',
 
-                 'element'     => 'button',
 
-                 'label'       => $this->_('Initialize Counters'),
 
-                 'value'       => $this->_('Initialize'),
 
-                 'description' => sprintf(
 
-                         $translate->_('Click on the button above to initialize your site\'s category counters.'
 
-                             . '<div>There are a total of <span id="category-total-listings">%s</span> listings to be counted.</div>'), $totalListings)
 
-                     . '<div id="category-counters-progress" class="text-info"></div>',
 
-                 'attributes'  => array(
 
-                     'class' => 'btn btn-default',
 
-                 ),
 
-             ),
 
-             /**
 
-              * ++++++++++++++
 
-              * LISTINGS TERMS & CONDITIONS BOX
 
-              * ++++++++++++++
 
-              */
 
-             array(
 
-                 'form_id'      => 'listing_terms_box',
 
-                 'id'           => 'listing_terms_box',
 
-                 'element'      => 'checkbox',
 
-                 'label'        => $this->_('Show Listing Terms & Conditions Box'),
 
-                 'multiOptions' => array(
 
-                     1 => null,
 
-                 ),
 
-                 'description'  => $this->_('Check the above checkbox to display the listing terms and conditions box on the listing setup process.'),
 
-             ),
 
-             array(
 
-                 'form_id'     => 'listing_terms_box',
 
-                 'id'          => 'listing_terms_content',
 
-                 'element'     => 'textarea',
 
-                 'label'       => $this->_('Content'),
 
-                 'description' => $this->_('Enter the terms and conditions that will be displayed in the box.'),
 
-                 'validators'  => array(
 
-                     'NoHtml',
 
-                 ),
 
-                 'attributes'  => array(
 
-                     'rows'  => '12',
 
-                     'class' => 'form-control',
 
-                 ),
 
-             ),
 
-             /**
 
-              * ++++++++++++++
 
-              * USERS PHONE NUMBERS ON SUCCESSFUL SALES
 
-              * ++++++++++++++
 
-              */
 
-             array(
 
-                 'form_id'      => 'user_phone_numbers',
 
-                 'id'           => 'sale_phone_numbers',
 
-                 'element'      => 'checkbox',
 
-                 'label'        => $this->_('Enable Feature'),
 
-                 'multiOptions' => array(
 
-                     1 => null,
 
-                 ),
 
-                 'description'  => $this->_('Check the above checkbox to show the phone numbers of users when displaying their full addresses.'),
 
-             ),
 
-             /**
 
-              * ++++++++++++++
 
-              * SELLER'S OTHER ITEMS BOX
 
-              * ++++++++++++++
 
-              */
 
-             array(
 
-                 'form_id'      => 'other_items_seller',
 
-                 'id'           => 'other_items_seller',
 
-                 'element'      => 'checkbox',
 
-                 'label'        => $this->_('Enable Feature'),
 
-                 'multiOptions' => array(
 
-                     1 => null,
 
-                 ),
 
-                 'description'  => $this->_('Check the above checkbox to enable the display of the other items from the seller box on the listing details pages.'),
 
-             ),
 
- //            /**
 
- //             * ++++++++++++++
 
- //             * REVERSE AUCTIONS
 
- //             * ++++++++++++++
 
- //             */
 
- //            array(
 
- //                'form_id'      => 'reverse_auctions_settings',
 
- //                'id'           => 'enable_reverse_auctions',
 
- //                'element'      => 'checkbox',
 
- //                'label'        => 'Enable Reverse Auctions',
 
- //                'multiOptions' => array(
 
- //                    1 => null,
 
- //                ),
 
- //                'description'  => 'Check the above checkbox to display the listing of reverse auctions on your website.<br>
 
- //                    <b>Explanation</b><br>
 
- //                    In a reverse auction, the roles of the buyer and seller are inversed. <br>
 
- //                    Sellers can make a single bid on a reverse auction, the bid amount however can be edited at any time until the auction closes.<br>
 
- //                    After the auction has closed, the buyer will manually award the winning bid.',
 
- //            ),
 
- //            /**
 
- //             * ++++++++++++++
 
- //             * WANTED ADS
 
- //             * ++++++++++++++
 
- //             */
 
- //            array(
 
- //                'form_id'      => 'wanted_ads_settings',
 
- //                'id'           => 'enable_wanted_ads',
 
- //                'element'      => 'checkbox',
 
- //                'label'        => 'Enable Wanted Ads',
 
- //                'multiOptions' => array(
 
- //                    1 => null,
 
- //                ),
 
- //                'description'  => 'Check the above checkbox to display the listing of wanted ads on your website.',
 
- //            ),
 
- //            /**
 
- //             * ++++++++++++++
 
- //             * FIRST BIDDER AUCTIONS
 
- //             * ++++++++++++++
 
- //             */
 
- //            array(
 
- //                'form_id'      => 'first_bidder_auctions_settings',
 
- //                'id'           => 'enable_first_bidder_auctions',
 
- //                'element'      => 'checkbox',
 
- //                'label'        => 'Enable First Bidder Auctions',
 
- //                'multiOptions' => array(
 
- //                    1 => null,
 
- //                ),
 
- //                'description'  => 'Check the above checkbox to display the listing of first bidder auctions on your website.<br>
 
- //                    <b>Explanation</b><br>
 
- //                    In a first bidder auction, the bid decreases automatically periodically, with an amount set by the poster.<br>
 
- //                    The first user who bids on the auction will win. Users can only bid the current active bid amount, which is set automatically.',
 
- //            ),
 
-             /**
 
-              * ++++++++++++++
 
-              * STORES SETTINGS
 
-              * ++++++++++++++
 
-              */
 
-             array(
 
-                 'form_id'      => 'stores_settings',
 
-                 'id'           => 'enable_stores',
 
-                 'element'      => 'checkbox',
 
-                 'label'        => $this->_('Enable Stores'),
 
-                 'multiOptions' => array(
 
-                     1 => null,
 
-                 ),
 
-                 'disabled'     => ($settings['enable_products']) ? false : true,
 
-                 'description'  => $this->_('Check the above checkbox to enable the stores module on your website.<br>'
 
-                     . '<b>Important</b>: Only products can be listed in store. If the listing of products is disabled, stores will be disabled as well.'),
 
-             ),
 
-             array(
 
-                 'form_id'      => 'stores_settings',
 
-                 'id'           => 'hide_empty_stores',
 
-                 'element'      => 'checkbox',
 
-                 'label'        => $this->_('Hide Empty Stores'),
 
-                 'multiOptions' => array(
 
-                     1 => null,
 
-                 ),
 
-                 'description'  => $this->_('Check the above checkbox in order for stores with no items to be hidden when accessing the stores browse page.'),
 
-             ),
 
-             array(
 
-                 'form_id'      => 'stores_settings',
 
-                 'id'           => 'store_only_mode',
 
-                 'element'      => 'checkbox',
 
-                 'label'        => $this->_('Enable Store Only Mode'),
 
-                 'multiOptions' => array(
 
-                     1 => null,
 
-                 ),
 
-                 'description'  => $this->_('Check the above checkbox to enable the store only mode functionality. <br>'
 
-                     . 'With this mode enabled, users will need to open a store in order to be able to list items.'),
 
-             ),
 
-             array(
 
-                 'form_id'      => 'stores_settings',
 
-                 'id'           => 'custom_stores_categories',
 
-                 'element'      => 'checkbox',
 
-                 'label'        => $this->_('Custom Stores Categories'),
 
-                 'multiOptions' => array(
 
-                     1 => null,
 
-                 ),
 
-                 'description'  => $this->_('Check the above checkbox to enable allow your users to create their own custom categories.'),
 
-             ),
 
-             array(
 
-                 'form_id'      => 'stores_settings',
 
-                 'id'           => 'enable_auctions_in_stores',
 
-                 'element'      => 'checkbox',
 
-                 'label'        => $this->_('Allow Auctions in Stores'),
 
-                 'multiOptions' => array(
 
-                     1 => null,
 
-                 ),
 
-                 'description'  => $this->_('Check the above checkbox to allow your users to list auctions in their stores. '
 
-                     . 'By default, only products can be listed in stores.'),
 
-             ),
 
-             array(
 
-                 'form_id'      => 'stores_settings',
 
-                 'id'           => 'stores_force_list_in_both',
 
-                 'element'      => 'checkbox',
 
-                 'label'        => $this->_('Disable List In Select Box'),
 
-                 'multiOptions' => array(
 
-                     1 => null,
 
-                 ),
 
-                 'description'  => $this->_('Check the above checkbox to disable the "List In" selector. '
 
-                     . 'All listings in this case will be listed in both the site and store.'),
 
-             ),
 
-             array(
 
-                 'form_id'     => 'stores_settings',
 
-                 'id'          => 'force_stores',
 
-                 'element'     => 'text',
 
-                 'label'       => $this->_('Force Stores'),
 
-                 'suffix'      => $this->_('listings'),
 
-                 'description' => $this->_('Enter a number of listings that a seller is allowed to list before being required to open a store, or leave empty to disable this feature.'),
 
-                 'attributes'  => array(
 
-                     'class' => 'form-control input-mini',
 
-                 ),
 
-                 'validators'  => array(
 
-                     'Digits',
 
-                 ),
 
-             ),
 
-             /**
 
-              * ++++++++++++++
 
-              * TAX SETTINGS
 
-              * ++++++++++++++
 
-              */
 
-             array(
 
-                 'form_id'      => 'tax_settings',
 
-                 'id'           => 'enable_tax_fees',
 
-                 'element'      => 'checkbox',
 
-                 'label'        => $this->_('Enable Tax on Site Fees'),
 
-                 'multiOptions' => array(
 
-                     1 => null,
 
-                 ),
 
-                 'description'  => $this->_('Check the above checkbox to enable tax for site fees.'),
 
-             ),
 
-             array(
 
-                 'form_id'      => 'tax_settings',
 
-                 'id'           => 'tax_fees_type',
 
-                 'element'      => 'select',
 
-                 'label'        => $this->_('Tax Type'),
 
-                 'description'  => $this->_('Select the tax that will be applied for site fees.'),
 
-                 'multiOptions' => $this->getTaxTypes()->getMultiOptions(),
 
-                 'attributes'   => array(
 
-                     'class' => 'form-control input-large',
 
-                 ),
 
-             ),
 
-             array(
 
-                 'form_id'      => 'tax_settings',
 
-                 'id'           => 'enable_tax_listings',
 
-                 'element'      => 'checkbox',
 
-                 'label'        => $this->_('Allow Sellers to Apply Tax'),
 
-                 'multiOptions' => array(
 
-                     1 => null,
 
-                 ),
 
-                 'description'  => $this->_('Check the above checkbox to allow sellers to apply tax on their listings.'),
 
-             ),
 
-             /**
 
-              * --------------
 
-              * SITE FEES MANAGEMENT
 
-              * --------------
 
-              */
 
-             array(
 
-                 'form_id'      => 'fees_category',
 
-                 'id'           => 'category_id',
 
-                 'element'      => 'select',
 
-                 'label'        => $this->_('Select Category'),
 
-                 'multiOptions' => $this->getCategories()->getMultiOptions("parent_id IS NULL AND custom_fees='1'", null,
 
-                     $translate->_('Default')),
 
-                 'attributes'   => array(
 
-                     'class' => 'form-control input-medium',
 
-                     'id'    => 'category-selector',
 
-                 ),
 
-                 'bodyCode'     => "
 
-                     <script type=\"text/javascript\">
 
-                         $(document).ready(function() { 
 
-                             $('#category-selector').change(function() { 
 
-                                 var categoryId = $(this).val();
 
-                                 var action = $(this).closest('form').attr('action');
 
-                                 var url = action.replace(/(\/category_id)(\/[0-9]+)/g, '');
 
-                                 
 
-                                 $(location).attr('href', url + '/category_id/' + categoryId);
 
-                             });
 
-                         });
 
-                     </script>",
 
-             ),
 
-             /**
 
-              * ++++++++++++++
 
-              * USER SIGN-UP
 
-              * ++++++++++++++
 
-              */
 
-             array(
 
-                 'form_id'     => 'signup',
 
-                 'id'          => Fees::SIGNUP,
 
-                 'element'     => '\\Ppb\\Form\\Element\\LocalizedNumeric',
 
-                 'label'       => $this->_('User Signup Fee'),
 
-                 'prefix'      => $settings['currency'],
 
-                 'description' => $this->_('Enter an amount in the box above if you wish to charge your users for signing up on the site.'),
 
-                 'attributes'  => array(
 
-                     'class' => 'form-control input-mini',
 
-                 ),
 
-                 'validators'  => array(
 
-                     'Numeric',
 
-                 ),
 
-                 'filters'     => array(
 
-                     '\\Ppb\\Filter\\LocalizedNumeric',
 
-                 ),
 
-             ),
 
-             /**
 
-              * ++++++++++++++
 
-              * SALE FEE PAYER RADIO BUTTON
 
-              * ++++++++++++++
 
-              */
 
-             array(
 
-                 'form_id'      => 'sale',
 
-                 'id'           => 'sale_fee_payer',
 
-                 'element'      => 'radio',
 
-                 'label'        => $this->_('Paid By'),
 
-                 'multiOptions' => array(
 
-                     'buyer'  => array(
 
-                         $translate->_('Buyer'),
 
-                     ),
 
-                     'seller' => array(
 
-                         $translate->_('Seller'),
 
-                     ),
 
-                 ),
 
-                 'description'  => $this->_('Select which party would pay for the sale transaction fee.'),
 
-             ),
 
-             /**
 
-              * ++++++++++++++
 
-              * TIERS FEES TABLES
 
-              * ++++++++++++++
 
-              */
 
-             array(
 
-                 'form_id'  => 'tiers',
 
-                 'id'       => 'id',
 
-                 'element'  => 'hidden',
 
-                 'multiple' => true,
 
-             ),
 
-             array(
 
-                 'form_id'  => 'tiers',
 
-                 'id'       => 'delete',
 
-                 'element'  => 'checkbox',
 
-                 'multiple' => true,
 
-             ),
 
-             array(
 
-                 'form_id'    => 'tiers',
 
-                 'id'         => 'amount',
 
-                 'element'    => '\\Ppb\\Form\\Element\\LocalizedNumeric',
 
-                 'label'      => $this->_('Fee Amount'),
 
-                 'multiple'   => true,
 
-                 'attributes' => array(
 
-                     'class' => 'form-control input-mini',
 
-                 ),
 
-                 'validators' => array(//                    'Numeric',
 
-                 ),
 
-                 'filters'    => array(
 
-                     '\\Ppb\\Filter\\LocalizedNumeric',
 
-                 ),
 
-             ),
 
-             array(
 
-                 'form_id'      => 'tiers',
 
-                 'id'           => 'calculation_type',
 
-                 'element'      => 'select',
 
-                 'label'        => $this->_('Calculation Type'),
 
-                 'multiple'     => true,
 
-                 'multiOptions' => array(
 
-                     'flat'    => $settings['currency'],
 
-                     'percent' => '%',
 
-                 ),
 
-                 'attributes'   => array(
 
-                     'class' => 'form-control input-small',
 
-                     'size'  => 1,
 
-                 ),
 
-             ),
 
-             array(
 
-                 'form_id'    => 'tiers',
 
-                 'id'         => 'tier_from',
 
-                 'element'    => '\\Ppb\\Form\\Element\\LocalizedNumeric',
 
-                 'label'      => $this->_('Range From'),
 
-                 'multiple'   => true,
 
-                 'prefix'     => $settings['currency'],
 
-                 'attributes' => array(
 
-                     'class' => 'form-control input-small',
 
-                 ),
 
-                 'validators' => array(//                    'Numeric',
 
-                 ),
 
-                 'filters'    => array(
 
-                     '\\Ppb\\Filter\\LocalizedNumeric',
 
-                 ),
 
-             ),
 
-             array(
 
-                 'form_id'    => 'tiers',
 
-                 'id'         => 'tier_to',
 
-                 'element'    => '\\Ppb\\Form\\Element\\LocalizedNumeric',
 
-                 'label'      => $this->_('Range To'),
 
-                 'multiple'   => true,
 
-                 'prefix'     => $settings['currency'],
 
-                 'attributes' => array(
 
-                     'class' => 'form-control input-small',
 
-                 ),
 
-                 'validators' => array(//                    'Numeric',
 
-                 ),
 
-                 'filters'    => array(
 
-                     '\\Ppb\\Filter\\LocalizedNumeric',
 
-                 ),
 
-             ),
 
-             /**
 
-              * ++++++++++++++
 
-              * HOME PAGE FEATURED LISTINGS
 
-              * ++++++++++++++
 
-              */
 
-             array(
 
-                 'form_id'     => 'hpfeat',
 
-                 'id'          => Fees::HPFEAT,
 
-                 'element'     => '\\Ppb\\Form\\Element\\LocalizedNumeric',
 
-                 'label'       => $this->_('Home Page Featured Fee'),
 
-                 'prefix'      => $settings['currency'],
 
-                 'description' => $this->_('Enter a fee that will apply when listing home page featured items.'),
 
-                 'attributes'  => array(
 
-                     'class' => 'form-control input-mini',
 
-                 ),
 
-                 'validators'  => array(
 
-                     'Numeric',
 
-                 ),
 
-                 'filters'     => array(
 
-                     '\\Ppb\\Filter\\LocalizedNumeric',
 
-                 ),
 
-             ),
 
-             /**
 
-              * ++++++++++++++
 
-              * CATEGORY PAGES FEATURED LISTINGS
 
-              * ++++++++++++++
 
-              */
 
-             array(
 
-                 'form_id'     => 'catfeat',
 
-                 'id'          => Fees::CATFEAT,
 
-                 'element'     => '\\Ppb\\Form\\Element\\LocalizedNumeric',
 
-                 'label'       => $this->_('Category Pages Featured Fee'),
 
-                 'prefix'      => $settings['currency'],
 
-                 'description' => $this->_('Enter a fee that will apply when listing category pages featured items.'),
 
-                 'attributes'  => array(
 
-                     'class' => 'form-control input-mini',
 
-                 ),
 
-                 'validators'  => array(
 
-                     'Numeric',
 
-                 ),
 
-                 'filters'     => array(
 
-                     '\\Ppb\\Filter\\LocalizedNumeric',
 
-                 ),
 
-             ),
 
-             /**
 
-              * ++++++++++++++
 
-              * HIGHLIGHTED LISTINGS
 
-              * ++++++++++++++
 
-              */
 
-             array(
 
-                 'form_id'     => 'highlighted',
 
-                 'id'          => Fees::HIGHLIGHTED,
 
-                 'element'     => '\\Ppb\\Form\\Element\\LocalizedNumeric',
 
-                 'label'       => $this->_('Highlighted Listing Fee'),
 
-                 'prefix'      => $settings['currency'],
 
-                 'description' => $this->_('Enter a fee that will apply when enabling the highlighted listing feature.'),
 
-                 'attributes'  => array(
 
-                     'class' => 'form-control input-mini',
 
-                 ),
 
-                 'validators'  => array(
 
-                     'Numeric',
 
-                 ),
 
-                 'filters'     => array(
 
-                     '\\Ppb\\Filter\\LocalizedNumeric',
 
-                 ),
 
-             ),
 
-             /**
 
-              * ++++++++++++++
 
-              * LISTING SUBTITLE
 
-              * ++++++++++++++
 
-              */
 
-             array(
 
-                 'form_id'     => 'subtitle',
 
-                 'id'          => Fees::SUBTITLE,
 
-                 'element'     => '\\Ppb\\Form\\Element\\LocalizedNumeric',
 
-                 'label'       => $this->_('Listing Subtitle Fee'),
 
-                 'prefix'      => $settings['currency'],
 
-                 'description' => $this->_('Enter a fee that will apply when adding a subtitle for a listing.'),
 
-                 'attributes'  => array(
 
-                     'class' => 'form-control input-mini',
 
-                 ),
 
-                 'validators'  => array(
 
-                     'Numeric',
 
-                 ),
 
-                 'filters'     => array(
 
-                     '\\Ppb\\Filter\\LocalizedNumeric',
 
-                 ),
 
-             ),
 
-             /**
 
-              * ++++++++++++++
 
-              * LISTING IMAGES
 
-              * ++++++++++++++
 
-              */
 
-             array(
 
-                 'form_id'     => 'images',
 
-                 'id'          => Fees::IMAGES,
 
-                 'element'     => '\\Ppb\\Form\\Element\\LocalizedNumeric',
 
-                 'label'       => $this->_('Images Upload Fee'),
 
-                 'prefix'      => $settings['currency'],
 
-                 'description' => $this->_('Enter a fee that will be charged for each image uploaded with a listing.'),
 
-                 'attributes'  => array(
 
-                     'class' => 'form-control input-mini',
 
-                 ),
 
-                 'validators'  => array(
 
-                     'Numeric',
 
-                 ),
 
-                 'filters'     => array(
 
-                     '\\Ppb\\Filter\\LocalizedNumeric',
 
-                 ),
 
-             ),
 
-             array(
 
-                 'form_id'     => 'images',
 
-                 'id'          => Fees::NB_FREE_IMAGES,
 
-                 'element'     => 'text',
 
-                 'label'       => $this->_('Free Images'),
 
-                 'description' => $this->_('Enter the number of free images that can be uploaded with a listing.'),
 
-                 'attributes'  => array(
 
-                     'class' => 'form-control input-mini',
 
-                 ),
 
-                 'validators'  => array(
 
-                     'Digits',
 
-                 ),
 
-                 'filters'     => array(
 
-                     'Digits',
 
-                 ),
 
-             ),
 
-             /**
 
-              * ++++++++++++++
 
-              * MEDIA UPLOAD
 
-              * ++++++++++++++
 
-              */
 
-             array(
 
-                 'form_id'     => 'media',
 
-                 'id'          => Fees::MEDIA,
 
-                 'element'     => '\\Ppb\\Form\\Element\\LocalizedNumeric',
 
-                 'label'       => $this->_('Media Upload Fee'),
 
-                 'prefix'      => $settings['currency'],
 
-                 'description' => $this->_('Enter a fee that will apply when adding media to a listing.'),
 
-                 'attributes'  => array(
 
-                     'class' => 'form-control input-mini',
 
-                 ),
 
-                 'validators'  => array(
 
-                     'Numeric',
 
-                 ),
 
-                 'filters'     => array(
 
-                     '\\Ppb\\Filter\\LocalizedNumeric',
 
-                 ),
 
-             ),
 
-             array(
 
-                 'form_id'     => 'media',
 
-                 'id'          => Fees::NB_FREE_MEDIA,
 
-                 'element'     => 'text',
 
-                 'label'       => $this->_('Free Media Items'),
 
-                 'description' => $this->_('Enter the number of free media items that can be uploaded with a listing.'),
 
-                 'attributes'  => array(
 
-                     'class' => 'form-control input-mini',
 
-                 ),
 
-                 'validators'  => array(
 
-                     'Digits',
 
-                 ),
 
-                 'filters'     => array(
 
-                     'Digits',
 
-                 ),
 
-             ),
 
-             /**
 
-              * ++++++++++++++
 
-              * DIGITAL DOWNLOADS
 
-              * ++++++++++++++
 
-              */
 
-             array(
 
-                 'form_id'     => 'digital_downloads_fee',
 
-                 'id'          => Fees::DIGITAL_DOWNLOADS,
 
-                 'element'     => '\\Ppb\\Form\\Element\\LocalizedNumeric',
 
-                 'label'       => $this->_('Digital Downloads Fee'),
 
-                 'prefix'      => $settings['currency'],
 
-                 'description' => $this->_('Enter a fee that will apply when creating a listing having digital download option enabled.'),
 
-                 'attributes'  => array(
 
-                     'class' => 'form-control input-mini',
 
-                 ),
 
-                 'validators'  => array(
 
-                     'Numeric',
 
-                 ),
 
-                 'filters'     => array(
 
-                     '\\Ppb\\Filter\\LocalizedNumeric',
 
-                 ),
 
-             ),
 
-             array(
 
-                 'form_id'     => 'digital_downloads_fee',
 
-                 'id'          => Fees::NB_FREE_DOWNLOADS,
 
-                 'element'     => 'text',
 
-                 'label'       => $this->_('Free Digital Downloads'),
 
-                 'description' => $this->_('Enter the number of free digital downloads that can be uploaded with a listing.'),
 
-                 'attributes'  => array(
 
-                     'class' => 'form-control input-mini',
 
-                 ),
 
-                 'validators'  => array(
 
-                     'Digits',
 
-                 ),
 
-                 'filters'     => array(
 
-                     'Digits',
 
-                 ),
 
-             ),
 
-             /**
 
-              * ++++++++++++++
 
-              * ADDITIONAL CATEGORY LISTING
 
-              * ++++++++++++++
 
-              */
 
-             array(
 
-                 'form_id'     => 'addl_category',
 
-                 'id'          => Fees::ADDL_CATEGORY,
 
-                 'element'     => '\\Ppb\\Form\\Element\\LocalizedNumeric',
 
-                 'label'       => $this->_('Additional Category Listing Fee'),
 
-                 'prefix'      => $settings['currency'],
 
-                 'description' => $this->_('Enter a fee that will apply when listing an item in more than one category.'),
 
-                 'attributes'  => array(
 
-                     'class' => 'form-control input-mini',
 
-                 ),
 
-                 'validators'  => array(
 
-                     'Numeric',
 
-                 ),
 
-                 'filters'     => array(
 
-                     '\\Ppb\\Filter\\LocalizedNumeric',
 
-                 ),
 
-             ),
 
-             /**
 
-              * ++++++++++++++
 
-              * BUY OUT FEE
 
-              * ++++++++++++++
 
-              */
 
-             array(
 
-                 'form_id'     => 'buyout',
 
-                 'id'          => Fees::BUYOUT,
 
-                 'element'     => '\\Ppb\\Form\\Element\\LocalizedNumeric',
 
-                 'label'       => $this->_('Buy Out Fee'),
 
-                 'prefix'      => $settings['currency'],
 
-                 'description' => $this->_('Enter a fee that will apply when listing an item with buy out enabled.'),
 
-                 'attributes'  => array(
 
-                     'class' => 'form-control input-mini',
 
-                 ),
 
-                 'validators'  => array(
 
-                     'Numeric',
 
-                 ),
 
-                 'filters'     => array(
 
-                     '\\Ppb\\Filter\\LocalizedNumeric',
 
-                 ),
 
-             ),
 
-             /**
 
-              * ++++++++++++++
 
-              * RESERVE PRICE FEE
 
-              * ++++++++++++++
 
-              */
 
-             array(
 
-                 'form_id'     => 'reserve_price',
 
-                 'id'          => Fees::RESERVE,
 
-                 'element'     => '\\Ppb\\Form\\Element\\LocalizedNumeric',
 
-                 'label'       => $this->_('Reserve Price Fee'),
 
-                 'prefix'      => $settings['currency'],
 
-                 'description' => $this->_('Enter a fee that will apply when enabling reserve price on an auction.'),
 
-                 'attributes'  => array(
 
-                     'class' => 'form-control input-mini',
 
-                 ),
 
-                 'validators'  => array(
 
-                     'Numeric',
 
-                 ),
 
-                 'filters'     => array(
 
-                     '\\Ppb\\Filter\\LocalizedNumeric',
 
-                 ),
 
-             ),
 
-             /**
 
-              * ++++++++++++++
 
-              * MAKE OFFER FEE
 
-              * ++++++++++++++
 
-              */
 
-             array(
 
-                 'form_id'     => 'make_offer_fee',
 
-                 'id'          => Fees::MAKE_OFFER,
 
-                 'element'     => '\\Ppb\\Form\\Element\\LocalizedNumeric',
 
-                 'label'       => $this->_('Make Offer Fee'),
 
-                 'prefix'      => $settings['currency'],
 
-                 'description' => $this->_('Enter a fee that will apply when listing an item with make offer enabled.'),
 
-                 'attributes'  => array(
 
-                     'class' => 'form-control input-mini',
 
-                 ),
 
-                 'validators'  => array(
 
-                     'Numeric',
 
-                 ),
 
-                 'filters'     => array(
 
-                     '\\Ppb\\Filter\\LocalizedNumeric',
 
-                 ),
 
-             ),
 
-         );
 
-     }
 
-     protected function _cachingEngineMultiOptions()
 
-     {
 
-         $translate = $this->getTranslate();
 
-         $result = array(
 
-             ''      => array(
 
-                 $translate->_('Off'),
 
-                 $translate->_('Disables the caching engine. Metadata caching will still be enabled, using the Files adapter.')
 
-             ),
 
-             'Files' => array(
 
-                 $translate->_('Files'),
 
-                 $translate->_('Uses static files for caching.')
 
-             ),
 
-             'Table' => array(
 
-                 $translate->_('Table'),
 
-                 $translate->_('Uses the database for caching (slower than the Files adapter).'),
 
-             ),
 
-         );
 
-         $result['Memcache'] = array(
 
-             $translate->_('Memcache'),
 
-         );
 
-         if (!CacheAdapter\Memcache::enabled()) {
 
-             $result['Memcache'][] = '<span class="text-danger">' . $translate->_('Memcache is not available on your server. Please contact your server admin for information on how to enable the module.') . '</span>';
 
-             $result['Memcache'][] = array(
 
-                 'disabled' => 'disabled'
 
-             );
 
-         }
 
-         else {
 
-             $result['Memcache'][] = $translate->_('Uses the memcache module for caching (recommended).');
 
-         }
 
-         if (CacheAdapter\Apc::enabled()) {
 
-             $result['Apc'] = array(
 
-                 $translate->_('Apc'),
 
-                 $translate->_('Uses the Alternative PHP Cache (APC) module for caching.'),
 
-             );
 
-         }
 
-         return $result;
 
-     }
 
- }
 
 
  |