[ Index ]

MailPress 7.1

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

title

Body

[close]

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

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


Generated: Mon Mar 11 18:33:33 2019 Cross-referenced by PHPXref 0.7.1