[ Index ]

MailPress 544

[ Index ]     [ Classes ]     [ Functions ]     [ Variables ]     [ Constants ]     [ Statistics ]    

title

Body

[close]

/mp-includes/class/options/form/field_types/captcha_gd1/ -> settings.xml (source)

   1  <?php /* captcha_gd1 */
   2  
   3  $root = dirname(__FILE__) . '/captcha/cfg/';
   4  $xform_img_style['random'] = __('random choice', MP_TXTDOM);
   5  if (is_dir($root)) 
   6  {
   7      $dir  = @opendir($root);
   8      if ($dir) while (($file = readdir($dir)) !== false) if ($file[0] != '.') $xform_img_style[$file] = $file;
   9      @closedir($dir);
  10  }
  11  ?>
  12  <settings>
  13      <attributes>
  14          <items>
  15              <type>
  16                  <radio>
  17                      <text>type=</text>
  18                      <values><![CDATA[<?php echo serialize(array('text' => '"text"')); ?>]]></values>
  19                      <disabled><![CDATA[<?php echo serialize(array('text')); ?>]]></disabled>
  20                      <default>text</default>
  21                  </radio>
  22                  <hidden>
  23                      <value>text</value>
  24                  </hidden>
  25              </type>
  26          </items>
  27          <items>
  28              <size>
  29                  <select_num>
  30                      <text>size=</text>
  31                      <min>1</min>
  32                      <max>100</max>
  33                      <default>22</default>
  34                  </select_num>
  35              </size>
  36          </items>
  37          <items>
  38              <value><text></text></value>
  39          </items>
  40          <items>
  41              <class><text></text></class>
  42          </items>
  43          <items>
  44              <style><text></text></style>
  45          </items>
  46          <items>
  47              <is>
  48                  <is>
  49                      <values><![CDATA[<?php echo serialize(array('disabled', 'readonly')); ?>]]></values>
  50                      <disabled><![CDATA[<?php echo serialize( array() ); ?>]]></disabled>
  51                  </is>
  52              </is>
  53          </items>
  54          <items>
  55              <misc><misc><![CDATA[<?php _e("other attributes except 'name' & 'id'", MP_TXTDOM); ?>]]></misc></misc>
  56          </items>
  57      </attributes>
  58      <controls>
  59          <items>
  60              <required>
  61                  <checkbox>
  62                      <text><![CDATA[<?php _e('Required', MP_TXTDOM); ?>]]></text>
  63                      <value>1</value>
  64                      <disabled>1</disabled>
  65                      <class>controls</class>
  66                      <forced>1</forced>
  67                  </checkbox>
  68              </required>
  69          </items>
  70      </controls>
  71      <options>
  72          <items>
  73              <only_text>
  74                  <only_text><![CDATA[<?php _e('Format in form :', MP_TXTDOM); ?>]]></only_text>
  75              </only_text>
  76          </items>
  77          <items>
  78              <form_img_style>
  79                  <select_opt>
  80                      <text><![CDATA[<?php _e('Style : ', MP_TXTDOM); ?>]]></text>
  81                      <values><![CDATA[<?php echo serialize($xform_img_style); ?>]]></values>
  82                      <default>default</default>
  83                  </select_opt>
  84              </form_img_style>
  85          </items>
  86  <?php if ($this->field->form_incopy) : ?>
  87          <items>
  88              <incopy>
  89                  <checkbox>
  90                      <text><![CDATA[<?php _e('In copy', MP_TXTDOM); ?>]]></text>
  91                      <value>1</value>
  92                      <disabled>0</disabled>
  93                  </checkbox>
  94              </incopy>
  95          </items>
  96  <?php endif; ?>
  97      </options>
  98      <captcha>
  99          <items>
 100              <only_text>
 101                  <only_text><![CDATA[<?php if (!isset($field->id)) $field->id = 0; echo "<img src='" . esc_url(MP_Action_url . '?id=' . $field->id . '&action=1ahctpac') . "' alt='' />"; ?>]]></only_text>
 102              </only_text>
 103          </items>
 104      </captcha>
 105      <hiddens>
 106          <controls>
 107              <required>1</required>
 108          </controls>
 109  <?php if ($protected) : ?>
 110          <options>
 111              <protected></protected>
 112          </options>
 113  <?php endif; ?>
 114      </hiddens>
 115      <tabs>
 116          <attributes><![CDATA[<?php _e('Attributes', MP_TXTDOM); ?>]]></attributes>
 117          <controls><![CDATA[<?php _e('Controls', MP_TXTDOM); ?>]]></controls>
 118          <options><![CDATA[<?php _e('Options', MP_TXTDOM); ?>]]></options>
 119          <captcha><![CDATA[<?php _e('Captcha', MP_TXTDOM); ?>]]></captcha>
 120      </tabs>
 121  </settings>


Generated: Thu Apr 28 18:38:52 2016 Cross-referenced by PHPXref 0.7.1